Converting a 7i76e config to 7c81/7i76 pair
28 Aug 2023 20:53 #279210
by cornholio
Replied by cornholio on topic Converting a 7i76e config to 7c81/7i76 pair
I could never get a spi device with bookworm tried for about a day or so but no luck, so I just went with Raspbian based on Bullseye. Have no trouble at all, even works with the Spartan-6 dev board I have with 7c81 firmware loaded.
Seriously Pete from MESA is a top guy. His range of products and support take Linuxcnc to the next level.
Seriously Pete from MESA is a top guy. His range of products and support take Linuxcnc to the next level.
Please Log in or Create an account to join the conversation.
28 Aug 2023 21:02 #279214
by rodw
The issue was we used a non-standard way to talk to the GPIO's which became depreciated in Bookworm. Andy has done some changes to get gpio working. He has also written a new gpio driver that uses the gpiod library which is the correct method. BUt I don't think its been included yet.
Replied by rodw on topic Converting a 7i76e config to 7c81/7i76 pair
I think this has been resolved on Bookworm recently but you will have to compile from source to get the changes (which I am doing now).I could never get a spi device with bookworm tried for about a day or so but no luck, so I just went with Raspbian based on Bullseye. Have no trouble at all, even works with the Spartan-6 dev board I have with 7c81 firmware loaded.
Seriously Pete from MESA is a top guy. His range of products and support take Linuxcnc to the next level.
The issue was we used a non-standard way to talk to the GPIO's which became depreciated in Bookworm. Andy has done some changes to get gpio working. He has also written a new gpio driver that uses the gpiod library which is the correct method. BUt I don't think its been included yet.
Please Log in or Create an account to join the conversation.
28 Aug 2023 21:24 #279217
by cornholio
Replied by cornholio on topic Converting a 7i76e config to 7c81/7i76 pair
I was under the impression that the hm2-rpspi required a entry in the dev folder for spi and the Hal gpio driver was a different beast.
Please Log in or Create an account to join the conversation.
28 Aug 2023 21:29 #279218
by rodw
Replied by rodw on topic Converting a 7i76e config to 7c81/7i76 pair
I don't know as I have never used any GPIO stuff. Perhaps by the end of the week I will have a working PI image. It is certainly worth testing. If it was still an issue, report it on git and it might get fixed.
Please Log in or Create an account to join the conversation.
28 Aug 2023 23:32 #279225
by acondit
Replied by acondit on topic Converting a 7i76e config to 7c81/7i76 pair
I found the spi-bcm2835.c source in with the kernel source. I will take a look at the possibility of setting spi enable as an option in the kernel configuration.
The following user(s) said Thank You: cornholio
Please Log in or Create an account to join the conversation.
29 Aug 2023 01:22 #279235
by cornholio
Replied by cornholio on topic Converting a 7i76e config to 7c81/7i76 pair
With the debian package linux-image-6.1.0-11-rt-arm64-unsigned_6.1.38-4_arm64.deb spi-bcm2835 is configured as a module.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
29 Aug 2023 03:27 #279245
by rodw
Replied by rodw on topic Converting a 7i76e config to 7c81/7i76 pair
Does that mean you have been chasing a red herring?With the debian package linux-image-6.1.0-11-rt-arm64-unsigned_6.1.38-4_arm64.deb spi-bcm2835 is configured as a module.
Please Log in or Create an account to join the conversation.
29 Aug 2023 04:14 - 29 Aug 2023 04:17 #279252
by cornholio
Replied by cornholio on topic Converting a 7i76e config to 7c81/7i76 pair
Nah there seems to be an issue with device overlays, which the mainline kernel doesn't seem to support.
Found this bit of infoRaspbian kernel config:
Debian arm64 rt kernel config
Found this bit of info
For /sys/kernel/config/device-tree/overlays/ you should have a kernel built with CONFIG_OF_CONFIGFS=y (which is not an upstream feature but available in some kernels).
rmurphy@rpi4-cnc:~ $ cat /boot/config-5.15.65-rt49-v8+ | grep "OF_CONFIGFS"
CONFIG_OF_CONFIGFS=y
rmurphy@rpi4-cnc:~ $
Debian arm64 rt kernel config
rmurphy@ThinkPad-T530:~/Documents/Kernel/linux-image-6.1.0-11-rt-arm64_6.1.38-4_arm64/boot$ cat config-6.1.0-11-rt-arm64 | grep "OF_CONFIGFS"
rmurphy@ThinkPad-T530:~/Documents/Kernel/linux-image-6.1.0-11-rt-arm64_6.1.38-4_arm64/boot$
Last edit: 29 Aug 2023 04:17 by cornholio.
Please Log in or Create an account to join the conversation.
29 Aug 2023 04:22 #279253
by cornholio
Replied by cornholio on topic Converting a 7i76e config to 7c81/7i76 pair
Further to that, which maybe of interest, the Raspbian team are still working on a Bookworm release.
I guess that they patch the kernel for the device overlay tree which is needed to need to get the whole spi overlay loaded.
I guess that they patch the kernel for the device overlay tree which is needed to need to get the whole spi overlay loaded.
Please Log in or Create an account to join the conversation.
29 Aug 2023 18:00 #279305
by acondit
Replied by acondit on topic Converting a 7i76e config to 7c81/7i76 pair
I have spi-bcm2835 loading on boot now. I still don't have the /dev/spi0.0 and/or /dev/spi0.1 being created.
I don't find a module spidev. It looks like it should be a kernel module but some of the info sounds like it may be a user module for talking to spi-bcm2835.
I don't find a module spidev. It looks like it should be a kernel module but some of the info sounds like it may be a user module for talking to spi-bcm2835.
Please Log in or Create an account to join the conversation.
Time to create page: 0.088 seconds