Re: [Emc-users] HAL setup of Mesa 4i65

2009-10-16 Thread Dave Camarillo
Hi Peter, thanks for the info. We finally got around to messing with
this again. We did a couple things:

1) Set the 4i65 jumpers back to their default positions, that was
definitely part of the issue...
2) Updated BIOS
3) set jumpers on the motherboard relating to PCI/ISA bus configuration.

After doing so, the new 'lspci' output is
01:07.0 Bridge [0680]: PLX Technology, Inc. PCI9030 32-bit 33MHz PCI
- IOBus Bridge [10b5:9030]
   Subsystem: PLX Technology, Inc. Unknown device [10b5:3132]
   Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
   Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
TAbort- TAbort- MAbort- SERR- PERR-
   Interrupt: pin A routed to IRQ 9
   Region 0: Memory at fdcff000 (32-bit, non-prefetchable) [size=128]
   Region 1: I/O ports at df00 [size=128]
   Region 2: I/O ports at dc00 [size=256]
   Region 3: I/O ports at da00 [size=256]
   Region 4: Memory at fdcd (32-bit, non-prefetchable) [size=64K]
   Region 5: Memory at fdce (32-bit, non-prefetchable) [size=64K]
   Capabilities: [40] Power Management version 0
   Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
   Status: D0 PME-Enable- DSel=0 DScale=3 PME-


We found that the EMC2.2.8 build that is in the normal package tree
was having problems loading the HAL kernel modules, kernel null
pointer de-reference errors. We cloned the git repo and went to
v2.3.4-pre and those issues went away...

We were able to get the sample 4i65 stepper configs working,
generating step/direction outputs and driving our 10amp stepper motor,
man that thing is noisy w/ micro stepping disabled! Anyway, were
continuing to refine the config and get all the details flushed out.

Thanks again for all your help, it's much appreciated!

Best Regards,
-Dave Camarillo





 Date: Tue, 13 Oct 2009 13:38:52 -0700 (PDT)
 From: Peter C. Wallace p...@mesanet.com
 Subject: Re: [Emc-users] HAL setup of Mesa 4i65
 To: Enhanced Machine Controller (EMC)
        emc-users@lists.sourceforge.net
 Message-ID: pine.neb.4.64.0910131331370.20...@freeby.mesanet.com
 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

 On Thu, 8 Oct 2009, Dave Camarillo wrote:

 Date: Thu, 8 Oct 2009 20:52:57 -0700
 From: Dave Camarillo dave.camari...@gmail.com
 Reply-To: Enhanced Machine Controller (EMC)
     emc-users@lists.sourceforge.net
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] HAL setup of Mesa 4i65

 Date: Thu, 8 Oct 2009 18:21:46 -0700
 From: Dave Camarillo dave.camari...@gmail.com
 Reply-To: Enhanced Machine Controller (EMC)
     emc-users@lists.sourceforge.net
 To: emc-users@lists.sourceforge.net
 Subject: [Emc-users] HAL setup of Mesa 4i65

 I'm trying to bring up a 4i65 card on a PC-104+ stack and am having a
 little trouble with the hal driver load process. When I load the
 hm2_pci driver, it doesn't seem to do anything of interest. The
 'dmesg' output indicates it's loading a driver and what the version
 is, but when I do a show all in halcmd it doesn't show any pins...
 I've messed with loading some of the other hal drivers, and the
 parallel port driver and those all cause pins to start showing up, but
 not this one.
 Below is more detailed information, any ideas as to what might be up?

 Thanks,
 -Dave


 Heres what I get with lspci with a 4I65 installed in a desktop system with
 EMC2 2.3.3 and Ubunto 8.04:


 03:00.0 Bridge: PLX Technology, Inc. PCI9030 32-bit 33MHz PCI - IOBus Bridge
        Subsystem: PLX Technology, Inc. Unknown device 3132
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
 Stepping- SERR+ FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- 
 TAbort- MAbort- SERR- PERR-
        Interrupt: pin A routed to IRQ 10
        Region 0: Memory at fc9ffc00 (32-bit, non-prefetchable) [size=128]
        Region 1: I/O ports at dc00 [size=128]
        Region 2: I/O ports at d800 [size=256]
        Region 3: I/O ports at d400 [size=256]
        Region 4: Memory at fc9e (32-bit, non-prefetchable) [size=64K]
        Region 5: Memory at fc9d (32-bit, non-prefetchable) [size=64K]
        Capabilities: access denied


 Note that 3132 = 4I65s subsystem ID #


 The HM2 part of the dmesg is here:


 http://filebin.ca/fewoc


 These are all with the defaults (I just installed the 4I65, and selected
 hm2servo and 4I65 from the startup menu)

 Peter Wallace
 Mesa Electronics

 (\__/)
 (='.'=) This is Bunny. Copy and paste bunny into your
 ()_() signature to help him gain world domination.





