Am 18.08.2013 um 18:24 schrieb andy pugh <[email protected]>:

> On 18 August 2013 07:32, Michael Haberler <[email protected]> wrote:
>> 
>> the branch is here: 
>> https://github.com/mhaberler/linuxcnc/tree/ubc2-7i80-rtnet
>> 
>> ----> this is completely untested, but at least the driver builds.
> 
> It builds cleanly (which is more than can be said for my attempts to
> combine 7i80 and ubc2)
> 
> I can't get it to work, though this may be a configuration error on my part:
> 
> loadrt hm2_eth ip="192.168.1.121" gives me:
> 
> Aug 18 15:59:15 dn2800 msgd:0: hal_lib:2220:rt Error opening socket: -97
> Aug 18 15:59:15 dn2800 msgd:0: rtapi_app:2220:user
> rtapi_app_main(hm2_eth): -97 Address family not supported by protocol

Since this is not the kernel environment anymore, this is super convenient to 
debug with gdb (Andy: this is the replacement for printk which all those script 
kiddies are using nowadays ;)

As a general outline to debug RT module issues, proceed like so:

1. realtime start
2. halcmd load everything up to but excluding the module in question
3. sudo gdb -p `pidof rtpai:0`
4. set a breakpoint on the line 'if ((result=start()) < 0) {' (around line 290)
5. continue and load the module which needs parental supervision
6. the debugger will stop at this line. Now 'step into' the start function, and 
you'll be in rtapi_app_main() of your patient.

You can also break on the thread function; just break into rtapi_app_main and 
set the breakpoint from there.

If you promise to learn gdb, I might add a 'trap into gdb on next 
rtapi_app_main()' halcmd ;)

- Michael



> 
> 
> -- 
> atp
> If you can't fix it, you don't own it.
> http://www.ifixit.com/Manifesto
> 
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead. 
> Download for free and get started troubleshooting in minutes. 
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to