Defaultly booting from Flash

Joachim Ott jo.omsl at googlemail.com
Mon Oct 27 13:59:18 CET 2008


2008/10/27 AceOfHertz <aceofhertz at gmail.com>

>
> Hello,
>
> I have recently received my new Freerunner and decided to install Debian on
> it.  I followed the instructions and chose to have it boot from the SD card
> by default.
>
> I want to get back to booting from Flash by default.  I can't figure out
> how
> to do this.


You can modify the menu entry order like this:

cp install-debian.sh install-debian.sh.org
vi install-debian.sh (or use your favorite editor)

in stage uboot, change this lines:

old---old---old

bootcmd=
  setenv bootargs
    ${bootargs_base} ${mtdparts}
    rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5;
  mmcinit;
  ext2load mmc 1 0x32000000 ${sd_image_name};
  bootm 0x32000000

menu_1=
  Boot from Flash:
  setenv bootargs
    ${bootargs_base} ${mtdparts};
  nand read.e 0x32000000 kernel 0x200000;
  bootm 0x32000000

new---new---new

bootcmd=
  setenv bootargs
    ${bootargs_base} ${mtdparts};
  nand read.e 0x32000000 kernel 0x200000;
  bootm 0x32000000

menu_1=
  Boot Debian from SD card:
  setenv bootargs
    ${bootargs_base} ${mtdparts}
    rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5;
  mmcinit;
  ext2load mmc 1 0x32000000 ${sd_image_name};
  bootm 0x32000000

end---end---end

Then run "./install-debian.sh uboot". If that mashes up the
uboot-environment, then you can try the devirginator.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/support/attachments/20081027/f22080fe/attachment-0001.htm 


More information about the support mailing list