Raspberry Pi 4

More
7 years 1 month ago #145798 by PCW
Replied by PCW on topic Raspberry Pi 4
I have a patched hm2_rpspi.c that adds support for the 7C80 and 7C81

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #145802 by andypugh
Replied by andypugh on topic Raspberry Pi 4

PCW wrote: I have a patched hm2_rpspi.c that adds support for the 7C80 and 7C81


Is there any reason not to have that merged to the main distribution?

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #145804 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4
I have sources from Bertho that should run on a pi4. But I just now emailed him with the thought of renaming them to hm2_rp3spi.ko for the pi3's, and hm2_rp4spi.ko for the rpi4's. AIUI, the diff is the base address of the gpio array. Perhaps you and Bertho could get together and we'd then have a driver for all 3 cards, in both rpi3 and rpi4 flavors.

Thanks PCW

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #145808 by PCW
Replied by PCW on topic Raspberry Pi 4

andypugh wrote:

PCW wrote: I have a patched hm2_rpspi.c that adds support for the 7C80 and 7C81


Is there any reason not to have that merged to the main distribution?


It probably should be be merged along with some other changes I've made to support 7C80,7C81,7I94,7I95,7I97

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #145833 by Bertho
Replied by Bertho on topic Raspberry Pi 4
Hi all,

Gene already mentioned that he received a newer version for the hm2_rpspi driver from me. The changes in that version are in my localtree: github.com/BsAtHome/linuxcnc/blob/hm2_rp...hostmot2/hm2_rpspi.c and github.com/BsAtHome/linuxcnc/blob/hm2_rp...2/spi_common_rpspi.h

The change should fix the RPi detection dependency away from /proc/cpuinfo, which lacks information in the 64-bit arch. The fix gets the IObase address from /proc/device-tree/soc/ranges and functions in a similar way as libbcm_host. It also does away with RPi 1/2/3/4 distinction entirely because it is a none-issue. LCNC only works well on 3 and 4 anyway (maybe slowly on a 2). It will, however, note the hardware version by logging the content of /proc/device-tree/model.

The bad news is that I have not been able to test the code. The changes are entirely academic at the moment. Gene has been working on getting infrastructure up and running to test it. However, there are some challenges with the RPi4, so it takes time ;-)
I am reasonable convinced that the changes are correct, but there might be small issues yet.

If more have a running setup on RPi3 and RPi4, please see if the change works correctly. The changes in the driver reduce the underlying linux version and bitsize dependency and get the info directly from the kernel. That should be a good thing.

--
Greetings Bertho

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #145836 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4
So I'll install what Bertho has sent right now, and do a new dpkg-buildpackage -b -uc.
Then I'll install the deb and try it right on the pi4 as I'll have time to make a 26 pin jumper cable while its building. I have more 7i90's, with damaged outputs to test it with.

I was hoping to see a new commit of PCW's version, but don't as of now, so I'll test what I've got.

Cheers.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >

Please Log in or Create an account to join the conversation.

Time to create page: 0.396 seconds
Powered by Kunena Forum