NixOS on ARM/QEMU: Difference between revisions

imported>Flokli
m update smp parameter
imported>Samueldr
m Removes square braces around the link
Line 4: Line 4:
NixOS on ARM through QEMU is possible, by using qemu-system-arm on QEMU's 'virt' machine, and the u-boot image for qemu.
NixOS on ARM through QEMU is possible, by using qemu-system-arm on QEMU's 'virt' machine, and the u-boot image for qemu.


{{note| [[https://lists.denx.de/pipermail/u-boot/2017-October/308693.html u-boot currently requires highmem=off for PCI to work]], so you won't be able to use more than 2GB of RAM .}}
{{note| [https://lists.denx.de/pipermail/u-boot/2017-October/308693.html u-boot currently requires highmem=off for PCI to work], so you won't be able to use more than 2GB of RAM.}}


== Board-specific installation notes ==
== Board-specific installation notes ==


=== Required images ===
=== Required images ===
First get some recent sd-image-armv7l-linux.img and uboot-qemu_arm_defconfig-*_u-boot.bin as described [[NixOS_on_ARM|here]].
First get some recent <tt>sd-image-armv7l-linux.img</tt> and <tt>uboot-qemu_arm_defconfig-*_u-boot.bin</tt> as described [[NixOS_on_ARM|the main NixOS on ARM page]].


=== Creating qcow image ===
=== Creating qcow image ===
Line 23: Line 23:


<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 4 -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 2 -m 10G


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