Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: None  |  size: 1.62 KB  |  hits: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ############ How to install scratchbox on ubuntu ############
  2.  
  3. # Add the scratchbox repository and update the apt cache
  4. sudo echo "deb http://scratchbox.org/debian/ apophis main" >> /etc/apt/sources.list
  5. sudo apt-get update
  6.  
  7. # Install the needed scratchbox packages
  8. 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
  9.  
  10. # Install qemu
  11. sudo apt-get install qemu
  12.  
  13. # Add a required kernel parameter in grub
  14. sudo gedit /etc/default/grub
  15. # change GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="vdso=0"
  16.  
  17. # Update grub
  18. sudo update-grub
  19.  
  20. # Restart ubuntu to start with the new kernel parameter
  21.  
  22. # Add the scratchbox user
  23. sudo /scratchbox/sbin/sbox_adduser <myuser> yes
  24.  
  25. # Restart ubuntu to get scratchbox login to work
  26.  
  27. # Login in scratchbox
  28. /scratchbox/login
  29.  
  30.  
  31. # Configure 2 new targets for each toolchain, add both devkits,
  32. # select "qemu-arm-sb" as cpu transparency method,
  33. # ignore the rootstrap and install the default files in the target.
  34. # Select the normal target (not uclibc).
  35.  
  36.  
  37. # (FIX-BUG) If the terminal hangup each time you select a new target just write this lines
  38. sudo mkdir -p /usr/share/terminfo/x; cd /usr/share/terminfo/x; sudo ln -s /lib/terminfo/x/xterm xterm
  39.  
  40. # (FIX-LACIE) To compile lacie sources make some symlinks
  41. cd /scratchbox/compilers/bin; for f in `ls arm-linux-*`; do sudo ln -s sb_gcc_wrapper arm-none-linux-${f#arm-linux-}; done
  42. cd /scratchbox/compilers/bin; for f in `ls arm-linux-*`; do sudo ln -s sb_gcc_wrapper arm-linux-uclibc-${f#arm-linux-}; done