New IT forum
12 August 2022, 03:12:32 pm *
Welcome, %1$s. Please login or register.

: MiraBox now in stock.
 
Pages: [1]

Author Topic: no sd boot from power on - but on reboot  (Read 7803 times)

2nice

  • New IT customer
  • Newbie
  • *
  • Posts: 24
  • P.I. with XBMC :-)
no sd boot from power on - but on reboot
« on: 07 February 2011, 06:11:18 pm »

Hi.

My father in law has a plug which I set up for him as a squeezeboxserver.

When we power on it will not boot on the sd card where the squeezebox server resides, but when we issue a 'reboot' command in the internal Ubuntu os - the plug boots nicely on the sd card.

Any ideas why this behaviour?

The sd card is a sandisk class 10 4 gb card. The image is squeezebox server image obtained from http://squeezeplug.de/?page_id=2 where Thomas has put together a nice image :-).
 

/Bo.
Logged

NewIT_Marcus

  • Hero Member
  • *****
  • Posts: 960
Re: no sd boot from power on - but on reboot
« Reply #1 on: 07 February 2011, 06:59:25 pm »

Try amending the bootcmd_mmc environment variable (or whatever equivalent you are using) to include mmcinit twice, ie:

Code: [Select]
mmcinit; mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000

Instead of :

Code: [Select]
mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x00800000
Logged

2nice

  • New IT customer
  • Newbie
  • *
  • Posts: 24
  • P.I. with XBMC :-)
Re: no sd boot from power on - but on reboot
« Reply #2 on: 07 February 2011, 07:31:26 pm »

Hi Marcus.
Thanks. - Could you tell me in which file I'll find the environment variable you mention? I assume it's on the internal Ubuntu OS, right?

/Bo
Logged

NewIT_Marcus

  • Hero Member
  • *****
  • Posts: 960
Re: no sd boot from power on - but on reboot
« Reply #3 on: 07 February 2011, 07:57:29 pm »

In U-Boot.

Connect via the USB cable, reboot, interrupt the boot process and at the Marvell>> prompt type "printenv" to view your environment variables. You probably already did some work with them in order to set up SD card booting. Copy & paste them here if you don't know what to do next.
Logged

2nice

  • New IT customer
  • Newbie
  • *
  • Posts: 24
  • P.I. with XBMC :-)
Re: no sd boot from power on - but on reboot
« Reply #4 on: 07 February 2011, 08:48:31 pm »

Thanks for quick reply.

I actually use the multiboot sheevaplug from NewIT and therfore I didn't do any tampering with the uboot vars. But after reading a bit in this forum - I'm not sure, that I dare to mess with these settings - as I understand I can brick the plug if I get i wrong - isn't that right?

When I get near the plug again - I'll try dumping out the environment vars from the Marwell prompt - just to have a look at them.

I wonder could it be the SD card which is actually too fast? The cards we get from NewIT is class 6 I belive - and we use class 10.

Regards, Bo.
Logged

NewIT_Marcus

  • Hero Member
  • *****
  • Posts: 960
Re: no sd boot from power on - but on reboot
« Reply #5 on: 07 February 2011, 09:16:04 pm »

You can't predict which cards will work best (or worst) on the Sheevaplug. I think that manufacturers are focused on the camera market; ease (or difficulty) of use for computer owners isn't something that they specifically design for. And although regular storage may not be such a big deal, using an SD card as a boot device does seem to be quite challenging.

Anyway, your environment variables are listed here; probably your simplest option is to change bootcmd:

from:
Code: [Select]
bootcmd=run bootcmd_mmc; run bootcmd_nand

to:
Code: [Select]
bootcmd=mmcinit;run bootcmd_mmc; run bootcmd_nand

To do that:
Code: [Select]
setenv bootcmd 'mmcinit;run bootcmd_mmc; run bootcmd_nand'
saveenv
reset


Logged

2nice

  • New IT customer
  • Newbie
  • *
  • Posts: 24
  • P.I. with XBMC :-)
Re: no sd boot from power on - but on reboot
« Reply #6 on: 07 February 2011, 10:03:55 pm »

Hi Marcus.

Well that looks very simple ... I'll give it a go this weekend when I visit my father in law.

Thank you, as always for at quick and instructive reply. :)

Regards, Bo
Logged

Manaslu

  • Newbie
  • *
  • Posts: 1
Re: no sd boot from power on - but on reboot
« Reply #7 on: 11 February 2011, 07:43:51 pm »

........

Anyway, your environment variables are listed here; probably your simplest option is to change bootcmd:

from:
Code: [Select]
bootcmd=run bootcmd_mmc; run bootcmd_nand

to:
Code: [Select]
bootcmd=mmcinit;run bootcmd_mmc; run bootcmd_nand

To do that:
Code: [Select]
setenv bootcmd 'mmcinit;run bootcmd_mmc; run bootcmd_nand'
saveenv
reset

This works perfectly for my case, thanks.
Logged

2nice

  • New IT customer
  • Newbie
  • *
  • Posts: 24
  • P.I. with XBMC :-)
Re: no sd boot from power on - but on reboot
« Reply #8 on: 14 February 2011, 09:34:19 pm »

Same here... solved.

After modifying my the boot settings on the sheevaplug - everything worked fine when boot from power on.
Thank you New-IT/Marcus.

Regards, Bo :D
Logged

NewIT_Marcus

  • Hero Member
  • *****
  • Posts: 960
Re: no sd boot from power on - but on reboot
« Reply #9 on: 14 February 2011, 09:41:11 pm »

Just to clarify why this works; mmc_init attempts to initialise the SD card - ie test for its presence, do whatever needs to be done to determine that there is a device attached to the SD card slot. Because some SD cards take longer than others to return good information, executing the command twice means you get twice as long for the intialisation to work.
Logged
Pages: [1]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!