Any chance to boot nvidia kernel under qemu-system-aarch64?

I want to test our jetson tx2 firmware under qemu, validate initrd, systemd, etc. So I need to test plain vanilla linux, not hardware specific issues.

Is there any chance to boot nvidia linux kernel under qemu-system-aarch64?

I’ve spent dozen of days to do it and could boot kernel when I’ve took original qemu dtb:

qemu-system-aarch64 -nographic -machine virt,dumpdtb=virt.dtb -cpu cortex-a57

then I’ve edited this virt.dtb

dtc -I dtb -O dts -o virt.dts virt.dtb

change

    memory@40000000 {
            reg = <0x0 0x40000000 0x0 0x8000000>;
            device_type = "memory";
    };

to

memory {
	reg = <0x0 0x40000000 0x2 0x0>;
	device_type = "memory";
};

dtc -I dts -O dtb -o virt2.dtb virt.dts

and then

qemu-system-aarch64 -machine virt,highmem=off -cpu cortex-a57 -m 8G -nographic -s -dtb virt2.dtb -bios u-boot

Nothing happens =(

Are there any hints how to boot nvidia kernel in qemu just to verify that initrd is working correctly?

Hi,

What we have tried is using qemu-aarch64-static to chroot to the linux_for_tegra rootfs but not actually “boot”.

I will let other users to share their experience.