This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| clunc [2010/02/04 10:44] – 217.128.180.65 | clunc [2011/11/17 13:31] (current) – 193.56.60.160 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| **No need of custom serial cable** to play with a LaCie NAS ! | **No need of custom serial cable** to play with a LaCie NAS ! | ||
| - | Latest release: [[ftp:// | + | Latest release: [[ftp:// |
| Repository: [[http:// | Repository: [[http:// | ||
| Line 11: | Line 11: | ||
| The documentation is in the [[http:// | The documentation is in the [[http:// | ||
| - | ===== Using CLUNC to trigger a boot from USB on a LaCie NetworkSpace 2 ===== | ||
| - | Here' | + | ==== Boot your kernel ==== |
| + | |||
| + | * Connect to U-Boot using network console with [[CLUNC|clunc]]: | ||
| + | |||
| + | As a preliminary step, you must export your kernel uImage via **tftp** . U-Boot will use this way to load the kernel image into RAM. | ||
| + | |||
| + | $ ./clunc -i ${NAS_IP} | ||
| + | |||
| + | Marvell>> | ||
| + | setenv ipaddr ${ipaddr}; setenv serverip ${serverip}; | ||
| + | Using egiga0 device | ||
| + | TFTP from server ${serverip}; | ||
| + | Filename ' | ||
| + | Load address: 0x800000 | ||
| + | Loading: ################################################################# | ||
| + | ################################################################# | ||
| + | ################################################################# | ||
| + | ################################################################# | ||
| + | ################################################################# | ||
| + | ################################################################# | ||
| + | ####### | ||
| + | done | ||
| + | Bytes transferred = 2031132 (1efe1c hex) | ||
| + | |||
| + | * Boot installer: | ||
| + | |||
| + | Marvell>> | ||
| + | setenv bootargs ip=dhcp console=ttyS0, | ||
| + | Marvell>> | ||
| + | bootm 0x800000 | ||
| + | ## Booting image at 00800000 ... | ||
| + | Image Name: | ||
| + | | ||
| + | Image Type: ARM Linux Kernel Image (uncompressed) | ||
| + | Data Size: 2031068 Bytes = 1.9 MB | ||
| + | Load Address: 00008000 | ||
| + | Entry Point: | ||
| + | | ||
| + | OK | ||
| + | |||
| + | Starting kernel ... | ||
| + | |||
| + | [ 0.000000] Linux version 2.6.38-rc4-09710-g31481ad-svn-dirty (simon@X31) (gcc version 4.4.2 (crosstool NG-hg_default@1665_60a47ac6cae1) ) #7 PREEMPT Sun Feb 20 16:16:24 CET 2011 | ||
| + | [ 0.000000] CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a0053177 | ||
| + | [ 0.000000] CPU: VIVT data cache, VIVT instruction cache | ||
| + | [ 0.000000] Machine: LaCie 2Big Network | ||
| + | [ 0.000000] Clearing invalid memory bank 0KB@0x00000000 | ||
| + | [ 0.000000] Clearing invalid memory bank 0KB@0x00000000 | ||
| + | [ 0.000000] Ignoring unrecognised tag 0x00000000 | ||
| + | [ 0.000000] Ignoring unrecognised tag 0x00000000 | ||
| + | [ 0.000000] Ignoring unrecognised tag 0x00000000 | ||
| + | [ 0.000000] Ignoring unrecognised tag 0x41000403 | ||
| + | [ 0.000000] Memory policy: ECC disabled, Data cache writeback | ||
| + | [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 | ||
| + | [ 0.000000] Kernel | ||
| + | [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) | ||
| + | [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) | ||
| + | [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) | ||
| + | [ 0.000000] Memory: 64MB = 64MB total | ||
| + | [ 0.000000] Memory: 59008k/ | ||
| + | [ 0.000000] Virtual kernel memory layout: | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] | ||
| + | |||
| + | [ snip ] | ||
| - | echo "usb reset; setenv bootargs " | ||
| - | where: | ||
| - | * < | ||
| - | * < | ||
| - | * < | ||
| - | Note that, for this to work, the usb device must be partitioned with 2 partitions: the first one shall contain a raw copy of the kernel uImage, the second one will host the root filesystem you want to boot. | ||