I was finding articles/wikis how to emulate an arm linux (armel) on centos/ubuntu, then I found this from MDN: https://developer.mozilla.org/en-US/docs/Developer_Guide/Virtual_ARM_Linux_environment.
This article uses an old release by linaro which based on Ubuntu natty that can no longer be found on http://ports.ubuntu.com.
As Ubuntu says, armel would not be supported, that’s why the latest code name of ubuntu supporting armel is begin with ‘Q’.
I found another server release and a new nano, tried that with similar commands, notes are below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
wget \ http://releases.linaro.org/platform/latest/hwpacks/11.10/hwpack_linaro-lt-vexpress-a9_20111024-0_armel_supported.tar.gz \ http://releases.linaro.org/platform/latest/server/11.10/linaro-o-server-tar-20111024-0.tar.gz \ http://releases.linaro.org/platform/latest/nano/11.10/linaro-o-nano-tar-20111024-0.tar.gz mkdir server nano # for the server release cd server ln ../linaro-o-server-tar-20111024-0.tar.gz ln ../hwpack_linaro-lt-vexpress-a9_20111024-0_armel_supported.tar.gz linaro-media-create --image_file vexpress.img --dev vexpress \ --binary linaro-o-server-tar-20111024-0.tar.gz \ --hwpack hwpack_linaro-lt-vexpress-a9_20111024-0_armel_supported.tar.gz mount -o loop,offset="$(file vexpress.img | awk 'BEGIN { RS=";"; } /partition 2/ { print $7*512; }')" \ -t auto vexpress.img /mnt/tmp cp /mnt/tmp/vmlinuz-3.1.0-1800-linaro-lt-vexpress-a9 . cp /mnt/tmp/initrd.img-3.1.0-1800-linaro-lt-vexpress-a9 . ln -s vmlinuz-3.1.0-1800-linaro-lt-vexpress-a9 vmlinuz ln -s initrd.img-3.1.0-1800-linaro-lt-vexpress-a9 initrd.img cd .. # for the nano release cd nano ln ../linaro-o-nano-tar-20111024-0.tar.gz ln ../hwpack_linaro-lt-vexpress-a9_20111024-0_armel_supported.tar.gz linaro-media-create --image_file vexpress.img --dev vexpress \ --binary linaro-o-nano-tar-20111024-0.tar.gz \ --hwpack hwpack_linaro-lt-vexpress-a9_20111024-0_armel_supported.tar.gz mount -o loop,offset="$(file vexpress.img | awk 'BEGIN { RS=";"; } /partition 2/ { print $7*512; }')" \ -t auto vexpress.img /mnt/tmp cp /mnt/tmp/boot/initrd.img-3.1.0-1800-linaro-lt-vexpress-a9 . cp /mnt/tmp/boot/vmlinuz-3.1.0-1800-linaro-lt-vexpress-a9 . ln -s initrd.img-3.1.0-1800-linaro-lt-vexpress-a9 initrd.img ln -s vmlinuz-3.1.0-1800-linaro-lt-vexpress-a9 vmlinuz # The server release does not work well, but the nano one is fine. qemu-system-arm -M vexpress-a9 -cpu cortex-a9 -kernel ./vmlinuz \ -initrd ./initrd.img -redir tcp:2200::22 -m 512 \ -append "root=/dev/mmcblk0p2 vga=normal mem=512M devtmpfs.mount=0 rw" \ -drive file=vexpress.img,if=sd,cache=writeback ifconfig eth0 up dhclient eth0 apt-get install openssh-server |
Don’t forget to install ubuntu-destkop before trying to qemu-system-arm.
Virtualized ARM on Ubuntu by @sskaje: https://sskaje.me/2013/12/virtualized-arm-ubuntu/
Incoming search terms:
Link to this post!