Hello Andy, Hello Peter, Hello List,
I flashed the 7i77x2.bit firmware to the 5i25 using the mesaflash utility found in the 5i25.zip file on the mesanet website. Then I tried to load the hm2_pci hal module again without success with the loadrt line that you suggested. But so far I have not gotten the 5i25+7i77 to work. I used the 7i77x2 firmware because I have not seen any firmware with just one 7i77. All details below. Could you please point me in the right direction on where to look for my problem? BR. Max. This is what I did: In the first terminal: $ halrun halcmd: loadrt hostmot2 And then the second terminal: $ echo 5 > /proc/rtapi/debug In the first terminal again: halcmd: loadrt hm2_pci config="num_encoders=6 sserial_port_0=000xxx" insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hm2_pci.ko': -1 Invalid parameters <stdin>:2: exit value: 1 <stdin>:2: insmod failed, returned -1 See the output of 'dmesg' for more information. output of dmesg: [12406.135801] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03. [12406.135803] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) . [12406.135827] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). [12406.135829] PIPELINE layers: [12406.135831] fdb4ee20 9ac15d93 RTAI 200 [12406.135833] c085cb20 0 Linux 100 [12406.151470] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>. [12406.151579] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes. [12406.151583] RTAI[sched]: hard timer type/freq = APIC/12503458(Hz); default timing: periodic; linear timed lists. [12406.151586] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2600554000 hz. [12406.151588] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns. [12406.151662] RTAI[usi]: enabled. [12406.185685] RTAI[math]: loaded. [12442.092622] hm2: loading Mesa HostMot2 driver version 0.15 [12442.092626] HAL: initializing component 'hostmot2' [12442.092628] RTAPI: initing module HAL_hostmot2 [12442.092632] RTAPI: module 'HAL_hostmot2' loaded, ID: 4 [12442.092635] HAL: component 'hostmot2' initialized, ID = 04 [12466.366504] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7 [12466.366508] HAL: initializing component 'hm2_pci' [12466.366511] RTAPI: initing module HAL_hm2_pci [12466.366513] RTAPI: module 'HAL_hm2_pci' loaded, ID: 5 [12466.366517] HAL: component 'hm2_pci' initialized, ID = 05 [12466.366552] hm2_pci 0000:03:01.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [12466.366555] hm2_pci: discovered 5i25 at 0000:03:01.0 [12466.366655] hm2/hm2_5i25.0: parsing config string "num_encoders=6 sserial_port_0=000xxx" [12466.366660] hm2/hm2_5i25.0: final config: [12466.366662] hm2/hm2_5i25.0: num_encoders=6 [12466.366664] hm2/hm2_5i25.0: num_resolvers=-1 [12466.366665] hm2/hm2_5i25.0: num_pwmgens=-1 [12466.366667] hm2/hm2_5i25.0: num_3pwmgens=-1 [12466.366670] hm2/hm2_5i25.0: sserial_port_0=000xxx00 [12466.366671] sserial_port_1=00000000 [12466.366672] sserial_port_2=00000000 [12466.366673] sserial_port_3=00000000 [12466.366676] hm2/hm2_5i25.0: num_stepgens=-1 [12466.366678] hm2/hm2_5i25.0: enable_raw=0 [12466.366679] hm2/hm2_5i25.0: firmware=(NULL) [12466.366683] HAL: creating parameter 'hm2_5i25.0.io_error' [12466.366754] hm2/hm2_5i25.0: MD 1: 2x IOPort v0: accepted, using 2 [12466.366758] HAL: creating pin 'hm2_5i25.0.watchdog.has_bit' [12466.366761] HAL: creating parameter 'hm2_5i25.0.watchdog.timeout_ns' [12466.366764] HAL: exporting function 'hm2_5i25.0.pet_watchdog' [12466.366766] HAL: creating parameter 'hm2_5i25.0.pet_watchdog.time' [12466.366769] HAL: creating parameter 'hm2_5i25.0.pet_watchdog.tmax' [12466.366772] hm2/hm2_5i25.0: MD 0: 1x Watchdog v0: accepted, using 1 [12466.366774] hm2/hm2_5i25.0: MD 1: 2x IOPort v0: ignored [12466.366777] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are available, not loading driver [12466.366779] hm2/hm2_5i25.0: failed to parse Module Descriptor 2 [12466.366784] hm2_5i25.0: board fails HM2 registration [12466.366793] hm2_pci 0000:03:01.0: PCI INT A disabled [12466.366801] hm2_pci: probe of 0000:03:01.0 failed with error -22 [12466.366823] HAL: removing component 05 [12466.366826] RTAPI: module 5 exiting [12466.366830] RTAPI: module 5 exited, name: 'HAL_hm2_pci' [12466.366832] HAL: component 05 removed, name = 'hm2_pci' --------------------------------------------------------------------------------------- Then after that I did exit halrun and did the flashing of the firmware $ sudo ./mesaflash 7i77x2.bit write PCI device 17 at bus/device/function 03/01/0 Vendor/Device/SSVendor/SSDevice: 2718/5125/2718/5125 Region 0: MEM 65536 bytes at febf0000 Checking cookie... OK Identifing EEPROM... OK 8Mb found BootSector OK Checking file 7i77x2.bit... OK File type: BIT file Design name: TopPCITargetHostMot2.ncd;UserID=0xFFFFFFFF Part name: 6slx9tqg144 Design date: 2012/04/12 Design time: 14:34:03 Config Length: 340604 Erasing EEPROM sectors starting from 0x80000... |EEEEEE Programming EEPROM area starting from 0x80000... |WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW Board configuration updated successfully $ sudo ./mesaflash 7i77x2.bit verify PCI device 17 at bus/device/function 03/01/0 Vendor/Device/SSVendor/SSDevice: 2718/5125/2718/5125 Region 0: MEM 65536 bytes at febf0000 Checking cookie... OK Identifing EEPROM... OK 8Mb found Checking file 7i77x2.bit... OK File type: BIT file Design name: TopPCITargetHostMot2.ncd;UserID=0xFFFFFFFF Part name: 6slx9tqg144 Design date: 2012/04/12 Design time: 14:34:03 Config Length: 340604 |VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV Board configuration verified successfully --------------------------------------------------------------------------------------- Then I tried again (echo 5 > /proc/rtapi/debug done after halrun in another terminal, before any loadrt) $ halrun halcmd: loadrt hostmot2 halcmd: loadrt hm2_pci config="num_encoders=6 sserial_port_0=000xxx" insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hm2_pci.ko': -1 Invalid parameters <stdin>:2: exit value: 1 <stdin>:2: insmod failed, returned -1 See the output of 'dmesg' for more information. [14148.914799] I-pipe: Domain RTAI registered. [14148.914804] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03. [14148.914806] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) . [14148.914828] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). [14148.914830] PIPELINE layers: [14148.914832] fc054e20 9ac15d93 RTAI 200 [14148.914834] c085cb20 0 Linux 100 [14148.930175] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>. [14148.930326] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes. [14148.930331] RTAI[sched]: hard timer type/freq = APIC/12503458(Hz); default timing: periodic; linear timed lists. [14148.930334] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2600554000 hz. [14148.930336] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns. [14148.930407] RTAI[usi]: enabled. [14148.965635] RTAI[math]: loaded. [14164.176070] hm2: loading Mesa HostMot2 driver version 0.15 [14164.176074] HAL: initializing component 'hostmot2' [14164.176076] RTAPI: initing module HAL_hostmot2 [14164.176079] RTAPI: module 'HAL_hostmot2' loaded, ID: 4 [14164.176083] HAL: component 'hostmot2' initialized, ID = 04 [14170.506410] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7 [14170.506415] HAL: initializing component 'hm2_pci' [14170.506417] RTAPI: initing module HAL_hm2_pci [14170.506420] RTAPI: module 'HAL_hm2_pci' loaded, ID: 5 [14170.506423] HAL: component 'hm2_pci' initialized, ID = 05 [14170.506456] hm2_pci 0000:03:01.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 [14170.506459] hm2_pci: discovered 5i25 at 0000:03:01.0 [14170.506513] hm2/hm2_5i25.0: parsing config string "num_encoders=6 sserial_port_0=000xxx" [14170.506517] hm2/hm2_5i25.0: final config: [14170.506519] hm2/hm2_5i25.0: num_encoders=6 [14170.506521] hm2/hm2_5i25.0: num_resolvers=-1 [14170.506523] hm2/hm2_5i25.0: num_pwmgens=-1 [14170.506525] hm2/hm2_5i25.0: num_3pwmgens=-1 [14170.506528] hm2/hm2_5i25.0: sserial_port_0=000xxx00 [14170.506529] sserial_port_1=00000000 [14170.506530] sserial_port_2=00000000 [14170.506531] sserial_port_3=00000000 [14170.506533] hm2/hm2_5i25.0: num_stepgens=-1 [14170.506535] hm2/hm2_5i25.0: enable_raw=0 [14170.506537] hm2/hm2_5i25.0: firmware=(NULL) [14170.506540] HAL: creating parameter 'hm2_5i25.0.io_error' [14170.506713] hm2/hm2_5i25.0: MD 1: 2x IOPort v0: accepted, using 2 [14170.506719] HAL: creating pin 'hm2_5i25.0.watchdog.has_bit' [14170.506722] HAL: creating parameter 'hm2_5i25.0.watchdog.timeout_ns' [14170.506725] HAL: exporting function 'hm2_5i25.0.pet_watchdog' [14170.506727] HAL: creating parameter 'hm2_5i25.0.pet_watchdog.time' [14170.506730] HAL: creating parameter 'hm2_5i25.0.pet_watchdog.tmax' [14170.506733] hm2/hm2_5i25.0: MD 0: 1x Watchdog v0: accepted, using 1 [14170.506735] hm2/hm2_5i25.0: MD 1: 2x IOPort v0: ignored [14170.506738] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are available, not loading driver [14170.506740] hm2/hm2_5i25.0: failed to parse Module Descriptor 2 [14170.506745] hm2_5i25.0: board fails HM2 registration [14170.506757] hm2_pci 0000:03:01.0: PCI INT A disabled [14170.506767] hm2_pci: probe of 0000:03:01.0 failed with error -22 [14170.506789] HAL: removing component 05 [14170.506792] RTAPI: module 5 exiting [14170.506797] RTAPI: module 5 exited, name: 'HAL_hm2_pci' [14170.506799] HAL: component 05 removed, name = 'hm2_pci' > On Sat, 16 Jun 2012, andy pugh wrote: > >> Date: Sat, 16 Jun 2012 17:45:09 +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] 5i25 detected, but not the 7i77 yet >> >> On 16 June 2012 17:23, Maximilian H <[email protected]> wrote: >> >>> [ 7094.230615] hm2/hm2_5i25.0: config.num_encoders=6, but only 2 are >>> available, not loading driver >> >> My first guess would be that the 5i25 does not contain the correct >> firmware for the 7i77 for some reason. >> >> > > That would be my thought as well (only 2 encoders found when all > enabled suggests a 7I76x2 config to me) > > > Other things to note > > 1. There are no PWM gens used with 7I77s (or standard 7I76 configs) > so invoking one will always cause a error > > 2. I would use a config line like this as I have seen some trouble (possibly > fixed) with wildcard (missing specs) sserial configs > > BOARD=5i25 > CONFIG="num_encoders=6 sserial_port_0=000xxx" > > Peter Wallace > Mesa Electronics > > ------------------------------------------------------------------------------ > 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
