forked from liballeg/allegro5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README_raspberrypi.txt
36 lines (24 loc) · 952 Bytes
/
README_raspberrypi.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Building
--------
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-raspberrypi.cmake
make
Virtual machine
---------------
Building with a cross compiler is not yet documented. Building directly
on a Raspberry Pi or in a Raspberry Pi VM is very similar to building on
"regular" Linux. apt-get install the -dev packages you need, run cmake and
make sure everything you need is found.
For example, you can use an image from:
http://www.raspberrypi.org/downloads
and a kernel:
http://xecdesign.com/downloads/linux-qemu/kernel-qemu
With a qemu command line like:
qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb \
-no-reboot -serial stdio -append "root=/dev/sda2 panic=1" \
-hda 2012-12-16-wheezy-raspbian.img \
-redir tcp:2222::22 -net nic -net user
You can ssh into the VM with:
ssh -p 2222 pi@127.0.0.1
Within the guest you can access the host at 10.0.2.2.