Monday, January 15, 2007

@@EDIT0@@
Installing Debian/NSLU2


Until now I had Unslung6.8 running on my NSLU2, which I was mainly using for streaming audio (mt-daapd), video (www.twonkymedia.de), and as a print server.
Although it did behave pretty well, I felt like installing a real linux distro.
The fact the Debian is now supporting the NSLU2 was the decisive factor for choosing the distro.

So, what I actually did was:

1) note the current IP address, if it's not being set through DHCP.

2) Format the USB stick [1]

i. Deleted all partitions from the USB stick.
ii. Created a new primary EXT3 partition of about 1750 MB, formatted it and set it active.

3) Connect the slug directly to the laptop, put it in upgrade mode [2] and run the following command from a shell

sudo upslug2 -deth0 --target="00:14:BF:6A:B3:A5" --image="di-nslu2.bin"

the technique [3] might have been a possibility.

Note: As it runs unslung6.8 and not the original firmware, it is not possible to install de image through the web interface of the slug, as shown in [4].


4) Restart the slug, with the formatted USB disk inserted, and wait between 5-15 min before you hear 3 beeps.

5) ssh installer@192.168.0.xxx (see dhcp)
passwd: install

6) launch the Debian installer again and:

i. select the already EXT3 partition and tell the installer to use it as / *without* reformatting it!
ii. from the remaining free 250 MB on the stick create a logical SWAP partition.
iii. write the new settings to the drive and continue installation.
iv. select software packages:

* ext3-modules-2.6.17-2-ixp4xx-di: EXT3 filesystem support
* partman-auto: Automatically partition storage devices (partman)
* partman-ext3: Add to partman support for ext3
* scsi-core-modules-2.6.17-2-ixp4xx-di: Core SCSI subsystem
* usb-storage-modules-2.6.17-2-ixp4xx-di: USB storage support



v. give root password and normal user

7) select software:

basic installation

8) go do something else till it's finished.


TODO:

- mount filesystems by label
- change hostname
- print server (cups)
- make a backup of the image and the stick, in case something goes wrong in the near future.

[1] http://tech.groups.yahoo.com/group/nslu2-general/message/5703
[2] http://www.nslu2-linux.org/wiki/HowTo/UseTheResetButtonToEnterUpgradeMode
[3] http://www.nslu2-linux.org/wiki/HowTo/TelnetIntoRedBoot
[4] http://www.cyrius.com/debian/nslu2/install.html
@@LABELS@@

0 Comments:

Post a Comment

<< Home