As some of you already know, I received a developer discount code for the N800, but due to busy days I haven’t had much time to look into the development stuff… First I tried out the vmware image containing the SDK, but development like this felt quite slow… So I ditched the vmware stuff and started my quest to get the SDK working natively inside Gentoo
First, you need to install the basic scratchbox stuff… Fortunately there are ebuilds available for all the required packages in the sunrise overlay, so just enable this overlay, sync it and install the following packages:
USE="arm i386" emerge -pv scratchbox \\
scratchbox-devkit-debian scratchbox-devkit-perl \\
scratchbox-devkit-cputransp scratchbox-devkit-doctools \\
scratchbox-toolchain-cs2005q3_2-glibc
After the scratchbox base system had been installed, the next thing you had to was to download the Maemo SDK packages and put them into /scratchbox/packages.
Then follow the official installation Howto to set up targets until you reach the section where it talks how to create the virtual packages. This was the part that was quite tricky…
Because Gentoo doesn’t have any debian build stuff I first had to install the “equivs” package. What I did was that I searched for debian’s equivs package and installed it:
fakeroot dpkg --ignore-depends=perl \\
--ignore-depends=debhelper --ignore-depends=make \\
--ignore-depends=dpkg-dev --ignore-depends=devscripts \\
-i equivs_2.0.7_all.deb
Now that I had the equivs package, I cooked up a generate virtuals script which created all the required .debs for me…and saved these in the new directory called tmp.
And finally I could just install all the packages with following command:
fakeroot dpkg -i tmp/*.deb
Yay… Finished… and stumbled upon a buggy compiler…
[SRC] Compiling misc_gui.cpp
/home/amd/code/openttd/src/misc_gui.cpp: In function `void CheatsWndProc(Window*, WindowEvent*)':
/home/amd/code/openttd/src/misc_gui.cpp:1912: error: unrecognizable insn:
(insn:HI 308 304 1258 11 /home/amd/code/openttd/src/variables.h:367 (set (mem/s:SI (plus:SI (mult:SI (subreg:SI (reg:DI 169) 0)
(const_int 4 [0x4]))
(reg/f:SI 160)) [4 _decode_parameters S4 A32])
(subreg:SI (reg:DI 169) 0)) -1 (nil)
(expr_list:REG_EQUAL (const_int 0 [0x0])
(nil)))
/home/amd/code/openttd/src/misc_gui.cpp:1912: internal compiler error: in extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
Send email to arm-gnu@codesourcery.com for instructions.
There were also problems with nss-mdns stuff, but I don’t remember exactly which files I had to edit to fix it. Hopefully the future versions of Scratchbox support the nss-mdns library out of the box…