Mesa is an open-source implementation of the OpenGL specification that can be used for software emulation or complete hardware acceleration for modern GPUs.The Mesa library is used by a variety of games (e.g. Quake 2.3), libraries (e.g PyOpenGL), science and technical applications and utilities (e.g. xscreensaver). MesaLib requires X11 libraries. I’ll assume those are already cross-compiled here. For this build, I used pre-built X11 libraries found in ALIP (ARM Internet Platform) binaries. I used the method described here and copied the libs in /lib and /usr/lib and header files in /lib/include found in the qemu overo image respectively to /home/jaufranc/edeve/beagleboard/libs/lib and /home/jaufranc/edeve/beagleboard/libs/include. make sure you use the “-d” with cp to avoid copying the symlinks or some symbolic links would point to x86 binaries or files that do not exist. Here are the instructions to cross-compile MesaLib 7.11 for ARM using arm-linux-guneabi-gcc: Download the latest version of Mesa source code: […]
Cross Compiling Boost C++ Libraries for ARM
Boost provides free peer-reviewed portable C++ source libraries. Ten Boost libraries are already included in the C++ Standards Committee’s Library Technical Report and will be in the new C++11 Standard. The Boost C++ libraries are already included in popular Linux and Unix distributions such as Fedora, Debian, Ubuntu and NetBSD and are used by projects such as Python, Xibo, Civilization IV, etc.. Here are the steps to cross-compile Boost C++ libraries for arm using arm-linux-guneabi-g++: Download the source code:
1 |
wget http://sourceforge.net/projects/boost/files/boost/1.47.0/boost_1_47_0.tar.bz2/download |
Extract the source code:
1 2 3 |
mv download boost.tar.bz2 tar xjvf boost.tar.bz2 cd boost_1_47_0/ |
Bootstrap the code:
1 |
./bootstrap.sh |
Modify the configuration file (project-build.jam) to use the ARM toolchain by replacing the line with “using gcc” by:
1 |
using gcc : arm : arm-linux-gnueabi-g++ ; |
Install the python development package:
1 |
sudo apt-get install python-dev |
Build and install the boost libraries:
1 |
./bjam install toolset=gcc-arm --prefix=~/edev/beagleboard/libs --disable-long-double -sNO_ZLIB=1 -sNO_BZIP2=1 |
This was tested in Ubuntu 11.04 (natty) and 10.04 LTS with linaro g++ toolchain. Jean-Luc Aufranc (CNXSoft)Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his […]
How to Transfer files between the Host and Qemu via SSH and NFS
Last week, I wrote a blog post explaining how to copy files to a qemu image by mounting the qemu image in the host. This is only useful if emulated platform does not support networking. If networking is enabled, using SSH (Secure Shell) or NFS (Network File System) is more convenient. Using SSH with Qemu To initiate the SSH connection from qemu, there is actually nothing extra to do as long as you have sshd installed and running on the host. If it is not installed simply run sudo apt-get install openssh-shell on the host. This will install and automatically sshd. To initiate the SSH connection from the host, you’ll have to redirect the ssh port to an unknown port and start qemu as follow (for overo):
1 |
sudo qemu-system-arm -M overo -m 256 -drive file=./overo_sd_alip.img,if=sd,cache=writeback -clock unix -serial stdio -device usb-kbd -device usb-mouse -redir tcp:2222::22 |
Please refer to Beagleboard Emulator in Ubuntu with Qemu for the detailed instructions on how to setup qemu to emulate beagleboard or […]
Arnova 7 G2 and 10 G2 Tablets Are Now Available
This week Amazon announced the Kindle Fire and got a lot of press coverage for its 199 USD Android Tablet. But the Kindle Fire was not the only low cost Tablets made available this week as Arnova G2 Tablet are also available in the US. Archos Arnova 7 G2 and 10 G2, respectively with a 7″ and 10″ capacitive display, are powered by a Rockchip RK2918 Cortex A8 processor clocked a 1Ghz, 512 MB SDRAM, 4 to 8 GB flash memory, a microSD slot and run Android 2.3 (Gingerbread) operating system. Arnova 10 G2 also have a 0.3MP front facing camera for video conference. Arnova 7 G2 can be pre-ordered on Amazon for 199.99 USD. Anrvoa 10 G2 can be purchased on Tigerdirect Ebay store for 199.99 USD. Last week, you could also get it for 99 USD with a newspaper subscription. Like the Amazon Kindle Fire, the Arnova G2 […]
Embedded MasterClass Conference Schedule in Cambridge, UK
Embeded MasterClass will take place in Cambridge on the 5th of October 2011. This conference will give you the chance to meet with embedded systems engineers from many of the world’s leading vendors and you’ll be able to attend presentations and workshops free of charge. Here’s the presentations’ schedule for the event: Time Stream 1 Stream 2 8.30 – 9.30 Tea/Coffee – Meet the Exhibitors 9.30 – 10.15 1: Leveraging the Performance of Intel® Architectures in low power, fan-less solutions with the latest Intel® Atom™ processor-based platform. Regis Cheval CEng MIET, Intel® Atom™ Platform Application Engineer – Intel 10.30 – 11.15 2: Proving your code quality. Barry Lock – Lauterbach 3: Developing reliable embedded systems using COTS and custom processors. Michael Pont, CEO – TTE Systems 11.15 – 11.45 Coffee and Exhibition 11.45 – 12.30 4: Strategic Research Agenda. Helen Finch – Artemis and Infineon 5: Safely from Conception to […]
Tizen: Linux Based OS with HTML5 Application Programming Interfaces
Earlier this week, the Linux Foundation announced yet another new Linux-based open source operating system for mobile and consumer devices based on Web standards called Tizen. This project is backed by Intel and Samsung who have already been involved with Linux based operating systems before, respectively with MeeGo and Bada. Both companies will be part of the technical steering team. It looks like Tizen will replace Meego overtime. Meego developers blasted the move and posted angry comments especially in relation to Qt support and the fact that all the previous work put into the project has probably gone to waste. My take is that using HTML5 is probably not such a bad ideas as many applications are currently developed in HTML5/Javascript for Chrome Webstore for example, and it could make porting those to Tizen straightforward. Tizen will support multiple device categories including: Smartphones Tablets Smart TVs Netbooks In-vehicle infotainment devices […]
NVidia Tegra 3 ZTE T98 Android Tablet
We’ve already seen some Quad Core Tegra 3 demos and talks about Tegra 3 Tablets coming this year, but we had not heard about real products yet. ZTE (中兴) is expected to releast ZTE T98, possibly the first Tegra 3 Honeycomb Tablet later this year., which has been spotted in Beijing by zol.com.cn at PT/EXPO COMM CHINA 2011. Here are the ZTE T98 product features and specifications: Operating System: Android3.2 Processor: Nvidia Tegra 3 @ 1.5GHz System Memory: 1GB Flash Storage: 16GB Display: 7″ Capacitive Touche Screen with 1280×800 resolution. Network: Wifi, 3G (TD-SCDMA) Built-in Audio Chip Video output up to 1080p External Ports: 3.5mm headphone jack and power jack. Battery: Lithium Battery, 4000 mA Camera: Front camera: 2 MP, Rear camera: 5 MP. Support for JPEG,GIF and BMP pictures Sensor: gravity and accelerometer 11.5mm thick ZTE announced it would be ready in 2011, but no exact date and pricing […]
How to Transfer files between Host and Qemu
I previously posted instructions to install and run nano and ARM Linux Internet Platform (ALIP) distribution images for Overo and Beagleboard on QEMU, If the image support networking, you could use ssh (install dropbear server in qemu) or nfs to transfer files between the host computer and qemu, or even run your program from the NFS share. This should be possible to do that on the Overo emulator since it support Ethernet. However, although I can access Internet, I cannot access the host via ssh as the host is in a private subnetwork (192.168.0.0) and qemu in another (10.0.2.0). We would probably have to enable bridge networking for that but the tun driver is apparently not compiled in ALIP kernel. I’ll look into that later on. [Update: Finally, we don’t need tun/tap to make this work, please read http://www.cnx-software.com/2011/10/02/how-to-transfer-files-between-host-and-qemu-via-ssh-and-nfs/ for details.] Today, I’ll just show how to mount a Qemu […]