Spring on ARM: Difference between revisions
From Spring
Jump to navigationJump to search
No edit summary |
|||
| Line 5: | Line 5: | ||
see https://wiki.ubuntu.com/ARM/RootfsFromScratch | see https://wiki.ubuntu.com/ARM/RootfsFromScratch | ||
<code><pre> | |||
sudo apt-get install qemu-system rootstock | sudo apt-get install qemu-system rootstock | ||
sudo rootstock \ | sudo rootstock \ | ||
| Line 23: | Line 23: | ||
sudo umount tmp | sudo umount tmp | ||
rmdir tmp | rmdir tmp | ||
wget http://ports.ubuntu.com/ubuntu-ports/dists/lucid/main/installer-armel/current/images/versatile/netboot/vmlinuz | |||
wget http://ports.ubuntu.com/ubuntu-ports/dists/lucid/main/installer-armel/current/images/versatile/netboot/vmlinuz | </pre></code> | ||
start with: | start with: | ||
<code><pre> | |||
qemu-system-arm -M versatilepb -cpu cortex-a8 -kernel ./vmlinuz \ | |||
-hda qemu-armel.img -m 256 -append "root=/dev/sda" \ | -hda qemu-armel.img -m 256 -append "root=/dev/sda" \ | ||
-net nic -net user,hostfwd=tcp::2222-:22 | -net nic -net user,hostfwd=tcp::2222-:22 | ||
</pre></code> | |||
login with ubuntu:ubuntu | login with ubuntu:ubuntu | ||
or with | |||
<code><pre> | |||
ssh ubuntu@localhost -p 22222 | |||
</pre></code> | |||
==install required build tools== | ==install required build tools== | ||
Revision as of 04:02, 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
or with
ssh ubuntu@localhost -p 22222
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.