- M$ Windows machine with running CoLinux/Debian 4.0 installation (just minimal console setup, installing packages as needed) - in this document shell commands from this system are prefixed deb#
- uClibc development system - Prebuilt by JoKeR - download available [here] (tried to build my own, but did not succeed even with JoKeR's config) stored on 'deb#' system and placed in chroot jail - shell commands from this system are prefixed dev#
- WMU-6500FS box upgraded with JoKeR's firmware version C009M Advanced. Currently there is a newer version available - shell commands from this system are prefixed box#
- Download the archive with JoKeR's pre-built development system (assuming you want to extract it to your home directory):
deb# cd ~ deb# wget http://mgb111.pradnik.net/addons/uclibc-basic.tar.bz2
- Extracting the archive:
deb# tar xjvf uclibc-basic.tar.bz2 ... ./uclibc-basic/uclibc-env/dev/<device> tar: ./uclibc-basic/uclibc-env/dev/<device>: Cannot mknod: Operation not permitted ... tar: Error exit delayed from previous errorsWe ended up with some permition denied errors. We need to have root rights in order to create /dev nodes (special files created with the mknod command). The problem is soved when we untar the archive as superuser:
deb# sudo tar xjvf uclibc-basic.tar.bz2 Password: ...... now the extraction finished with no errors.
- Now we are ready to log-in to the newly created chroot-ed environment:
deb# chroot uclibc-basic/uclibc-env/ /bin/su - -bash: chroot: command not foundWe need superuser rights in order to use the chroot command:
deb# sudo chroot uclibc-basic/uclibc-env/ /bin/su - Password: ... dev#... so now we are sucessfully logged in the new environment.
I am using Putty connection manager for accessing all the systems and I have found it very convenient. In 'PCM' it is possible to create a command sequence executed just after the login - so for the dev# login I just setup the following command sequence:
deb# cd ~ deb# chroot uclibc-basic/uclibc-env/ /bin/su - dev# export PATH=$PATH:/mnt/C/sys/bin dev# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mnt/C/sys/lib:/mnt/C/sys/apache2/lib