Spring on ARM: Difference between revisions

From Spring
Jump to navigationJump to search
Abma (talk | contribs)
Abma (talk | contribs)
No edit summary
Line 1: Line 1:
'''Note: currently it doesn't compile at many places. some of them can maybe fixed by changing compiler flags.
'''
==Setting up a virtualized environment for arm on ubuntu==
==Setting up a virtualized environment for arm on ubuntu==



Revision as of 04:01, 3 March 2012

Note: currently it doesn't compile at many places. some of them can maybe fixed by changing compiler flags.

Setting up a virtualized environment for arm on ubuntu

see https://wiki.ubuntu.com/ARM/RootfsFromScratch

  sudo apt-get install qemu-system rootstock
  sudo rootstock \
        --fqdn ubuntu \
        --login ubuntu \
        --password ubuntu \
        --imagesize 3G \
        --seed ubuntu-minimal,build-essential,openssh-server,linux-image-omap \
        --notarball
 mv qemu-armel-*.img qemu-armel.img
 mkdir tmp
 sudo mount -o loop qemu-armel.img tmp
 echo "auto eth0

iface eth0 inet dhcp" >> tmp/etc/network/interfaces

 sudo cp tmp/boot/initrd.img* initrd.img
 sudo umount tmp
 rmdir tmp

wget http://ports.ubuntu.com/ubuntu-ports/dists/lucid/main/installer-armel/current/images/versatile/netboot/vmlinuz

start with:

   qemu-system-arm -M versatilepb -cpu cortex-a8 -kernel ./vmlinuz \
       -hda qemu-armel.img -m 256 -append "root=/dev/sda" \
       -net nic -net user,hostfwd=tcp::2222-:22

login with ubuntu:ubuntu

install required build tools

sudo apt-get install libglew1.6-dev libsdl1.2-dev libdevil-dev libopenal-dev \
libogg-dev libvorbis-dev libfreetype6-dev p7zip-full libxcursor-dev \
libboost-thread1.46-dev libboost-regex1.46-dev libboost-system1.46-dev \
libboost-program-options1.46-dev libboost-signals1.46-dev

since here it should be possible to follow the linux build instructions.