- Posts: 5
- Thank you received: 0
7C80 on RPI5
1 year 7 months ago #325087
by torulf
7C80 on RPI5 was created by torulf
I bought a Mesa 7C80 from EUsurplus.com, on March 11.
I have read on mesanet.com that cards bought before 2025 would not be compatible with rpi5.
So this is supposed to be compatible as i understand it.
I have an unaltered installation from this image www.linuxcnc.org/iso/rpi-5-debian-bookwo...25-01-27-0140.img.xz
When i try to follow the write up in the Pi5 MESA 7c80 WORKING thread, i get the same error as the OP.
I do this command: sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid
I get this response :
Unexpected cookie at 0100..0110:
00000000 00000000 00000000
No 7C80 board found
Do i need to flash this card to make it compatible with rpi5?
Can i do that somehow from a rpi5?
If not, what might be wrong?
SPI is enabled.
I have read on mesanet.com that cards bought before 2025 would not be compatible with rpi5.
So this is supposed to be compatible as i understand it.
I have an unaltered installation from this image www.linuxcnc.org/iso/rpi-5-debian-bookwo...25-01-27-0140.img.xz
When i try to follow the write up in the Pi5 MESA 7c80 WORKING thread, i get the same error as the OP.
I do this command: sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid
I get this response :
Unexpected cookie at 0100..0110:
00000000 00000000 00000000
No 7C80 board found
Do i need to flash this card to make it compatible with rpi5?
Can i do that somehow from a rpi5?
If not, what might be wrong?
SPI is enabled.
Please Log in to join the conversation.
1 year 7 months ago #325088
by PCW
Replied by PCW on topic 7C80 on RPI5
Yes, it sound like the old firmware issue.
One known way to fix this is to reflash the firmware on a RPI4
Another possible fix is to temporarily short RPI GPIO8 to GPIO25 (40 pin pins 22 and 24)
or if that does not work, temporarily short RPI GPIO25 (40 pin header pin 22) to Gnd
Then remove the connection once the card has been re-flashed.
One known way to fix this is to reflash the firmware on a RPI4
Another possible fix is to temporarily short RPI GPIO8 to GPIO25 (40 pin pins 22 and 24)
or if that does not work, temporarily short RPI GPIO25 (40 pin header pin 22) to Gnd
Then remove the connection once the card has been re-flashed.
Please Log in to join the conversation.
1 year 7 months ago #325096
by torulf
Replied by torulf on topic 7C80 on RPI5
OK, thank you!
What is the shorting of pins supposed to do?
I have tried both suggestions, but the command still results in the same error.
I don´t have a rpi4.
I am a bit sad about this, i don´t want to buy a rpi4 just for flashing.
Stupidly i thought this would be a good Mesa card choice for me, i now wish i had bought something with ethernet. Then i wouldn't be stuck with rpi.
What is the shorting of pins supposed to do?
I have tried both suggestions, but the command still results in the same error.
I don´t have a rpi4.
I am a bit sad about this, i don´t want to buy a rpi4 just for flashing.
Stupidly i thought this would be a good Mesa card choice for me, i now wish i had bought something with ethernet. Then i wouldn't be stuck with rpi.
Please Log in to join the conversation.
1 year 7 months ago #325100
by PCW
Replied by PCW on topic 7C80 on RPI5
That actually should work.
The faulty firmware has RPI GPIO 25 (40 pin header pin 22)
as the SPI /CS pin. The actual RPI SPI CS0 pin is RPI GPIO 8 (40 pin
header pin 24), so connecting 40 PIN header pins 22 to 24 should
allow access to the faulty firmware.
In fact the only reason this was missed is that on a RPI4, GPIO25
happened to be low by default so /CS was asserted.
Is it possible you have the wrong pin numbers or a unrelated cable issue?
The faulty firmware has RPI GPIO 25 (40 pin header pin 22)
as the SPI /CS pin. The actual RPI SPI CS0 pin is RPI GPIO 8 (40 pin
header pin 24), so connecting 40 PIN header pins 22 to 24 should
allow access to the faulty firmware.
In fact the only reason this was missed is that on a RPI4, GPIO25
happened to be low by default so /CS was asserted.
Is it possible you have the wrong pin numbers or a unrelated cable issue?
Please Log in to join the conversation.
1 year 7 months ago #325105
by torulf
Replied by torulf on topic 7C80 on RPI5
Hey! It worked 
Thank you!
Now i am not sad anymore.
It must have been a bad connection. I solder shorted the 2 pins on the backside of the mesa board, then it worked.
I will be back with more stupid questions, probably.
Thank you!
Now i am not sad anymore.
It must have been a bad connection. I solder shorted the 2 pins on the backside of the mesa board, then it worked.
I will be back with more stupid questions, probably.
Please Log in to join the conversation.
1 year 7 months ago #325106
by PCW
Replied by PCW on topic 7C80 on RPI5
Remember to remove the short once you have updated the firmware.
Sorry for the problem
(luckily there are no bad firmware files out there other than what was
installed on cards)
Sorry for the problem
(luckily there are no bad firmware files out there other than what was
installed on cards)
Please Log in to join the conversation.
1 year 7 months ago #325109
by torulf
Replied by torulf on topic 7C80 on RPI5
Is there a good source on how to set this card up?
PnCconfig doesn't have the 7C80 and i am not very good with the HAL files yet.
I tried to use PnCconfig and chose the 7I76 instead, but then at the end PnC got an error saying "unsupported locale setting".
screenshot of error
PnCconfig doesn't have the 7C80 and i am not very good with the HAL files yet.
I tried to use PnCconfig and chose the 7I76 instead, but then at the end PnC got an error saying "unsupported locale setting".
screenshot of error
Please Log in to join the conversation.
1 year 7 months ago #325112
by unknown
Replied by unknown on topic 7C80 on RPI5
You need to use menuconfig to setup your locale.
If you go to this thread it is an index to a lot of info.
forum.linuxcnc.org/38-general-linuxcnc-q...l-images-only/unread
If you go to this thread it is an index to a lot of info.
forum.linuxcnc.org/38-general-linuxcnc-q...l-images-only/unread
Please Log in to join the conversation.
1 year 7 months ago #325116
by PCW
Replied by PCW on topic 7C80 on RPI5
I would probably choose a 7I96S setup as it's closer hardware wise to the 7C80.
Then the main changes would be to change the driver name and card name
and all "inm" to "inmux"
Unfortunately the locale bug is a known pncconf issue and the only known work-around
is to set the locale to english.
If you launch pncconf from a terminal, it may be sufficient to type
LANG=C
before launching pncconf
Then the main changes would be to change the driver name and card name
and all "inm" to "inmux"
Unfortunately the locale bug is a known pncconf issue and the only known work-around
is to set the locale to english.
If you launch pncconf from a terminal, it may be sufficient to type
LANG=C
before launching pncconf
Please Log in to join the conversation.
1 year 7 months ago #325142
by torulf
Replied by torulf on topic 7C80 on RPI5
I had not installed any locales. I was under the impression that it was already in english as default. It was C.UTF-8 as default.
I installed en_US.UTF-8 and chose that as default.
Now it works!
Thank you!
That index helps a lot. For a newb like me it is hard to find the relevant info in all of these threads. I guess it becomes a lot clearer when one has spent a few hundred hours on here
Next step is to connect some stepper drivers to confirm that the setup works.
I installed en_US.UTF-8 and chose that as default.
Now it works!
Thank you!
That index helps a lot. For a newb like me it is hard to find the relevant info in all of these threads. I guess it becomes a lot clearer when one has spent a few hundred hours on here
Next step is to connect some stepper drivers to confirm that the setup works.
Please Log in to join the conversation.
Time to create page: 0.057 seconds
