Setting up development environment using QEMU.

Aft nix aftnix at gmail.com
Fri Jun 8 08:08:44 EDT 2012


---------- Forwarded message ----------
From: Aft nix <aftnix at gmail.com>
Date: Fri, Jun 8, 2012 at 6:07 PM
Subject: Setting up development environment using QEMU.
To: kernelnewbies at kernelnwebies.org


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I'm trying to set up a development environment for Kernel development.
What have done is follows:

1. setarch linux32 make defconfig.
2.make oldconfig O=/mnt/build/linux
3.make menuconfig O=/mnt/build/linux
4.make.

After that i'm trying to boot the the new kernel in QEMU with GDB stub
as following:

$qemu -s -S /dev/zero -kernel /mnt/build/linux/arch/x86/boot/bzImage

Then i get the tcp port which qemu listens for an incoming gdb client :

$netstat -tap | grep qemu

Then i use gdb /mnt/build/linux/vmlinux to load the image. And set the
target to the remote port.

But when i get a connection, Qemu Starts to boot. But it complains
that the kernel needs a 64 bit Cpu.

But as i have configured it to be x86 it should not be the case.

Where i'm doing something wrong?

Cheers

- --
- -aft

-----BEGIN PGP SIGNATURE-----
Version: OpenPGP.js v0.1
Comment: http://openpgpjs.org

wsBcBAEBAgAQBQJP0ernCRCJVJ6A/SK8awAAKFIH/islnSkDpngVvblI8saV
g5eBZC1rwtaHTgdpNEi6PmlwdIid8jXerKASpeW3KGtW0KGjIR0KBnFbpbW5
O2A/XJUdmwakx6hFxs2eqGUOysCCCY/c6wyEWmnsLeThkS0KId2sQR7jf4HH
9Paa3Qzl6c1cXM96P+VZeDPcY08iQaBbFkqIZtW5RxTA8dmyUoHAzAepjpTS
TeI/Lypsd4G4vpbYJ3ecNfiei0zowc0DRcaPmCY7goNVxU7M7rsVUchasQOo
IQ+Djc9CRMVWxXc040mQroZMOzvdoG4zgeNRrbYQVWkcxHPXaOPNsUXy2OBV
wPql8fe5CMI3FgvcRusTsBI=
=5ORx
-----END PGP SIGNATURE-----


-- 
-aft



More information about the Kernelnewbies mailing list