Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - board hangs when ethernet plugged in: (14 Items)
   
board hangs when ethernet plugged in  
Hi-

I'm running QNX 6.4.1 on a Fastwell CPC1600, which is an x86 board.  It has two gigE ports on a 82571EB chip.  
Everything runs fine on the board (keyboard/mouse on usb, vga, SATA HDD), but when I plug the ethernet cable in, the 
system hangs.  The clock in the bottom of the display doesn't even move.  

Attached is the output of get_hw_info... help?
Attachment: Text hw-info-localhost.txt 61.12 KB
RE: board hangs when ethernet plugged in  
Before you plug the cable in, in a window do this:

  # top -p 255

which will tell you if someone is looping at high priority,
and then plug the cable in again.

Another thing to try:

  # slay -f io-pkt-v4-hc
  # slay -f dhcp.client

then plug in ethernet cable

then in one visible window:      
  # top -p 255

then in another visible window   
  # on -p 255 ksh
  # sloginfo -cw

then in another visible window
  # io-pkt-v4-hc -d (whatever driver) verbose=100


to try to get some clues as to what is going on.

--
aboyd  www.PoweredByQNX.com/images/pg_inv.jpg
  
Re: RE: board hangs when ethernet plugged in  
Wow, thanks for the help, Andrew.

the command I run (after slaying the other processes) is:

io-pkt-v4-hc -d e1000 verbose=100

The error message out of sloginfo that seems most pertinent is:

unable to init devnp-e1000.so: No such device

Net.e1000 is the device driver QNX says I should use for my 82571EB.  The file does exist under /lib/dll, so I'm curious
 why it doesn't seem to find it.
Re: RE: board hangs when ethernet plugged in  
Lies!

Forget my previous post.  Here is a dump of what happens after I've slayed the processes, and I run the io-pkt... 
command.

Attachment: Text slog 86.01 KB
RE: RE: board hangs when ethernet plugged in  
I took a look at the sloginfo output - Hugh might be
able to notice if there is an initialization problem.

Did you catch any thread looping at high priority?

--
aboyd
Re: RE: RE: board hangs when ethernet plugged in  
I'll have to investigate this.
Re: board hangs when ethernet plugged in  
Mike,

Can you confirm which version of QNX you are running?

Net.e1000 is a QNX4 driver, yet io-pkt-v4-hc is the stack for QNX6; the two are not compatible.

- Ed
Re: board hangs when ethernet plugged in  
QNX 6.4.1.  I'm not sure which driver the system is using at boot up (maybe you can show me where to look), but since I 
needed to fill in which driver on the io-pkt call I searched the QNX website and e1000 is what I found for the 82571EB. 
 What should I be using?

M
Re: board hangs when ethernet plugged in  
If it is 6.4.1, then it will be using the e1000 driver.



On 10-01-21 2:28 PM, "Mike Medved" <community-noreply@qnx.com> wrote:

> QNX 6.4.1.  I'm not sure which driver the system is using at boot up (maybe
> you can show me where to look), but since I needed to fill in which driver on
> the io-pkt call I searched the QNX website and e1000 is what I found for the
> 82571EB.  What should I be using?
> 
> M
> 
> 
> 
> _______________________________________________
> 
> Technology
> http://community.qnx.com/sf/go/post45698
> 
Re: RE: board hangs when ethernet plugged in  
One other reference point-

After doing the steps described above, there does not appear to be any threads looping at high priority.  

The crash doesn't happen until I configure one of the ethernet ports with an IP address and enable it (either through 
the GUI or ifconfig)... then it hangs, and obviously at this point I can't tell if there are threads hogging the CPU or 
not.
Re: RE: board hangs when ethernet plugged in  
Another interesting point...

My board has two gigE ports, and i'm not sure which correlates to which wmX in the OS.  So if I try to configure wm0 
with an IP and enable it, it hangs.  If I try to configure wm1 w/ an IP and enable it, it doesn't work, and the attached
 slog is the output.
Attachment: Text slog 11.66 KB
Re: RE: board hangs when ethernet plugged in  
So if I move the cable to the other ethernet port, it switches.  Wm0 won't crash it, but wm1 will.

I need this to be its own network in the end, but for grins I tried doing DHCP and plugged it into our corporate LAN.  
Hung.
Re: RE: board hangs when ethernet plugged in  
Last thought for the day (probably) -

I saw another thread regarding ethernet hangs and IRQs and noticed that it seems like multiple devices may be using the 
same IRQ, so I set the IP and enabled the port (resulted in hang, of course), powered down, removed all USB devices and 
vga and powered it back up.  I can tell when QNX loads because the HDD always make the same spinning noise right as it 
loads into the UI.

Wasn't able to ping the board, or see it in Momentics.

M
Re: board hangs when ethernet plugged in  
If you just start a single interface, does this still happen?
Eg. io-pkt-v4 -de1000 pci=0
    ifconfig wm0 ....

I don't have the same chipset, but testing here, I cannot reproduce the
problem.


On 10-01-21 4:05 PM, "Mike Medved" <community-noreply@qnx.com> wrote:

> Last thought for the day (probably) -
> 
> I saw another thread regarding ethernet hangs and IRQs and noticed that it
> seems like multiple devices may be using the same IRQ, so I set the IP and
> enabled the port (resulted in hang, of course), powered down, removed all USB
> devices and vga and powered it back up.  I can tell when QNX loads because the
> HDD always make the same spinning noise right as it loads into the UI.
> 
> Wasn't able to ping the board, or see it in Momentics.
> 
> M
> 
> 
> 
> _______________________________________________
> 
> Technology
> http://community.qnx.com/sf/go/post45720
>