--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009

Re: [Emc-users] HAL setup of Mesa 4i65

2009-10-16 Thread Peter C. Wallace
On Fri, 16 Oct 2009, Dave Camarillo wrote:

 Date: Fri, 16 Oct 2009 16:39:49 -0700
 From: Dave Camarillo dave.camari...@gmail.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] HAL setup of Mesa 4i65
 
 Hi Peter, thanks for the info. We finally got around to messing with
 this again. We did a couple things:

 1) Set the 4i65 jumpers back to their default positions, that was
 definitely part of the issue...
 2) Updated BIOS
 3) set jumpers on the motherboard relating to PCI/ISA bus configuration.

 After doing so, the new 'lspci' output is
 01:07.0 Bridge [0680]: PLX Technology, Inc. PCI9030 32-bit 33MHz PCI
 - IOBus Bridge [10b5:9030]
   Subsystem: PLX Technology, Inc. Unknown device [10b5:3132]
   Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
 ParErr- Stepping- SERR- FastB2B-
   Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
 TAbort- TAbort- MAbort- SERR- PERR-
   Interrupt: pin A routed to IRQ 9
   Region 0: Memory at fdcff000 (32-bit, non-prefetchable) [size=128]
   Region 1: I/O ports at df00 [size=128]
   Region 2: I/O ports at dc00 [size=256]
   Region 3: I/O ports at da00 [size=256]
   Region 4: Memory at fdcd (32-bit, non-prefetchable) [size=64K]
   Region 5: Memory at fdce (32-bit, non-prefetchable) [size=64K]
   Capabilities: [40] Power Management version 0
   Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
 PME(D0-,D1-,D2-,D3hot-,D3cold-)
   Status: D0 PME-Enable- DSel=0 DScale=3 PME-


That looks a lot heathier!



 We found that the EMC2.2.8 build that is in the normal package tree
 was having problems loading the HAL kernel modules, kernel null
 pointer de-reference errors. We cloned the git repo and went to
 v2.3.4-pre and those issues went away...

There are also lots of fixed bugs in the stepgenerator in 2.3.3+


 We were able to get the sample 4i65 stepper configs working,
 generating step/direction outputs and driving our 10amp stepper motor,
 man that thing is noisy w/ micro stepping disabled! Anyway, were
 continuing to refine the config and get all the details flushed out.

 Thanks again for all your help, it's much appreciated!

Welcome, glad you got it going!


 Best Regards,
 -Dave Camarillo



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
()_() signature to help him gain world domination.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL setup of Mesa 4i65

2009-10-13 Thread Peter C. Wallace
On Thu, 8 Oct 2009, Dave Camarillo wrote:

 Date: Thu, 8 Oct 2009 20:52:57 -0700
 From: Dave Camarillo dave.camari...@gmail.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] HAL setup of Mesa 4i65
 
 Date: Thu, 8 Oct 2009 18:21:46 -0700
 From: Dave Camarillo dave.camari...@gmail.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: emc-users@lists.sourceforge.net
 Subject: [Emc-users] HAL setup of Mesa 4i65

 I'm trying to bring up a 4i65 card on a PC-104+ stack and am having a
 little trouble with the hal driver load process. When I load the
 hm2_pci driver, it doesn't seem to do anything of interest. The
 'dmesg' output indicates it's loading a driver and what the version
 is, but when I do a show all in halcmd it doesn't show any pins...
 I've messed with loading some of the other hal drivers, and the
 parallel port driver and those all cause pins to start showing up, but
 not this one.
 Below is more detailed information, any ideas as to what might be up?

 Thanks,
 -Dave


