domande sul funzionamento del kernel linux: 1) file System.map 2) bzImage 3) compilare modulo ------------------------------------------------------- 1) differenze tra i valori: a) nm /lib/modules/$(uname -r)/build/vmlinux b) /proc/kallsyms ( sembra essere incluso ) c) /boot/System.map link: http://stackoverflow.com/questions/28936630/system-map-file-and-proc-kallsyms http://stackoverflow.com/questions/20196636/does-kallsyms-have-all-the-symbol-of-kernel-functions https://it.wikipedia.org/wiki/System.map https://en.wikipedia.org/wiki/Debug_symbol ------------------------------------------------------- 2) costruzione di bzImage bzImage = bootsect.o + setup.o + misc.o + piggy.o ( vmlinux ---> strip di simboli, commenti e note + gzip ) link: https://en.wikipedia.org/wiki/Vmlinux http://lxr.free-electrons.com/source/arch/x86/boot/Makefile http://lxr.free-electrons.com/source/arch/x86/boot/compressed/Makefile -------------------------------------------------------- 3) c'e' un modo per compilare soltanto un modulo (incluso nei sorgenti del kernel)? es. per compilare: CONFIG_RTL8723BE
link: http://askubuntu.com/questions/168279/how-do-i-build-a-single-in-tree-kernel-module http://askubuntu.com/questions/515407/how-recipe-to-build-only-one-kernel-module -------------------------------------------------------- |