Raspberry Pi 4 & MESA 7i92

More
23 Jan 2020 19:35 #155567 by Mike29
HI,
I've been working this issue for about a week now and I seem to be unable to install mesa flash on RPI4. I've followed the instructions on GitHub (jetthorton) but no success. Here is the output from the install command and any help is appreciated. BTW I can ping the 7i92 from the RPI
Thank you
pi@cnc:~/mesaflash/mesaflash $ sudo make install
gcc -o mesaflash mesaflash.o libanyio.a -lpci -lm
/usr/bin/ld: libanyio.a(anyio.o): in function `anyio_cleanup':
/home/pi/mesaflash/mesaflash/anyio.c:88: undefined reference to `usb_boards_cleanup'
/usr/bin/ld: /home/pi/mesaflash/mesaflash/anyio.c:90: undefined reference to `spi_boards_cleanup'
/usr/bin/ld: libanyio.a(anyio.o): in function `anyio_find_dev':
/home/pi/mesaflash/mesaflash/anyio.c:149: undefined reference to `usb_boards_init'
/usr/bin/ld: /home/pi/mesaflash/mesaflash/anyio.c:151: undefined reference to `usb_boards_scan'
/usr/bin/ld: /home/pi/mesaflash/mesaflash/anyio.c:154: undefined reference to `spi_boards_init'
/usr/bin/ld: /home/pi/mesaflash/mesaflash/anyio.c:156: undefined reference to `spi_boards_scan'
/usr/bin/ld: /home/pi/mesaflash/mesaflash/anyio.c:186: undefined reference to `usb_boards_init'
/usr/bin/ld: /home/pi/mesaflash/mesaflash/anyio.c:188: undefined reference to `usb_boards_scan'
/usr/bin/ld: /home/pi/mesaflash/mesaflash/anyio.c:191: undefined reference to `spi_boards_init'
/usr/bin/ld: /home/pi/mesaflash/mesaflash/anyio.c:193: undefined reference to `spi_boards_scan'
/usr/bin/ld: libanyio.a(anyio.o): in function `anyio_dev_print_sserial_info':
/home/pi/mesaflash/mesaflash/anyio.c:348: undefined reference to `sserial_module_init'
collect2: error: ld returned 1 exit status
make: *** [Makefile:70: mesaflash] Error 1

Another tidbit of information
pi@cnc:~/mesaflash/mesaflash $ uname -a
Linux cnc 4.19.71-rt24-v7l+ #1 SMP PREEMPT RT Wed Jan 8 13:44:15 EST 2020 armv7l GNU/Linux

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

More
23 Jan 2020 21:11 #155573 by PCW
Replied by PCW on topic Raspberry Pi 4 & MESA 7i92
I just cloned a copy and built mesaflash on stock Armbian on a RPI4
without issue. You might try make clean and make again

Heres what I get:


pi@raspberrypi:~/mesaflash/mesaflash/mesaflash $ make
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c common.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c lbp.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c lbp16.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c bitfile.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c hostmot2.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eeprom.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c anyio.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eth_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c epp_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c usb_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c pci_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c sserial_module.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c encoder_module.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eeprom_local.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eeprom_remote.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c spi_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -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_boar\
ds.o epp_boards.o usb_boards.o pci_boards.o sserial_module.o encoder_module.o eeprom_lo\
cal.o eeprom_remote.o spi_boards.o serial_boards.o
ranlib libanyio.a
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c mesaflash.c
gcc -o mesaflash mesaflash.o libanyio.a -lpci -lm
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c examples/pci_encoder_read.c
gcc -o pci_encoder_read pci_encoder_read.o libanyio.a -lpci -lm
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c examples/pci_analog_write.c
gcc -o pci_analog_write pci_analog_write.o libanyio.a -lpci -lm

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

More
24 Jan 2020 20:33 #155680 by Mike29
Replied by Mike29 on topic Raspberry Pi 4 & MESA 7i92
Thank you for the help and I took your advice of using "make clean" and then went through the same installation procedure and received the same response which is different then what you got on your RPI. Here is the response from linux
pi@cnc:~/mesaflash/mesaflash $ sudo make install
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c mesaflash.c
rm -f libanyio.a mesaflash
rm: cannot remove 'mesaflash': Is a directory
make: *** [Makefile:62: libanyio.a] Error 1

Here is the response from the "make" command

