beagleboard/BeagleBoard-DeviceTrees

Problems with PRU + am335x-boneblack-bbbmini on Kernel 4.19

Closed this issue · 0 comments

Hi,

I update my beaglebone with the 4.19 kernel, after that I cannot use the PRU.
If I just use the bbbmini dtb the access to the pru is not possible and I',m getting an exception:
[ 532.436382] Unhandled fault: external abort on non-linefetch (0x1818) at 0xb6fef000
[ 532.436395] pgd = 63d9c221
[ 532.436400] [b6fef000] *pgd=98a3c831, *pte=4a324343, *ppte=4a324833

If I enable the pru overlay: uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo, I don't have any exception, I can access the PRU but the PRU but there is no output on input on PRU.

I made a test with config-pin generating a file with all pins mapped in the bbbmini dtb and is working - I can access the PRU and I have all outputs working.

Any clue what is happening or what I need to check ?

This is the version script:
root@beaglebone:# /opt/scripts/tools/version.sh
git:/opt/scripts/:[20c080bc91f243ef852a704758788a31083b0f9e]
eeprom:[A335BNLTBBG1BBG219100724]
model:[TI_AM335x_BeagleBone_Green]
dogtag:[BeagleBoard.org Debian Image 2018-08-30]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2018.03-00002-gac9cce7c6a]:[location: dd MBR]
UBOOT: Loaded Overlay:[AM335X-PRU-UIO-00A0]
UBOOT: Loaded Overlay:[BB-ADC-00A0]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
UBOOT: Loaded Overlay:[M-BB-BBG-00A0]
kernel:[4.19.142-bone-rt-r56]
device-tree-override:[dtb=am335x-boneblack-bbbmini.dtb]
/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:[bb-cape-overlays]:[4.14.20200814.0-0
stretch+20200814]
pkg:[bb-customizations]:[1.20200826.0-0stretch+20200826]
WARNING:pkg:[bb-usb-gadgets]:[NOT_INSTALLED]
pkg:[bb-wl18xx-firmware]:[1.20180517-0rcnee0
stretch+20180517]
pkg:[kmod]:[23-2rcnee1stretch+20171005]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1
stretch+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal netdev gpio pwm eqep admin spi i2c tisdk weston-launch xenomai bluetooth cloud9ide]
cmdline:[console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet]
dmesg | grep remote
[ 0.832599] remoteproc remoteproc0: wkup_m3 is available
[ 1.046510] remoteproc remoteproc0: powering up wkup_m3
[ 1.046531] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[ 1.048685] remoteproc remoteproc0: remote processor wkup_m3 is now up
dmesg | grep pru
dmesg | grep pinctrl-single
[ 0.641638] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
END

Thanks