Hi,
I'm having maybe similar problem. I just upgrade my box from old EMC1
and new hardware (same parallel port card). I'm running EMC2.1 Ubuntu
and having several problems. First when I boot I have not parallel ports
visible. After boot "dmesg | grep par" yields:
[ 63.987586] ppdev: user-space parallel port driver
After reading various sites and emails I manually adding the device
"modprobe -i parport_pc" at the shell. Now "dmesg | grep par" gives:
[ 63.987586] ppdev: user-space parallel port driver
[ 1211.925716] parport: PnPBIOS parport detected.
[ 1211.925785] parport0: PC-style at 0x378 (0x778), irq 7, dma 3
[PCSPP,TRISTATE,COMPAT,ECP,DMA]
[ 1212.007775] lp0: using parport0 (interrupt-driven).
[ 1212.007880] PCI parallel port detected: 14d2:8001, I/O at
0xdd00(0xde00)
[ 1212.007908] parport1: PC-style at 0xdd00 (0xde00) [PCSPP,TRISTATE]
[ 1212.089703] lp1: using parport1 (polling).
OK so that's one problem hacked (I think). So question: how do I get it
to do that automatically at boot?
Now I set up the demo stepper_mill files. And I edit the
standard_pinout.hal for the 2nd parport:
loadrt hal_parport cfg="0xdd00"
Next start EMC2.1 with stepper_mill and I get the EMC error dialog when
the follow (abridged) messages:
*Print file information:*
RUN_IN_PLACE=no
EMC2_DIR=
EMC2_BIN_DIR=/usr/bin
.
.
.
Running HAL config file
/home/kianis/emc2/configs/stepper/core_stepper.hal
Running HAL config file
/home/kianis/emc2/configs/stepper/standard_pinout.hal
HAL:6: ERROR: systemv failed, returned 1
HAL:6: ERROR: insmod failed, returned -1
HAL config file
/home/kianis/emc2/configs/stepper/standard_pinout.hal failed.
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=5694
Removing HAL_LIB, RTAPI, and Real Time OS modules
Cleanup done
*Kernel message information:*
[4294667.296000] Linux version 2.6.15-magma ([EMAIL PROTECTED]) (gcc
version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 Fri Jun 9 20:51:19 EEST 2006
.
.
.
2505.342091] MOTION: setting Servo cycle time to 1000000 nsecs
[ 2505.342094] MOTION: init_threads() complete
[ 2505.342096] MOTION: init_module() complete
[ 2505.359636] STEPGEN: installed 3 step pulse generators
[ 2505.375435] config string '0xdd00'
[ 2505.375570] PARPORT: ERROR: request_region(dd00) failed
[ 2505.375573] (make sure the kernel module 'parport' is unloaded)
[ 2505.456177] MOTION: cleanup_module() started.
[ 2505.456183] HAL: threads stopped
[ 2505.456285] MOTION: cleanup_module() finished.
[ 2505.591005] RTAPI: WARNING: tried to delete task 02 while running
[ 2505.591017] RTAPI: WARNING: tried to delete task 01 while running
[ 2505.595205] RTAPI: Exiting
[ 2505.595240] RTAPI: Exit complete
[ 2505.599328] RTAI[math]: unloaded.
[ 2505.623032] RTAI[malloc]: vfreed extent e0c3d000, size 2097152.
[ 2505.623165] RTAI[malloc]: unloaded.
[ 2505.722994] RTAI[sched_lxrt]: unloaded (forced hard/soft/hard
transitions: traps 0, syscalls 0).
[ 2505.726566] I-pipe: Domain RTAI unregistered.
[ 2505.726575] RTAI[hal]: unmounted.
Debug file information:
Can not find -sec HAL -var HALUI -num 1
insmod: error inserting
'/usr/realtime-2.6.15-magma/modules/emc2/hal_parport.ko': -1 Device
or resource busy
Stopping realtime threads
Unloading hal components
5694
PID TTY STAT TIME COMMAND
I'm guessing this is related to my first problem, but hoping someone out
there can point me in the right direction.
Thanks,
=====================================
Sepehr (Sep) Kiani, Ph.D.
Email: [EMAIL PROTECTED]
=====================================
John Kasunich wrote:
> Jack Ensor wrote:
>
>> I am having trouble getting failures on pinout.hal. The indications in the
>> error report indicate a problem with the parallel port. When I tried
>> changing
>> the default
>>
>> loadrt hal_parport cfg="0x0378"
>>
>> to my 2nd address of "0xdff0" and connecting my breakout box to the 2nd port,
>> the led's on board didn't flash like they did on the first port. I then put
>> the
>> box back on the first port without changing the from "0xdff0" to "0x0378" in
>> the
>> pinout.hal and found that even though pinout.hal defined the port as "0xdff0"
>> the signals were coming out on the first port.
>>
>
> Not sure what is going on there. Personally I'd get the ports working
> first, then worry about connecting other stuff. Which is pretty much
> what you started below:
>
>
>> I thought that I could troubleshoot the problem by using hal and doing the
>> following:
>>
>> halrun
>> loadrt hal_par_port "0x0378"
>>
>
> I assume hal_par_port is a typo, it should be hal_parport.
> But the real problem is "0x0378". You have it right up above, it should
> be "cfg="0x0378". Any info passed to a module when you loadrt it is
> always of the form <some-name>=<some-value>.
>
> Another problem - when you are running EMC, it creates realtime threads.
> When running standalone with halrun, it doesn't, and you need to do it
> yourself. Add these lines:
>
> loadrt threads name1=foo period1=1000000
> addf parport.read-all foo
> addf parport.write-all foo
> start
>
> The first line creates a realtime thread. The next two add the parport
> code to the thread, and the last one starts the realtime code running.
> Then continue with the commands below
>
>
>> newsig one bit
>> linksp one parport.0.pin-2-out
>> sets one TRUE
>>
>> However, I get this:
>>
>> [EMAIL PROTECTED]:~$ halrun
>> halcmd: loadrt hal_parport "0x0378"
>>
>
> As I mentioned above, try with cfg="0x0378" and it should work. To load
> the driver for both parports at the same time, use
>
> loadrt hal_parport cff="0x0378 0xdff0"
>
>
>> insmod: error inserting
>> '/usr/realtime-2.6.15-magma/modules/emc2/hal_parport.ko': -1 Unknown symbol
>> in
>> module
>> HAL:1: ERROR: systemv failed, returned 1
>> HAL:1: ERROR: insmod failed, returned -1
>> halcmd: [EMAIL PROTECTED]:~$
>>
>
> Regards,
>
> John Kasunich
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users