RobertCNelson / boot-scripts

Just a bunch of useful scripts placed under /opt/scripts/
124 stars 131 forks source link

Update show-pins for 4.19 kernel #102

Open bRitch022 opened 4 years ago

bRitch022 commented 4 years ago

After updating to the 4.19.59-ti-rt-r25 kernel, the show-pins utility would not work anymore. Here are the errors:

debian@beaglebone:/usr/local/sbin$ show-pins Can't open /sys/kernel/debug/pinctrl/44e10800.pinmux/pinmux-pins: No such file or directory at /usr/local/sbin/show-pins line 54. and Can't open /sys/kernel/debug/pinctrl/44e10800.pinmux/pinmux-pins: No such file or directory at /usr/local/sbin/show-pins line 110.

I found that at both of these lines, the script needed to be appended from accessing /44e10800.pinmux/ directory to: /44e10800.pinmux-pinctrl-single/ as it is different in the updated kernel.

I also found this error and did not attempt to resolve it. I instead used the original show-pins repository @ https://github.com/mvduin/bbb-pin-utils/ Can't locate Inline/Files.pm in @INC (you may need to install the Inline::Files module) (@INC cb/arm-linux-gnueabihf/perl5/5.24 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.24 /usr/sw-pins line 11. BEGIN failed--compilation aborted at /usr/local/sbin/show-pins line 11.