I am not able to get the SW UART to work on the Beaglebone black and I am not sure what I am issing.
Board: Beaglebone black
Base Image : am335x-debian-11.7-iot-armhf-2023-09-02-4gb
I have successfully compiled and installed a new kernel, with the options as specified under "PRU Soft UART driver Kernel Config" at https://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components/PRU-ICSS/Linux_Drivers/pru-sw-uart.html
I compiled the kernel using instructions found at docs.beagleboard.org/.../kernel.html
I have successfuly compiled the DTB am335x-boneblack-pruswuart.dts and copied it to /lib/... then loaded it via uEnv.txt (as `dtb=/lib/...`).
To get this to even load, I had to set
```
enable_uboot_overlays=0
enable_uboot_cape_universal=0
disable_uboot_overlay_emmc=1
disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1
disable_uboot_overlay_wireless=1
disable_uboot_overlay_adc=1
```
(maybe disabling all was not needed, but I dont need any of this for my POC)
Setting `enable_uboot_cape_universal` was absolutely required, as on boot it was loading am335x-boneblack-pruswuart.dtb, and then overwiting it with am335x-boneblack-uboot.dtb
In the logs:
```
uboot_overlays: Switching too: dtb=am335x-boneblack-uboot.dtb
```
SO ... I was able to validate that am335x-boneblack-pruswuart.dtb was being loaded, by checking the output of `gpioinfo`, where I see that pin descriptions were set, as per `gpio-line-names` in am335x-boneblack-uboot.dts, eg.
```
P8_45 [pru1_swuart0_txd]
P8_46 [pru1_swuart0_rxd]
P8_43 [pru1_swuart0_cts]
P8_44 [pru1_swuart0_rts]
P8_41 [pru1_swuart1_txd]
P8_42 [pru1_swuart1_rxd]
P8_39 [pru1_swuart1_cts]
P8_40 [pru1_swuart1_rts]
```
BUT - Nothing shows in dmesg relating to the PRU / UART, and ONLY /dev/sstS0 appears in the dmesg as an initialised serial port. No other serial devices created in /dev/, no kernel modules loaded that I can tell to take care of this and no reference to firmware etc for the PRU.....so I am stuck now.
I dont know whart is missing, or what I need to do to be able to actually USE the SW UARTS.
Any help woudl be very much appreciated.
Cheers
Beorn