userdoc:boot-usb-storage

This is an old revision of the document!


Boot via USB Flash Storage

For production AstLinux installations, it is recommended to use flash storage connected off IDE, SATA or mSATA controllers, if at all possible.

Though, there may be situations where using flash storage connected off USB is desirable. Some boards my implement an internal Compact Flash (CF) or SD card socket using the USB interface, others may have a internal standard USB port for a low profile USB Flash Drive.

The problem is it takes longer for USB storage devices to be recognized and available to the Linux Kernel, compared with IDE or SATA. While RUNNIX will boot, AstLinux may fail with the message “AstLinux medium not found.”, followed by the USB drive mounting a few seconds later.

The simple solution is to add “rootdelay=10” to the kernel command-line, explained below.


Mount USB Flash Drive:


Navigate to the “os” directory:

Files


Edit the astlinux-NNN.run.conf file:

Open the astlinux-NNN.run.conf (astlinux-1.1.6.run.conf in this example) file using a text editor of your choice.

Edit the line beginning with “KCMD=” and add “rootdelay=10” after the “astlive”.

Old:

KCMD="root=/dev/ram0 rw init=/linuxrc astlinux=geni586 astimg=astlinux-1.1.6.run astkd=auto asturw=auto astlive libata.dma=3 console=ttyS0,19200n8"

New:

KCMD="root=/dev/ram0 rw init=/linuxrc astlinux=geni586 astimg=astlinux-1.1.6.run astkd=auto asturw=auto astlive rootdelay=10 libata.dma=3 console=ttyS0,19200n8"

Note -> The other KCMD option values may be different from yours, that is expected, do not edit any of the existing KCMD option values.


Unmount the USB Flash Drive:

After saving the astlinux-NNN.run.conf file above, cleanly unmount/eject and remove the USB Flash Drive.

Your USB Flash Drive should now fully boot AstLinux when installed into your hardware.

Note -> AstLinux doesn't by default include “rootdelay=10” since it adds 10 seconds to the boot process.

Once the “rootdelay=10” has been added it will be automatically propagated for future upgrades, so this is a one time thing.

  • userdoc/boot-usb-storage.1404675762.txt.gz
  • Last modified: 2014/07/06 14:42
  • by abelbeck