This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linuxforkirkwoodsocs [2011/07/15 22:28] – simon | linuxforkirkwoodsocs [2011/08/20 14:55] (current) – 88.159.114.99 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== Linux support for Kirkwood |
| - | Repository: [[http:// | + | ===== Overview ===== |
| - | Here is a list of the LaCie machines based on Kirkwood SoC: | + | See our [[linuxlacie|LaCie |
| - | + | ||
| - | * LaCie d2 Network v2 | + | |
| - | * [[network_space_v2|LaCie | + | |
| - | * LaCie Internet Space v2 | + | |
| - | * [[2big_network_v2|LaCie 2Big Network v2]] | + | |
| - | * LaCie 5Big Network v2 | + | |
| - | * LaCie Wireless Space | + | |
| - | + | ||
| - | ===== Overview ===== | + | |
| ===== To-do list ===== | ===== To-do list ===== | ||
| * add power management support for Kirkwood SoCs. | * add power management support for Kirkwood SoCs. | ||
| - | * add GPIO chip driver for F71882 Super I/O. | ||
| - | * add support for 5Big Network XP (atom-bases boards, x86 Pineview). | ||
| * add SoC support for Orion 6082 (Network Space v1). | * add SoC support for Orion 6082 (Network Space v1). | ||
| * add support for Wireless Space. | * add support for Wireless Space. | ||
| Line 24: | Line 13: | ||
| * maybe add driver for hard disk GPIOs (presence and power). | * maybe add driver for hard disk GPIOs (presence and power). | ||
| * maybe add driver for USB GPIOs (VBus in detection, VBus out, fuse, host/device mode switch). | * maybe add driver for USB GPIOs (VBus in detection, VBus out, fuse, host/device mode switch). | ||
| - | + | . | |
| - | ===== How to install debian squeeze ==== | + | |
| - | + | ||
| - | ==== Quick install ==== | + | |
| - | + | ||
| - | * Format a usb key in dos format. One partition. | + | |
| - | + | ||
| - | * Download [[ftp:// | + | |
| - | * Download clunc at .... | + | |
| - | * Create a shell script with | + | |
| - | <code bash> | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | 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 | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | * 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:// | + | |
| - | + | ||
| - | Include the ../ | + | |
| - | + | ||
| - | Note: uImage must not be greater than 6Mbytes. (U-boot will not support it). | + | |
| - | + | ||
| - | TODO | + | |
| - | + | ||
| - | === Boot debian installer with clunc === | + | |
| - | + | ||
| - | ==== TROUBLESHOOTING ==== | + | |
| - | + | ||
| - | If you get " | + | |
| - | + | ||
| - | <code bash> | + | |
| - | # | + | |
| - | + | ||
| - | # | + | |
| - | 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 | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | TODO | + | |
| ===== Links ===== | ===== Links ===== | ||
| - | |||
| - | * [[http:// | ||
| - | |||