Differences

This shows you the differences between two versions of the page.

Link to this comparison view

scratchbox [2011/08/30 15:34] (current)
Line 1: Line 1:
 +This is how to install the ARMEL (femtocell architecture) emulator scratchbox used by [[http://www.maemo.org|maemo]] on Ubuntu 10.10.
  
 +====== install ======
 +
 +This howto is based the [[http://wiki.maemo.org/Documentation/Maemo5_Final_Installation|maemo doc]].
 +
 +  * get the scratchbox installer
 +
 +  wget http://repository.maemo.org/stable/5.0/maemo-scratchbox-install_5.0.sh 
 +  chmod a+x ./maemo-scratchbox-install_5.0.sh
 +
 +  * disable some virtual machine features (for Ubuntu)
 +
 +  sudo su
 +  echo "vm.mmap_min_addr = 0" >> /etc/sysctl.conf
 +  echo "vm.vdso_enabled = 0" >> /etc/sysctl.conf
 +  sysctl -p
 +  exit
 +
 +  * install scratchbox 
 +
 +  sudo ./maemo-scratchbox-install_5.0.sh -u $USER
 +
 +  * create a group to be able for the user to launch it (have to logout)
 +
 +  newgrp sbox
 +
 +  * repair xterm for the next step ([[http://www.terabyteunlimited.com/kb/article.php?id=454|bug]])
 +
 +  sudo mkdir -p /usr/share/terminfo/x
 +  sudo ln -s /lib/terminfo/x/xterm /usr/share/terminfo/x/xterm
 +
 +  * install maemo sdk to get ARM emulator. runtime environment is sufficient (to select in the menu) 
 +
 +  wget http://repository.maemo.org/stable/5.0/maemo-sdk-install_5.0.sh
 +  chmod +x ./maemo-sdk-install_5.0.sh
 +  ./maemo-sdk-install_5.0.sh
 +
 +====== run ======
 +
 +to run the emulator :
 +
 +  /scratchbox/login
 +
 +the first time you have to switch from x86 to armel architecture :
 +
 +  sb-conf select FREMANTLE_ARMEL
 +
 +====== applications ======
 +
 +===== signature & encryption =====
 +
 +copy the decrypt/signature checker, from the recovery rootfs, to the scratchbox environment :
 +
 +  cd <path to recovery rootfs>
 +  cp lib/libc.so.0 /scratchbox/users/$USER/targets/FREMANTLE_ARMEL/lib/
 +  cp lib/ld-uClibc.so.0 /scratchbox/users/$USER/targets/FREMANTLE_ARMEL/lib/
 +  cp usr/bin/ubcrypt /scratchbox/users/$USER/home/$USER/
 +  cp usr/bin/sigcheck /scratchbox/users/$USER/home/$USER/
 +  cp usr/bin/simcheck /scratchbox/users/$USER/home/$USER/
scratchbox.txt · Last modified: 2011/08/30 15:34 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki