Difference between revisions of "USB Boot"

From ArmadeusWiki
Jump to: navigation, search
m
m
Line 3: Line 3:
 
{{Note|Only possible with the [[APF9328DevFull]] and [[APF27]] boards.}}
 
{{Note|Only possible with the [[APF9328DevFull]] and [[APF27]] boards.}}
  
 +
===Prepare your key===
 
* create a partition on your USB key (supposing it is recognized as /dev/sdb)
 
* create a partition on your USB key (supposing it is recognized as /dev/sdb)
 
<pre class="host">
 
<pre class="host">
Line 25: Line 26:
 
  $ sudo umount /media/disk/
 
  $ sudo umount /media/disk/
  
* kernel should be compiled with ISP driver as static (done by default in current Armadeus configuration)
+
* kernel should be compiled with USB Host driver as static (done by default in current Armadeus configuration). For example on the APF9328:
 
  $ make linux-menuconfig
 
  $ make linux-menuconfig
 
<pre class="config">
 
<pre class="config">

Revision as of 22:29, 24 February 2009

Page under construction... Construction.png Informations on this page are not guaranteed !!

Note Note: Only possible with the APF9328DevFull and APF27 boards.


Prepare your key

  • create a partition on your USB key (supposing it is recognized as /dev/sdb)
 $ sudo fdisk /dev/sdb
 n
 p
 1
 <ENTER>
 <ENTER>
 w
  • format it as ext2:
 $ sudo mkfs.ext2 /dev/sdb1
  • mount it:
$ sudo mount /dev/sdb1 /media/disk/
  • copy rootfs on it:
$ make shell_env
$ source armadeus_env.sh
$ sudo tar xvf $ARMADEUS_ROOTFS_TAR -C /media/disk/
$ sudo umount /media/disk/
  • kernel should be compiled with USB Host driver as static (done by default in current Armadeus configuration). For example on the APF9328:
$ make linux-menuconfig
 Device Drivers  ---> 
     Armadeus specific drivers  ---> 
         <*>   isp1761 USB 2.0 Host controller

Set environment variables in U-Boot

BIOS> setenv usbroot /dev/sda1
BIOS> setenv usbrootfstype ext2
BIOS> setenv addusbargs setenv bootargs \${bootargs} root=\${usbroot} rootfstype=\${usbrootfstype}
BIOS> setenv usbboot setenv bootargs \${console}\;run addusbargs addipargs\; bootm \${kernel_addr}