![]() |
2008-02-03
, 23:28
|
|
Posts: 643 |
Thanked: 628 times |
Joined on Mar 2007
@ Seattle (or thereabouts)
|
#2
|
debootstrap --verbose --arch armel --foreign sid /media/sdcard http://ftp.debian-ports.org/debian
chroot /media/mmc2 /debootstrap/debootstrap --second-stage
The Following User Says Thank You to Johnx For This Useful Post: | ||
![]() |
2008-02-03
, 23:48
|
|
Posts: 117 |
Thanked: 22 times |
Joined on Apr 2007
|
#3
|
![]() |
2011-11-25
, 21:57
|
|
Posts: 1,348 |
Thanked: 1,863 times |
Joined on Jan 2009
@ fr/35/rennes
|
#4
|
I ordererd a n810 and I'll get my hands on it this week.
I currently own a Zaurus C3200 with Debian EABI running natively.
I did my setup using debootstrap and I find this tool amazing. I even used it to setup Debian root fs on other embedded devices (ie a Dreambox 7025 linux based PVR with a MIPSEL cpu). I see on other threads that there is much work going both on porting KDE on OS2008 and on booting native Debian on ITs. I think that a debootstrap+chroot approach would be interesting.
I'm thinking about these steps:
1) clone the OS on an external SD in order to get more space, but we can even mount a loop fs or a partition on the SD without cloning the whole FS.
2) install debootstrap from debian repositories: http://http.us.debian.org/debian/poo..._1.0.8_all.deb
3) compile pkgdetails.c from debootstrap sources and put it in /usr/lib/debootstrap (for ease of use I attach a pkgdetails binary I compiled on my Zaurus, I think it should work)
4) run debootstrap in order to get you rootfs, ie: debootstrap --verbose --arch armel sid <path to your debian root directory> http://ftp.debian-ports.org/debian and go for a cup of coffee
At this poin we have a basic debian ARM EABI root fs ready for chroot.
We can mount with the bind option useful directories on the rootfs and then chroot, ie:
mount -o bind /dev <path to your debian root directory>/dev
mount -o bind /proc <path to your debian root directory>/proc
mount -o bind /home <path to your debian root directory>/home
mount -o bind /root <path to your debian root directory>/root
mount -o bind <path to FAT SD partition> <path to your debian root directory>/<whatever>
chroot <path to your debian root directory>
Now we should have a debian shell ready to apt-get install and run zillions of official debian packages. I think that, with this approach, we should be able to run X programs inside maemo native X server and window manager. I think that we even should be able to install wathever desktop enviroment we like (KDE, XFCE, etc) and run it with a script that does something like this:
1) exit from the maemo desktop enviroment
2) fire the command that launches the desktop enviroment in the chrooted debian, ie: chroot <path to your debian root directory> startkde
3) launch again maemo desktop enviroment after completion of the previous command (ie kde log out)
We should package such a script and put it on the maemo menu with a debian icon
I think that this approach could bring to an usable debian enviroment, without the hassle of a native setup (It's an hell to make it work all hardware), nicely integrated with the native SO and with all the advantages of a full debian distro (ie: full working desktop enviroments like KDE and applications like Abiword, GIMP and wathever, without compilig them in the OS2008 enviroment; apt-get update, apt-get upgrade and we have all the packages updated)
Any thoughts?