Comments for translatedcode https://translatedcode.wordpress.com QEMU for and on ARM cores Fri, 07 May 2021 17:43:06 +0000 hourly 1 http://wordpress.com/ Comment on Installing Debian on QEMU’s 32-bit ARM “virt” board by Ravishankar S https://translatedcode.wordpress.com/2016/11/03/installing-debian-on-qemus-32-bit-arm-virt-board/#comment-1903 Fri, 07 May 2021 17:43:06 +0000 http://translatedcode.wordpress.com/?p=165#comment-1903 We can also install from a debain iso. A sample installation is as follows:

qemu-system-aarch64 -M virt -enable-kvm -cpu host,aarch64=off -smp 2 -m 2048 \
-device nec-usb-xhci -device usb-kbd -device usb-mouse -usb -serial stdio \
-device usb-storage,drive=install -drive file=debian-10.8.0-armhf-xfce-CD-1.iso,if=none,id=install,media=cdrom,readonly=on \
-drive if=none,file=hda3.qcow2,format=qcow2,id=hd -device virtio-blk-device,drive=hd \
-device virtio-gpu-pci,virgl=on,xres=1600,yres=900 -display sdl,gl=on \
-nic user,model=virtio -bios edk2-arm-code.fd

]]>
Comment on Installing Debian on QEMU’s 64-bit ARM “virt” board by Ravishankar S https://translatedcode.wordpress.com/2017/07/24/installing-debian-on-qemus-64-bit-arm-virt-board/#comment-1902 Fri, 07 May 2021 17:40:34 +0000 http://translatedcode.wordpress.com/?p=219#comment-1902 If you can download the installation iso, an example setup can be done as follows:

qemu-system-aarch64 -M virt -enable-kvm -cpu host -smp 2 -m 2048 \
-device nec-usb-xhci -device usb-kbd -device usb-mouse -usb -serial stdio \
-device usb-storage,drive=install -drive file=debian-10.8.0-arm64-xfce-CD-1.iso,if=none,id=install,media=cdrom,readonly=on \
-drive if=none,file=hda3.qcow2,format=qcow2,id=hd -device virtio-blk-device,drive=hd \
-device virtio-gpu-pci,virgl=on,xres=1600,yres=900 -display sdl,gl=on \
-nic user,model=virtio -bios edk2-aarch64-code.fd

]]>
Comment on Installing Debian on QEMU’s 32-bit ARM “virt” board by Ravishankar https://translatedcode.wordpress.com/2016/11/03/installing-debian-on-qemus-32-bit-arm-virt-board/#comment-1863 Wed, 17 Mar 2021 14:33:39 +0000 http://translatedcode.wordpress.com/?p=165#comment-1863 Oh. Those files are on partition 1 rather than 2!
Now I am able to run with KVM and its really fast. Its an armhf guest now on aaarch64

Now to figure out how to get a GUI to work with GPU acceleration..

rreddy78@debian:~$ lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
Vendor ID: ARM
Model: 1
Model name: Cortex-A57
Stepping: r1p1
BogoMIPS: 38.40
Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm aes pmull sha1 sha2 crc32
rreddy78@debian:~$

]]>
Comment on Installing Debian on QEMU’s 32-bit ARM “virt” board by Ravishankar https://translatedcode.wordpress.com/2016/11/03/installing-debian-on-qemus-32-bit-arm-virt-board/#comment-1862 Wed, 17 Mar 2021 13:59:54 +0000 http://translatedcode.wordpress.com/?p=165#comment-1862 There is one more point about the virt machine. Mostly its the only one that supports directly the KVM and thats what I am using now.

Here is how I am trying to install an armhf guest on an aarch64 machine (in my case jetson nano).

