On 30/08/2012 19:27, Peter C. Wallace wrote: > On Thu, 30 Aug 2012, William Ratcliffe wrote: > >> Date: Thu, 30 Aug 2012 19:20:24 +0100 >> From: William Ratcliffe <[email protected]> >> Reply-To: "Enhanced Machine Controller (EMC)" >> <[email protected]> >> To: [email protected] >> Subject: Re: [Emc-users] Mesa 7i65 Error >> >> On 30/08/2012 17:58, Peter C. Wallace wrote: >>> On Thu, 30 Aug 2012, andy pugh wrote: >>> >>>> Date: Thu, 30 Aug 2012 17:39:21 +0100 >>>> From: andy pugh <[email protected]> >>>> Reply-To: "Enhanced Machine Controller (EMC)" >>>> <[email protected]> >>>> To: "Enhanced Machine Controller (EMC)" <[email protected]> >>>> Subject: Re: [Emc-users] Mesa 7i65 Error >>>> >>>> On 30 August 2012 17:17, William Ratcliffe <[email protected]> wrote: >>>>> If I change the >>>>> >>>>> static void read(struct __comp_state *inst){ >>>>> >>>>> to >>>>> FUNCTION(read) >>>>> >>>>> and declare >>>>> >>>>> function read; >>>>> >>>>> before the ;; >>>>> >>>>> It seems to sort of work >> 'Sort of work' meaning does not hang the system; I can use the gpio on the >> other channels OK. I am still not able to read or set any of the digital i/o >> on the i65 >>>> Presumably you also added "addf mesa_7i65.0.read" to the HAL? >>>> That comp is a bit odd, as it is meant to tell the main Hostmot2 >>>> driver that it wants to be called, rather than be hooked directly to a >>>> thread in HAL. >> I have done that but the analogue in values flutter even without issuing this >> command. I'm guessing this because the bspi_set_read_function passes the >> function to be called >> >>>> However, what you are doing there makes me wonder if your make process >>>> is using the wrong version of "comp". Unless you run the >>>> rip-environment script I think it wants to use the installed comp in >>>> /usr/bin. One way to find out would be to rename that version of comp. >>>> >>>> -- >>>> atp >>>> If you can't fix it, you don't own it. >>>> http://www.ifixit.com/Manifesto >>> I'm also wondering whats going on as this "just works" for other customers >>> >>> >>> Ill try and duplicate this with 2.5.1 sometime today >> Perhaps there is a mis-match My test platform was built as follows >> >> - I installed the live cd on a machine >> - updated to 2.5.1 as per linuxcnc.org repository >> - then uninstalled the debs >> got the source, git master, satisfied build dependencies etc >> make -j2 >> sudo make install I ran configure with PREFIX=/usr
I'm guessing that the comp binary being used has been installed by my 'make install' as I removed linuxcnc debs prior to that + I'm also reinstalling every code change test rather than running in place. >> >> ditto for the firmware, built with Webpack 9.2 >> copied by hand into /libs/firmware/hm2/5i20 >> >> I've attached my firmware for reference >> >> I also find that the firmware (for the 7i65) in the 5i20.zip from mesanet >> does not work; I can't even load it. (insmod -1) It appears to be a different >> size to the other files both on my machine. sizes 167057 vs 167050 >> > > Size can be different by several bytes its not really meaningful. You can > probably find what LinuxCNC doesnt like about the bitfile in 5i20.zip by > looking at the end of dmesg after a failed linuxcnc start These are the errors in dmesg [17272.249661] hm2/hm2_5i20.0: WARNING: this firmware has Muxed Encoder v2! [17272.249664] hm2/hm2_5i20.0: WARNING: velocity computation will be incorrect! [17272.249667] hm2/hm2_5i20.0: WARNING: upgrade your firmware! [17272.249670] hm2/hm2_5i20.0: inconsistent Module Descriptor for Buffered SPI Interface, not loading driver [17272.249674] hm2/hm2_5i20.0: Version = 0, expected 0 [17272.249677] hm2/hm2_5i20.0: NumRegisters = 3, expected 3 [17272.249680] hm2/hm2_5i20.0: InstanceStride = 0x00000004, expected 0x00000040 [17272.249683] hm2/hm2_5i20.0: MultipleRegisters = 0x00000007, expected 0x00000007 [17272.249686] hm2/hm2_5i20.0: inconsistent Module Descriptor! [17272.249689] hm2/hm2_5i20.0: failed to parse Module Descriptor 4 [17272.249696] hm2_5i20.0: board fails HM2 registration [17272.249715] hm2_pci: probe of 0000:03:02.0 failed with error -22 > >> >>>> ------------------------------------------------------------------------------ >>>> Live Security Virtual Conference >>>> Exclusive live event will cover all the ways today's security and >>>> threat landscape has changed and how IT managers can respond. Discussions >>>> will include endpoint security, mobile security and the latest in malware >>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> _______________________________________________ >>>> Emc-users mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/emc-users >>>> >>> Peter Wallace >>> Mesa Electronics >>> >>> (\__/) >>> (='.'=) This is Bunny. Copy and paste bunny into your >>> (")_(") signature to help him gain world domination. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Emc-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/emc-users >> > Peter Wallace > Mesa Electronics > > (\__/) > (='.'=) This is Bunny. Copy and paste bunny into your > (")_(") signature to help him gain world domination. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
