Closed troywweber7 closed 6 years ago
@troywweber7 this is a recent change, now when U-Boot has taken care of the overlays, the "slots" file is fully disabled.
Take a look at the options available to you in /boot/uEnv.txt via:
https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
Regards,
thanks @RobertCNelson. So does that mean that cape_enable=bone_capemgr.enable_partno=univ-all,BB-ADC,BB-PWM0,BB-PWM1,BB-PWM2
still works as intended? Is that line no longer necessary?
@troywweber7
All 5 of those are enabled out of the box with the images now shipping under:
https://beagleboard.org/latest-images
For the pwm's make sure to reference https://github.com/beagleboard/bb.org-overlays/blob/master/examples/cape-unversal-pwm.txt and the config-pin pwm <pin#>..
If things aren't working on first bootup, run:
sudo /opt/scripts/tools/version.sh
and we will debug it..
Regards,
@RobertCNelson
Well, a program I wrote that uses bonescript that was previously working on the following pins is now producing these error messages:
info: No pinmux for P8_33
info: No pinmux for P8_46
info: No pinmux for P8_36
info: No pinmux for P8_34
info: No pinmux for P8_29
info: No pinmux for P8_27
I'm assuming I need to enable some feature on the pin at boot before the program can start up...
@RobertCNelson The output of sudo /opt/scripts/tools/version.sh
:
git:/opt/scripts/:[89f2e9309c2322c15e2bb6b55afd214313d94842]
eeprom:[A335BNLT00C04417BBBK1CB0]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Image 2018-01-28]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2018.01-00002-g9aa111a004]:[location: dd MBR]
kernel:[4.9.78-ti-r94]
nodejs:[v6.12.3]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg:[bb-cape-overlays]:[4.4.20180126.0-0rcnee0~stretch+20180126]
pkg:[bb-wl18xx-firmware]:[1.20170829-0rcnee2~stretch+20180104]
pkg:[firmware-ti-connectivity]:[20170823-1rcnee0~stretch+20170830]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet]
dmesg | grep pinctrl-single
[ 1.416355] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
dmesg | grep gpio-of-helper
[ 1.423576] gpio-of-helper ocp:cape-universal: ready
END
info: No pinmux for P8_33 -> hdmi
info: No pinmux for P8_46 -> hdmi
info: No pinmux for P8_36 -> hdmi
info: No pinmux for P8_34 -> hdmi
info: No pinmux for P8_29 -> hdmi
info: No pinmux for P8_27 -> hdmi
Open /boot/uEnv.txt add uncomment:
disable_uboot_overlay_video=1
Regards,
@RobertCNelson I was just about to draw that conclusion, thank you! It does seem like this config-pin
utility is a lot simpler to work with. Cheers!
I'm well aware that I'm asking a stupid question, but I'm afraid I'm at the beginning of the learning curve regarding the BBB and there is so much old and outdated information on the BBB it's hard for me to find the correct, and most importantly current, way of enabling certain functionality on boot, or even once running.
My situation is that I would like to enable a device tree overlay that was written by alexanderhaim that enables RTS and CTS on uart2. I think the overlay came with my beaglebone image (BeagleBoard.org Debian Image 2018-01-28) or it's possible I downloaded it but it and many others are already compiled into .dtbo files found in /lib/firmware. I would like to enable BB-UART2-RTSCTS-00A0.dtbo. I've tried to edit the /boot/uEnv.txt file to enable this cape but it doesn't seem to be working. Any help / pointers would be greatly appreciated.
Here is what my uEnv.txt looks like currently. How should it be modified to enable the overlay mentioned above?
Note that I'm enabling cape_universal. Is that overwriting my uart overlay?
`#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0
uname_r=4.9.78-ti-r94
enable_uboot_overlays=1
uboot_overlay_addr4=/lib/firmware/BB-UART2-RTSCTS-00A00.dtbo
disable_uboot_overlay_video=1 disable_uboot_overlay_audio=1
disable_uboot_overlay_adc=1
enable_uboot_cape_universal=1
cmdline=coherent_pool=1M net.ifnames=0 quiet
hi. i have a question. i want to enable uart1 and use uart2 pins(txd & rxd) as gpio. I enable uart1 by overlay BB-UART1-00A0.dtbo , and i can send data successfully but I can't use uart2 pint(txd & rxd) as gpio. if i don't use BB-UART1-00A0.dtbo, uart2 pin works as gpio. when i use BB-UART1-00A0.dtbo, i can't use uart2 pin as gpio . i can't find relationship between BB-UART1-00A0.dtbo and uart2 pin. please help me. thanks
I'm unable to find the capemgr slots file under debian stretch image on the beaglebone black. Usually it is under
/sys/devices/platform/bone_capemgr
but all I see is