Heres what I get with lspci with a 4I65 installed in a desktop system with 
EMC2 2.3.3 and Ubunto 8.04:


03:00.0 Bridge: PLX Technology, Inc. PCI9030 32-bit 33MHz PCI - IOBus Bridge
Subsystem: PLX Technology, Inc. Unknown device 3132
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR+ FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- 
TAbort- MAbort- SERR- PERR-
Interrupt: pin A routed to IRQ 10
Region 0: Memory at fc9ffc00 (32-bit, non-prefetchable) [size=128]
Region 1: I/O ports at dc00 [size=128]
Region 2: I/O ports at d800 [size=256]
Region 3: I/O ports at d400 [size=256]
Region 4: Memory at fc9e (32-bit, non-prefetchable) [size=64K]
Region 5: Memory at fc9d (32-bit, non-prefetchable) [size=64K]
Capabilities: access denied


Note that 3132 = 4I65s subsystem ID #


The HM2 part of the dmesg is here:


http://filebin.ca/fewoc


These are all with the defaults (I just installed the 4I65, and selected 
hm2servo and 4I65 from the startup menu)

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
()_() signature to help him gain world domination.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL setup of Mesa 4i65

2009-10-09 Thread Sebastian Kuzminsky
Peter C. Wallace wrote:
 Another possibility is that theres another PCI9030 chip in the system (does 
 the driver skip these cards?)

The driver looks for boards with the Device ID of the PCI9030 
(10b5:9030) and the Subsystem ID of the 5i20 (10b5:3131) or 4i65 
(10b5:3132).

Any 9030's lacking these Subsystem IDs will be ignored by the driver.


-- 
Sebastian Kuzminsky

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL setup of Mesa 4i65

2009-10-09 Thread Peter C. Wallace
On Fri, 9 Oct 2009, Sebastian Kuzminsky wrote:

 Date: Fri, 09 Oct 2009 04:46:11 -0600
 From: Sebastian Kuzminsky s...@highlab.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] HAL setup of Mesa 4i65
 
 Peter C. Wallace wrote:
 Another possibility is that theres another PCI9030 chip in the system (does
 the driver skip these cards?)

 The driver looks for boards with the Device ID of the PCI9030
 (10b5:9030) and the Subsystem ID of the 5i20 (10b5:3131) or 4i65
 (10b5:3132).

 Any 9030's lacking these Subsystem IDs will be ignored by the driver.



Which is very puzzling, how can the driver load with these crazy BARs?

I am going to try a 4I65 in my test setup later today (later than I thought -- 
sheep emergency...)


 -- 
 Sebastian Kuzminsky


Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
()_() signature to help him gain world domination.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL setup of Mesa 4i65

2009-10-09 Thread Sebastian Kuzminsky
Peter C. Wallace wrote:
 On Fri, 9 Oct 2009, Sebastian Kuzminsky wrote:
 The driver looks for boards with the Device ID of the PCI9030
 (10b5:9030) and the Subsystem ID of the 5i20 (10b5:3131) or 4i65
 (10b5:3132).

 Any 9030's lacking these Subsystem IDs will be ignored by the driver.
 
 Which is very puzzling, how can the driver load with these crazy BARs?

In Dave Camarillo's situation, the hm2_pci driver loads but does not 
initialize any boards.  It's happy at load-time because it doesnt make 
any expectations about what boards to expect -- it uses the PCI hotplug 
system to learn about boards, and it's happy waiting for boards to appear.

This may not be the right design decision, but that's how it currently 
works.


 I am going to try a 4I65 in my test setup later today (later than I thought 
 -- 
 sheep emergency...)

I think i'll duck out of any sheep-related activities  ;-)


-- 
Sebastian Kuzminsky

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL setup of Mesa 4i65

