- Posts: 1199
- Thank you received: 0
Converting a 7i76e config to 7c81/7i76 pair
- Cant do this anymore bye all
- Offline
- Platinum Member
-
Less
More
3 years 2 months ago #279210
by Cant do this anymore bye all
Replied by Cant do this anymore bye all 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 to join the conversation.
3 years 2 months ago #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 to join the conversation.
- Cant do this anymore bye all
- Offline
- Platinum Member
-
Less
More
- Posts: 1199
- Thank you received: 0
3 years 2 months ago #279217
by Cant do this anymore bye all
Replied by Cant do this anymore bye all 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 to join the conversation.
3 years 2 months ago #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 to join the conversation.
3 years 2 months ago #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.
Please Log in to join the conversation.
- Cant do this anymore bye all
- Offline
- Platinum Member
-
Less
More
- Posts: 1199
- Thank you received: 0
3 years 2 months ago #279235
by Cant do this anymore bye all
Replied by Cant do this anymore bye all 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.
Please Log in to join the conversation.
3 years 2 months ago #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 to join the conversation.
- Cant do this anymore bye all
- Offline
- Platinum Member
-
Less
More
- Posts: 1199
- Thank you received: 0
3 years 2 months ago #279252
by Cant do this anymore bye all
Replied by Cant do this anymore bye all 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 info
Raspbian kernel config:
Debian arm64 rt kernel config
Found this bit of info
Code:
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).
Code:
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
Code:
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$
Please Log in to join the conversation.
- Cant do this anymore bye all
- Offline
- Platinum Member
-
Less
More
- Posts: 1199
- Thank you received: 0
3 years 2 months ago #279253
by Cant do this anymore bye all
Replied by Cant do this anymore bye all 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 to join the conversation.
3 years 2 months ago #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 to join the conversation.
Time to create page: 0.057 seconds
