CSSU-thumb toolchain setup (gcc4.7.2-linaro)

m
Line 1: Line 1:
This document describes how to setup the CSSU-thumb toolchain (gcc4.7.2-linaro) in scratchbox.
This document describes how to setup the CSSU-thumb toolchain (gcc4.7.2-linaro) in scratchbox.
 +
 +
1. You need to have [http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation ScratchBox] environment already set up.
 +
 +
2. Download [http://maemo.merlin1991.at/cssu/develdebs/gcc-4.7.2_fremantle_armel/linaro-4.7-2012.07-fremantle-armv7a.tar.bz2 gcc-4.7.2-linaro toolchain] and extract it under /scratchbox
 +
 +
3. Create new ScratchBox target FREMANTLE_ARMEL_GCC472
 +
 +
- Login to ScratchBox
 +
 +
$ /scratchbox/login
 +
 +
- Create new ScratchBox target
 +
 +
[sbox->:~]sb-conf st FREMANTLE_ARMEL_GCC472 -c linaro-4.7-2012.07-fremantle-armv7a -d qemu:perl:debian-etch:doctools:svn:git -t qemu-arm-sb
 +
 +
[sbox->:~]sb-conf se FREMANTLE_ARMEL_GCC472
 +
 +
[sbox-FREMANTLE_ARMEL_GCC472: ~] > sb-conf rs maemo-sdk-rootstrap_5.0_20.2010.36-2_armel.tgz
 +
 +
[sbox-FREMANTLE_ARMEL_GCC472: ~] > sb-conf in -edL
 +
 +
[sbox-FREMANTLE_ARMEL_GCC472: ~] > apt-get update
 +
[sbox-FREMANTLE_ARMEL_GCC472: ~] > fakeroot apt-get install maemo-sdk-debug
 +
 +
- Accept Maemo5 SDK EULA [http://tablets-dev.nokia.com/eula/index.php here] and copy the URL. Add nokia-binaries repository URL to /etc/apt/sources.list
 +
 +
[sbox-FREMANTLE_ARMEL_GCC472: ~] >apt-get update
 +
[sbox-FREMANTLE_ARMEL_GCC472: ~] >fakeroot apt-get install nokia-binaries nokia-apps
 +
 +
[sbox-FREMANTLE_ARMEL_GCC472: ~] >rm -rf /targets/FREMANTLE_ARMEL_GCC472/opt
 +
[sbox-FREMANTLE_ARMEL_GCC472: ~] >mkdir /targets/FREMANTLE_ARMEL_GCC472/opt
 +
 +
- Download ScratchBox errata dependency provider package from [http://maemo.merlin1991.at/cssu/develdebs/gcc-4.7.2_fremantle_armel/sb-thumb-errata-provider_0.1-1_armel.deb here] and install it
 +
 +
dpkg -i sb-thumb-errata-provider_0.1-1_armel.deb
 +
 +
- Add CSSU-testing and CSSU-thumb repos to your /etc/apt/sources.list
 +
 +
echo "deb http://repository.maemo.org/community-testing/ fremantle free non-free" >> /etc/apt/sources.list
 +
echo "deb-src http://repository.maemo.org/community-testing/ fremantle free" >> /etc/apt/sources.list
 +
 +
echo "deb http://maemo.merlin1991.at/cssu/community-thumb/ fremantle free non-free" >> /etc/apt/sources.list
 +
echo "deb-src http://maemo.merlin1991.at/cssu/community-thumb/ fremantle free" >> /etc/apt/sources.list
 +
 +
[sbox-FREMANTLE_ARMEL_GCC472: ~] >apt-get update
 +
[sbox-FREMANTLE_ARMEL_GCC472: ~] >fakeroot apt-get upgrade
 +
 +
Your target should be ok at that point

Revision as of 11:08, 20 September 2012

This document describes how to setup the CSSU-thumb toolchain (gcc4.7.2-linaro) in scratchbox.

1. You need to have ScratchBox environment already set up.

2. Download gcc-4.7.2-linaro toolchain and extract it under /scratchbox

3. Create new ScratchBox target FREMANTLE_ARMEL_GCC472

- Login to ScratchBox

$ /scratchbox/login

- Create new ScratchBox target

[sbox->:~]sb-conf st FREMANTLE_ARMEL_GCC472 -c linaro-4.7-2012.07-fremantle-armv7a -d qemu:perl:debian-etch:doctools:svn:git -t qemu-arm-sb
[sbox->:~]sb-conf se FREMANTLE_ARMEL_GCC472
[sbox-FREMANTLE_ARMEL_GCC472: ~] > sb-conf rs maemo-sdk-rootstrap_5.0_20.2010.36-2_armel.tgz
[sbox-FREMANTLE_ARMEL_GCC472: ~] > sb-conf in -edL
[sbox-FREMANTLE_ARMEL_GCC472: ~] > apt-get update
[sbox-FREMANTLE_ARMEL_GCC472: ~] > fakeroot apt-get install maemo-sdk-debug

- Accept Maemo5 SDK EULA here and copy the URL. Add nokia-binaries repository URL to /etc/apt/sources.list

[sbox-FREMANTLE_ARMEL_GCC472: ~] >apt-get update
[sbox-FREMANTLE_ARMEL_GCC472: ~] >fakeroot apt-get install nokia-binaries nokia-apps
[sbox-FREMANTLE_ARMEL_GCC472: ~] >rm -rf /targets/FREMANTLE_ARMEL_GCC472/opt
[sbox-FREMANTLE_ARMEL_GCC472: ~] >mkdir /targets/FREMANTLE_ARMEL_GCC472/opt

- Download ScratchBox errata dependency provider package from here and install it

dpkg -i sb-thumb-errata-provider_0.1-1_armel.deb

- Add CSSU-testing and CSSU-thumb repos to your /etc/apt/sources.list

echo "deb http://repository.maemo.org/community-testing/ fremantle free non-free" >> /etc/apt/sources.list
echo "deb-src http://repository.maemo.org/community-testing/ fremantle free" >> /etc/apt/sources.list
echo "deb http://maemo.merlin1991.at/cssu/community-thumb/ fremantle free non-free" >> /etc/apt/sources.list
echo "deb-src http://maemo.merlin1991.at/cssu/community-thumb/ fremantle free" >> /etc/apt/sources.list
[sbox-FREMANTLE_ARMEL_GCC472: ~] >apt-get update
[sbox-FREMANTLE_ARMEL_GCC472: ~] >fakeroot apt-get upgrade

Your target should be ok at that point