2008/10/27 AceOfHertz <[EMAIL PROTECTED]>

>
> 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.
_______________________________________________
support mailing list
[email protected]
https://lists.openmoko.org/mailman/listinfo/support

Reply via email to