PRU remoteproc1 and 2 missing

Hi,

I am just learning Beaglebone and have set up a Debian 10 image on a recently purchased Beaglebone Black wireless.
I am following the Molloy’s book chapter 15 to learn PRU.
However, it seems rproc module has not loaded the PRU.

Is there an additional step to allow use of the PRUs? What should I look at to debug this issue? Thanks in advance.

Attached is the /opt/scripts/tools/version.sh output

git:/opt/scripts/:[b39ec679648a6be8f25f48bd1c9784c1fc5a0c46]
eeprom:[A335BNLTBWA51824BBWG0190]
model:[TI_AM335x_BeagleBone_Black_Wireless]
dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-g07d5700e21]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2016.11-rc3-00002-g73df7f]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-wireless.dts]
kernel:[4.19.94-ti-r42]
nodejs:[v10.15.2]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-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.20200403.0-0rcnee0~buster+20200403]
pkg:[bb-wl18xx-firmware]:[1.20200322.0-0rcnee0~buster+20200322]
pkg:[kmod]:[26-1]
pkg:[librobotcontrol]:[1.0.4-git20190227.1-0rcnee0~buster+20190327]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev i2c gpio pwm eqep remoteproc admin spi iio docker tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[ 48.299247] Bluetooth: hci0: change remote baud rate command in firmware
[ 51.242110] remoteproc remoteproc0: wkup_m3 is available
[ 51.258161] remoteproc remoteproc0: powering up wkup_m3
[ 51.258191] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[ 51.258458] remoteproc remoteproc0: remote processor wkup_m3 is now up
dmesg | grep pru
dmesg | grep pinctrl-single
[ 0.836673] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[ 0.838338] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

Hi,

I am just learning Beaglebone and have set up a Debian 10 image on a recently purchased Beaglebone Black wireless.
I am following the Molloy's book chapter 15 to learn PRU.
However, it seems rproc module has not loaded the PRU.
Is there an additional step to allow use of the PRUs? What should I look at to debug this issue? Thanks in advance.

Attached is the /opt/scripts/tools/version.sh output

git:/opt/scripts/:[b39ec679648a6be8f25f48bd1c9784c1fc5a0c46]
eeprom:[A335BNLTBWA51824BBWG0190]
model:[TI_AM335x_BeagleBone_Black_Wireless]
dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-g07d5700e21]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2016.11-rc3-00002-g73df7f]:[location: dd MBR]

U-Boot is too old, please run:

sudo apt update
sudo apt install bb-u-boot-am335x-evm
cd /opt/u-boot/bb-u-boot-am335x-evm/
sudo ./install.sh
sudo reboot

UBOOT: Booted Device-Tree:[am335x-boneblack-wireless.dts]
kernel:[4.19.94-ti-r42]

Kernel is too old, please run:

sudo /opt/scripts/tools/update_kernel.sh

pkg:[bb-cape-overlays]:[4.14.20200403.0-0rcnee0~buster+20200403

too old:

sudo apt install --only-upgrade bb-cape-overlays bb-customizations

Finally , reboot, everything should now work..

Regards,

It works. Thanks for the help! Appreciate it

Regards,
Cheng

在2021年4月7日星期三 UTC-4 下午1:20:20 写道:

I am following the Molloy's book chapter 15 to learn PRU.

  First or Second edition?

kernel:[4.19.94-ti-r42]

uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo]

pkg:[bb-cape-overlays]:[4.14.20200403.0-0rcnee0~buster+20200403]

  Might be relevant -- you are running a 4.19.x kernel, but loading 4.14
PRU RPROC firmware...

Hi Dennis,

I am following second edition.
I actually tried both 4.14 and 4.19. Either of them does not work.
But it looks like Robert’s comment solves the issue. Thanks for your suggestion though.

Regards,
Cheng

在2021年4月7日星期三 UTC-4 下午6:06:10 写道:

Ah, missed that.. Yeah, it "should not have worked". :wink:

change:

uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo

to

uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo

in /boot/uEnv.txt

If your booting 4.19.x-ti..

Regards,

Robert,

The Man, The Myth, The legend!

I’ve been googling this issue for a few days now with no luck but every suggestion I could find came from you. I’m so glad I found this post.