loadrt hal_bb_gpio output_pins=816,818,819 input_pins=807,808,809,810,817
I think the hal_bb_gpio is copying the configuration file to a directory the pru driver is not able to do alone, as consequence of how I have the configuration.
I attached my .hal .ini .bbio, and setup.h (until now, I have been working over the CRAMPS files).
What are your thoughts?
Thanks in advance
Sergio Salinas
~$ ls machinekit/configs/ARM.BeagleBone.CRAMPS/
3D.postgui.hal autosave.halscope CRAMPS.bbio CRAMPS.ini pru-stepper.var README setup.sh ShuttleXpress.postgui.hal
3D.Temps.panel.xml CRAMPS2.hal CRAMPS.hal CRAMPS.ShuttleXpress.ini pru-stepper.var.bak setup2.sh ShuttleXpress.glade tool.tbl# Launch the setup script to make sure hardware setup looks good
#loadusr -w /home/machinekit/machinekit/configs/ARM.BeagleBone.CRAMPS/setup.sh
loadusr -w ./setup.sh
loadusr -w config-pin -f ./CRAMPS.bbio#!/bin/dash
# Some important directories for use later
OCPDIR=/sys/devices/platform/ocp/ocp*
GPIODIR=/sys/class/gpio
#SLOTS=/sys/devices/bone_capemgr.*/slots
SLOTS=/lib/firmware
machinekit@beaglebone:~$ sudo /opt/scripts/tools/version.sh
git:/opt/scripts/:[9599f8c47e18db5cdd36ee11355593ecdfe50979]
eeprom:[A335BNLTEIA05116BBBK3FEC]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[Machinekit Debian Image 2019-10-01]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2019.04-00002-gf15b99f0b6]:[location: dd MBR]
kernel:[4.19.72-bone-rt-r39]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.4.20190922.0-0rcnee0~stretch+20190922]
pkg:[bb-wl18xx-firmware]:[1.20190227.1-0rcnee0~stretch+20190227]
pkg:[kmod]:[23-2rcnee1~stretch+20171005]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20180825+dfsg-1rcnee1~stretch+20181217]
groups:[machinekit : machinekit adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetooth netdev gpio pwm eqep remoteproc admin spi tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet]
dmesg | grep remote
[ 1.138401] remoteproc remoteproc0: wkup_m3 is available
[ 1.380413] remoteproc remoteproc0: powering up wkup_m3
[ 1.380435] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[ 1.382520] remoteproc remoteproc0: remote processor wkup_m3 is now up
dmesg | grep pru
dmesg | grep pinctrl-single
[ 0.760692] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[ 0.771665] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ENDexample:
$ /usr/bin/config-pin -q P9.23
P9_23 Mode: default Direction: in Value: 0
$ /usr/bin/config-pin P9.23 out
$ /usr/bin/config-pin -q P9.23
P9_23 Mode: gpio Direction: out Value: 0
or
$ /usr/bin/config-pin -q P8.11
P8_11 Mode: default Direction: in Value: 0
$ /usr/bin/config-pin P8.11 qep
$ /usr/bin/config-pin -q P8.11
P8_11 Mode: qep