Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P9_15 ADC_CS_PIN is not claimed #221

Closed
giuliomoro opened this issue Dec 20, 2016 · 1 comment
Closed

P9_15 ADC_CS_PIN is not claimed #221

giuliomoro opened this issue Dec 20, 2016 · 1 comment
Labels
Milestone

Comments

@giuliomoro
Copy link
Contributor

giuliomoro commented Dec 20, 2016

So that on some revisions of the BBB it is by default set to the wrong pinmux.

See, e.g.: here

As a hotfix, try this device-tree overlay, generated with bonescript :
P9_15.zip

Follow these instructions to test the hotfix:

  • unzip the archive
  • copy the dtbo file to the board: scp bspm_P9_15_27-00A0.dtbo root@192.168.7.2:/lib/firmware
  • on the beaglebone run echo bspm_P9_15_27 > /sys/devices/bone_capemgr.?/slots to load the overlay
  • make sure the above does not cause errors, also run dmesg to make sure no error was generated
  • if the above fixes it, then add the following lines after line 14 of /etc/init.d/bela so that the fix is loaded at startup
echo "Adding P9_15_27 Cape Overlay..."
echo bspm_P9_15_27 > /sys/devices/bone_capemgr.9/slots
echo 48 > /sys/class/gpio/export

EDIT: replaced bone_capemgr.? with bone_capemgr.9 because the script is executed by sh which does not expand the ?

@giuliomoro
Copy link
Contributor Author

Confirmed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant