This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| debian_install [2012/05/07 15:35] – 82.234.233.9 | debian_install [2013/01/21 13:28] (current) – 82.234.233.9 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Install Debian on a Kirkwood based NAS (using the Debian installer) ====== | + | ====== Install Debian on a LaCie NAS (Kirkwood based) |
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | This howto is relevant for the LaCie boards | + | This page details step by step how to install a Debian system on a LaCie NAS (Kirkwood based), using the [[http:// |
| + | |||
| + | Note that this howto is only relevant for the LaCie boards supported by the Debian kernel. To check if your board is well supported, please refer this [[start# | ||
| ===== Configure U-Boot ===== | ===== Configure U-Boot ===== | ||
| Line 21: | Line 23: | ||
| < | < | ||
| ns2> set diskload "ide reset && ext2load ide 0:1 0x800000 uImage && ext2load ide 0:1 0x1200000 uInitrd" | ns2> set diskload "ide reset && ext2load ide 0:1 0x800000 uImage && ext2load ide 0:1 0x1200000 uInitrd" | ||
| + | ns2> set bootcmd "dhcp && run netconsole; if run usbload || run diskload; then bootm 0x800000 0x1200000; fi" | ||
| ns2> print diskload bootcmd | ns2> print diskload bootcmd | ||
| diskload=ide reset && ext2load ide 0:1 0x800000 uImage && ext2load ide 0:1 0x1200000 uInitrd | diskload=ide reset && ext2load ide 0:1 0x800000 uImage && ext2load ide 0:1 0x1200000 uInitrd | ||
| Line 29: | Line 32: | ||
| </ | </ | ||
| - | ===== Run the Debian installer ===== | + | ===== Run the network-console |
| - | ==== Export the network-console files via TFTP ==== | + | ==== Prepare |
| - | * Download | + | First you must download |
| - | * Setup a TFTP server and makes the network-console files available: The NAS must be able to reach them. | + | |
| - | ==== Boot the network-console ==== | + | To add the **preseed.cfg** file to the the **uInitrd** image, you can try the following shell commands: |
| - | | + | |
| + | $ dd if=uInitrd of=initrd.gz bs=64 skip=1 | ||
| + | $ mkdir initrd; cd initrd | ||
| + | $ gzip -d < ../ | ||
| + | $ wget ftp:// | ||
| + | $ find . | cpio -H newc --create --verbose | gzip -9 > ../ | ||
| + | $ cd .. | ||
| + | $ mkimage -A arm -O linux -T ramdisk -C gzip -a " | ||
| + | $ rm -rf initrd.gz initrd | ||
| + | |||
| + | ==== Load network-console images ==== | ||
| + | |||
| + | At your convenience, | ||
| + | |||
| + | === From an USB disk === | ||
| + | |||
| + | * Prepare an USB disk or stick: put the network-console files into the first partition (VFAT formatted). | ||
| + | * Plug the USB disk at the front. | ||
| + | * [[uboot# | ||
| + | |||
| + | < | ||
| + | ns2> usb reset | ||
| + | ns2> fatload usb 0:1 0x800000 uImage | ||
| + | ns2> fatload usb 0:1 0x1200000 uInitrd | ||
| + | </ | ||
| + | |||
| + | === From network via a TFTP server === | ||
| + | |||
| + | * On a you development machine, setup a TFTP server and put the network-console files into the exported directory. | ||
| + | * [[uboot# | ||
| < | < | ||
| Line 78: | Line 109: | ||
| </ | </ | ||
| - | * Boot the Debian installer: | + | ==== Boot the Debian |
| + | When both images are loaded, the network installer can be booted with 'bootm 0x800000 0x1200000' | ||
| < | < | ||
| ns2> bootm 0x800000 0x1200000 | ns2> bootm 0x800000 0x1200000 | ||
| Line 130: | Line 161: | ||
| ==== Complete the installation ==== | ==== Complete the installation ==== | ||
| - | Simply, follow the Debian installer path... | + | Simply, follow the Debian installer path... IThe installer could fail to make the system bootable, how to solve this is described at the section troubleshooting. |
| ===== Run the Debian system ===== | ===== Run the Debian system ===== | ||
| Line 171: | Line 202: | ||
| ~ # mount -t proc proc / | ~ # mount -t proc proc / | ||
| ~ # mount -t sysfs sysfs / | ~ # mount -t sysfs sysfs / | ||
| - | ~ # chroot /target/ | ||
| ~ # chroot /target /bin/bash | ~ # chroot /target /bin/bash | ||
| </ | </ | ||
| Line 183: | Line 213: | ||
| > deb-src ftp:// | > deb-src ftp:// | ||
| > EOF | > EOF | ||
| + | </ | ||
| + | |||
| + | * Import lacie-nas.org GPK key: | ||
| + | |||
| + | < | ||
| + | gpg --keyserver pgpkeys.mit.edu --recv-key 0E3D4C9F7C71B58C | ||
| + | gpg -a --export 0E3D4C9F7C71B58C | apt-key add - | ||
| </ | </ | ||