how to identify what files would be compiled

39 views
Skip to first unread message

Shyam D

unread,
Apr 8, 2015, 12:39:54 AM4/8/15
to beagl...@googlegroups.com
I want to understand the GPIO framework of the linux, so i want to have a look at the source, but not sure what files would be compiled in the gpio folder looking at source , i know i can find it if i compile and see the obj folder i may find ,

 please let me know , if there is any file which would convey what files of a module lets say GPIO or SPI or any peripheral will be compiled

Brandon Stafford

unread,
Apr 8, 2015, 3:09:07 PM4/8/15
to beagl...@googlegroups.com
After that, try reading up on sysfs, which is the system that allows access to GPIO and SPI in Linux.

Brandon

On Wed, Apr 8, 2015 at 12:39 AM, Shyam D <shyam.s...@gmail.com> wrote:
I want to understand the GPIO framework of the linux, so i want to have a look at the source, but not sure what files would be compiled in the gpio folder looking at source , i know i can find it if i compile and see the obj folder i may find ,

 please let me know , if there is any file which would convey what files of a module lets say GPIO or SPI or any peripheral will be compiled

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Brandon Stafford
Rascal Micro: small computers for art and science
Somerville, MA, USA

Shyam D

unread,
Apr 8, 2015, 9:16:28 PM4/8/15
to beagl...@googlegroups.com
i want to read the kernel files, any way thanks for  good reference

You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/0qzzt4G9ooo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
-----Regards & Thanks
Shyam Sunder Daram
Mobile:- +91 95-6082-143-8
View My Profile @ LinkedIn @ Indeed

Robert Nelson

unread,
Apr 8, 2015, 9:19:56 PM4/8/15
to Beagle Board
On Wed, Apr 8, 2015 at 8:16 PM, Shyam D <shyam.s...@gmail.com> wrote:
> i want to read the kernel files, any way thanks for good reference

http://lxr.free-electrons.com/

Regards,

--
Robert Nelson
https://rcn-ee.com/

Shyam D

unread,
Apr 8, 2015, 9:56:55 PM4/8/15
to beagl...@googlegroups.com
sorry to repeat, my question is
what files are been compiled out of big kernel tree, so if i want to read a GPIO module of beagleboneblack , what files  in the gpio source folder are compiled so that i can read only those files which are of concern can be  understood, i think you got my question

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/0qzzt4G9ooo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shyam D

unread,
Apr 8, 2015, 10:18:01 PM4/8/15
to beagl...@googlegroups.com
after download and compile of linux kernel for beaglebone black i found these files are been picked and compiled

built-in.o  gpiolib.o     gpio-of-helper.o  gpio-pcf857x.o
devres.o    gpiolib-of.o  gpio-omap.o       gpio-twl4030.o

but any way which of these are actually been used for beaglebone black, because i see pcf857 as gpio expander (is that present on bbb?), gpiolib for optional use, any way 'open firmware' files i have to look at them, left is omap based file is that the main file to be looked at ?

sravan

unread,
Apr 9, 2015, 3:39:28 PM4/9/15
to beagl...@googlegroups.com
Shyam, the beaglebone has am335x Sitara processor, which used to be in the family of omap3 processors by ti before they rebranded it. So the relevant file that implements gpio at the lower levels is gpio-omap.c, gpiolib.c is what calls into it. 
If you want to see how it gets called into, you could print a stack dump to syslog by calling dump_stack() in, for example, _set_gpio_dataout_reg in gpio-omap.c. 
Reply all
Reply to author
Forward
0 new messages