device tree overlay - gpio

Moderators: lily.li, violet, salmanfarisvp, seth.welday

Post Reply
rtursen
Pre-kindergarten
Pre-kindergarten
Posts: 12
Joined: Mon Oct 27, 2014 3:01 pm

device tree overlay - gpio

Post by rtursen » Sun May 08, 2016 12:47 am

Hello,

Just got my brand new Beaglebone green. I wanted to export one of the GPIOs via the device tree overlays. I have followed the tutorial from

http://kilobaser.com/blog/2014-07-28-be ... r#1gpiodto and got below error

Code: Select all

 root@beaglebone:/lib/firmware# echo bspm_P8_13_f > /sys/devices/bone_capemgr.?/slots
-bash: echo: write error: Invalid argument

Code: Select all

 [ 5927.336871] bone-capemgr bone_capemgr.9: part_number 'bspm_P8_13_f', version 'N/A'
[ 5927.337050] bone-capemgr bone_capemgr.9: slot #11: generic override
[ 5927.337095] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 11
[ 5927.337143] bone-capemgr bone_capemgr.9: slot #11: 'Override Board Name,00A0,Override Manuf,bspm_P8_13_f'
[ 5927.337393] bone-capemgr bone_capemgr.9: slot #11: Requesting part number/version based 'bspm_P8_13_f-00A0.dtbo
[ 5927.337442] bone-capemgr bone_capemgr.9: slot #11: Requesting firmware 'bspm_P8_13_f-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
[ 5927.341045] bone-capemgr bone_capemgr.9: slot #11: dtbo 'bspm_P8_13_f-00A0.dtbo' loaded; converting to live tree
[ 5927.341421] bone-capemgr bone_capemgr.9: slot #11: Incompatible with baseboard for 'bspm_P8_13_f'
[ 5927.350944] bone-capemgr bone_capemgr.9: slot #11: Failed verification

 
I then tried to load an existing dtbo file, PyBBIO-gpio1_13-00A0.dtbo and again got an error

Code: Select all

[ 3404.116922] bone-capemgr bone_capemgr.9: part_number 'PyBBIO-gpio1_13-00A0.dtbo', version 'N/A'
[ 3404.117102] bone-capemgr bone_capemgr.9: slot #8: generic override
[ 3404.117147] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 8
[ 3404.117195] bone-capemgr bone_capemgr.9: slot #8: 'Override Board Name,00A0,Override Manuf,PyBBIO-gpio1_13-'
[ 3404.117457] bone-capemgr bone_capemgr.9: slot #8: Requesting part number/version based 'PyBBIO-gpio1_13--00A0.dtbo
[ 3404.117507] bone-capemgr bone_capemgr.9: slot #8: Requesting firmware 'PyBBIO-gpio1_13--00A0.dtbo' for board-name 'Override Board Name', version '00A0'
[ 3404.153777] bone-capemgr bone_capemgr.9: failed to load firmware 'PyBBIO-gpio1_13--00A0.dtbo'

can you please tell me what I am doing wrong

kavi
Staff
Staff
Posts: 305
Joined: Tue Dec 09, 2014 12:06 pm

Re: device tree overlay - gpio

Post by kavi » Mon May 09, 2016 2:48 pm

Hello,

Copy the echo bspm_P8_13_f > /sys/devices/bone_capemgr.?/slots to rc.local file

and use the following commands

root@beaglebone:/# cd /etc
root@beaglebone:/etc# nano rc.local

hope this would resolve your issue.

Thanks and Regards

rtursen
Pre-kindergarten
Pre-kindergarten
Posts: 12
Joined: Mon Oct 27, 2014 3:01 pm

Re: device tree overlay - gpio

Post by rtursen » Fri May 13, 2016 3:21 pm

hello,

thanks for the answer. The problem seems to exist.


I did one more thing, can you please check it too

After I disabled the uart2 cape by commenting it in /boot/uEnv.txt, I was able to load universal cape without problems.

echo cape-universaln > /sys/devices/bone_capemgr.9/slot

then I wanted to have beaglebone to automatically load it at boot time so I modified /boot/uEnv.txt adding the below line

capemgr.enable_partno=cape-universaln

After this, beaglebone green stopped booting. I can't ssh into it and D2 led blinks twice per second.

I think I bricked it up. I will reflash it with an image from https://beagleboard.org/latest-images

Can you please tell me what I did wrong

Post Reply