![]() |
To install Debian using this method you will need:
Download the following files:
Optional:
Preparing the Disk Partition table using cfdisk: cfdisk 2.11n
Disk Drive: /dev/sda
Size: 512483328 bytes
Heads: 16 Sectors per Track: 63 Cylinders: 993
Name Flags Part Type FS Type [Label] Size (MB)
--------------------------------------------------------------------
sda1 Primary Linux swap 96.51
sda2 Primary Linux ext3 415.98
Next, format the partitions. For root: Now you will need to mount up your root partition and extract the disk image. After extraction the image will occupy about 270MB of disk space. Currently, the disk image is using ext2 for compatibility. If you followed the instructions thus far you may wish to enable ext3. You can do this by editing the appropriate line in the /mnt/etc/fstab file. Perhaps also change the hostname found in /mnt/etc/hostname. You will also want to edit /mnt/etc/network/interfaces to configure the NSLU2 for your network. I wouldn't recommend DHCP for testing. You'll see why. Sample interfaces file: auto lo Once you are done with your editing, unmount the drive: Testing (Optional) The first IP will be the NSLU2's new address. The second IP is the address of your TFTP server. After issuing this command you may need to telnet into your NSLU2 again using the new address. At this point the NSLU2 should beep and be booting the kernel. Unfortunately, the indicator LEDs do not work under Debian yet. While it is booting carefully unplug the ethernet cord from the onboard adapter and insert it into the USB ethernet adapter (if you chose to use DHCP it may have tried to find a lease on the wrong interface). After a few minutes you should be able to SSH into the NSLU2. The initial root password is 'debian' and there is also a normal user named 'debian' with the same password. Flashing If you have your NSLU2 still booted from testing it, you should run the halt command and wait a minute for it to complete shutdown. Afterwards, disconnect the disk and ethernet adapter and plug the network cable into the onboard ethernet jack. Telnet into RedBoot and issue the following commands. It will ask for confirmation before writing the image.
The NSLU2 will attempt to reboot, load the kernel, and boot from disk. It is safe to turn the NSLU2 off and attach your disk and USB ethernet adapter. When you turn the NSLU2 on it should boot and run from the disk while using the USB ethernet adapter for connectivity. FAQ Q: What is different between the zImage-sda2.swap kernel image and the kernel.img kernel image? Q: Who is responsible for making this work? |