View Single Post
Posts: 12 | Thanked: 23 times | Joined on Nov 2009 @ San Francisco, CA
#12
Originally Posted by pinsh View Post
a whole bunch of instructions
Having just gone through the process of installing the Maemo 5 Final SDK on my x86_64 Gentoo system, I'll tell you what worked for me (taken and slightly modified from pinsh's instructions):

1. (as root) Re-emerge x11-base/xorg-server with the "kdrive" USE flag enabled, this will give you Xephyr.

2. (as root) Install app-arch/dpkg (Debian package maintenance system), this is needed by the maemo 5 SDK installer.

3. (as root) Instead of using the scratchbox installer from maemo, install scratchbox using portage. Unfortunately, scratchbox-devkit-git
and scratchbox-devkit-svn are not yet in portage, so we roll our own ebuilds (assuming make.conf specifies PORTDIR_OVERLAY="/usr/portage/local"):

Create /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-git-1.0.1.ebuild and paste the following into it:
Code:
SBOX_GROUP="sbox"
RESTRICT="strip binchecks"

DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier."
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://scratchbox.org/download/files/sbox-releases/stable/tarball/${P}-i386.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND="=dev-embedded/scratchbox-1.0*"
RDEPEND=""

TARGET_DIR="/opt/scratchbox"

S=${WORKDIR}/scratchbox

src_install() {
        dodir ${TARGET_DIR}
        cp -pRP * "${D}/${TARGET_DIR}"
}
Create /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-svn-1.0.ebuild and paste the following into it:
Code:
SBOX_GROUP="sbox"
RESTRICT="strip binchecks"

DESCRIPTION="A cross-compilation toolkit designed to make embedded Linux application development easier."
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://scratchbox.org/download/files/sbox-releases/stable/tarball/${P}-i386.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND="=dev-embedded/scratchbox-1.0*"
RDEPEND=""

TARGET_DIR="/opt/scratchbox"

S=${WORKDIR}/scratchbox

src_install() {
        dodir ${TARGET_DIR}
        cp -pRP * "${D}/${TARGET_DIR}"
}
Do the following to add the ebuilds to portage:
Code:
ebuild /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-git-1.0.1.ebuild digest
ebuild /usr/portage/local/dev-embedded/scratchbox-devkit-git/scratchbox-devkit-svn-1.0.ebuild digest
Unmask the necessary packages:

/etc/portage/package.keywords/maemo5 :
Code:
## maemo5
dev-embedded/scratchbox ~*
dev-embedded/scratchbox-devkit-apt-https ~*
dev-embedded/scratchbox-devkit-debian ~*
dev-embedded/scratchbox-devkit-doctools ~*
dev-embedded/scratchbox-devkit-perl ~*
dev-embedded/scratchbox-devkit-qemu ~*
dev-embedded/scratchbox-toolchain-cs2007q3-glibc2_5 ~*
dev-embedded/scratchbox-devkit-git ~*
dev-embedded/scratchbox-devkit-svn ~*
Install everything:
Code:
emerge -av scratchbox scratchbox-devkit-apt-https scratchbox-devkit-debian scratchbox-devkit-doctools scratchbox-devkit-perl scratchbox-devkit-qemu scratchbox-toolchain-cs2007q3-glibc2_5 scratchbox-toolchain-cs2007q3-glibc2_5 scratchbox-devkit-git scratchbox-devkit-svn
4. (as root) check if vdso/vsyscall is enabled:
Code:
sysctl abi.vsyscall32
sysctl vm.vdso_enabled
sysctl kernel.vdso
if any are non-zero repeat the query command and append =0 as:
Code:
sysctl abi.vsyscall32=0
ONLY if you test this and it works, you can update your /etc/sysctl.conf file by adding a line (minus the sysctl command):
Code:
abi.vsyscall32=0
make sure you test this first or it may make your system unbootable (alternatively, you can issue the sysctl command before using the SDK).

5. (as root) Start scratchbox:
Code:
/etc/init.d/scratchbox start
6. (as root) Add yourself to the scratchbox group:
Code:
gpassed sbox -a YOURUSERNAME
7. (as root) Add yourself as a scratchbox user:
Code:
/opt/scratchbox/sbin/sbox_adduser YOURUSERNAME
8. (as YOURUSERNAME) Install Maemo 5 SDK:
Code:
./maemo-sdk-install_5.0.sh -s /opt/scratchbox/
Follow the link at the end of the install to get access to the Nokia Binaries repository (STORE THIS LINE FOR LATER).

9. (as YOURUSERNAME) login to scratchbox:
Code:
/opt/scratchbox/login
10. (in scratchbox) add Nokia Binaries:
Code:
[sbox-FREMANTLE_X86: ~] > sb-conf select FREMANTLE_ARMEL
[sbox-FREMANTLE_ARMEL: ~] > nano /etc/apt/sources.list  # add deb line stored in step 8
[sbox-FREMANTLE_ARMEL: ~] > apt-get update
[sbox-FREMANTLE_ARMEL: ~] > fakeroot apt-get install nokia-binaries nokia-apps
Code:
[sbox-FREMANTLE_ARMEL: ~] > sb-conf select FREMANTLE_X86
[sbox-FREMANTLE_X86: ~] > nano /etc/apt/sources.list  # add deb line stored in step 8
[sbox-FREMANTLE_X86: ~] > apt-get update
[sbox-FREMANTLE_X86: ~] > fakeroot apt-get install nokia-binaries nokia-apps
Now you should be all set and ready to go
 

The Following 10 Users Say Thank You to gwax For This Useful Post: