Dobrica Pavlinušić's random unstructured stuff
DSM-G600: Revision 6
Collection of some hints about Debian installation on my D-Link DSM-G600:

{toc: }

^ firmware (kernel+busybox)

It will fix various problems, including, but not limited to, problems with web interface in firefox.

I tried to build firmware from source, but had various problems with building gcc. Thet are mostly related to gdb, but after a few random patches it passed compilation (but is broken, because I just commented offending lines).

^^ usbsysfs

I also want usbsysfs which generate compilation errors because of missing files in `include/linux/usbdevice_fs.h`

#define USBDEVFS_CONNECT _IO('U', 23)

I copied them from current 2.6 kernel and this made it compile.

^ Debian installation

Based on "instructions on wiki"<> and "post on forum"<>

cd /mnt/HD_a2
export DEBOOTSTRAP_DIR=`pwd`/usr/lib/debootstrap
export PATH=$PATH:/mnt/HD_a2/bin:/mnt/HD_a2/sbin
./usr/sbin/debootstrap --arch powerpc etch /mnt/HD_a2/debian
cp /etc/resolv.conf /mnt/HD_a2/debian/etc/resolv.conf
# prepare chroot jail
mount -t proc proc /mnt/HD_a2/debian/proc
cd /mnt/HD_a2/
./chroot /mnt/HD_a2/debian /bin/bash
# install additional packages
apt-get update
apt-get install locales
dpkg-reconfigure locales
passwd root
apt-get install dropbear hotplug

^ USB printer

Kernel module for USB printers for 2.4.21-pre4 kernel: {file: printer.o}