Error loading firmware for 5I23

  • mariusl
  • mariusl's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
12 Sep 2012 09:59 #24186 by mariusl
Error loading firmware for 5I23 was created by mariusl
Hi all,
I am new to the Mesa cards and LinuxCnc for that matter. I am having a hard time getting Emc to run with the 5I23 Mesa card. It would seem that there is a problem loading the firmware. This is the error I get.
halcmd: loadrt hm2_pci config="firmware=hm2/5i23/SVSS8_8.BIT sserial_port_0=0000 num_encoders=4"insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hm2_pci.ko': -1 Unknown symbol in module
<stdin>:1: exit value: 1
<stdin>:1: insmod failed, returned -1

I have two 5I23's installed but trying to load the first one for now. I am on version 2.5.1.

Regards
Marius


www.bluearccnc.com

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

  • mariusl
  • mariusl's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
12 Sep 2012 10:10 #24187 by mariusl
Replied by mariusl on topic Re:Error loading firmware for 5I23
OK I have removed the second 5I23 because I saw that the card was detected but had no config.
I still get the same error. Here is the result more clearly. It would seem that there is a duplicate or unknown symbol???
 113.099469] hm2: loading Mesa HostMot2 driver version 0.15
[  113.101891] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[  113.101927] hm2_pci 0000:04:02.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[  113.101931] hm2_pci: discovered 5i23 at 0000:04:02.0
[  113.102033]  hm2_5i23.0: firmware: requesting hm2/5i23/SVST4_8.BIT
[  113.326283] hm2/hm2_5i23.0: 72 I/O Pins used:
[  113.326288] hm2/hm2_5i23.0:     IO Pin 000 (P2-01): Encoder #1, pin B (Input)
[  113.326291] hm2/hm2_5i23.0:     IO Pin 001 (P2-03): Encoder #1, pin A (Input)
[  113.326294] hm2/hm2_5i23.0:     IO Pin 002 (P2-05): Encoder #0, pin B (Input)
[  113.326297] hm2/hm2_5i23.0:     IO Pin 003 (P2-07): Encoder #0, pin A (Input)
[  113.326300] hm2/hm2_5i23.0:     IO Pin 004 (P2-09): Encoder #1, pin Index (Input)
[  113.326303] hm2/hm2_5i23.0:     IO Pin 005 (P2-11): Encoder #0, pin Index (Input)
[  113.326306] hm2/hm2_5i23.0:     IO Pin 006 (P2-13): PWMGen #1, pin Out0 (PWM or Up) (Output)
[  113.326309] hm2/hm2_5i23.0:     IO Pin 007 (P2-15): PWMGen #0, pin Out0 (PWM or Up) (Output)
[  113.326312] hm2/hm2_5i23.0:     IO Pin 008 (P2-17): PWMGen #1, pin Out1 (Dir or Down) (Output)
[  113.326316] hm2/hm2_5i23.0:     IO Pin 009 (P2-19): PWMGen #0, pin Out1 (Dir or Down) (Output)
[  113.326319] hm2/hm2_5i23.0:     IO Pin 010 (P2-21): PWMGen #1, pin Not-Enable (Output)
[  113.326322] hm2/hm2_5i23.0:     IO Pin 011 (P2-23): PWMGen #0, pin Not-Enable (Output)
[  113.326324] hm2/hm2_5i23.0:     IO Pin 012 (P2-25): Encoder #3, pin B (Input)
[  113.326327] hm2/hm2_5i23.0:     IO Pin 013 (P2-27): Encoder #3, pin A (Input)
[  113.326330] hm2/hm2_5i23.0:     IO Pin 014 (P2-29): Encoder #2, pin B (Input)
[  113.326333] hm2/hm2_5i23.0:     IO Pin 015 (P2-31): Encoder #2, pin A (Input)
[  113.326336] hm2/hm2_5i23.0:     IO Pin 016 (P2-33): Encoder #3, pin Index (Input)
[  113.326339] hm2/hm2_5i23.0:     IO Pin 017 (P2-35): Encoder #2, pin Index (Input)
[  113.326342] hm2/hm2_5i23.0:     IO Pin 018 (P2-37): PWMGen #3, pin Out0 (PWM or Up) (Output)
[  113.326345] hm2/hm2_5i23.0:     IO Pin 019 (P2-39): PWMGen #2, pin Out0 (PWM or Up) (Output)
[  113.326348] hm2/hm2_5i23.0:     IO Pin 020 (P2-41): PWMGen #3, pin Out1 (Dir or Down) (Output)
[  113.326351] hm2/hm2_5i23.0:     IO Pin 021 (P2-43): PWMGen #2, pin Out1 (Dir or Down) (Output)
[  113.326354] hm2/hm2_5i23.0:     IO Pin 022 (P2-45): PWMGen #3, pin Not-Enable (Output)
[  113.326357] hm2/hm2_5i23.0:     IO Pin 023 (P2-47): PWMGen #2, pin Not-Enable (Output)
[  113.326360] hm2/hm2_5i23.0:     IO Pin 024 (P3-01): StepGen #0, pin Step (Output)
[  113.326363] hm2/hm2_5i23.0:     IO Pin 025 (P3-03): StepGen #0, pin Direction (Output)
[  113.326366] hm2/hm2_5i23.0:     IO Pin 026 (P3-05): IOPort
[  113.326368] hm2/hm2_5i23.0:     IO Pin 027 (P3-07): IOPort
[  113.326371] hm2/hm2_5i23.0:     IO Pin 028 (P3-09): IOPort
[  113.326373] hm2/hm2_5i23.0:     IO Pin 029 (P3-11): IOPort
[  113.326376] hm2/hm2_5i23.0:     IO Pin 030 (P3-13): StepGen #1, pin Step (Output)
[  113.326379] hm2/hm2_5i23.0:     IO Pin 031 (P3-15): StepGen #1, pin Direction (Output)
[  113.326381] hm2/hm2_5i23.0:     IO Pin 032 (P3-17): IOPort
[  113.326384] hm2/hm2_5i23.0:     IO Pin 033 (P3-19): IOPort
[  113.326386] hm2/hm2_5i23.0:     IO Pin 034 (P3-21): IOPort
[  113.326388] hm2/hm2_5i23.0:     IO Pin 035 (P3-23): IOPort
[  113.326391] hm2/hm2_5i23.0:     IO Pin 036 (P3-25): StepGen #2, pin Step (Output)
[  113.326394] hm2/hm2_5i23.0:     IO Pin 037 (P3-27): StepGen #2, pin Direction (Output)
[  113.326397] hm2/hm2_5i23.0:     IO Pin 038 (P3-29): IOPort
[  113.326399] hm2/hm2_5i23.0:     IO Pin 039 (P3-31): IOPort
[  113.326401] hm2/hm2_5i23.0:     IO Pin 040 (P3-33): IOPort
[  113.326404] hm2/hm2_5i23.0:     IO Pin 041 (P3-35): IOPort
[  113.326406] hm2/hm2_5i23.0:     IO Pin 042 (P3-37): StepGen #3, pin Step (Output)
[  113.326409] hm2/hm2_5i23.0:     IO Pin 043 (P3-39): StepGen #3, pin Direction (Output)
[  113.326412] hm2/hm2_5i23.0:     IO Pin 044 (P3-41): IOPort
[  113.326414] hm2/hm2_5i23.0:     IO Pin 045 (P3-43): IOPort
[  113.326416] hm2/hm2_5i23.0:     IO Pin 046 (P3-45): IOPort
[  113.326419] hm2/hm2_5i23.0:     IO Pin 047 (P3-47): IOPort
[  113.326421] hm2/hm2_5i23.0:     IO Pin 048 (P4-01): IOPort
[  113.326423] hm2/hm2_5i23.0:     IO Pin 049 (P4-03): IOPort
[  113.326426] hm2/hm2_5i23.0:     IO Pin 050 (P4-05): IOPort
[  113.326428] hm2/hm2_5i23.0:     IO Pin 051 (P4-07): IOPort
[  113.326430] hm2/hm2_5i23.0:     IO Pin 052 (P4-09): IOPort
[  113.326432] hm2/hm2_5i23.0:     IO Pin 053 (P4-11): IOPort
[  113.326435] hm2/hm2_5i23.0:     IO Pin 054 (P4-13): IOPort
[  113.326437] hm2/hm2_5i23.0:     IO Pin 055 (P4-15): IOPort
[  113.326439] hm2/hm2_5i23.0:     IO Pin 056 (P4-17): IOPort
[  113.326441] hm2/hm2_5i23.0:     IO Pin 057 (P4-19): IOPort
[  113.326444] hm2/hm2_5i23.0:     IO Pin 058 (P4-21): IOPort
[  113.326446] hm2/hm2_5i23.0:     IO Pin 059 (P4-23): IOPort
[  113.326448] hm2/hm2_5i23.0:     IO Pin 060 (P4-25): IOPort
[  113.326451] hm2/hm2_5i23.0:     IO Pin 061 (P4-27): IOPort
[  113.326453] hm2/hm2_5i23.0:     IO Pin 062 (P4-29): IOPort
[  113.326455] hm2/hm2_5i23.0:     IO Pin 063 (P4-31): IOPort
[  113.326457] hm2/hm2_5i23.0:     IO Pin 064 (P4-33): IOPort
[  113.326460] hm2/hm2_5i23.0:     IO Pin 065 (P4-35): IOPort
[  113.326462] hm2/hm2_5i23.0:     IO Pin 066 (P4-37): IOPort
[  113.326464] hm2/hm2_5i23.0:     IO Pin 067 (P4-39): IOPort
[  113.326467] hm2/hm2_5i23.0:     IO Pin 068 (P4-41): IOPort
[  113.326469] hm2/hm2_5i23.0:     IO Pin 069 (P4-43): IOPort
[  113.326471] hm2/hm2_5i23.0:     IO Pin 070 (P4-45): IOPort
[  113.326473] hm2/hm2_5i23.0:     IO Pin 071 (P4-47): IOPort
[  113.326550] hm2/hm2_5i23.0: registered
[  113.326552] hm2_5i23.0: initialized AnyIO board at 0000:04:02.0
[  113.335104] HAL: ERROR: duplicate variable '.in'
[  113.644145] hm2_5i23.0: dropping AnyIO board at 0000:04:02.0
[  113.644150] hm2/hm2_5i23.0: unregistered
[  113.644168] hm2_pci 0000:04:02.0: PCI INT A disabled
[  113.644187] hm2_pci: driver unloaded
[  113.646022] hm2: unloading
[  113.703819] RTAI[math]: unloaded.
[  113.727828] SCHED releases registered named ALIEN RTGLBH
[  113.756318] RTAI[malloc]: unloaded.
[  113.856375] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[  113.858286] I-pipe: Domain RTAI unregistered.
[  113.858326] RTAI[hal]: unmounted.

