On Wed, Mar 30, 2011 at 9:37 AM, Carl Thorn <[email protected]> wrote:
>
>
> ________________________________
> From: Kuangyu Jing <[email protected]>
> To: [email protected]
> Sent: Wed, March 30, 2011 7:10:27 AM
> Subject: Kernel config, how to find which kernel driver I need?
>
> Hi,
>
> I'm trying to build kernel without module support. But I don't
> know how to find drivers I need.
>
> i did,
> * lsmod in another distribution (debian lenny) to find loaded modules
> * lspci to find devices connect to my PC
>
> But Device Drivers (kernel menuconfig) has a lot of drivers I don't
> know such as I2C support, something in Serial ATA and Parallel ATA
> drivers, etc.
>
> So, how can I find which kernel driver I need?
>
> Thanks,
> Kuangyu Jing
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
> You might try lshw to get more hardware info.
>
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
>

I think I found through experimenting that you can get a list by entering:

make mrproper || make clean
# output a list of modules that are loaded with current kernel
make localyesconfig 2> loaded.config
# get rid of the all yes config file
make mrproper || make clean

I am not sure if it is a complete list or not.  Any feedback?

-- 
Thank you,
-Brian
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to