gpio driver porting from an r-pi3b
#6
>gene83, if you're talking about porting hm2_rpspi.c to support the 7i90 you'll need to spend time with the technical reference manual, chapter 20, available here >http://opensource.rock-chips.com/wiki_Main_Page - it's the RK3328 TRM link. The rpspi solution bitbangs the hardware directly and requires the standard "spidev" >driver is unloaded.

>The existing RPi3 hardware addresses and offsets will need to be updated to reflect the RK3328 layout.

That was assumed to be required. No biggie if I can get the headers. But I am under the impression that for a rock64, I need the RK3399 DATA?

>Another option to consider is acquiring a 7i92 and connecting via wired ethernet, hm2_eth driver.

>Is the 4.11.12-rt15 kernel build available?

>All the best, Joe

Thanks Joe. Nice to find someone who knows about this stuff. ;-)

That's because the spidev is terminally slow from what I've read. And using ethernet would tie up its only ethernet port, plus the latency in the much slower ethernet would make tuning the 7i92 a much bigger problem. The rpspi.ko driver can talk to the 7i90 at 41 megabaud, and read back at 25 megabaud on the pi. Doing it as I type in fact as I leave it running, with lcnc motion disabled which I've rigged to shut all motor power off.

And no, the rtai kernel I've built is 4.10.0-rc3. But its not been tested even for boot because I know zip about how to change kernels on what looks to be an efi boot system. Is there a make install command option to do more than just put the built stuffs in /boot? That's all I've done so far.

Or how is that done to a clone of a working ssd card? Made difficult by the fact that I've not found a piclone that will run on the rock64. ssd card reader/writers I have, but the working image needs constrained to valid data else something like dd fails because no two of these cards are the same size. It al blows up if the target card is 4k smaller than the source card, and the resultant image is not readable.

So the first thing I need is a piclone that runs on the rock64, so I can make the test boot on a different card.

I am extremely impressed with the rock64 speed, easily 10x the pi's speeds, and if I can get it all in one sock it would be a very welcome improvement.

A lot of questions, thanks for the link above. I'll pull all 3 TRM's to be sure I have the correct one. oh boy, 600 to 850 pages each. Obviously I'll only print the correct one. For a rock64/4G, which one is it?

Thanks Joe.
  Reply


Messages In This Thread
gpio driver porting from an r-pi3b - by gene83 - 10-12-2017, 08:12 PM
RE: gpio driver porting from an r-pi3b - by gene83 - 11-12-2017, 04:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Brick Rock64 usb2.0 Power Control Floating GPIO Tutorial Files & Notes MarkHaysHarris777 6 14,556 01-15-2023, 10:36 AM
Last Post: ds00
  Configuring Python GPIO Pin Control Rock64 www139 3 8,372 06-22-2021, 06:57 AM
Last Post: Mrfixit2001
  Help connecting a dvb board in the right gpio pins cosmodeal 0 2,375 11-11-2020, 12:48 PM
Last Post: cosmodeal
Question UARTs from GPIO headers maks.dav 3 5,548 10-30-2020, 07:44 AM
Last Post: maks.dav
  RTL8812AU driver and connection issues pane 7 10,638 12-20-2018, 04:56 PM
Last Post: pane
  WIFI driver compilation wsk 1 3,151 11-01-2018, 12:21 AM
Last Post: wsk
  GPIO extension cable fault viguzzz 12 15,059 05-18-2018, 04:03 AM
Last Post: viguzzz
Question Rock64 GPIO Nak64Rbit 5 8,344 04-04-2018, 12:53 AM
Last Post: hryst

Forum Jump:


Users browsing this thread: 1 Guest(s)