I tried using make defconfig to compile the kernel, but as expected, it failed to boot. I was wondering what .config file do kernel vendors like Canonical for Ubuntu use, that the kernel is able to boot right out-of-the-box. Of course, I am still a beginner and configuring the various parameters, is a little out of my league currently.
Specifically,I am looking to load a basic “hello, world!” module to my running kernel 2.6.32.41. For that, I would need to compile kernels source against the same .config file that was used for the running kernel.
I don’t know about getting the one that’s “correct for your hardware”, but you can use the config that Ubuntu gives you by looking in
/boot/for a file starting with the nameconfig. There may be more than one, in which case use the commanduname -rto tell which kernel you’re currently running, and then you can use the appropriate config.