Problem with PINMUX - WARNING: missing PINMUX driver

Hi,

I’m trying to utilize IMU and seems there are deep dark magic issues. Can anyone help please ? I have updated/upgraded cape there is 0.3.4 version.

debian@beaglebone:~$ sudo rc_test_dmp -s 50 -m -g -t -a
can’t open: /sys/devices/platform/ocp/ocp:P9_22_pinmux/state
Pinmux: No such file or directory
can’t open: /sys/devices/platform/ocp/ocp:P9_21_pinmux/state
Pinmux: No such file or directory
can’t open: /sys/devices/platform/ocp/ocp:P9_26_pinmux/state
Pinmux: No such file or directory
can’t open: /sys/devices/platform/ocp/ocp:P9_24_pinmux/state
Pinmux: No such file or directory
WARNING: missing PINMUX driver
You probbaly just need a newer kernel
ERROR: pru-rproc driver missing
WARNING: no gyro calibration data found
Please run rc_calibrate_gyro

FusedTaitBryan(deg) | Accel XYZ (g) | Gyro XYZ (deg/s) |
7.0 -15.5 nan | 2.88 1.28 9.64 | -0.7 0.7 -0.6 |

Regards,
Konrad

After upgrading kernel with update_kernel script

I have got more issues:

can’t open: /sys/devices/platform/ocp/ocp:H18_pinmux/state
Pinmux: No such file or directory
can’t open: /sys/devices/platform/ocp/ocp:C18_pinmux/state
Pinmux: No such file or directory
can’t open: /sys/devices/platform/ocp/ocp:P9_22_pinmux/state
Pinmux: No such file or directory
can’t open: /sys/devices/platform/ocp/ocp:P9_21_pinmux/state
Pinmux: No such file or directory
can’t open: /sys/devices/platform/ocp/ocp:P9_26_pinmux/state
Pinmux: No such file or directory
can’t open: /sys/devices/platform/ocp/ocp:P9_24_pinmux/state
Pinmux: No such file or directory
can’t open: /sys/devices/platform/ocp/ocp:P9_30_pinmux/state
Pinmux: No such file or directory
can’t open: /sys/devices/platform/ocp/ocp:P9_29_pinmux/state
Pinmux: No such file or directory
can’t open: /sys/devices/platform/ocp/ocp:P9_31_pinmux/state
Pinmux: No such file or directory
WARNING: missing PINMUX driver
You probbaly just need a newer kernel
ERROR: export failed for hrpwm1 channel A
ERROR: failed to initialize hrpwm1
WARNING: Failed to initialize motors
ERROR: pru-rproc driver missing

version prints out:

git:/opt/scripts/:[ea6ea9fca05f36f5044398884375b0231348d6e2]
eeprom:[A335BNLTBLA21711EL000212]
model:[TI_AM335x_BeagleBone_Blue]
dogtag:[BeagleBoard.org Debian Image 2018-01-28]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2018.01-00002-g9aa111a004]
kernel:[4.9.82-ti-r102]
nodejs:[v6.13.0]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg:[bb-cape-overlays]:[4.4.20180223.0-0rcnee0~stretch+20180223]
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]
dmesg | grep pinctrl-single
[ 1.432697] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
END

the errors you are seeing is because the pins are not setup
pins get setup by using an overlay at boot time

verify the overlay you require is being loaded in /boot/uEnv.txt

as of any 4.x kernel everything must be loaded at boot time from that file

the cape manager is not used