linux device tree reverse engineering

232 views
Skip to first unread message

Bhargav Jayswal

unread,
Mar 22, 2022, 7:30:34 AM3/22/22
to inside_linux
Hello sir,

My company does not have documentation of their current project running in the field. I'm trying to reverse engineer the already built system to add new features like enabling CAN and I2C interface in the kernel. I have attached a boot log for your reference and I have a query that  "after disabling the old interface spi0 and spi1 through the device file those interfaces are still available as /dev/spidev1.0 and /dev/spidev1.1  after boot up".

I have also removed all .dtbo overlay files in /lib/firmware. but still i am unable to disable spi interface. Could you please suggest how to debug further and correct the way to go forward to enable CAN interface.


--
Thanks and Regards,
Bhargav Jayswal
am335x-bonegreen.dts
am33xx.dtsi
am335x-bone-common.dtsi
boot.log

Anil Kumar Pugalia

unread,
Mar 23, 2022, 12:24:56 AM3/23/22
to inside...@googlegroups.com

What do you mean by disabling the interface through device file?

You may also look into the .dtb files by converting them into .dts - just to get more insight.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
Bhargav Jayswal wrote on 22/03/22 5:00 pm:
--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/CACHFwTzZOW3C31YhO_XsViw8fVkO%3DWTeb%2BjraJnMJycVAk_73Q%40mail.gmail.com.

Bhargav Jayswal

unread,
Mar 23, 2022, 2:31:12 AM3/23/22
to inside...@googlegroups.com
Hi Anilsir,

I mean that I have disable SPI interface in the device tree file as attached in the mail. Beagle bone has a concept called CAP-manager which might bring up SPI interface even if we disable it in the dts file.So i was just wondering how SPI is getting up and how my LCD is also getting up without pin mapping in device tree.

Best Regards,
Bhargav Jayswal


Anil Kumar Pugalia

unread,
Mar 23, 2022, 2:49:21 AM3/23/22
to inside...@googlegroups.com

May be it is picking up some other dtb file from somewhere else. Not really sure about the CAP-manager stuff.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
Bhargav Jayswal wrote on 23/03/22 12:00 pm:

Bhargav Jayswal

unread,
Mar 23, 2022, 9:46:04 AM3/23/22
to inside...@googlegroups.com

Hello Anil Sir,

I have found out that capmanager is causing an issue, which does not come with the mainline kernel src . It was patched to the mainline kernel externally by some of  x-Employee. Now I am freshly compiling mainline kernel 5.16  without any external pach or packages.

Best Regards,
Bhargav Jayswal



Reply all
Reply to author
Forward
0 new messages