21
$ mkdir /home/user/mountpoint
$ sudo mount /dev/sdb1 /home/user/mountpoint
Download and save the demo rootfs from https://releases.linaro.org/12.04/ubuntu/precise-
images/ubuntu-desktop/linaro-precise-ubuntu-desktop-20120426-119.tar.gz
Extract rootfs package to certain directory: extract rootfs.ext2.gz to
/home/user/rootfs for example:
$ gunzip rootfs.ext2.gz
$ mount -o loop -t ext2 rootfs.ext2 /home/user/rootfs
Assume that the root file system files are located in /home/user/rootfs as in the
previous step:
$ cd /home/user/rootfs
$ sudo cp -a * /home/user/mountpoint
$
sync
$ sudo umount /home/user/mountpoint
The file system content is now on the media.
3.3.
Applications and Testing
3.3.1.
Ethernet Test
A simple ping test. You can increase the size of the packet press -s switch
# ping -s 500 192.168.0.100
PING 192.168.0.100 (192.168.0.100): 1000 data bytes
1008 bytes from 192.168.0.100: seq=0 ttl=64 time=1.980 ms
1008 bytes from 192.168.0.100: seq=1 ttl=64 time=0.459 ms
1008 bytes from 192.168.0.100: seq=2 ttl=64 time=0.461 ms
1008 bytes from 192.168.0.100: seq=3 ttl=64 time=0.475 ms
--- 192.168.0.100 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
…
3.3.2.
USB
Plug in a USB memory stick, you will see a message like this (possible use dmesg