Scratchbox info


Posted on 2010-05-28

This is just a bunch of info around scratchbox

Startup

In order to disable VSDO on debian lenny AMD 64:

sudo sysctl abi.vsyscall32=2

or

sudo sysctl abi.vsyscall32=0

Both work, but when changint the vsdo to 2 i belieave its called compat mode, I have no idea what that actually is but I think i read somewhere that its a bit better in some ways than 0.

It might be possible that changing the mmap_min_addr also is nescesary:

sudo sysctl vm.mmap_min_addr=65536

I read somewhere that 4096 should suffice, but I have as of yet not run into any problems with the mmap_min_addr at 65536.

Xephyr

To start xehpyr

Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac

wiki.maemo.org have -kb & at the end, however -kb doesn’t exist in the version provided with lenny

And in scratchbox, set the right display

export DISPLAY=:2

maemo-env

Starting the maemo environment inside scratchbox/xephyr af-sb-init.sh start

Other Issues

Had some troubles connecting to the internet through scratchbox, found out it was related to me not using my normal configuration (I’m tethering instead of using my wlan). When running ifconfig I got this error:

SIOCGIFCONF: Bad address

Through some IRC-logs (thx Lateralus for having the same issue :)) i found out resolv.conf in scratchbox used the wrong nameserver. I corrected the following three files to get it to work:

/scratchbox/etc/resolv.conf
/scratchbox/users/xun/targets/FREMANTLE_X86/etc/resolv.conf
/scratchbox/users/xun/targets/FREMANTLE_ARMEL/etc/resolv.conf

Where xun is my scratchbox user, ofc.