Pi5 MESA 7c80 WORKING
- ccatlett1984
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 1
01 Jan 2025 22:57 - 04 Jan 2025 04:46 #317815
by ccatlett1984
[/code]
Pi5 MESA 7c80 WORKING was created by ccatlett1984
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?
Last edit: 04 Jan 2025 04:46 by ccatlett1984.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 18036
- Thank you received: 4860
01 Jan 2025 23:09 #317819
by PCW
Replied by PCW on topic Pi5 MESA 7c80: mesaflash can't see the card.
Are you using the latest mesaflash?
(3.5.10)
(3.5.10)
Please Log in or Create an account to join the conversation.
- ccatlett1984
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 1
01 Jan 2025 23:14 #317820
by ccatlett1984
Replied by ccatlett1984 on topic Pi5 MESA 7c80: mesaflash can't see the card.
repo shows 3.4.5-1 as latest
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 18036
- Thank you received: 4860
01 Jan 2025 23:17 #317821
by PCW
Replied by PCW on topic Pi5 MESA 7c80: mesaflash can't see the card.
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)
github.com/LinuxCNC/mesaflash has the latest
(build instructions on bottom of page)
Please Log in or Create an account to join the conversation.
- ccatlett1984
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 1
01 Jan 2025 23:26 #317823
by ccatlett1984
Replied by ccatlett1984 on topic Pi5 MESA 7c80: mesaflash can't see the card.
removed the installed version using apt, built from source, same issue.
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.
- PCW
- Away
- Moderator
Less
More
- Posts: 18036
- Thank you received: 4860
01 Jan 2025 23:33 - 01 Jan 2025 23:34 #317824
by PCW
Replied by PCW on topic Pi5 MESA 7c80: mesaflash can't see the card.
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
Maybe cable related?
Did you verify the mesaflash version?
mesaflash --version
Last edit: 01 Jan 2025 23:34 by PCW.
Please Log in or Create an account to join the conversation.
- ccatlett1984
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 1
01 Jan 2025 23:34 #317825
by ccatlett1984
Replied by ccatlett1984 on topic Pi5 MESA 7c80: mesaflash can't see the card.
using cable purchased from MESA
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 18036
- Thank you received: 4860
01 Jan 2025 23:39 #317826
by PCW
Replied by PCW on topic Pi5 MESA 7c80: mesaflash can't see the card.
Did you verify the mesaflash version?
mesaflash --version
mesaflash --version
Please Log in or Create an account to join the conversation.
- ccatlett1984
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 1
01 Jan 2025 23:51 #317827
by ccatlett1984
Replied by ccatlett1984 on topic Pi5 MESA 7c80: mesaflash can't see the card.
Pulled and reseated cable.
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 or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 18036
- Thank you received: 4860
01 Jan 2025 23:58 #317828
by PCW
Replied by PCW on topic Pi5 MESA 7c80: mesaflash can't see the card.
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
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 or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.080 seconds