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:

  1. find kernel headers(with files built), corresponded kernel, , install them directory, /lib/modules/3.2.0/build points.
  2. or build kernel sources hands. in case reference /lib/modules/<kernel-version>/build point compiled source files automatically.

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -