- Posts: 174
- Thank you received: 0
Raspberry Pi 4
7 years 1 month ago #145340
by Gene1934
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 >
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.
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 to join the conversation.
- Spacehitchhiker42
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
7 years 1 month ago #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
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
Attachment not found
Please Log in to join the conversation.
- Spacehitchhiker42
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
7 years 1 month ago #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)
Attachment not found
(sorry for doubleposting but i couldn't upload the 2nd image directly from my phone)
Please Log in to join the conversation.
7 years 1 month ago #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
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
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
7 years 1 month ago #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:
Is this a RIP installation?
Here's what I get with a 7C81 on a RPI3:
Attachment not found
Please Log in to join the conversation.
7 years 1 month ago #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 ?
github.com/LinuxCNC/linuxcnc/blob/master...ot2/hm2_rpspi.c#L860
are you using hm2_rpspi or hm2_spi ?
Please Log in to join the conversation.
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 to join the conversation.
7 years 1 month ago #145802
by andypugh
Is there any reason not to have that merged to the main distribution?
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 to join the conversation.
7 years 1 month ago #145804
by Gene1934
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 >
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
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 to join the conversation.
7 years 1 month ago #145808
by PCW
It probably should be be merged along with some other changes I've made to support 7C80,7C81,7I94,7I95,7I97
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 to join the conversation.
Time to create page: 0.296 seconds
