Open ArcEye opened 6 years ago
Comment by the-snowwhite Thu Aug 31 21:23:55 2017
Odd This is the only change I can think of related to the new _CRAMPS commit series that directly affects the (other) DE0_Nano_SoC_DB25 quartus project:
https://github.com/machinekit/mksocfpga/commit/fca882b8bc25ff2e2e81b4a0979ee2c6bf7c041e
Comment by ArcEye Fri Sep 1 11:29:50 2017
@luminize
Try running nm -C hm2_soc_ol.so
if that does not produce anything the regular symbols have probably been stripped so try
nm -D hm2_soc_ol.c
That should produce this
root@armv7-bb:/downloads# nm -D hm2_soc_ol.so
U __aeabi_unwind_cpp_pr0
.......
U hm2_register
U hm2_unregister
.......
U __xstat
Then try hostmot2.so
from the same build
root@armv7-bb:/downloads# nm -D hostmot2.so
U __aeabi_unwind_cpp_pr0
......
00015958 T hm2_allocate_bspi_tram
00015ea0 T hm2_bspi_set_read_function
00015a8c T hm2_bspi_setup_chan
00015f54 T hm2_bspi_set_write_function
000159c4 T hm2_bspi_write_chan
00002264 T hm2_get_bspi
0000238c T hm2_get_pktuart
00002420 T hm2_get_sserial
000022f8 T hm2_get_uart
00017598 T hm2_pktuart_read
00017200 T hm2_pktuart_send
00017050 T hm2_pktuart_setup
00003e40 T hm2_register
0001580a T hm2_tram_add_bspi_frame
00016974 T hm2_uart_read
000166b0 T hm2_uart_send
000164f8 T hm2_uart_setup
00004c84 T hm2_unregister
.......
U __xstat
These prints are from a natively built package prior to any commits from this work
The hm2_unregister is specifically exported at https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/mesa-hostmot2/hostmot2.c#L1752
Seems peculiar that that symbol would be missing but not hm2_register
, which must occur first ☹️
Comment by luminize Fri Sep 1 12:00:09 2017
Here are 3 outputs, from hm2_soc_ol, hostmot2 and hm2_pci https://gist.github.com/luminize/1c0cad043854a53451e714ff5ed3412a https://gist.github.com/luminize/e632ff0c23a5ce3ac5ddf9c7317e6824 https://gist.github.com/luminize/688eb6ad21ee5ab3bec484de72ae1c98
00000f18 t hm2_soc_write
U hm2_unregister
00000b8c t _init
00017ed0 t hm2_uart_write
00004e94 T hm2_unregister
0001bb2c t hm2_waitirq
U hm2_register
U hm2_unregister
0000081c t _init
Comment by ArcEye Fri Sep 1 14:37:27 2017
Looks to be pretty much as it should be. Can't do a direct comparison because you used the -C switch and the binary package I opened had all the symbols stripped. Might mean something to the others, or it might be nothing to do with it.
Comment by machinekoder Thu Nov 16 11:50:28 2017
@luminize
In your output above the line <stdin>:1: Realtime module 'hostmot2' loaded
is missing. I had got exactly the same error message when I forgot to load the hostmot2
module.
Issue by luminize Wed Aug 30 13:11:36 2017 Originally opened as https://github.com/machinekit/machinekit/issues/1264
Happens when trying to load a different FPGA configuration when restarting a realtime environment
see output below when trying to load
config="firmware=socfpga/dtbo/DE0_Nano_SoC_DB25.7I76_7I76_7I76_7I76.dtbo num_stepgens=5 enable_adc=1" debug=1
snip from /var/log/linuxcnc.log
RIP build commit: