Spring on ARM: Difference between revisions

From Spring
Jump to navigationJump to search
Abma (talk | contribs)
Gajop (talk | contribs)
No edit summary
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Note: currently it doesn't compile at many places. some of them can maybe fixed by changing compiler flags. Also the emulation is horrible slow, so better get a real arm computer.
'''
==Setting up a virtualized environment for arm on ubuntu==
==Setting up a virtualized environment for arm on ubuntu==


see https://wiki.ubuntu.com/ARM/RootfsFromScratch
see https://wiki.ubuntu.com/ARM/RootfsFromScratch
 
<pre>
   sudo apt-get install qemu-system rootstock
   sudo apt-get install qemu-system rootstock
   sudo rootstock \
   sudo rootstock \
Line 9: Line 12:
         --password ubuntu \
         --password ubuntu \
         --imagesize 3G \
         --imagesize 3G \
         --seed ubuntu-minimal,build-essential,openssh-server \
         --seed openssh-server,linux-image-omap \
         --notarball \
         --notarball
        --copy-package-cache \
        --restore-package-cache


    wget http://ports.ubuntu.com/ubuntu-ports/dists/lucid/main/installer-armel/current/images/versatile/netboot/vmlinuz
  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 umount tmp
  rmdir tmp
  wget http://ports.ubuntu.com/ubuntu-ports/dists/lucid/main/installer-armel/current/images/versatile/netboot/vmlinuz
</pre>


start with:
start with:
<pre>
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
</pre>
login with ubuntu:ubuntu
or with
<pre>
ssh ubuntu@localhost -p 22222
</pre>
==install required build tools==


    qemu-system-arm -M versatilepb -cpu cortex-a8 -kernel \
<pre>
        ./vmlinuz -hda arm-rootfs.img -m 256\
sudo apt-get install build-essentials cmake
        -append "root=/dev/sda mem=256M devtmpfs.mount=0 rw"
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
</pre>


since here it should be possible to follow the [[Building_Spring_on_Linux#Ubuntu|linux build instructions]].


[[Category:development]]
[[Category:Engine Dev]]

Latest revision as of 13:06, 20 September 2020

Note: currently it doesn't compile at many places. some of them can maybe fixed by changing compiler flags. Also the emulation is horrible slow, so better get a real arm computer.

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 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 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

or with

ssh ubuntu@localhost -p 22222

install required build tools

sudo apt-get install build-essentials cmake
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.