Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

UDOO boot from sata

From eLinux.org
Revision as of 19:59, 23 October 2013 by Ags131 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This guide will show you how to boot your UDOO from an attached SATA drive

Prerequisites

  • A SATA drive
  • A SD card
  • A spare linux PC
  • A Micro USB cable such as one for charging a smart phone

This guide also assumes you have a working linux install for UDOO.

Preparing the drive

You may partition and format the drive however you want, the current builds of uboot support up to ext3 I believe, newer builds may support ext4. I will be using a drive of a single ext3 partition as an example.

Connect your SD and SATA drive to a linux system. I'm using a USB SATA adapter and mounted it and the sd at /sd and /usb just for clarity, but this is upto you. Adjust commands appropriately.

 # cp -rvp /sd/* /usb/

This will copy your SD filesystem to the SATA disk.

Unmount both.

Prepare U-Boot

Once that is complete, connect the SATA disk to the UDOO and reinsert the SD card. You will need to connect the UDOO to a PC with a micro USB cable. Then open a serial terminal to the new COM port on your PC Reset the udoo and press any key over serial when prompted to cancel the autoboot. Now run the following commands to set the boot device

 setenv root root=/dev/sda1
 saveenv

If you do not want it to keep the change upon reboot omit the saveenv line. If you need to revert it to the SD card again, simply use /dev/mmcblk0p1

 setenv root root=/dev/mmcblk0p1

Now run the following to continue booting

 boot

Done!

You should now be booting into the system on the SATA drive. If all goes well you can safely remove almost everything on the SD card. If you do, make sure to leave /boot as U-Boot still loads it.

TODO

Add instructions on a full SATA only boot.