Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

variable for booting from sdcard on pogoplug mobile/v4 (2 replies)

$
0
0
I was having trouble getting one of my plugs to boot from the mmc card - just getting an error. after carefully reviewing the env.config I noticed that the bootcmd_mmc variable is missing in the file, so it just overpasses it with an error.


I have the bootcmd variable set as follows;
bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; run net_bootcmd; run bootcmd_pogo; reset

so...bootcmd_mmc= ?

The only example I could find here in the forums was here http://forum.doozan.com/read.php?2,28798,28798#msg-28798

mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then boo tm 0x800000 0x1100000; else bootm 0x800000; fi 
mmc_init=mmc rescan 
mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage 
mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd 
mmc_root=/dev/mmcblk0p1

If my sdcard has debian installed on ext3 and it is labelled rootfs and is device 1 , would the above code I copied be=

mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi 
mmc_init=mmc rescan 
mmc_load_uimage=ext3load mmc $device 0x800000 /boot/uImage 
mmc_load_uinitrd=ext3load mmc $device 0x1100000 /boot/uInitrd 
mmc_root=/dev/rootfs

I know I can always trial and error it but I'm trying to understand (and finally starting to get it a little) exactly how the script/code itself within the env.config file works as well.

Thanks!

Viewing all articles
Browse latest Browse all 3247

Trending Articles