Hi, I am quite a Linux beginner, so perhaps the following info is already known by all of you talented linuxgurus in here. But, in case there is someone else around here that is a linux newbie like me, you might, like me, find it very cool to know that it is possible to install Debian on top of the mss2 linux.
Since Debian has great ARM support and a great simple package installer (apt-get) it is quite easy to installing anything such as gcc, ssh, slimserver etc. on a mss2 running Debian. Also, perhaps best of all, if you mess anything up in your mss2 Debian, you can just delete it and install it again (since it runs on top of the mss2 linux =)
Based on the info on the following 2 pages:http://wiki.dns323.info/howto:chroot_debian
and also the great article on howto get telnet running on the mss2 (creds to "hd" for that great article!
I was able to get it all running by:
1. Downloading Debian Etch 4.0 from http://dev.skcserver.de/dns323/etch.tar
(169 Mb) to my pc desktop.
2. Dragged and dropped it (etch.tar) in the public/Other dir on my mss2.
3. Then I telneted in to the mss2 and did the following:
/share/Public/Other # ls
/share/Public/Other # tar -xf etch.tar
/share/Public/Other # mkdir etch/mnt/root
/share/Public/Other # mount -o bind / etch/mnt/root
/share/Public/Other # mount -o bind /dev etch/dev
/share/Public/Other # mount -o bind /sys etch/sys
/share/Public/Other # mount -o bind /proc etch/proc
/share/Public/Other # cp -f /etc/resolv.conf etch/etc/
then I just did the magical change root:
/share/Public/Other # chroot etch
and woops, I am in Debian and thus able to use apt-get! I started by running the command:
and then installed the programs I wanted such as gcc:
sh-3.1# apt-get install gcc
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
binutils cpp cpp-4.1 gcc-4.1 libssp0
binutils-doc cpp-doc gcc-4.1-locales make manpages-dev autoconf automake1.9
libtool flex bison gdb gcc-doc gcc-4.1-doc
libc6-dev libc-dev libmudflap0-dev
The following NEW packages will be installed:
binutils cpp cpp-4.1 gcc gcc-4.1 libssp0
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 4915kB of archives.
After unpacking 12.3MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
etch/main binutils 2.17-3 [2485kB]
etch/main cpp-4.1 4.1.1-21 [2006kB]
etch/main cpp 4:4.1.1-15 [11.6kB]
etch/main libssp0 4.1.1-21 [4224B]
etch/main gcc-4.1 4.1.1-21 [403kB]
etch/main gcc 4:4.1.1-15 [5062B]
Fetched 4915kB in 26s (187kB/s)
Selecting previously deselected package binutils.
(Reading database ... 8545 files and directories currently installed.)
Unpacking binutils (from .../binutils_2.17-3_arm.deb) ...
Selecting previously deselected package cpp-4.1.
Unpacking cpp-4.1 (from .../cpp-4.1_4.1.1-21_arm.deb) ...
Selecting previously deselected package cpp.
Unpacking cpp (from .../cpp_4%3a4.1.1-15_arm.deb) ...
Selecting previously deselected package libssp0.
Unpacking libssp0 (from .../libssp0_4.1.1-21_arm.deb) ...
Selecting previously deselected package gcc-4.1.
Unpacking gcc-4.1 (from .../gcc-4.1_4.1.1-21_arm.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a4.1.1-15_arm.deb) ...
Setting up binutils (2.17-3) ...
Setting up cpp-4.1 (4.1.1-21) ...
Setting up cpp (4.1.1-15) ...
Setting up libssp0 (4.1.1-21) ...
Setting up gcc-4.1 (4.1.1-21) ...
Setting up gcc (4.1.1-15) ...
Quite magical, I must say! I guess people here can optimize this alot better than me and create a nice startupscript for this. However, I am now enjoying sshing in to my mss2 and installing all that I need with apt-get!
Thanks to my coworker and linuxguru MrVrigstad2007 who gave me some hints about howto do this!
Have a great day everyone!