2009-10-09 Thread Peter C. Wallace
On Fri, 9 Oct 2009, Sebastian Kuzminsky wrote:

 Date: Fri, 09 Oct 2009 14:40:23 -0600
 From: Sebastian Kuzminsky s...@highlab.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] HAL setup of Mesa 4i65
 
 Peter C. Wallace wrote:
 On Fri, 9 Oct 2009, Sebastian Kuzminsky wrote:
 The driver looks for boards with the Device ID of the PCI9030
 (10b5:9030) and the Subsystem ID of the 5i20 (10b5:3131) or 4i65
 (10b5:3132).

 Any 9030's lacking these Subsystem IDs will be ignored by the driver.

 Which is very puzzling, how can the driver load with these crazy BARs?

 In Dave Camarillo's situation, the hm2_pci driver loads but does not
 initialize any boards.  It's happy at load-time because it doesnt make
 any expectations about what boards to expect -- it uses the PCI hotplug
 system to learn about boards, and it's happy waiting for boards to appear.

 This may not be the right design decision, but that's how it currently
 works.


OK that makes a little more sense, So it looks more and more like a disabled 
EEPROM or corrupted EEPROM image.


Dave: In this case the easiset thing would be to return the card or run the 
EEPROM initialization batch file (DOS only) in the 4I65 distribution, 
(4I65EED.BAT) this requires the 9030EEP.EXE utility.




 I am going to try a 4I65 in my test setup later today (later than I thought 
 --
 sheep emergency...)

 I think i'll duck out of any sheep-related activities  ;-)

I wish I could have but a dog dug under our fence last night and attacked one 
of our lawnmower sheep so we were off to the feed and seed for Betadine and 
Pen-G :-(


 -- 
 Sebastian Kuzminsky


Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
()_() signature to help him gain world domination.


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL setup of Mesa 4i65

2009-10-08 Thread Sebastian Kuzminsky
Dave Camarillo wrote:
 I'm trying to bring up a 4i65 card on a PC-104+ stack and am having a
 little trouble with the hal driver load process. When I load the

Cool, PC/104!  :-)


 Running EMC 2.2.4-pre, latest git clone

I think you mean 2.4~pre?  Latest out of the git master branch?


 halcmd: loadrt hostmot2
 halcmd: loadrt hm2_pci config=firmware=hm2/4i65/SVST8_4.BIT
 num_encoders=2 num_pwmgens=0 num_stepgens=3
 halcmd: show all

Hm, we should have definately seen a bunch of pins and stuff here.  All 
the commands look good up to this point.


 Dmesg
 [ 4001.518223] hm2: loading Mesa HostMot2 driver version 0.15
 [ 4001.540869] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.6

I'd like to see the rest of the dmesg after this.  Is there anything 
else from the hm2 subsystem?


 Partial output from lspci -vvnn
 01:07.0 Bridge [0680]: PLX Technology, Inc. PCI9030 32-bit 33MHz PCI
 - IOBus Bridge [10b5:9030] (rev 0a)
 Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
 ParErr- Stepping- SERR- FastB2B-
 Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
 TAbort- TAbort- MAbort- SERR- PERR-
 Interrupt: pin A routed to IRQ 15
 Region 0: Memory at fddff000 (32-bit, non-prefetchable) [size=128]
 Region 1: I/O ports at ef00 [size=128]
 Region 2: Memory at fdc0 (32-bit, non-prefetchable) [size=1M]
 [virtual] Expansion ROM at fdb0 [disabled] [size=64K]
 Capabilities: [40] Power Management version 1
 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
 PME(D0+,D1-,D2-,D3hot+,D3cold-)
 Status: D0 PME-Enable- DSel=0 DScale=0 PME-
 Capabilities: [48] #06 [0080]
 Capabilities: [4c] Vital Product Data

This lspci output looks wrong to me.

First, it looks like it's missing the second line.  I'm expecting an 
important line beginning with Subsystem:, just before the Control: 
line.  Did something get lost in the cut-n-paste?  It's happened before 
that the Subsystem info was set wrong, and it would cause the driver to 
not recognize the card.

Also, it's missing Region 5, which is supposed to be 64K of memory... 
This might be because the board has the wrong Subsystem info, and the 
driver never gets ahold of it to call pci_enable() on it.


-- 
Sebastian Kuzminsky

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL setup of Mesa 4i65

