You cannot use emc2 while the parport_pc kernel module is installed. They both will write/read the same address which will result in possibly bad things. Just start your machine normaly (without the sudo insmod), and run emc2 with the correct address (0xdd00).
If there is no output on the parport, try the following line in your hal file: -> loadrt probe_parport loadrt hal_parport... Regards, Alex ----- Original Message ----- From: "Sepehr Kiani" <[EMAIL PROTECTED]> To: "Enhanced Machine Controller (EMC)" <[email protected]> Sent: Sunday, March 04, 2007 10:58 PM Subject: Re: [Emc-users] halrun and parport problem > 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] > ===================================== ------------------------------------------------------------------------- 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
