Question about kernel compilation
Hi,
I have one more question as follows: When i do "make menuconfig" and i configure the some driver as "M" during kernel compilation i am getting like this in one of the line (output during make) LD drivers/usb/gadget/built-in.o I was not getting .ko files. Now the thing is when i loaded the kernel image on to board, How do i load this driver as i configured the driver as "M" during kernel config. why .ko files are not there? regards, dinky |
After make, run:
make modules_install |
Hi, I saw your post's and thought I may be able to shed some light on the subject.
After you configure and save the 2.6.xx.x (.config file) kernel with make menuconfig or make xconfig the next steps are required to get the newly configured kernel installed. make all (replaces all in red below....) make clean make bzImage Code:
/usr/src/kernel-rt-2.6.29.5-1.rt22.1mdv/arch/x86/boot/bzImage make modules_install make install if all went well, reboot to new kernel. I generally append the commands with &&, this way it will run the next command only if the last was successful. ;; may also be used to append commands, but with no checks. NOT SAFE in this instance Like this.... Code:
make all && make modules_install && make install && shutdown -r now regards Glenn |
It would also help if you'd add your distro to your options, or wherever it is, like the others users have. The reason is that there is at least Debian and its derivatives that do things a bit differently. I've posted Debian related instructions several times only to find out that the OP needed to use the instructions as posted above.
|
It might help to consider just what these various "make" commands need to ultimately do. In other words, "exactly what do I need to somehow accomplish, in order to build an operating-system kernel that works?"
|
Hi, sundialsvcs makes some good points.
But inparticular.... Quote:
Apart from lsmod, what other tools/apps do you use to configure a small kernel? tia Glenn |
All times are GMT -5. The time now is 06:15 AM. |