Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Problems using imx FEC: (3 Items)
   
Problems using imx FEC  
Hi,

I am having some difficulty setting up an ip stack on our platform which uses QNX running on an imx controller. I have 
read through all the documentation I can find on the QNX web pages regarding the ip stack as I was unfamiliar with it.

What I now understand is that I need to load the QNX supplied driver for the imx FEC. I am using….

  io-pkt-v4 -d mx53 mac=xxxxxxxxxxxx

With ifconfig I get…

  fec0: flags=802<BROADCAST,SIMPLEX> mtu 1500
  address: xx:xx:xx:xx:xx:xx
                media: Ethernet none

When I connect a cable between my PC and our platform the LAN connection reports “connected”. This possibly indicates 
that the HW is working ok.

The next step is to assign a static ip address to this interface. I try…

                ifconfig fec0 192.168.128.161

This hangs. It looks like the imx has stopped so I am assuming, maybe incorrectly, that the driver is the cause of this.


I tried:

  if_up -p fec0

which has exit status of 0 which means the interface is present but not necessarily configured.

  if_up -a fec0

returns  "if_up: retries exhausted" with exit status 7

No sure exactly what the 7 means but this implies that the interface is not configured.

Any ideas what I am missing in configuring the interface? On the same platform the asix driver for usb dongle is working
 fine.

What functions in the driver are called as a result of the ifconfig command? I couldn’t find this information on the 
QNX support pages. With this I could attempt to debug the problem.

I am also wondering if my setup is missing something. Do I need to run anything else? Are there any tools that would 
help diagnose the problem?

Unfortunately I am new to the finer details of networking and am learning as I go so any useful information would be 
appreciated.

Thanks
Simon
Re: Problems using imx FEC  
A bit more info...

with: 
#io-pkt-v4 -d mx53 mac=00049fcc9ab5
mx51_attach(): IF 0: Base register 0x63FEC000
mx51_attach(): IF 0: IRQ 87

Which looks ok.

sloginfo...

Jan 01 00:00:09    5    14     0 IMX 51 FEC
Jan 01 00:00:09    5    14     0 Vendor .............. 0x0
Jan 01 00:00:09    5    14     0 Device .............. 0x0
Jan 01 00:00:09    5    14     0 Revision ............ 0x0
Jan 01 00:00:09    5    14     0 Memory base ......... 0x63fec000
Jan 01 00:00:09    5    14     0 Interrupt ........... 0x57
Jan 01 00:00:09    5    14     0 MAC address ......... 00049f cc9ab5

Not sure about the 0x0 - guess they are not set.

Then attempt

# nicinfo fec0
fec0:
  IMX 51 FEC Ethernet Controller
and it hangs!

I guess this is something serious :-(

Any thoughts?

Thanks
Simon
Re: Problems using imx FEC  
Now able to use the tools ok.

The reads and writes to the FEC registers were failing. This was becasue the FEC clock had been disabled.

Simon