Your partner for your innovative projects ...                                            

Actualités OSELIS

 

contact

 

French (Fr)English (United Kingdom)

ARM simulation with qemu and NFS

E-mail Print PDF

The aim of this article is to setup the use of a file system from qemu by NFS.

First step : configuration of the development PC station.

This phase consists to add and configure a "bridge".

 

1
2
3
4
/usr/sbin/brctl addbr br0
/usr/sbin/brctl addif br0 eth0
/sbin/dhclient br0
/sbin/iptables -F FORWARD

 

 

We also need to define a script which will be used during qemu boot, in order to configure the network for the virtual machine.


1
touch qemu-ifup
chmod a+x qemu-ifup
vi qemu-ifup

Let's add the configuration in the script:

1
2
3
#!/bin/sh
/sbin/ifconfig $1 0.0.0.0 promisc up
/usr/sbin/brctl addif br0 $1

 

Second step : NFS server configuration

We are going to share the file system of the embedded ARM system, so it can be used during the system boot.

1
vi /etc/exports

 

Let's add the folder:

1
2
/opt/system-arm/root *(rw,no_subtree_check,no_root_squash)

 

Update of the configuration to take into account the add-on (in root):

1
exportfs -a

 

Third step : qemu launch

Let say that the IP address of the development PC station is 192.168.1.3, and the virtual machine address is 192.168.1.10.

1
2
3
4
qemu-system-arm --nographic -M pc -no-reboot \
-kernel /opt/system-arm/kernel/linuximage \
-append "root=/dev/nfs nfsroot=192.168.1.3:/opt/system-arm/root rw ip=192.168.1.10" \
-net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=./qemu-ifup

© Copyright 2011, Oselis.

White papers

 Adding a module to the kernel : A module can be loaded and unloaded on demand, the benefit of a module is that it does'nt reside into the monolithic kernel image. Read more...


 ARM simulation with qemu and NFS : First step, the development PC station configuration. This phase consists to add and configure a "bridge". Read more...


 Getting started with OMAP3530 : Basic environment setup of Tsunami board, TechNexion PSP installation Read more...


Buildroot on OMAP3530 : In this toturial, the 2011.02 version of builroot was used. Read more...


Open embedded on OMAP3530 : Configuration of Tsunami board. The OE reference tutorial is under... Read more...


DVSDK on OMAP3530 : DVSDK is a development environment done by TI for its platforms, enabling an... Read more...