I'm following this guide to install a virtual ARM environment on Ubuntu.
- I installed linaro and qemu packages:
sudo add-apt-repository ppa:linaro-maintainers/tools
sudo apt-get install linaro-image-tools qemu-user-static qemu-system
- Cross compilers:
sudo apt-get install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
- Downloaded a Linaro release and hardware pack:
wget http://releases.linaro.org/platform/linaro-n/nano/alpha-3/linaro-natty-nano-tar-20110302-0.tar.gz
wget http://releases.linaro.org/platform/linaro-n/hwpacks/alpha-3/hwpack_linaro-vexpress_20110302-0_armel_supported.tar.gz
- Created a VM disk image:
linaro-media-create --image_file vexpress.img --dev vexpress \
--binary linaro-natty-nano-tar-20110302-0.tar.gz \
--hwpack hwpack_linaro-vexpress_20110302-0_armel_supported.tar.gz
I'm failing at Extracting the kernel and initrd. The instructions say to run:
sudo mount -o loop,offset="$(file vexpress.img | awk 'BEGIN { RS=";"; } /partition 2/ { print $7*512; }')" \
-t auto vexpress.img /mnt/tmp
But I'm getting the error:
mount: failed to parse mount options
There's a note in the guide that says:
The actual names of the files might vary slightly in your build.
So does anyone know how to modify this last line to fit on Ubuntu?
vexpress.imgexists andfile vexpress.imgreturnsdata.awkis found andawk <command in post>just hangs