
Untitled
By: a guest on
Jun 14th, 2012 | syntax:
None | size: 1.62 KB | hits: 30 | expires: Never
############ How to install scratchbox on ubuntu ############
# Add the scratchbox repository and update the apt cache
sudo echo "deb http://scratchbox.org/debian/ apophis main" >> /etc/apt/sources.list
sudo apt-get update
# Install the needed scratchbox packages
sudo apt-get install scratchbox-core scratchbox-devkit-cputransp scratchbox-devkit-qemu scratchbox-libs scratchbox-toolchain-arm-gcc4.1-uclibc20061004 scratchbox-toolchain-arm-linux-cs2009q3-67
# Install qemu
sudo apt-get install qemu
# Add a required kernel parameter in grub
sudo gedit /etc/default/grub
# change GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="vdso=0"
# Update grub
sudo update-grub
# Restart ubuntu to start with the new kernel parameter
# Add the scratchbox user
sudo /scratchbox/sbin/sbox_adduser <myuser> yes
# Restart ubuntu to get scratchbox login to work
# Login in scratchbox
/scratchbox/login
# Configure 2 new targets for each toolchain, add both devkits,
# select "qemu-arm-sb" as cpu transparency method,
# ignore the rootstrap and install the default files in the target.
# Select the normal target (not uclibc).
# (FIX-BUG) If the terminal hangup each time you select a new target just write this lines
sudo mkdir -p /usr/share/terminfo/x; cd /usr/share/terminfo/x; sudo ln -s /lib/terminfo/x/xterm xterm
# (FIX-LACIE) To compile lacie sources make some symlinks
cd /scratchbox/compilers/bin; for f in `ls arm-linux-*`; do sudo ln -s sb_gcc_wrapper arm-none-linux-${f#arm-linux-}; done
cd /scratchbox/compilers/bin; for f in `ls arm-linux-*`; do sudo ln -s sb_gcc_wrapper arm-linux-uclibc-${f#arm-linux-}; done