../qemu/build/qemu-system-aarch64 -M virt -m 2048 -smp 2 -cpu host,aarch64=off -enable-kvm -kernel installer-vmlinuz -initrd installer-initrd.gz -drive if=none,file=hda.qcow2,format=qcow2,id=hd -device virtio-blk-device,drive=hd -netdev user,id=mynet -device virtio-net-device,netdev=mynet -nographic -no-reboot

Its working fine and I am able to install, though I dont know why bootloader installation fails.
And when I continue without boot loader, and try to see the boot folder in hda.qcow2 no files are present!

]]>
Comment on Installing Debian on QEMU’s 32-bit ARM “virt” board by PsySc0rpi0n https://translatedcode.wordpress.com/2016/11/03/installing-debian-on-qemus-32-bit-arm-virt-board/#comment-1852 Sun, 07 Mar 2021 11:16:53 +0000 http://translatedcode.wordpress.com/?p=165#comment-1852 In reply to notinaboat.

I created an issue on the script you built. I couldn’t make these instructions to work. Maybe you could take a look at there! Thanks

]]>
Comment on Installing Debian on QEMU’s 32-bit ARM “virt” board by notinaboat https://translatedcode.wordpress.com/2016/11/03/installing-debian-on-qemus-32-bit-arm-virt-board/#comment-1728 Tue, 01 Dec 2020 23:48:34 +0000 http://translatedcode.wordpress.com/?p=165#comment-1728 Thanks Peter! I’m no longer shouting “256MB os not enough!” at `versatilepb`:)

I have posted a Makefile for installing “buster” based on your instructions here: https://github.com/notinaboat/qemu_debian_armhf

]]>
Comment on Installing Debian on QEMU’s 32-bit ARM “virt” board by Srinuvasan.A https://translatedcode.wordpress.com/2016/11/03/installing-debian-on-qemus-32-bit-arm-virt-board/#comment-1718 Wed, 25 Nov 2020 10:46:07 +0000 http://translatedcode.wordpress.com/?p=165#comment-1718 Hi,

Is it possible to pass through the USB to QEMU command line for ARM machines, am using virt machine.
I added by using this command “-usb -device usb-host,hostbus=,hostaddr=” but its working for x86 QEMU machine not for ARM virt machine.

Any help?

Thanks,
Srinuvasan.A

]]>
Comment on Installing Debian on QEMU’s 64-bit ARM “virt” board by ak-47 https://translatedcode.wordpress.com/2017/07/24/installing-debian-on-qemus-64-bit-arm-virt-board/#comment-1649 Sun, 11 Oct 2020 15:20:25 +0000 http://translatedcode.wordpress.com/?p=219#comment-1649 Hey,
I know it’s a noob question, but how to connect to the vm using `ssh` ?

Regards

]]>
Comment on Installing Debian on QEMU’s 32-bit ARM “virt” board by Mohammad https://translatedcode.wordpress.com/2016/11/03/installing-debian-on-qemus-32-bit-arm-virt-board/#comment-1502 Tue, 21 Jul 2020 19:50:13 +0000 http://translatedcode.wordpress.com/?p=165#comment-1502 Thanks a lot! Hopefully, now I can build and debug Raspberry Pi programs easily on my PC which is light years more powerful than that fan-less machine :)

]]>
Comment on Installing Debian on QEMU’s 64-bit ARM “virt” board by WanShupeng https://translatedcode.wordpress.com/2017/07/24/installing-debian-on-qemus-64-bit-arm-virt-board/#comment-1465 Wed, 24 Jun 2020 01:37:19 +0000 http://translatedcode.wordpress.com/?p=219#comment-1465 hi,I have a question on qemu virt,I want to load a arm64 kernel on virt using the command “emu-system-aarch64 -machine virt,virtualization=true,secure=true -cpu cortex-a53 -m 1G -smp 2 -kernel ./build/EAOS64.bin -nographic -s -S” ,but I got the wrong EL,the value I read from the register CurrentEL is 0x8,not 0xC.what is wrong with my command?Thanks for your help.

]]>