Raspberry Pi 4 mmap

More
16 Sep 2019 20:32 #145340 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4
maybe true, Peter, but the terminal strips on the 7i42TA's sure make hookup a lot easier.

But I was reading switching noises from the motor drivers in excess of 40 volts, on a gigahertz sampler scope and that toasted more than one 7i90HD. I'm on my 3rd one now, In fact I'm down to 2 working stepper drivers on the 7i90HD I have at the bottom of that stack of 7i42TA's now.

But in installing the 7i42TA's, something changed and those noises are only a few hundred millivolts now.

Thanks Peter.

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
17 Sep 2019 02:52 - 17 Sep 2019 02:59 #145369 by Spacehitchhiker42
Replied by Spacehitchhiker42 on topic Raspberry Pi 4
Good to know about the input protection. I just got finished getting my fpga board to communicate with linuxcnc.

As far as my touchscreen goes, I'm using a NCR RealPos ( rather unfortunate name) monitor. It cost me $25 on ebay plus about $5 for the parts on the adapter board for breaking out usb on the monitor and power for the monitor, RPi and fpga
Attachments:
Last edit: 17 Sep 2019 02:59 by Spacehitchhiker42.

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

More
17 Sep 2019 03:02 - 17 Sep 2019 03:08 #145370 by Spacehitchhiker42
Replied by Spacehitchhiker42 on topic Raspberry Pi 4
And the adapter board


(sorry for doubleposting but i couldn't upload the 2nd image directly from my phone)
Attachments:
Last edit: 17 Sep 2019 03:08 by Spacehitchhiker42.

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

More
21 Sep 2019 18:41 - 21 Sep 2019 18:42 #145774 by cakeslob
Replied by cakeslob on topic Raspberry Pi 4
Can you guys please help me out with this?
I have
an Rpi4,
the premade image from andy loaded on it running the preempt kernel 4.19.58-rt22-v7l
a mesa 7c81 card
peter sent me updated drivers for hm2_rpspi.c , spi_common_rpspi, and an updated pins.c (attatched)
the drivers are updated for the 2 new rpi boards and for the rpi4 bcm_2711
i can connect to the card in mesaflsh and get a bunch of info from it, but with my limited knowledge/understanding of the mesaflash syntax i really only know how to do readhmid and get the pins
my config file is just the 7i90 file but i changed driver:hm2_rpspi and board:7c81
Im at the point where im stuck and i dont know what im doing wrong. the rpspi driver is updated to include the 7c81 but i still cant get it to recognize the board. I have included the report/info along with the updated drivers. if anyone could point me in the right direction that would be a big help

linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Found file(REL): ./hm2-stepper.hal
Shutting down and cleaning up LinuxCNC...
hm2: loading Mesa HostMot2 driver version 0.15
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
hm2_rpspi: Unknown board at SPI0/CE0: MESA7C81
hm2_rpspi: rtapi_app_main: Operation not permitted (-1)
./hm2-stepper.hal:38: waitpid failed /home/pi/linuxcnc-rp10/bin/rtapi_app hm2_rpspi
./hm2-stepper.hal:38: /home/pi/linuxcnc-rp10/bin/rtapi_app exited without becoming ready
./hm2-stepper.hal:38: insmod for hm2_rpspi failed, returned -1
17664
Stopping realtime threads
Unloading hal components
hm2_rpspi: not loaded
<commandline>:0: exit value: 255

File Attachment:

File Name: linuxcnc_i...21-2.txt
File Size:4 KB

File Attachment:

File Name: linuxcnc_2...9-21.txt
File Size:30 KB

File Attachment:

File Name: pins_2019-09-21-2.c
File Size:31 KB

File Attachment:

File Name: spi_common...9-21-2.h
File Size:17 KB

File Attachment:

File Name: hm2_rpspi_...9-21-2.c
File Size:46 KB
Last edit: 21 Sep 2019 18:42 by cakeslob.

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

More
21 Sep 2019 19:09 #145780 by PCW
Replied by PCW on topic Raspberry Pi 4
Are you sure you are running the newly compiled LinuxCNC version?
Is this a RIP installation?

Here's what I get with a 7C81 on a RPI3:

File Attachment:

File Name: 7c81startup.txt
File Size:4 KB
Attachments:

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

More
21 Sep 2019 21:39 #145793 by andypugh
Replied by andypugh on topic Raspberry Pi 4
It looks like master only knows about the 7i90:
github.com/LinuxCNC/linuxcnc/blob/master...ot2/hm2_rpspi.c#L860

are you using hm2_rpspi or hm2_spi ?

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

More
21 Sep 2019 23:24 #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
22 Sep 2019 00:25 #145802 by andypugh
Replied by andypugh on topic Raspberry Pi 4

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
22 Sep 2019 00:33 #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
22 Sep 2019 01:35 #145808 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


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.

Time to create page: 0.165 seconds
Powered by Kunena Forum