The Following 3 Users Say Thank You to AapoRantalainen For This Useful Post: | ||
|
2013-03-09
, 22:58
|
Posts: 11 |
Thanked: 47 times |
Joined on Feb 2013
|
#2
|
The Following 5 Users Say Thank You to Zaerc For This Useful Post: | ||
|
2013-03-11
, 08:10
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#3
|
I've ran into the same (or rather very similar) problems. My solution is to build my own SDK without scratchbox using an armel debootstrap of Lenny and mixing in the maemo repositories. It seems to work so far and runs (chrooted) both nativley on the n900 and on my PC (Squeeze) with qemu.
I'd have to do it a few more times to get the instructions in order, but if anyone would like to try I can post what I have so far...
The Following 3 Users Say Thank You to reinob For This Useful Post: | ||
|
2013-03-12
, 07:16
|
Posts: 11 |
Thanked: 47 times |
Joined on Feb 2013
|
#4
|
sudo apt-get install debootstrap binfmt-support qemu-user-static
sudo debootstrap --foreign --arch=armel --variant=minbase \ lenny lenny-maemo-sdk-armel htt\ p://archive.debian.org/debian/ sudo cp /usr/bin/qemu-arm-static lenny-maemo-sdk-armel/usr/bin sudo chroot lenny-maemo-sdk-armel echo "exit 101" >/usr/sbin/policy-rc.d chmod -v 755 /usr/sbin/policy-rc.d echo 'APT { Install-Recommends "false"; };' > /etc/apt/apt.conf.d/no-recommends /debootstrap/debootstrap --second-stage mkdir -v /home/opt useradd -m user mkdir -pv /scratchbox/etc touch /scratchbox/etc/scratchbox-version ln -sv ../usr /scratchbox/tools echo "Package: * Pin: origin repository.maemo.org Pin-Priority: 2000 " >/etc/apt/preferences echo "deb htt\ p://repository.maemo.org/ fremantle/tools free non-free deb htt\ p://repository.maemo.org/ fremantle/sdk free non-free deb-src htt\ p://repository.maemo.org/ fremantle/sdk free non-free deb htt\ p://repository.maemo.org/ fremantle/4bc37c7c77ebe90177\ c050b805a8dc79 nokia-binaries" >/etc/apt/sources.list exit
sudo chroot lenny-maemo-sdk-armel apt-get update apt-get upgrade # all yes, except resolv.conf apt-get install libc6 # 'Yes, do as I say!' apt-get remove sysv-rc rm -fv /usr/sbin/update-rc.d touch /usr/sbin/update-rc.d chmod -v 755 /usr/sbin/update-rc.d apt-get install mini-rc apt-get install maemo-sdk-dev bsdutils coreutils \ debianutils mktemp diff findutils grep gzip mount \ sed sysvinit-utils tar umount -v /opt mv -v /opt/* /home/opt/ rmdir-v /opt ln -sv home/opt / # we're done already, the rest is just for showing off apt-get build-dep maemopad cd /tmp apt-get source maemopad cd maemopad-2.6 dpkg-buildpackage -b
The Following 5 Users Say Thank You to Zaerc For This Useful Post: | ||
|
2013-03-15
, 16:00
|
Posts: 11 |
Thanked: 47 times |
Joined on Feb 2013
|
#5
|
The Following 4 Users Say Thank You to Zaerc For This Useful Post: | ||
I compiled and installed inside scratchbox ARM version of gzip. Then renamed /scratchbox/tools/bin/gzip and then
And gzip is not only problem. Another one is /scratchbox/devkits/doctools/bin/nroff and I'm sure there is more.