pi@cnc:~/mesaflash/mesaflash $ make
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c common.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c lbp.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c lbp16.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c bitfile.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c hostmot2.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eeprom.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c anyio.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eth_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c epp_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c usb_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c pci_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c sserial_module.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c encoder_module.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eeprom_local.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eeprom_remote.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c spi_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c serial_boards.c
rm -f libanyio.a mesaflash
rm: cannot remove 'mesaflash': Is a directory
make: *** [Makefile:62: libanyio.a] Error 1

Any other thoughts are appreciated

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

More
24 Jan 2020 20:46 #155682 by PCW
Replied by PCW on topic Raspberry Pi 4 & MESA 7i92
Can you try _not_ running make install or sudo anything
in other words cd to the source directory
type:
make clean
then type:
make

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

More
24 Jan 2020 20:50 #155684 by Mike29
Replied by Mike29 on topic Raspberry Pi 4 & MESA 7i92
I believe this is what you mean?

pi@cnc:~/mesaflash/mesaflash $ make clean
rm -f *.o libanyio.a mesaflash pci_encoder_read pci_analog_write
rm: cannot remove 'mesaflash': Is a directory
make: *** [Makefile:136: clean] Error 1

pi@cnc:~/mesaflash/mesaflash $ make
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c common.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c lbp.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c lbp16.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c bitfile.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c hostmot2.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eeprom.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c anyio.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eth_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c epp_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c usb_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c pci_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c sserial_module.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c encoder_module.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eeprom_local.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eeprom_remote.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c spi_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c serial_boards.c
rm -f libanyio.a mesaflash
rm: cannot remove 'mesaflash': Is a directory
make: *** [Makefile:62: libanyio.a] Error 1

pi@cnc:~/mesaflash/mesaflash $

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

More
24 Jan 2020 20:54 #155685 by PCW
Replied by PCW on topic Raspberry Pi 4 & MESA 7i92
Sounds like you have accidentally created a mesaflash subdirectory

cd to the source directory and type:
rm -rf mesaflash
and then
make clean
make

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

More
24 Jan 2020 20:57 #155688 by Mike29
Replied by Mike29 on topic Raspberry Pi 4 & MESA 7i92
Doesn't appear to have errored out.

pi@cnc:~/mesaflash/mesaflash $ rm -rf mesaflash
pi@cnc:~/mesaflash/mesaflash $ make clean
rm -f *.o libanyio.a mesaflash pci_encoder_read pci_analog_write
pi@cnc:~/mesaflash/mesaflash $ make
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c common.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c lbp.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c lbp16.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c bitfile.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c hostmot2.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eeprom.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c anyio.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eth_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c epp_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c usb_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c pci_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c sserial_module.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c encoder_module.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eeprom_local.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c eeprom_remote.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c spi_boards.c
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -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 -D_GNU_SOURCE -O0 -g -I/usr/include -c mesaflash.c
gcc -o mesaflash mesaflash.o libanyio.a -lpci -lm
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c examples/pci_encoder_read.c
gcc -o pci_encoder_read pci_encoder_read.o libanyio.a -lpci -lm
gcc -D_GNU_SOURCE -O0 -g -I/usr/include -c examples/pci_analog_write.c
gcc -o pci_analog_write pci_analog_write.o libanyio.a -lpci -lm

pi@cnc:~/mesaflash/mesaflash $

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

More
24 Jan 2020 21:00 #155689 by Mike29
Replied by Mike29 on topic Raspberry Pi 4 & MESA 7i92
Kind of making progress-:)

pi@cnc:~/mesaflash/mesaflash $ ./mesaflash

Mesaflash version 3.4.0~pre (built on Jan 24 2020 15:55:57 with libpci 3.5.2)
Configuration and diagnostic tool for Mesa Electronics PCI(E)/ETH/EPP/USB boards
(C) 2013-2015 Michael Geszkiewicz (contact: This email address is being protected from spambots. You need JavaScript enabled to view it.)
(C) Mesa Electronics
Try 'mesaflash --help' for more information

pi@cnc:~/mesaflash/mesaflash $ mesaflash --help
bash: mesaflash: command not found

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

More
24 Jan 2020 21:17 #155691 by Mike29
Replied by Mike29 on topic Raspberry Pi 4 & MESA 7i92
Thank you, Now I'll see if I can access the 7i92.

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

More
24 Jan 2020 22:09 #155693 by PCW
Replied by PCW on topic Raspberry Pi 4 & MESA 7i92
You should be able to install it now with sudo make install

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

Time to create page: 0.328 seconds
Powered by Kunena Forum