ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board

More
3 years 9 months ago #261257 by juergenmoser
I also tried to remove the new libjson-c-dev0.15 and try to install 0.12, but then it automatically installs 0.15 again

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

More
3 years 9 months ago #261304 by juergenmoser
@ TOLP2 i got LitexCNC now running on Buster2.8.4
So the next problem what I have:
What is that meaning  wrong Fingerprint in the Error Discription?
Code:
litexcnc: Loading Litex CNC driver version 1.1.0 load_components_show_pins.hal:1: Component 'litexcnc' ready load_components_show_pins.hal:1: Program '/usr/bin/rtapi_app' started smalloc_up: shmem available 347647 load_components_show_pins.hal:1: Realtime module 'litexcnc' loaded HAL: removing component 02 HAL: releasing RTAPI resources HAL: component 02 removed, name = 'halcmd3266' HAL: initializing hal_lib /usr/bin/rtapi_app load litexcnc_eth config_file="/home/cnc/Downloads/5a-75b.json" HAL: initializing component 'halcmd3266' HAL: component 'halcmd3266' initialized, ID = 06 litexcnc: loading litexCNC etherbone driver version 0.02 litexcnc: Connecting to board at address: 192.168.2.50:1234 [color=#27ae60]litexcnc: Fingerprint incorrect (driver: -1791217999, FPGA: 674788089)[/color] litexcnc: Validation of config failed. board fails LitexCNC registration litexcnc_eth: rtapi_app_main: Operation not permitted (-1) load_components_show_pins.hal:2: waitpid failed /usr/bin/rtapi_app litexcnc_eth load_components_show_pins.hal:2: /usr/bin/rtapi_app exited without becoming ready load_components_show_pins.hal:2: insmod for litexcnc_eth failed, returned -1 HAL: removing component 06 HAL: releasing RTAPI resources HAL: component 06 removed, name = 'halcmd3266'
 
The following user(s) said Thank You: TOLP2

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

More
3 years 9 months ago #261307 by TOLP2
Thanks for narrowing it down to the version of LinuxCNC, 2.8.4 works, 2.9 not.

About the fingerprint: the JSON used for compiling the driver is different from the JSON used in the HAL-file. This can be a small change (for example removal of a space), because the checksum is merely a CRC-value. Please make sure that the JSON-file is not altered between compilation and running the HAL.

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

More
3 years 9 months ago #261331 by deroj
Nice to know :)
So I will try to install LCNC 2.8.4.
Or would you recommend an ISO with Buster?

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

More
3 years 9 months ago #261339 by juergenmoser
@deroj I have downloaded the normal Buster image from the linuxcnc website 2.8.4 Buster (ISO) i can share you all the commands to install it - but with no warranties!  i have to check everything again and maybe make a installl script for this.. The only thing is i cannot make the bitfile in 2.8.4 - i make the bitfile in min21 ( In 2.8.4 I always get an error that yosys is missing but I already installed it!(to $PATH)

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

More
3 years 9 months ago #261342 by TOLP2

 

File Attachment:

File Name: install_driver.txt
File Size:36 KB
so i found the original halcompile and renamed it to halcompile1.
then i run the litexcnc install_driver again with no changes.

i attached the terminal output. maybe you can find my mistakes?
thank you
In the output there are two problems:
  1. it is compiled with warnings enabled. This gives insight that on 64-bit systems the formatting of the data-types in the print-statements is not correct. This warnings still lead to a driver which should work. I created an issue for this and found a solution for this problem. Apparently, warnings were not on my system or my development OS is 32-bit as well  (never checked that).
  2. The second problem is a linking problem which has been experienced by multiple users. This occurs when LinuxCNC 2.9 is used, cause is yet to be determined. I also created an issue for this.
At this moment only LinuxCNC 2.8.x is supported. 

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

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