Regards
Marius


www.bluearccnc.com

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

More
12 Sep 2012 14:18 #24192 by PCW
Replied by PCW on topic Re:Error loading firmware for 5I23
[ 113.335104] HAL: ERROR: duplicate variable '.in'

Is this possibly a typo in the hal file?

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

  • mariusl
  • mariusl's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
12 Sep 2012 14:33 #24193 by mariusl
Replied by mariusl on topic Re:Error loading firmware for 5I23
Not likely, I started a new installation on another computer and did no manual input to the HAL file. This is a vanilla flavor installation. I did not want to add any input in case I fiddled it in some way.
The error is the same in both cases.

Regards
Marius


www.bluearccnc.com

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

More
12 Sep 2012 14:59 #24196 by andypugh
Replied by andypugh on topic Re:Error loading firmware for 5I23
PCW wrote:

[ 113.335104] HAL: ERROR: duplicate variable '.in'

Is this possibly a typo in the hal file?


I have a vague memory of what this is, it caught me out at one point.

Somewhere there is a component with a name, but the name is blank.

Can you attach the HAL file, I suspect we will spot the problem.

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

  • mariusl
  • mariusl's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
12 Sep 2012 15:24 #24199 by mariusl
Replied by mariusl on topic Re:Error loading firmware for 5I23
Andy,
I redid the config with the pyVcp not as a blank program but rather the "Spindle Speed" program that is included with the config. This seem to fix the problem. It might be as you say about the blank name somewhere as I scoured all the xml and HAL files for the offending party but did not find any reference to the error. So now the problem is gone and I cannot say how it was fixed. I find this kind of situation very frustrating for myself. What is the use of battling on a problem and then learn nothing from it. :-(

Regards
Marius


www.bluearccnc.com

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

More
12 Sep 2012 18:40 #24206 by cmorley
Replied by cmorley on topic Re:Error loading firmware for 5I23
next time post the config files and we can help more :)

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

  • mariusl
  • mariusl's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
