cdsteinkuehler / beaglebone-universal-io

Device tree overlay and support scripts for using most available hardware I/O on the BeagleBone without editing dts files or rebuilding the kernel
GNU General Public License v2.0
127 stars 54 forks source link

Could not find symbol 'gpio4' #43

Open Biffco opened 7 years ago

Biffco commented 7 years ago

kernel version - uname -r: 4.1.33-bone24-00149-gea9e337

command: # echo cape-universaln > /sys/devices/platform/bone_capemgr/slots result: [ 2742.848488] bone_capemgr bone_capemgr: part_number 'cape-universaln', version 'N/A' [ 2742.856294] bone_capemgr bone_capemgr: slot #7: override [ 2742.861745] bone_capemgr bone_capemgr: Using override eeprom data at slot 7 [ 2742.868819] bone_capemgr bone_capemgr: slot #7: 'Override Board Name,00A0,Override Manuf,cape-universaln' [ 2742.928609] of_resolve_phandles: Could not find symbol 'gpio4' [ 2742.934584] bone_capemgr bone_capemgr: slot #7: Failed to resolve tree bash: echo: write error: Invalid argument

command: # cat /sys/devices/platform/bone_capemgr/slots result: 0: PF---- -1 1: PF---- -1 2: PF---- -1 3: PF---- -1 4: P-O-L- 0 Override Board Name,00A0,Override Manuf,cape-univ-hdmi

It also happens if the univ-hdmi cape is not installed. What am doing wrong? Thanks, in advance...

ChrisB

cdsteinkuehler commented 7 years ago

On 9/29/2016 2:47 PM, ChrisB wrote:

kernel version - uname -r: 4.1.33-bone24-00149-gea9e337

Use the version of the universal cape that comes with RCN's kernel builds (compiled into the kernel). The numbering for various devices (GPIO, serial ports, etc) has changed between kernel verisons. Robert tracks this and keeps the capes updated for the different kernel flavors.

Charles Steinkuehler charles@steinkuehler.net

Biffco commented 7 years ago

Ahhh. Ok.Thanks.cdsteinkuehler notifications@github.com wrote:On 9/29/2016 2:47 PM, ChrisB wrote:

kernel version - uname -r: 4.1.33-bone24-00149-gea9e337

Use the version of the universal cape that comes with RCN's kernel builds (compiled into the kernel). The numbering for various devices (GPIO, serial ports, etc) has changed between kernel verisons. Robert tracks this and keeps the capes updated for the different kernel flavors.

Charles Steinkuehler charles@steinkuehler.net

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/cdsteinkuehler/beaglebone-universal-io","title":"cdsteinkuehler/beaglebone-universal-io","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/cdsteinkuehler/beaglebone-universal-io"}},"updates":{"snippets":[{"icon":"PERSON","message":"@cdsteinkuehler in #43: On 9/29/2016 2:47 PM, ChrisB wrote:\n\u003e kernel version - uname -r: 4.1.33-bone24-00149-gea9e337\n\nUse the version of the universal cape that comes with RCN's kernel\nbuilds (compiled into the kernel). The numbering for various devices\n(GPIO, serial ports, etc) has changed between kernel verisons. Robert\ntracks this and keeps the capes updated for the different kernel flavors.\n\n-- \nCharles Steinkuehler\ncharles@steinkuehler.net\n"}],"action":{"name":"View Issue","url":"https://github.com/cdsteinkuehler/beaglebone-universal-io/issues/43#issuecomment-250591246"}}}

bolandrm commented 7 years ago

I'm running into the same issue. I've followed the steps in this readme, but i'm still not having any luck: https://github.com/beagleboard/bb.org-overlays

Would you be able to explain in a bit more detail what I need to do?

# config-pin -a P8.39 pruout
P8_39 pinmux file not found!
P8_39 overlay not found
Loading cape-universala overlay
bash: line 0: echo: write error: Invalid argument
Error loading device tree overlay file: cape-universala
# uname -r
4.4.22-ti-r48
[  294.001467] eqep: probe of 48304180.eqep failed with error -2
[  371.690863] bone_capemgr bone_capemgr: part_number 'cape-universala', version 'N/A'
[  371.690901] bone_capemgr bone_capemgr: slot #7: override
[  371.690919] bone_capemgr bone_capemgr: Using override eeprom data at slot 7
[  371.690938] bone_capemgr bone_capemgr: slot #7: 'Override Board Name,00A0,Override Manuf,cape-universala'
[  371.763556] of_resolve_phandles: Could not find symbol 'gpio4'
[  371.769498] bone_capemgr bone_capemgr: slot #7: Failed to resolve tree
bolandrm commented 7 years ago

Nevermind, i was a bit confused about what was going on.

It looks like https://github.com/beagleboard/bb.org-overlays doesn't containe cape-universalh, so i used a combination of cape-universal and cape-univ-hdmi.

Biffco commented 7 years ago

Config-pin attempts to load cape-universala but fails on the "Could not find symbol 'gpio4'" error. The dts source file shows that the gpio(n+1) offset is present in the "a" file but not in the "n" file. Manually installing the cape-universaln file works, but config-pin doesn't accept the "n" file and tries to install the "a" which produces the error.

I need to use config-pin for my development; any suggestions?

cdsteinkuehler commented 7 years ago

On 9/30/2016 3:33 PM, ChrisB wrote:

Config-pin attempts to load cape-universala but fails on the "Could not find symbol 'gpio4'" error. The dts source file shows that the gpio(n+1) offset is present in the "a" file but not in the "n" file. Manually installing the cape-universaln file works, but config-pin doesn't accept the "n" file and tries to install the "a" which produces the error.

I need to use config-pin for my development; any suggestions?

Get a consistent set of device tree overlay files.

The files in this repository are consistent and all match the 3.8.13 kernel device tree numbering scheme. If you continue to have problems with the 4.x kernel, ask for help on the BeagleBoard Google Group or open an issue with the proper repository for the 4.x kernel overlays:

https://github.com/beagleboard/bb.org-overlays

Charles Steinkuehler charles@steinkuehler.net