This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| usbboot [2010/02/08 17:43] – 84.14.5.202 | usbboot [2011/01/24 23:13] (current) – 82.234.233.9 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| This project intends to provide help for booting an alternative distribution on a LaCie NAS. An USB key is an attractive way to do that because it is rather non intrusive for the legacy OS and the hardware (no need to open a case). | This project intends to provide help for booting an alternative distribution on a LaCie NAS. An USB key is an attractive way to do that because it is rather non intrusive for the legacy OS and the hardware (no need to open a case). | ||
| - | This document provides information on how to boot a Debian ARM on a Network Space v2 board. Any other Linux ARM distributions or any other Kirkwood based board _could_ be used, but hasn' | + | This document provides information on how to boot a Debian ARM on a Network Space v2 board. Any other Linux ARM distributions or any other Kirkwood based board _could_ |
| This howto has been written in the hope to be useful but it comes without any warranty. In other words, the lacie-nas project is not responsible if you break your Kirkwood board during an USB boot attempt. So take care! | This howto has been written in the hope to be useful but it comes without any warranty. In other words, the lacie-nas project is not responsible if you break your Kirkwood board during an USB boot attempt. So take care! | ||
| - | All kinds of feedbacks are welcome, so if you've tried applying | + | All kinds of feedbacks are welcome, so if you've tried to apply some of the information found on this page on your own device, don't hesitate dropping us a line on the [[http:// |
| ===== USB key setup ===== | ===== USB key setup ===== | ||
| You could initialize your USB disk or key with the raw image | You could initialize your USB disk or key with the raw image | ||
| - | [[ftp:// | + | [[ftp:// |
| This disk image embeds two partitions. The first contains a kernel uImage and the second a Debian (unstable flavour) ARM rootfs. | This disk image embeds two partitions. The first contains a kernel uImage and the second a Debian (unstable flavour) ARM rootfs. | ||
| Line 22: | Line 22: | ||
| zcat usb_boot_kw_sid_arm.img.gz > / | zcat usb_boot_kw_sid_arm.img.gz > / | ||
| - | Please keep in mind that any kind of data that might reside on the target drive would be irremediably lost, so proceed with extreme | + | Please keep in mind that any kind of data that might reside on the target drive would be irremediably lost, so proceed with caution. |
| ===== U-Boot and USB boot ===== | ===== U-Boot and USB boot ===== | ||
| - | One word about the LaCie flavoured U-Boot: to prevent users from doing bad things, | + | One word about the LaCie flavoured U-Boot: to prevent users from doing bad things, |
| By default, the LaCie flavoured U-Boot tries to find a kernel in a disk partition (6 or 10). To use a USB device some extra U-Boot configuration must be done. A serial console or a [[CLUNC|clunc]] netconsole can be used. | By default, the LaCie flavoured U-Boot tries to find a kernel in a disk partition (6 or 10). To use a USB device some extra U-Boot configuration must be done. A serial console or a [[CLUNC|clunc]] netconsole can be used. | ||
| Line 32: | Line 32: | ||
| Here is a [[CLUNC|clunc]] command line example: | Here is a [[CLUNC|clunc]] command line example: | ||
| | | ||
| - | echo -e "setenv bootargs console=ttyS0, | + | echo -e 'setenv bootargs |
| usb reset | usb reset | ||
| usbboot 0x800000 0:1 | usbboot 0x800000 0:1 | ||
| usb stop | usb stop | ||
| - | bootm" | + | bootm' |
| - | '' | + | '' |
| - | Here is the [[CLUNC|clunk]] output during | + | Here is the [[CLUNC|clunc]] output during |
| - | simon@X31: | + | simon@X31: |
| + | | ||
| usb reset; | usb reset; | ||
| usbboot 0x800000 0:1; | usbboot 0x800000 0:1; | ||
| usb stop; | usb stop; | ||
| - | bootm" | + | bootm' |
| - | Marvell>> | + | Marvell>> |
| Marvell>> | Marvell>> | ||
| (Re)start USB... | (Re)start USB... | ||
| Line 62: | Line 63: | ||
| Load Address: 00008000 | Load Address: 00008000 | ||
| Entry Point: | Entry Point: | ||
| - | .............................................................................................................................................................................................................................................................................................. | + | |
| + | | ||
| + | | ||
| + | | ||
| Marvell>> | Marvell>> | ||
| stopping USB.. | stopping USB.. | ||
| Line 78: | Line 82: | ||
| Starting kernel ... | Starting kernel ... | ||
| | | ||
| - | Linux version 2.6.33-rc6-00217-g4e4a8c1-svn (simon@X31) (gcc version 4.4.2 (crosstool NG-hg_default@1665_60a47ac6cae1) ) #3 PREEMPT Fri Feb 5 15:46:12 CET 2010 | + | Linux version 2.6.33-rc6-00217-g4e4a8c1-svn (simon@X31) (gcc version 4.4.2 (crosstool NG-hg_default@1665_60a47ac6cae1) ) |
| + | | ||
| CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053177 | CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053177 | ||
| CPU: VIVT data cache, VIVT instruction cache | CPU: VIVT data cache, VIVT instruction cache | ||
| Line 124: | Line 129: | ||
| Linux sid-arm 2.6.33-rc6-00217-g4e4a8c1-svn #3 PREEMPT Fri Feb 5 15:46:12 CET 2010 armv5tel GNU/Linux | Linux sid-arm 2.6.33-rc6-00217-g4e4a8c1-svn #3 PREEMPT Fri Feb 5 15:46:12 CET 2010 armv5tel GNU/Linux | ||
| - | It might be a very good idea to set a password for root, as leaving a passwordless root access to your device is probably not what you want. So we'd recommend using the " | + | It might be a very good idea to set a password for root, as leaving a passwordless root access to your device is probably not what you want. |
| - | + | ||
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| - | * CLUNC doesn' | + | * CLUNC doesn' |
| * U-Boot fails to scan the USB bus: retry. | * U-Boot fails to scan the USB bus: retry. | ||
| - | * How to get my system IP ? use a tool like dhcpdump or set the NAS IP by configuring your dhcp server. | + | * How to get the system IP ? use a tool like dhcpdump or set the NAS IP by configuring your dhcp server. |
| - | * no rootfs not found: the SCSI device name for USB key depends on a lots of parameters. On the majority of LaCie products the kernel command line argument "'' | + | * rootfs not found: the SCSI device name for USB key depends on a lots of parameters. On the majority of LaCie products the kernel command line argument "'' |
| ===== TODO ===== | ===== TODO ===== | ||
| Set the U-Boot parameters at each USB boot attempt is quite boring. Provide an U-Boot image with no hardcoded boot parameters could be very smart. | Set the U-Boot parameters at each USB boot attempt is quite boring. Provide an U-Boot image with no hardcoded boot parameters could be very smart. | ||