| 34 | |
| 35 | == Set up the build environment == |
| 36 | |
| 37 | === 1. copy the rootfilesystem from your raspberry === |
| 38 | |
| 39 | We just copy the whole rootfs, so we have an exact copy of the environment we want to cross compile for: |
| 40 | |
| 41 | {{{ |
| 42 | [root@lab1 psy]# rsync -ax root@192.168.13.238:/ rasprootfs |
| 43 | root@192.168.13.238's password: |
| 44 | .... |
| 45 | }}} |
| 46 | |
| 47 | |
| 48 | === 2. entering the build environment === |
| 49 | |
| 50 | The only thing you have to do to be able to enter the environent is copy qemu-arm-static into it: |
| 51 | |
| 52 | {{{ |
| 53 | [root@lab1 psy]# cp /usr/bin/qemu-arm-static rasprootfs/usr/bin/ |
| 54 | [root@lab1 psy]# chroot rasprootfs/ |
| 55 | root@lab1:/# uname -a |
| 56 | Linux lab1 3.6.5-1-ARCH #1 SMP PREEMPT Wed Oct 31 20:57:39 CET 2012 armv7l GNU/Linux |
| 57 | }}}} |
| 58 | |
| 59 | w000h...now we can chroot to the local raspberry environment and start to compile stuff! |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |