User Tools

Site Tools


clunc

CLUNC (Client for LaCie U-Boot NetConsole)

CLUNC uses the network (ethernet cable) to connect to U-Boot.

No need of custom serial cable to play with a LaCie NAS !

Latest release: clunc 1.1

Repository: clunc.git

The documentation is in the README file.

Boot your kernel

  • Connect to U-Boot using network console with 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}; 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 1 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 ]
clunc.txt · Last modified: 2011/11/17 13:31 by 193.56.60.160