Pi5 MESA 7c80: mesaflash can't see the card.

More
1 year 9 months ago #317815 by ccatlett1984
Code:
Unexpected cookie at 0100..0110: 00000000 00000000 00000000 No 7C80 board found getting this response when running the below command. [code]sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid Do i need to configure this blind (using something like a 7i96), then change the line in the hal file to load the new driver?
[/code]

Please Log in to join the conversation.

More
1 year 9 months ago #317819 by PCW
Are you using the latest mesaflash?
(3.5.10)

Please Log in to join the conversation.

More
1 year 9 months ago #317820 by ccatlett1984
repo shows 3.4.5-1 as latest

Please Log in to join the conversation.

More
1 year 9 months ago #317821 by PCW
3.4.5 is  fairly ancient, only 3.5.10+ will work on a RPI5

github.com/LinuxCNC/mesaflash has the latest

(build instructions on bottom of page)
 

Please Log in to join the conversation.

More
1 year 9 months ago #317823 by ccatlett1984
removed the installed version using apt, built from source, same issue.
Code:
pi@linuxcnc:~ $ git clone https://github.com/LinuxCNC/mesaflash.git Cloning into 'mesaflash'... remote: Enumerating objects: 2627, done. remote: Counting objects: 100% (322/322), done. remote: Compressing objects: 100% (174/174), done. remote: Total 2627 (delta 189), reused 231 (delta 132), pack-reused 2305 (from 1) Receiving objects: 100% (2627/2627), 966.41 KiB | 5.06 MiB/s, done. Resolving deltas: 100% (1833/1833), done. pi@linuxcnc:~ $ cd mesaflash pi@linuxcnc:~/mesaflash $ make gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c common.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c lbp.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c lbp16.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c bitfile.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c hostmot2.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c eeprom.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c anyio.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c eth_boards.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c epp_boards.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c usb_boards.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c pci_boards.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c sserial_module.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c encoder_module.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c eeprom_local.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c eeprom_remote.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c spi_boards.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c serial_boards.c rm -f libanyio.a mesaflash ar rcs libanyio.a common.o lbp.o lbp16.o bitfile.o hostmot2.o eeprom.o anyio.o eth_boards.o epp_boards.o usb_boards.o pci_boards.o sserial_module.o encoder_module.o eeprom_local.o eeprom_remote.o spi_boards.o serial_boards.o ranlib libanyio.a gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c mesaflash.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -o mesaflash mesaflash.o libanyio.a -lm -lpci -lmd gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c examples/pci_encoder_read.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -o pci_encoder_read pci_encoder_read.o libanyio.a -lm -lpci -lmd gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c examples/pci_analog_write.c gcc -O0 -g -Wall -Wextra -Werror -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -o pci_analog_write pci_analog_write.o libanyio.a -lm -lpci -lmd pi@linuxcnc:~/mesaflash $ sudo make install install -p -D --mode=0755 --owner root --group root mesaflash /bin/mesaflash install -p -D --mode=0644 --owner root --group root mesaflash.1 /share/man/man1/mesaflash.1 pi@linuxcnc:~/mesaflash $ sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid Unexpected cookie at 0100..0110: 00000000 00000000 00000000 No 7C80 board found

Please Log in to join the conversation.

More
1 year 9 months ago #317824 by PCW
OK, using mesaflash 3.5.10 or > is necessary on the RPI5  but there must be other issues.

Maybe cable related?

Did you verify the mesaflash version?

mesaflash --version
 

Please Log in to join the conversation.

More
1 year 9 months ago #317825 by ccatlett1984
using cable purchased from MESA

Please Log in to join the conversation.

More
1 year 9 months ago #317826 by PCW
Did you verify the mesaflash version?

mesaflash --version

Please Log in to join the conversation.

More
1 year 9 months ago #317827 by ccatlett1984
Pulled and reseated cable.
Code:
Linux linuxcnc 6.13.0-rc3-v8-16k+ #1 SMP PREEMPT_RT Mon Dec 30 16:54:49 EST 2024 aarch64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jan 1 18:38:07 2025 pi@linuxcnc:~ $ mesaflash --version Mesaflash version 3.5.10 pi@linuxcnc:~ $ sudo mesaflash --device 7c80 --addr /dev/spidev0.0 --spi --readhmid Unexpected cookie at 0100..0110: 00000000 00000000 00000000 No 7C80 board found pi@linuxcnc:~ $

Please Log in to join the conversation.

More
1 year 9 months ago #317828 by PCW
So no idea, looks like maybe a hardware issue of some kind

You might try the hm2 driver in case its some kernel driver SPI setup issue:

halcmd -kf
halcmd: loadrt hostmot2
halcmd: loadrt hm2_spix


 

Please Log in to join the conversation.

Time to create page: 0.821 seconds
Powered by Kunena Forum