2009-10-08 Thread Peter C. Wallace
On Thu, 8 Oct 2009, Dave Camarillo wrote:

 Date: Thu, 8 Oct 2009 18:21:46 -0700
 From: Dave Camarillo dave.camari...@gmail.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: emc-users@lists.sourceforge.net
 Subject: [Emc-users] HAL setup of Mesa 4i65
 
 I'm trying to bring up a 4i65 card on a PC-104+ stack and am having a
 little trouble with the hal driver load process. When I load the
 hm2_pci driver, it doesn't seem to do anything of interest. The
 'dmesg' output indicates it's loading a driver and what the version
 is, but when I do a show all in halcmd it doesn't show any pins...
 I've messed with loading some of the other hal drivers, and the
 parallel port driver and those all cause pins to start showing up, but
 not this one.
 Below is more detailed information, any ideas as to what might be up?

 Thanks,
 -Dave



 Running EMC 2.2.4-pre, latest git clone
 
 Firmwre paths:

 # ls -la /lib/firmware/hm2/4i65/
 total 528
 drwxr-xr-x 2 root root   4096 2009-10-08 15:20 .
 drwxr-xr-x 9 root root   4096 2009-10-08 15:20 ..
 -rw-r--r-- 1 root root 167057 2009-10-08 15:20 SV12.BIT
 -rw-r--r-- 1 root root   6645 2009-10-08 15:20 SV12.PIN
 -rw-r--r-- 1 root root 167061 2009-10-08 15:20 SVST8_4.BIT
 -rw-r--r-- 1 root root 167061 2009-10-08 15:20 SVST8_4IM2.BIT
 -rw-r--r-- 1 root root   6821 2009-10-08 15:20 SVST8_4.PIN

 
 Hal Commands
 halcmd: unload all
 halcmd: loadrt trivkins
 halcmd: loadrt hostmot2
 halcmd: loadrt hm2_pci config=firmware=hm2/4i65/SVST8_4.BIT
 num_encoders=2 num_pwmgens=0 num_stepgens=3
 halcmd: show all
 Loaded HAL Components:
 ID  Type  Name  PID   State
 5  User  halcmd7206 7206 ready
 4  RThm2_pci ready
 3  RThostmot2ready
 2  RTtrivkinsready

 Component Pins:
 Owner   Type  Dir Value  Name

 Pin Aliases:
 Alias  Original Name

 Signals:
 Type  Value  Name (linked to)

 Parameters:
 Owner   Type  Dir Value  Name

 Parameter Aliases:
 Alias  Original Name

 Exported Functions:
 Owner   CodeAddr  Arg   FP   Users  Name

 Realtime Threads:
 Period  FP Name   ( Time, Max-Time )
 999849  YES  servo-thread (0,0 )



 
 Dmesg
 [ 4001.518223] hm2: loading Mesa HostMot2 driver version 0.15
 [ 4001.540869] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.6


 
 Partial output from lspci -vvnn
 01:07.0 Bridge [0680]: PLX Technology, Inc. PCI9030 32-bit 33MHz PCI
 - IOBus Bridge [10b5:9030] (rev 0a)
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
 ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
 TAbort- TAbort- MAbort- SERR- PERR-
