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

More
1 year 10 months ago - 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]
Last edit: 1 year 9 months ago by ccatlett1984.

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

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

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

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

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

More
1 year 10 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 or Create an account to join the conversation.

More
1 year 10 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 or Create an account to join the conversation.

More
1 year 10 months ago - 1 year 10 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
 
Last edit: 1 year 10 months ago by PCW.

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

Moderators: PCW, jmelson
Time to create page: 0.419 seconds
Powered by Kunena Forum