Make sure you haveÂ
qemu-user-staticÂ using :
dpkg -l qemu-user-static
Otherwise install it:
$ sudo apt-get install qemu-user-static
Mount the SD card which you use to boot pandaboard. In case you have the rootfs on a different media USB/ HDD for your embedded target, mount that on your linux host system.
Assuming you have mounted the rootfs on /media/rootfs/ ,Â
Copy the qemu for arm file
cp /usr/bin/qemu-arm-static usr/bin/
To make sure you have internet connectivity after you chroot, copy the network settings from your host to your target system.
mv etc/resolv.conf etc/resolv.conf.saved
cp /etc/resolv.conf etc/resolv.conf
Mount and bindÂ
for m in echo 'sys dev proc'; do sudo mount /$m ./$m -o bind;
Now we are Chroot into the target system:
sudo LC_ALL=C chroot . /bin/bash
Here on, you can run commands as if you are on the target (eg: the Pandaboard ES). What ever program you run from this terminal, what ever operations you perform from this terminal, what ever you install , EVERYTHING will affect the new rootfs which is your target’s rootfs.
When you are done, you can unmount the mounted file system to exit the chroot:
for m in echo 'sys dev proc'; do sudo umount ./$m; done