This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linuxforkirkwoodsocs [2011/01/23 07:25] – Added link to SoC data sheets 62.147.234.34 | linuxforkirkwoodsocs [2011/08/20 14:55] (current) – 88.159.114.99 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== Linux support for Kirkwood |
- | + | ||
- | Repository: [[http:// | + | |
- | + | ||
- | Here is a list of the LaCie machines based on Kirkwood SoC: | + | |
- | + | ||
- | * LaCie d2 Network v2 | + | |
- | * [[network_space_v2|LaCie Network Space (Max) v2]] | + | |
- | * LaCie Internet Space v2 | + | |
- | * [[2big_network_v2|LaCie 2Big Network v2]] | + | |
- | * LaCie 5Big Network v2 | + | |
- | * LaCie Wireless Space | + | |
===== Overview ===== | ===== Overview ===== | ||
- | ===== How to install debian squeeze ==== | + | See our [[linuxlacie|LaCie Linux main page]]. |
- | ==== Quick install ==== | + | |
- | * Format a usb key in dos format. One partition. | + | ===== To-do list ===== |
- | * Download [[ftp:// | + | * add power management support for Kirkwood SoCs. |
- | * Download clunc at .... | + | * add SoC support for Orion 6082 (Network Space v1). |
- | * Create a shell script with | + | * add support for Wireless Space. |
- | <code bash> | + | * add driver for GMT G762 fan PWM controller. |
- | # | + | * maybe add driver for hard disk GPIOs (presence and power). |
- | + | * maybe add driver | |
- | # | + | . |
- | nas_ip=192.168.1.9 | + | |
- | # You can get it by ifconfig eth0 | + | |
- | server_ip=192.168.1.3 | + | |
- | server_mac=08: | + | |
- | + | ||
- | echo -e " | + | |
- | set mainlineLinux 2206; | + | |
- | setenv bootargs netconsole=6666@${nas_ip}/, | + | |
- | usb reset; | + | |
- | fatload usb 0:1 0x800000 uImage; | + | |
- | usb stop; | + | |
- | bootm 0x800000; | + | |
- | " | ./clunc -i ${nas_ip} -t 60 | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | * Check that your nas is connected with Ethernet cable and can have access to internet using DHCP. | + | |
- | * Then run the script, you will see this message: | + | |
- | < | + | |
- | ./ | + | |
- | Marvell>> | + | |
- | Marvell>> | + | |
- | Marvell>> | + | |
- | Marvell>> | + | |
- | (Re)start USB... | + | |
- | USB: | + | |
- | | + | |
- | Marvell>> | + | |
- | ## Valid DOS partition found ## | + | |
- | reading uImage | + | |
- | .......................................................................................... | + | |
- | .......................................................................................... | + | |
- | ....................................................................... | + | |
- | .......................................................................................... | + | |
- | .......................................................................................... | + | |
- | ..... | + | |
- | + | ||
- | 4477180 bytes read | + | |
- | Marvell>> | + | |
- | stopping USB.. | + | |
- | Marvell>> | + | |
- | ## Booting image at 00800000 ... | + | |
- | Image Name: | + | |
- | | + | |
- | Image Type: ARM Linux Kernel Image (uncompressed) | + | |
- | Data Size: 4477116 Bytes = 4.3 MB | + | |
- | Load Address: 00008000 | + | |
- | Entry Point: | + | |
- | | + | |
- | OK | + | |
- | + | ||
- | Starting kernel ... | + | |
- | + | ||
- | [ 0.000000] Linux version 2.6.35.4-dirty (luc@luc-dell) (gcc version 4.4.4 (Buildroot 2010.08) ) #5 PREEMPT Sun Sep 12 3:06:51 UTC 2010 | + | |
- | [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053177 | + | |
- | [ 0.000000] CPU: VIVT data cache, VIVT instruction cache | + | |
- | [ 0.000000] Machine: LaCie 5Big Network v2 | + | |
- | [ 0.000000] Memory policy: ECC disabled, Data cache writeback | + | |
- | [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048 | + | |
- | [....] | + | |
- | [ 5.656473] Freeing init memory: 8408K | + | |
- | + | ||
- | </code> | + | |
- | + | ||
- | * after a moment, you can log in your nas with ssh on login ' | + | |
- | <code bash>ssh installer@192.168.1.9 | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ==== Details install ===== | + | |
- | + | ||
- | === Patch the initrd === | + | |
- | + | ||
- | We patch the debian installer initrd to include a ' | + | |
- | + | ||
- | <code shell> | + | |
- | #!/bin/sh | + | |
- | + | ||
- | wget http:// | + | |
- | + | ||
- | rm -rf unpack | + | |
- | mkdir unpack | + | |
- | cd unpack | + | |
- | zcat ../ | + | |
- | rm -rf lib/ | + | |
- | cat > preseed.cfg << | + | |
- | d-i debconf/ | + | |
- | d-i auto-install/ | + | |
- | d-i netcfg/ | + | |
- | d-i netcfg/ | + | |
- | d-i network-console/ | + | |
- | d-i network-console/ | + | |
- | d-i preseed/ | + | |
- | + | ||
- | __EOF | + | |
- | find . | cpio --quiet -H newc -o | gzip -9 -n > ../ | + | |
- | find . | cpio --quiet -H newc -o > ../ | + | |
- | echo done | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | === Rebuild your own kernel === | + | |
- | + | ||
- | Debian squeeze kernel (2.6.32) is too old for your board. You must use a recent kernel (> | + | |
- | Download this [[ftp://ftp.lacie-nas.org/ | + | |
- | + | ||
- | Include the ../ | + | |
- | + | ||
- | Note: uImage must not be greater than 6Mbytes. (U-boot will not support it). | + | |
- | + | ||
- | TODO | + | |
- | + | ||
- | === Boot debian installer with clunc === | + | |
- | + | ||
- | TODO | + | |
===== Links ===== | ===== Links ===== | ||
- | |||
- | * [[http:// | ||
- |