Converting a 7i76e config to 7c81/7i76 pair
26 Aug 2023 20:49 #279027
by acondit
Converting a 7i76e config to 7c81/7i76 pair was created by acondit
I have a working config for my X2MiniMill that runs on a 7i76e mesa board. I just finished a new controller that uses a 7i76 and I have a RaspberryPi4 with a 7c81 attached.
Does anyone have any suggestions on how to best create a new configuration that will run the 7c81/7i76 with the same pinouts as the 7i76e?
Ideal would be converting the 7i76e config to the 7c81/7i76. However, that may not be as easy as it would seem. I have already been trying to use pncconf but it is hard to be sure that I am assigning the same pins on the 7i76 that I am using on the 7i76e.
Thanks in advance,
Alan
Does anyone have any suggestions on how to best create a new configuration that will run the 7c81/7i76 with the same pinouts as the 7i76e?
Ideal would be converting the 7i76e config to the 7c81/7i76. However, that may not be as easy as it would seem. I have already been trying to use pncconf but it is hard to be sure that I am assigning the same pins on the 7i76 that I am using on the 7i76e.
Thanks in advance,
Alan
Please Log in or Create an account to join the conversation.
27 Aug 2023 16:30 #279097
by cakeslob
Replied by cakeslob on topic Converting a 7i76e config to 7c81/7i76 pair
What part is giving you issue? I did my setup in the reverse order. I copied the 7i76e to make my 7c81 config
The 7i76e should be about the same as the 7i76, if you wire it the same you can probably just change your hal file from " hm2_7i76e.0.7i76.0.0.output-06 " to " hm2_7c81.0.7i76.0.0.output-06 "
or something like this
"(BOARD).0.7i76.0.0.output-01" , then you can just change your board in the ini config
The 7i76e should be about the same as the 7i76, if you wire it the same you can probably just change your hal file from " hm2_7i76e.0.7i76.0.0.output-06 " to " hm2_7c81.0.7i76.0.0.output-06 "
or something like this
"(BOARD).0.7i76.0.0.output-01" , then you can just change your board in the ini config
Please Log in or Create an account to join the conversation.
28 Aug 2023 01:54 #279126
by acondit
Replied by acondit on topic Converting a 7i76e config to 7c81/7i76 pair
My controller with the 7i76e is for my PCB Mill. To use it with the X2MiniMill I have to unplug all the connections to the PCB Mill and plug in all the connections for the X2 minimill.
I have to write the bit file for the 7c81_7i76x2d to the 7c81. Since I just discovered that mesaflash won't run under Debian 12, I have created a Raspberry Pi OS Bullseye on another disk. I will have to compile LinuxCNC and mesaflash on it, then write the bit file to the 7c81. That should get me to the point of being able to see if I can run the 7c81 under Debian Bookworm with LinuxCNC.
I will try your idea of using the 7i76e config (edited to 7c81 card).
I have to write the bit file for the 7c81_7i76x2d to the 7c81. Since I just discovered that mesaflash won't run under Debian 12, I have created a Raspberry Pi OS Bullseye on another disk. I will have to compile LinuxCNC and mesaflash on it, then write the bit file to the 7c81. That should get me to the point of being able to see if I can run the 7c81 under Debian Bookworm with LinuxCNC.
I will try your idea of using the 7i76e config (edited to 7c81 card).
Please Log in or Create an account to join the conversation.
28 Aug 2023 04:11 #279128
by rodw
Replied by rodw on topic Converting a 7i76e config to 7c81/7i76 pair
Did you try
sudo apt install mesaflash?
Its definitely in the Debian 12 repos.
sudo apt install mesaflash?
Its definitely in the Debian 12 repos.
Please Log in or Create an account to join the conversation.
28 Aug 2023 12:13 #279157
by acondit
Replied by acondit on topic Converting a 7i76e config to 7c81/7i76 pair
Rod,
I misspoke. I tried mesaflash under Debian 12, however, it doesn't work on the 7c81 because spidev is evidently missing. It reports No 7c81 Board Found. In the dev directory there is no spidev.
I misspoke. I tried mesaflash under Debian 12, however, it doesn't work on the 7c81 because spidev is evidently missing. It reports No 7c81 Board Found. In the dev directory there is no spidev.
Please Log in or Create an account to join the conversation.
28 Aug 2023 14:16 #279171
by PCW
Replied by PCW on topic Converting a 7i76e config to 7c81/7i76 pair
On a RPI, you need to enable SPI for the SPI device to be created.
(With raspi-config for example)
(With raspi-config for example)
Please Log in or Create an account to join the conversation.
28 Aug 2023 16:03 #279181
by acondit
Replied by acondit on topic Converting a 7i76e config to 7c81/7i76 pair
Hi Peter,
That sounds easy enough but I don't know how to turn SPI on Debian 12. So I am having to stand on my head to create a new disk with RaspberryPi OS (currently still Bullseye) so that I can write the 7c81_7i76x2.bit file to the 7c81 board.
If it is possible to turn on the spi device on Debian Bookworm, that would be great.
Is that possible?
I am currently using Bookworm on my CNCLathe with PC/5i25/7i76 and my PCBMill with 7i76e. So life would be simpler if I could also run my X2mill with the RPi4/7c81/7i76 on Bookworm. It sounds like once I have the correct bit file on the 7c81 that then I can run linuxcnc 2.9 with the RPi4/7c81/7i76. Is that correct?
That sounds easy enough but I don't know how to turn SPI on Debian 12. So I am having to stand on my head to create a new disk with RaspberryPi OS (currently still Bullseye) so that I can write the 7c81_7i76x2.bit file to the 7c81 board.
If it is possible to turn on the spi device on Debian Bookworm, that would be great.
Is that possible?
I am currently using Bookworm on my CNCLathe with PC/5i25/7i76 and my PCBMill with 7i76e. So life would be simpler if I could also run my X2mill with the RPi4/7c81/7i76 on Bookworm. It sounds like once I have the correct bit file on the 7c81 that then I can run linuxcnc 2.9 with the RPi4/7c81/7i76. Is that correct?
Please Log in or Create an account to join the conversation.
28 Aug 2023 16:06 #279182
by PCW
Replied by PCW on topic Converting a 7i76e config to 7c81/7i76 pair
Did you try enabling SPI with raspi-config?
Please Log in or Create an account to join the conversation.
28 Aug 2023 18:20 #279188
by acondit
Replied by acondit on topic Converting a 7i76e config to 7c81/7i76 pair
I thought you said raspi-config was not available on Debian 12? Did I misunderstand?
Please Log in or Create an account to join the conversation.
28 Aug 2023 19:08 #279197
by PCW
Replied by PCW on topic Converting a 7i76e config to 7c81/7i76 pair
Not that I recall, but you may need to add it if its not included.
Please Log in or Create an account to join the conversation.
Time to create page: 0.123 seconds