Spring on ARM: Difference between revisions
From FIGHTORDER
More actions
imported>Abma |
imported>Gajop No edit summary |
||
| (38 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== | ==Setting up a virtualized environment for arm on ubuntu== | ||
sudo apt-get install qemu-system | see https://wiki.ubuntu.com/ARM/RootfsFromScratch | ||
<pre> | |||
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 | |||
</pre> | |||
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== | |||
<pre> | |||
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 | |||
</pre> | |||
since here it should be possible to follow the [[Building_Spring_on_Linux#Ubuntu|linux build instructions]]. | |||
[[Category:Engine Dev]] | |||
Latest revision as of 12: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.