LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices



Reply
 
Search this Thread
Old 01-02-2014, 02:13 AM   #1
embLinux
Member
 
Registered: Dec 2013
Distribution: Mint
Posts: 54

Rep: Reputation: Disabled
How to show the installed drivers in embedded Linux


Hi everyone,

i've got a quick question. When you've got an already running embedded device, somebody else developped and you want to improve it, how can you know which utilities (e.g. drivers) are installed/used?

I'm using buildroot to generate my linux, so is there only this way to get the drivers by loading the .config file ? And if so, can I be sure all the drivers are gonna be installed with "make" ? (Because sometimes there's a bug, I load a .config file and it doesn't change a thing, even if it has to. So in this case i actually need some kind of a list to check these drivers. Unfortunately I couldn't find some hints in the net).

Thanks for your support.
Greets
 
Old 01-23-2014, 08:07 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,378
Blog Entries: 52

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If you have the .config file, this is a good start; any modules marked 'y' will be installed (assuming the build is successful). If it is running dynamic module support (and many embedded environments don't), then /lib/modules will have all of the potential loadable drivers.

On a running system, the sysfs (mounted at '/sys') will give you a good idea which drivers are actually in use, since most expose an interface. There is documentation for many of these interfaces. Dynamic modules are listed in /proc/modules and by lsmod, but this is more useful on a desktop system (where most modules are dynamic) than an embedded one.
 
1 members found this post helpful.
Old 01-24-2014, 01:59 AM   #3
embLinux
Member
 
Registered: Dec 2013
Distribution: Mint
Posts: 54

Original Poster
Rep: Reputation: Disabled
so there's not a directory where all the installed drivers are, that i can ls into?
 
Old 01-24-2014, 02:51 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,378
Blog Entries: 52

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by embLinux View Post
so there's not a directory where all the installed drivers are, that i can ls into?
Correct; the kernel and at least some of the drivers are compiled together into a single file. On an embedded system, it will be likely to contain all of the drivers required for the particular hardware platform.
 
1 members found this post helpful.
Old 01-24-2014, 02:56 AM   #5
embLinux
Member
 
Registered: Dec 2013
Distribution: Mint
Posts: 54

Original Poster
Rep: Reputation: Disabled
thank you for your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: European embedded Linux show seeks presentation ideas LXer Syndicated Linux News 0 05-04-2010 06:10 AM
My embedded photo doesn't show up in Firefox rocksniffer Linux - Software 11 04-23-2006 09:27 AM
Embedded Linux drivers for PCMCIA interface GhattaRamaswamy Linux - Software 0 07-10-2003 05:27 AM


All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration