In work I recently had to build a ‘build system’ for some work we are doing in the enable project. Using the information from here and here, I was able to build a MIPv6 kernel for the N700. The biggest hurdle was figuring out the build system, so, to make it easier for anyone else.
Using a clean install of Ubuntu 6.06 Desktop edition, the following steps were taken
1) The line:
deb http://scratchbox.org/debian/ stable main
was added to the file:
/etc/apt/sources.list
2) Next the following lines of code were run from a shell prompt:
$ sudo apt-get update
$ sudo apt-get install scratchbox-core scratchbox-libs \ scratchbox-devkit-debian scratchbox-devkit-doctools \ scratchbox-devkit-perl scratchbox-devkit-cputransp \ scratchbox-toolchain-cs2005q3.2-glibc-arm \ scratchbox-toolchain-cs2005q3.2-glibc-i386 \ scratchbox-toolchain-hostgcc
$ sudo /scratchbox/sbin/sbox_adduser $USER
3) After this, I logged out and logged back in.
4) Following this, the file from here was downloaded to
/scratchbox/users/$USER/home/$USER/
5) To create a target, the following was done:
$sb-menu
6) This will bring up a text interface where you will be guided through creating a target. The target was named SDK2.2_ARMEL (in keeping with the existing documentation). The ARM compiler and not the i386 was selected as compiler. The devkits that were selected were:
cputransp
debian-etch
For CPU Transparency (cputransp) the option that was selected from the list was
qemu-arm-0.8.2-sb2
When asked to select rootstrap the file from step (4) above was selected.
When asked which files to install to target, all EXCEPT gdb were selected.
7) The following was used to log-in
$/scratchbox/login
To test that everything was working I built a kernel with
mkdir ~/kernel-build
apt-get install kernel-source-2.6.16
apt-get source su-18-kernel
cd su-18-kernel-2.6.16 $ dpkg-buildpackage -rfakeroot -uc -us -sa -d
If that was succesful, your now ready to begin! This worked for me, YMMV!
One thought on “Nokia N770 build system.”