User Tools

Site Tools


clunc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
clunc [2010/02/04 11:00] 217.128.180.65clunc [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://lacie-nas.org/clunc-1.0.tar.gz|clunc 1.0]]+Latest release: [[ftp://lacie-nas.org/tools/clunc-1.1.tar.gz|clunc 1.1]]
  
 Repository: [[http://git.lacie-nas.org/?p=clunc.git;a=summary|clunc.git]] Repository: [[http://git.lacie-nas.org/?p=clunc.git;a=summary|clunc.git]]
Line 11: Line 11:
 The documentation is in the [[http://git.lacie-nas.org/?p=clunc.git;a=blob_plain;f=README;hb=HEAD|README file]]. The documentation is in the [[http://git.lacie-nas.org/?p=clunc.git;a=blob_plain;f=README;hb=HEAD|README file]].
  
-===== Using CLUNC to trigger a boot from USB on a LaCie NetworkSpace 2 ===== 
  
-Here's a dirty command line which shall allow booting a NS2 on an USB drive/stick:+==== Boot your kernel ====
  
-  echo -'usb reset +  * Connect to U-Boot using network console with [[CLUNC|clunc]]: 
-  setenv bootargs "console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}/ root=/dev/sdb2 rootwait" + 
-  usbboot 0x800000 0:1 +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. 
-  usb stop + 
-  bootm' | ./clunc -i <ns2_ip> -m <ns2_mac> -w <timeout>+  $ ./clunc -i ${NAS_IP} 
 + 
 +  Marvell>> setenv ipaddr ${ipaddr}; setenv serverip ${serverip}; tftpboot 0x800000 uImage 
 +  setenv ipaddr ${ipaddr}; setenv serverip ${serverip}; tftpboot 0x800000 uImage 
 +  Using egiga0 device 
 +  TFTP from server ${serverip}; our IP address is ${ipaddr} 
 +  Filename 'uImage'. 
 +  Load address: 0x800000 
 +  Loading: ################################################################# 
 +           ################################################################# 
 +           ################################################################# 
 +           ################################################################# 
 +           ################################################################# 
 +           ################################################################# 
 +           ####### 
 +  done 
 +  Bytes transferred = 2031132 (1efe1c hex) 
 + 
 +  * Boot installer: 
 + 
 +  Marvell>> setenv bootargs ip=dhcp console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}/ 
 +  setenv bootargs ip=dhcp console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}
 +  Marvell>> bootm 0x800000 
 +  bootm 0x800000 
 +  ## Booting image at 00800000 ... 
 +     Image Name:   Linux-2.6.38-rc4-09710-g31481ad- 
 +     Created:      2011-02-20  13:26:58 UTC 
 +     Image Type:   ARM Linux Kernel Image (uncompressed) 
 +     Data Size:    2031068 Bytes =  1.9 MB 
 +     Load Address: 00008000 
 +     Entry Point:  00008000 
 +     Verifying Checksum ... OK 
 +  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 zonelists in Zone order, mobility grouping on.  Total pages: 16256 
 +  [    0.000000] Kernel command line: ip=dhcp console=ttyS0,115200 netconsole=6666@192.168.0.17/,6666@192.168.0.11/ 
 +  [    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/59008k available, 6528k reserved, 0K highmem 
 +  [    0.000000] Virtual kernel memory layout: 
 +  [    0.000000]     vector  : 0xffff0000 0xffff1000     4 kB) 
 +  [    0.000000]     fixmap  : 0xfff00000 0xfffe0000   ( 896 kB) 
 +  [    0.000000]     DMA     : 0xffc00000 0xffe00000     2 MB) 
 +  [    0.000000]     vmalloc : 0xc4800000 - 0xfd800000   ( 912 MB) 
 +  [    0.000000]     lowmem  : 0xc0000000 - 0xc4000000    64 MB) 
 +  [    0.000000]     modules : 0xbf000000 - 0xc0000000    16 MB) 
 +  [    0.000000]       .init : 0xc0008000 - 0xc012b000   (1164 kB) 
 +  [    0.000000]       .text : 0xc012b000 - 0xc0517fb8   (4020 kB) 
 +  [    0.000000]       .data : 0xc0518000 - 0xc0539040   ( 133 kB) 
 +   
 +  [ snip ]
  
-where: 
  
-  * <ns2_ip> is the IP which the NS2 will use during the clunc phase 
-  * <ns2_mac> is the MAC address of the NS2 we want to target (usefull if more than one NS2 is on the network) 
-  * <timeout> is the time before which clunc will be shut down 
  
-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. 
clunc.1265277649.txt.gz · Last modified: 2010/02/04 11:00 by 217.128.180.65