NixOS on ARM/QEMU: Difference between revisions

imported>Samueldr
m I don't understand mediawiki syntax
imported>Flokli
No edit summary
Line 20: Line 20:


== Booting using qemu ==
== Booting using qemu ==
The following command will boot QEMU's 'virt' machine with u-boot and the converted sdcard image, exposing four cpu cores a:
The following command will boot QEMU's 'virt' machine with u-boot and the converted sdcard image, exposing four cpu cores and 2GB of RAM:


<syntaxhighlight>
<syntaxhighlight>
qemu-system-arm -machine virt,highmem=off -bios uboot-qemu_arm_defconfig-2018.03_u-boot.bin -drive if=none,file=sd-image-armv7l-linux.qcow2,id=mydisk -device ich9-ahci,id=ahci -device ide-drive,drive=mydisk,bus=ahci.0 -netdev user,id=net0 -device virtio-net-pci,netdev=net0 -nographic -smp 2 -m 10G
qemu-system-arm -machine virt,highmem=off -bios uboot-qemu_arm_defconfig-2018.03_u-boot.bin -drive if=none,file=sd-image-armv7l-linux.qcow2,id=mydisk -device ich9-ahci,id=ahci -device ide-drive,drive=mydisk,bus=ahci.0 -netdev user,id=net0 -device virtio-net-pci,netdev=net0 -nographic -smp 4 -m 2G


U-Boot 2018.03 (Mar 13 2018 - 12:02:19 +0000)
U-Boot 2018.03 (Mar 13 2018 - 12:02:19 +0000)