Hi all,
I was trying to build some kernel modules (misdn) using the a svn checkout of the 8.09 _tag_. I compiled 8.09 for the brcm47xx (2.6) -target using the "select all packages" in the menuconfig. I also could compile the kernel module via a make modules based on the 8.09 tree. Yet insmodding the module would immediately reboot my box (Asus 500W, using a _stock_ (binary) image from ftp). After looking at serial console, doing some debugging, I figured that it is most probably due to a different config of the stock kernel image compared to my build, resulting in a deviation in kernel headers. Some CONFIG_-defines in skbuff.h e.g. would change the sk_buf -struct so that offsets would not match any more when moving buffers between my module to stock modules in the kernel.
Note that the above approach had worked for me for the previous release (7.09). Looking at the all the patches also going into kernel headers and their dependency on kernel config, I start to believe that I just might have been lucky...
I am somewhat shying away from using my full custom build, as I would rather use the stock images in order to e.g. install kernel mods from "official" opkg-repositories and would not need to build everything on my own. I am a little scared that the above would mean that once I start using my own builds, I will have to stick to them (at least for all kernel-related stuff)...
Also, I noticed that my self-compiled .trx image for the brcm47xx would be _exactly_ (coincidence or some point I missed?) 256k smaller than the binary stock images. So I was wondering what mine might be missing... or maybe have built as a module instead statically in the kernel. As mentioned, in make menuconfig, I only set the abovementioned target and selected "Select all packages by default", that was it.
So: is it possible to get an exact configuration of the kernel (headers) of the stock builds? Would the SDK contain those? I was not able to find an SDK for 8.09 on ftp.
Hope I make sense at all,
thanks & regards,
H.
(Last edited by horatio on 23 Apr 2009, 16:47)