On a Beaglebone Black with either Debian jessie and kernel 4.9.81-bone-rt-r9, using the bone_capemgr/slots file or on Debian stretch with kernel 4.14.18-ti-rt-r33 using u-boot overlays, the overlay loads correctly:
jessie kernel 4.9
cat /sys/devices/platform/bone_capemgr/slots
0: P---L- 0 Replicape 3D printer cape,0B3A,Intelligent Agen,BB-BONE-REPLICAP
1: PF---- -1
2: PF---- -1
3: PF---- -1
stretch, kernel 4.14, from boot protocol:
uboot_overlays: [fdt_buffer=0x60000] ...
uboot_overlays: loading /lib/firmware/BB-BONE-REPLICAP-0B3A.dtbo ...
6657 bytes read in 656 ms (9.8 KiB/s)
uboot_overlays: uboot loading of [/lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_emmc=1]...
uboot_overlays: uboot loading of [/lib/firmware/BB-HDMI-TDA998x-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_video=1]...
uboot_overlays: loading /lib/firmware/BB-ADC-00A0.dtbo ...
695 bytes read in 355 ms (1000 Bytes/s)
uboot_overlays: loading /lib/firmware/AM335X-PRU-UIO-00A0.dtbo ...
853 bytes read in 443 ms (1000 Bytes/s)
uboot_overlays: [uboot_detected_capes=BB-BONE-REPLICAP,] ...
No pin conflicts are reported in dmesg.
machinekit (rt-preempt version) starts up correctly, temperature readouts work, end switches work, pwms work, stepper motors draw current etc. but no output on the GPIO stepper pins (e.g. P8.26 for direction x)
GPIOs can be set to output manually (example P8.26 = kernel GPIO number 61)
echo "61" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio61/direction
After that, direction pin P8.26 is correctly toggled by the pru.
Independent of this, I had to replace "localpincount" in the icomp components with "local_pincount" to make them compile.
Regards,
Karl Jacobs
On a Beaglebone Black with either Debian jessie and kernel 4.9.81-bone-rt-r9, using the bone_capemgr/slots file or on Debian stretch with kernel 4.14.18-ti-rt-r33 using u-boot overlays, the overlay loads correctly:
jessie kernel 4.9
cat /sys/devices/platform/bone_capemgr/slots
0: P---L- 0 Replicape 3D printer cape,0B3A,Intelligent Agen,BB-BONE-REPLICAP
1: PF---- -1
2: PF---- -1
3: PF---- -1
stretch, kernel 4.14, from boot protocol:
uboot_overlays: [fdt_buffer=0x60000] ...
uboot_overlays: loading /lib/firmware/BB-BONE-REPLICAP-0B3A.dtbo ...
6657 bytes read in 656 ms (9.8 KiB/s)
uboot_overlays: uboot loading of [/lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_emmc=1]...
uboot_overlays: uboot loading of [/lib/firmware/BB-HDMI-TDA998x-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_video=1]...
uboot_overlays: loading /lib/firmware/BB-ADC-00A0.dtbo ...
695 bytes read in 355 ms (1000 Bytes/s)
uboot_overlays: loading /lib/firmware/AM335X-PRU-UIO-00A0.dtbo ...
853 bytes read in 443 ms (1000 Bytes/s)
uboot_overlays: [uboot_detected_capes=BB-BONE-REPLICAP,] ...
No pin conflicts are reported in dmesg.
machinekit (rt-preempt version) starts up correctly, temperature readouts work, end switches work, pwms work, stepper motors draw current etc. but no output on the GPIO stepper pins (e.g. P8.26 for direction x)
GPIOs can be set to output manually (example P8.26 = kernel GPIO number 61)
echo "61" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio61/direction
After that, direction pin P8.26 is correctly toggled by the pru.
Independent of this, I had to replace "localpincount" in the icomp components with "local_pincount" to make them compile.
Regards,
Karl Jacobs