If you are using a microsd card to boot, either update the bootloader on
the BBB board (remove the microsd card, boot, sudo git pull, etc) or
press the boot button on every boot.
Chad
On 7/9/2019 4:06 PM, [email protected] wrote:
I am unable to setup a GPIO pin as an input using the Adafruit_BBIO
library. Setting the pin as an output works. Below is a simple
version of what I want to do. I searched several chat groups (this
and the adafruit forum) and the issues list for the Adafruit_BBIO
library for ideas. I tried updating my bootloader (from U-Boot
2018.09-00002-g9d95a561c9 to U-Boot 2019.04-00002-gbb4af0f50f), but
that did not have an impact. I am using a UART port, so the
uboot_overlay is enabled. The image version used is based on the
9/11/18 release. I would prefer not to move to a newer release quite
yet, but do plan to do so in about a month. Is there anything I can
do here to make this work with this current setup? Please let me know
what other information would be useful here.
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import Adafruit_BBIO.GPIO as GPIO
>>> GPIO.setup('P8_11', GPIO.OUT, GPIO.PUD_UP, 0, 100)
>>> GPIO.output('P8_11', 1)
>>> GPIO.input('P8_11')
1
>>> GPIO.cleanup('P8_11')
>>> GPIO.setup('P8_11', GPIO.IN)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Set gpio mode failed, missing file or invalid permissions.
sudo /opt/scripts/tools/version.sh
git:/opt/scripts/:[24f2e3495113a63c2dcc2c0bdc0d7660b54e4e8f]
eeprom:[A335BNLT00C02016BBBK1A0B]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[RIAPS console Ubuntu Image 2019-03-22]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot
2019.04-00002-gbb4af0f50f]:[location: dd MBR]
kernel:[4.14.79-ti-rt-r84]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/BB-UART2-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo]
pkg check: to individually upgrade run: [sudo apt install
--only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.4.20190320.1-0rcnee0~bionic+20190320]
pkg:[bb-wl18xx-firmware]:[1.20190227.1-0rcnee0~bionic+20190227]
pkg:[kmod]:[24-1ubuntu3.2rcnee0~bionic+20190208]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1
root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M
net.ifnames=0 quiet security=apparmor]
dmesg | grep remote
[ 1.849544] remoteproc remoteproc0: wkup_m3 is available
[ 2.096540] remoteproc remoteproc0: powering up wkup_m3
[ 2.096675] remoteproc remoteproc0: Booting fw image
am335x-pm-firmware.elf, size 217168
[ 2.099941] remoteproc remoteproc0: remote processor wkup_m3 is now up
dmesg | grep pru
uname -a
Linux bbb-ff98 4.14.79-ti-rt-r84 #1 SMP PREEMPT RT Tue Nov 13 22:30:45
UTC 2018 armv7l armv7l armv7l GNU/Linux
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google
Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/36ab1b16-cceb-43ac-a49b-701579df7a7c%40googlegroups.com
<https://groups.google.com/d/msgid/beagleboard/36ab1b16-cceb-43ac-a49b-701579df7a7c%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/1136ea56-5fca-120c-4ccb-8bb01766428d%40gmail.com.
For more options, visit https://groups.google.com/d/optout.