Interrupt: pin A routed to IRQ 15
Region 0: Memory at fddff000 (32-bit, non-prefetchable) [size=128]
Region 1: I/O ports at ef00 [size=128]
Region 2: Memory at fdc0 (32-bit, non-prefetchable) [size=1M]
[virtual] Expansion ROM at fdb0 [disabled] [size=64K]
Capabilities: [40] Power Management version 1
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
 PME(D0+,D1-,D2-,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [48] #06 [0080]
Capabilities: [4c] Vital Product Data

 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




Thats totally busted, there should be 6 regions (3 I/O and 3 memory) with 
sizes of 128,128 (bridge access memory and I/O)
64K,256 (16 bit wide memory and I/O port to FPGA)
64K,256 (32 bit wide memory and I/O port to FPGA)

Looks like either the EEPROM is disabled (via the jumper) or its 

Re: [Emc-users] HAL setup of Mesa 4i65

2009-10-08 Thread Dave Camarillo
 Date: Thu, 8 Oct 2009 18:21:46 -0700
 From: Dave Camarillo dave.camari...@gmail.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: emc-users@lists.sourceforge.net
 Subject: [Emc-users] HAL setup of Mesa 4i65

 I'm trying to bring up a 4i65 card on a PC-104+ stack and am having a
 little trouble with the hal driver load process. When I load the
 hm2_pci driver, it doesn't seem to do anything of interest. The
 'dmesg' output indicates it's loading a driver and what the version
 is, but when I do a show all in halcmd it doesn't show any pins...
 I've messed with loading some of the other hal drivers, and the
 parallel port driver and those all cause pins to start showing up, but
 not this one.
 Below is more detailed information, any ideas as to what might be up?

 Thanks,
 -Dave



 Running EMC 2.2.4-pre, latest git clone
 
 Firmwre paths:

 # ls -la /lib/firmware/hm2/4i65/
 total 528
 drwxr-xr-x 2 root root   4096 2009-10-08 15:20 .
 drwxr-xr-x 9 root root   4096 2009-10-08 15:20 ..
 -rw-r--r-- 1 root root 167057 2009-10-08 15:20 SV12.BIT
 -rw-r--r-- 1 root root   6645 2009-10-08 15:20 SV12.PIN
 -rw-r--r-- 1 root root 167061 2009-10-08 15:20 SVST8_4.BIT
 -rw-r--r-- 1 root root 167061 2009-10-08 15:20 SVST8_4IM2.BIT
 -rw-r--r-- 1 root root   6821 2009-10-08 15:20 SVST8_4.PIN

 
 Hal Commands
 halcmd: unload all
 halcmd: loadrt trivkins
 halcmd: loadrt hostmot2
 halcmd: loadrt hm2_pci config=firmware=hm2/4i65/SVST8_4.BIT
 num_encoders=2 num_pwmgens=0 num_stepgens=3
 halcmd: show all
 Loaded HAL Components:
 ID  Type  Name  PID   State
 5  User  halcmd7206 7206 ready
 4  RThm2_pci ready
 3  RThostmot2ready
 2  RTtrivkinsready

 Component Pins:
 Owner   Type  Dir Value  Name

 Pin Aliases:
 Alias  Original Name

 Signals:
 Type  Value  Name (linked to)

 Parameters:
 Owner   Type  Dir Value  Name

 Parameter Aliases:
 Alias  Original Name

 Exported Functions:
 Owner   CodeAddr  Arg   FP   Users  Name

 Realtime Threads:
 Period  FP Name   ( Time, Max-Time )
 999849  YES  servo-thread (0,0 )



 
 Dmesg
 [ 4001.518223] hm2: loading Mesa HostMot2 driver version 0.15
 [ 4001.540869] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.6


 
 Partial output from lspci -vvnn
 01:07.0 Bridge [0680]: PLX Technology, Inc. PCI9030 32-bit 33MHz PCI
 - IOBus Bridge [10b5:9030] (rev 0a)
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
 ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
 TAbort- TAbort- MAbort- SERR- PERR-
Interrupt: pin A routed to IRQ 15
Region 0: Memory at fddff000 (32-bit, non-prefetchable) [size=128]
Region 1: I/O ports at ef00 [size=128]
Region 2: Memory at fdc0 (32-bit, non-prefetchable) [size=1M]
[virtual] Expansion ROM at fdb0 [disabled] [size=64K]
Capabilities: [40] Power Management version 1
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
 PME(D0+,D1-,D2-,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [48] #06 [0080]
Capabilities: [4c] Vital Product Data

 --
 Come build with us! The BlackBerry(R) Developer Conference in SF, CA
 is the only developer event you need to attend this year. Jumpstart your
 developing skills, take BlackBerry mobile applications to market and stay
 ahead of the curve. Join us from November 9 - 12, 2009. Register now!
 http://p.sf.net/sfu/devconference
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




 Thats totally busted, there should be 6 regions (3 I/O and 3 memory) with
 sizes of 128,128 (bridge access memory and I/O)
 64K,256 (16 bit wide memory and I/O port to FPGA)
 64K,256 (32 bit wide memory and I/O port to FPGA)

 Looks like either the EEPROM is disabled (via the jumper) or its contents are
 corrupted badly...

 Another