=======================
Install a crossing toolchain
=======================
- Download openmoko cross-compiler instead of that from FriendlyArm to avoid 'Segmentation fault'.
- Extract the package to root
- Export path of toolchains, run also add following line in /root/.bashrc
Cross-compile mesa library (openGL in Linux)
==================================
- Download and unpack mesa libraries. See the tutorial here (http://www.mesa3d.org/)
- You need to use arm-gcc instead of your host gcc to build the mesa library. Max just create a symbolic link refer to the arm-gcc, by
>cd ~/project/mesa/Mesa-7.5.1
>./configure --host=arm-linux --prefix=/usr/local/mesa
>make
>make install
- Then, you can find the library and include files at /usr/local/mesa.
Copy the demo to target board
=======================
My mini2440 is remotely loaded by nfs network on my host machine. The root directory of mini2440 is located at /disk1/nfs/root/ on my host machine. Just copy some demo executables (you can find at for examples Mesa-7.5.1/progs/xdemos) to /disk1/nfs/root/. And start the demos by minicom. See the tutorial.