Raspberry Pi 4 with Mesa 7c81

More
12 Jan 2021 18:19 - 12 Jan 2021 18:20 #195102 by PCW
Replied by PCW on topic Raspberry Pi 4 with Mesa 7c81
Read the current configuration:
sudo mesaflash --device 7c81 --addr /dev/spidev0.0 --spi --readhmid
(I would verify that this works reliably before trying to flash new firmware)

Write new firmware to the flash EEPROM:
sudo mesaflash --device 7c81 --addr /dev/spidev0.0 --spi --write 7c81_g540x2d.bit

Load the FPGA from the current flash EEPROM image:
sudo mesaflash --device 7c81 --addr /dev/spidev0.0 --spi --reload
Last edit: 12 Jan 2021 18:20 by PCW.

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

More
12 Jan 2021 18:52 #195105 by JohnG
Replied by JohnG on topic Raspberry Pi 4 with Mesa 7c81
Thank you so much for the help!

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

More
12 Jan 2021 19:19 #195107 by PCW
Replied by PCW on topic Raspberry Pi 4 with Mesa 7c81
BTW the easiest way to generate a working hal/ini configuration for the 7C81 is to use
pncconf and setup say a 5I25+G540 configuration. Then change the card name in the .ini file
and driver name in the hal file

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

More
13 Jan 2021 05:29 #195175 by JohnG
Replied by JohnG on topic Raspberry Pi 4 with Mesa 7c81
Can’t thank you guys enough for all of your time and help. I have successfully installed Mesaflash but now when I try read from the 7c81 with these two options here are my results:

sudo mesaflash --device 7c81 --addr /dev/spidev0.0 --spi --readhmid

Results in “unrecognized option ‘—addr/dev/spidev0.0’”

sudo mesaflash --device 7c81 --spi --readhmid

Results in
“open: Bad address
No 7c81 board found”

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

More
13 Jan 2021 05:45 #195176 by PCW
Replied by PCW on topic Raspberry Pi 4 with Mesa 7c81
missing space?

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

More
13 Jan 2021 05:48 #195177 by JohnG
Replied by JohnG on topic Raspberry Pi 4 with Mesa 7c81
Where? I have looked back over this and tried several times

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

More
13 Jan 2021 05:56 #195179 by JohnG
Replied by JohnG on topic Raspberry Pi 4 with Mesa 7c81
I don’t think that’s it. Is there anything else you can think would result in it not seeing the 7c81. I thought I had it!

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

More
13 Jan 2021 06:00 - 13 Jan 2021 06:02 #195180 by PCW
Replied by PCW on topic Raspberry Pi 4 with Mesa 7c81
Works for me, the error shows that the --addr token is merged with the spi device name so

sudo mesaflash --device 7c81 --addr/dev/spidev0.0 --spi --readhmid
mesaflash: unrecognized option '--addr/dev/spidev0.0'

but

sudo mesaflash --device 7c81 --addr /dev/spidev0.0 --spi --readhmid
open: No such file or directory
No 7C81 board found

Which is the correct result since this PC has no /dev/spidev0.0
Last edit: 13 Jan 2021 06:02 by PCW.

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

More
13 Jan 2021 06:24 #195182 by JohnG
Replied by JohnG on topic Raspberry Pi 4 with Mesa 7c81
I missed the space after addr. My message is now the same as yours except I have a 7c81 connected...

The connection is working as I am able to manually toggle pins using halcmd. (Turning user leds on and off)

I don’t know what to think. Can’t understand why it won’t read the board but nervous as my ultimate goal is to flash it with the g540_x2d configuration

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

More
13 Jan 2021 06:28 - 13 Jan 2021 06:30 #195183 by PCW
Replied by PCW on topic Raspberry Pi 4 with Mesa 7c81
Do you have the latest Mesaflash and LinuxCNC?

There was a problem with earlier versions where running the hm2_rpspi
driver disabled mesaflash until a reboot.

Also how long is your connecting cable (it should be no longer than ~2 inches)
Last edit: 13 Jan 2021 06:30 by PCW.

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

Moderators: PCWjmelson
Time to create page: 0.125 seconds
Powered by Kunena Forum