[HOWTO] Compile modules for stock kernels
I couldn't figure out how to compile a module for stock kernel - I kept getting the following in dmesg:
<module>: disagrees about version of symbol module_layout
I sent a message to Samsung Open Source Release Center on Friday and received a very helpful response yesterday. Basically, c1_rev02_defconfig contains some debug options that are not set in the actual kernel. These are the options that should not be set in the config:
You can use the attached script to modify all these values (the script was also supplied by Samsung, although it was syntactically incorrect and a couple of modifications were necessary to make it work). I have included a copy of the c1_rev02_defconfig with these modifications.
Using this config, I was finally able to compile modules that can actually be loaded on the device
Kudos to Samsung for sending me this information.
Devices: Motorola Xoom | Point Of View Mobii Tegra 3G Tablet (P10AN01 / Advent Vega clone) | Samsung Galaxy S GT-I9000 | Samsung Galaxy S II GT-I9100 | Google Galaxy Nexus