7i76E & 7i74

More
17 Feb 2022 20:58 - 17 Feb 2022 21:01 #235165 by kono
7i76E & 7i74 was created by kono
Hello.

For getting into Linux CNC, I built a small test setup (mainly power supply, 7i76E, 7i74 and 7i73... planning to add additional hardware later).

As this is just for testing purposes only, I run Debian 11 64bit in a VM (VM Player). PREEMPT_RT kernel is installed (uname -a output: "5.10.0-11-rt-amd64 #1 SMP PREEMPT_RT Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux"). I built Linux CNC from master branch (make & sudo make setuid) and run it directly from bin dir.

I am able to ping 7i76E. Also I can access the 7i76E using mesaflash:
ETH device 7I76E-16 at ip=192.168.1.121
Communication:
  transport layer: ethernet IPv4 UDP
  ip address: 192.168.1.121
  mac address: 00:60:1B:10:4A:99
  protocol: LBP16 version 3
Board info:
  Flash size: 16Mb (id: 0x14)
  Connectors count: 3
  Pins per connector: 17
  Connectors names: on-card P1 P2
  FPGA type: 6slx16ftg256
  Number of leds: 4
Board firmware info:
  memory spaces:
    0: HostMot2 (registers, RW, 32-bit) [size=64K]
    1: KSZ8851 (registers, RW, 16-bit) [size=256]
    2: EtherEEP (EEPROM, RW, 16-bit) [size=128], page size: 1, erase size: 1
    3: FPGAFlsh (flash, RW, 32-bit) [size=16M], page size: 256, erase size: 65536
    4: Timers (memory, RW, 16-bit) [size=16]
    6: LBP16RW (memory, RW, 16-bit) [size=16]
    7: LBP16RO (memory, RO, 16-bit) [size=16]
  [space 0] HostMot2
  [space 2] Ethernet eeprom:
    mac address: 00:60:1B:10:4A:99
    ip address: 10.10.10.10
    board name: 7I76E-16
    user leds: eth debug
  [space 3] FPGA flash eeprom:
    flash size: 16Mb (id: 0x14)
  [space 4] timers:
    uSTimeStampReg: 0xE678
    WaituSReg: 0x0000
    HM2Timeout: 0x0000
  [space 6] LBP16 control/status:
    packets received: all 11605, UDP 8276, bad 0
    packets sent: all 5392, UDP 5368, bad 0
    parse errors: 0, mem errors 0, write errors 0
    error flags: 0x0000
    debug LED ptr: 0x0008
    scratch: 0x0000
  [space 7] LBP16 info:
    board name: 7I76E-16
    LBP16 protocol version 3
    board firmware version 17
    IP address jumpers at boot: fixed 192.168.1.121


I successfully flashed "7i76e_7i76x1_7i74x1D.bit" from support files provided on mesa website.

Now, I try to run halrun with these commands:
loadrt hostmot2

Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15

loadrt hm2_eth board_ip="192.168.1.121" 

hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 192.168.1.121: INFO: Hardware address (MAC): 00:60:1b:10:4a:99
hm2_eth: discovered 7I76E-16
hm2/hm2_7i76e.0: Low Level init 0.15
hm2/hm2_7i76e.0: Smart Serial Firmware Version 43
hm2/hm2_7i76e.0: No GTOC in sserial read globals
hm2/hm2_7i76e.0: Failed to read/setup the globals on hm2_7i76e.0.7i76.0.0
hm2/hm2_7i76e.0: Remote setup failure on instance 0
hm2/hm2_7i76e.0: failed to parse Module Descriptor 5
board fails HM2 registration
hm2_eth: in hm2_eth_reset
hm2_eth: rtapi_app_main: Invalid argument (-22)
<stdin>:2: waitpid failed /home/cnc/dev/linuxcnc/rip/bin/rtapi_app hm2_eth
<stdin>:2: /home/cnc/dev/linuxcnc/rip/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_eth failed, returned -1

I wonder what I'm doing wrong here? Is it even possible to run this in a VM or is phyiscal hardware required (even for testing purposes)?

After two days of research and multiple times of reinstalling everything... I hope to find some assitance here.
Last edit: 17 Feb 2022 21:01 by kono.

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

More
17 Feb 2022 21:09 #235167 by PCW
Replied by PCW on topic 7i76E & 7i74
I don't think you can make the hm2 driver work without real time response from the hardware

 
The following user(s) said Thank You: kono

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

More
17 Feb 2022 21:29 #235174 by kono
Replied by kono on topic 7i76E & 7i74
Thank you. Will try on/with real hardware in next days.

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

More
17 Feb 2022 21:51 #235181 by tommylight
Replied by tommylight on topic 7i76E & 7i74

Is it even possible to run this in a VM ....

The short answer is no, not for actually controlling a machine.
But, you can always boot into a Live session from USB and work from there, just keep in mind to save changes to a hard drive or another USB.
You can also boot from USB and use an existing configuration, make a new configuration and save it, etc etc.
The following user(s) said Thank You: kono

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

More
20 Feb 2022 17:33 #235401 by kono
Replied by kono on topic 7i76E & 7i74
I tested this today on real hardware. Works without any issue so far.

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

Moderators: PCWjmelson
Time to create page: 0.160 seconds
Powered by Kunena Forum