Missing headers for kernel in bzImage loaded on qemu -
i trying compile kernel module of kernel version 3.2.0 on linux kernel bzimage loaded on qemu emulator, getting following error: /lib/modules/3.2.0/build no such file or directory
. tried solutions on net nothing specific related solve kernel image being loaded on qemu. command issue load bzimage on qemu qemu/qemu-system-x86_64 -m 2g -kernel ../linuxkernel/arch/x86/boot/bzimage -hda ../../sid.ext2 -append "root=/dev/sda"
bzimage
contain kernel's image, doesn't contain files needed build modules.
you should:
- find kernel headers(with files built), corresponded kernel, , install them directory,
/lib/modules/3.2.0/build
points. - or build kernel sources hands. in case reference
/lib/modules/<kernel-version>/build
point compiled source files automatically.
Comments
Post a Comment