Qemu won't boot i386 kernel or amd64 kernel directly

Reinoud Zandijk <[email protected]>
Newsgroups gmane.os.netbsd.ports.x86-64,gmane.os.netbsd.ports.i386
Message-ID <[email protected]>
Dear folks,

I'm trying to run a NetBSD-current kernel using qemu using the 'qemu -kernel'
option. The host is an 86_64 machine.

When trying out an NetBSD-current/x86_64 kernel (amd64) qemu won't load the
kernel and complains about

qemu-system-x86_64: Error loading uncompressed kernel without PVH ELF Note

I'm curious as how if possible these notes can be added and what they ought to
be! The only reference i found so far are Xen 4.x PVH ELF notes. Is it
possible? Would reverse-engineering Qemu on this help?

When trying out an NetBSD-current/i386 kernel, qemu acceps the kernel since
the i386 kernel supports multiboot. The kernel starts fine but the CPU
detection fails and it panics.

I've tried running 

qemu-system-x86_64 -m 2048 -cdrom boot-com.iso -drive file=dummy.fs,format=raw
-net nic -net tap,ifname=tap0,script=no -kernel
/usr/sources/cvs.netbsd.org/src-clean/obj/sys/arch/i386/compile/GENERIC/netbsd
-serial stdio -cpu pentium -display curses

but also

qemu-system-i386 -m 2048 -cdrom boot-com.iso -drive file=dummy.fs,format=raw
-net nic -net tap,ifname=tap0,script=no -kernel
/usr/sources/cvs.netbsd.org/src-clean/obj/sys/arch/i386/compile/GENERIC/netbsd
-serial stdio -cpu pentium -display curses

It doesn't matter what CPU I specify in either -86_64 or -i386 or if I obmit
it even; its completely ignored and the output is always:

[   1.0000030] ACPI: 1 ACPI AML tables successfully acquired and loaded
[   1.0000030] ioapic0 at mainbus0 apid 0
[   1.0000030] cpu0 at mainbus0 apid 0
[   1.0000030] cpu0: Intel 386-class
[   1.0000030] cpu0: node 0, package 0, core 0, smt 0
[   1.0000030] panic: NetBSD requires an 80486DX or later processor

[   1.0000030] The operating system has halted.
[   1.0000030] Please press any key to reboot.

Any thoughts or hints on this?

Thanks in advance,
Reinoud
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEELRHWktq6GkG74/X0gpw3AEPIqmgFAl+u59kACgkQgpw3AEPI
qmhywwf/UKYWnU1hfrvQ+kQVPa6wxclykQ/7cTsGMA6gm8pE8e9A1xkVZQZg/s6f
jGlIyzo5V0d6OFe3b7q/fZD3DCTnUidZ6oS09ulb6Odjmk/fdOTxE/DRKLa9lXV4
/Ws+o+k2Rj0kt/9t7q42o7zpQESQiibK0Zgv2GGPx+fapOyzo9WDzAwl1srt7JHD
pBpQ0TilQLJ3Up8KsBbK7jyvp8QjII2tMPuLh2BV706XXMAeKANviL03mhZudOGC
Dapmu3WdPsfvYam3dYN4ldqZpoxVtDzEFw/8+sh87GAYiLRrpbK4kU5FPJRxvyST
F8prbOwmzjBjyCNnu5+pmZe8++scww==
=/AJS
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.