12 Sep 2012 21:44 #24209 by mariusl
Replied by mariusl on topic Re:Error loading firmware for 5I23
cmorley wrote:

next time post the config files and we can help more :)


Well Mr Morley, this is next time. I reverted to the original config with a custom vcp and the error is there. I would prefer to solve this problem as I dont want the spindle stuff included on my screen. There is conflict when I load my own pyVcp stuff.

File Attachment:

File Name: FastFab.zip
File Size:4 KB

Regards
Marius


www.bluearccnc.com

Attachments:

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

More
12 Sep 2012 22:08 #24213 by BigJohnT
Replied by BigJohnT on topic Re:Error loading firmware for 5I23
When I'm trying to troubleshoot a complicated configuration like yours I start with the ini file and comment out the pyvcp, postgui.hal and any custom hal files then see if my config runs. If not take everything out of the main hal file except loading components and adding to a function... then add back a chunk at a time.

John

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

More
13 Sep 2012 07:07 #24226 by andypugh
Replied by andypugh on topic Re:Error loading firmware for 5I23
mariusl wrote:

I reverted to the original config with a custom vcp and the error is there.


The problem is here:
loadrt abs names=
loadrt lowpass names=
By default both abs and lowpass create one instance. In this case we end up with a lowpass called "" and an abs called "".
Then they both try to create their input pin, ".in" and chaos ensues.

An abs and a lowpass are typically used for a spindle speed display. If you don't have one of those, then delete these lines.
If you do have one, then either make the names match the ones in the postgui.hal, or delete the "names=" part.

This looks like a pncconf bug.

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

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