Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - start io-pkt-v4?dose it work?: (12 Items)
   
start io-pkt-v4?dose it work?  
I am working on at91sam9263 board.and the NIC is dm9000,I am trying to make the network running.but there is no response
 to the 
"io-pkt-v4 -d at91sam9xx syspage"
I think if it work successfully,there would be 
 /dev/io-net/ip0
and  /dev/io-net/en0
Now my problem is that I do not make sure whether the NIC has been started.
this is the sloginfo of runing "io-pkt-v4 -d at91sam9xx syspage" 

Jan 01 06:06:02    5    14     0 tcpip starting
Jan 01 06:06:02    3    14     0 Unable to attach to pci server: No such file or directory
Jan 01 06:06:02    3    14     0 Using pseudo random generator.  See "random" option
Jan 01 06:06:02    2    14     0 at91sam9xx_attach(): IF 0: Base register 0xFFFBC000
Jan 01 06:06:02    2    14     0 at91sam9xx_attach(): IF 0: IRQ  0
Jan 01 06:06:02    2    14     0 at91sam9xx_attach(): IF 0: PHY address -278528
Jan 01 06:06:02    5    10     0 AT91SAM9XX EMAC
Jan 01 06:06:02    5    10     0 Vendor .............. 0x0
Jan 01 06:06:02    5    10     0 Device .............. 0x0
Jan 01 06:06:02    5    10     0 Revision ............ 0x0
Jan 01 06:06:02    5    10     0 Memory base ......... 0xfffbc000
Jan 01 06:06:02    5    10     0 MAC address ......... 662200 031615

# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
        inet 127.0.0.1 netmask 0xff000000
emac0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        address: 66:22:00:03:16:15
        media: Ethernet none


can you tell me the reason of this secret,thanks.
best regards!
yang
Re: start io-pkt-v4?dose it work?  
I am waiting .....
  thanks for anyhelp.

Re: start io-pkt-v4?dose it work?  
On Tue, Sep 07, 2010 at 10:06:42PM -0400, yang hui wrote:
> I am waiting .....
>   thanks for anyhelp.
> 

It seems to be working fine.  Use emac0 as you would en0.

Regards,

-seanb
Re: start io-pkt-v4?dose it work?  
hi :
   NO.
slay io-pkt-v4
and run it again,there is no reply.
Re: start io-pkt-v4?dose it work?  
On Wed, Sep 08, 2010 at 08:30:59PM -0400, yang hui wrote:
> hi :
>    NO.
> slay io-pkt-v4
> and run it again,there is no reply.

What do you mean by 'reply'.  Does ifconfig show the interface
as before.  If not what's in the sloginfo?

-seanb
Re: start io-pkt-v4?dose it work?  
I think that you may be getting confused with the behaviour of an io-net driver and a native driver.  Please take a look
 here:

http://community.qnx.com/sf/wiki/do/viewPage/projects.networking/wiki/Drivers_wiki_page

to see how they differ.  A native driver will not produce entries in /dev/io-net. 

Also note the entry in the sloginfo:
Jan 01 00:17:23    2    14     0 at91sam9xx_init_phy(): devnp-at91sam9xx: Cannot find an active PHY

This seems to indicate that there's some sort of problem with the PHY.  You should double check the docs for the driver 
and possibly the board revision to make sure that things are compatible.  Never having seen this driver, I can't make 
much more of a suggestion.

You also might want to double check your MAC address.  Having the second bit of the first octet set indicates a specific
 type of MAC address.
Re: start io-pkt-v4?dose it work?  
hi Robert:
          thanks for your reply.
          Yes,I had confused the native driver and the io-net driver.there will be just a 'en0' if the driver initial 
successfully.
          I am trying to find out whether the driver" devnp-at91sam9xx.so"  is compatible with my NIC, My NIC is dm9000,
which is very common ,I think.But I can not find any information about the driver " devnp-at91sam9xx.so",which is 
provided  in the BSP of BSP-ATMEL-AT91SAM9263-EK-src, in the form of .Bin.
       So,if  the driver is not compatible with the DM9000 NIC, should I write a driver by myself? 
        best regard.
     yang.
           
Re: start io-pkt-v4?dose it work?  
I was under the impression that the source code for BSP network drivers could be downloaded and given that this driver 
almost works for you, that would be the best way to go.  Try asking in the BSP forums.  There's a different group of 
people monitoring that forum and they might have more information.
Re: start io-pkt-v4?dose it work?  
thanks Robert.
          maybe I have to find a source code which is close to the NIC.
thanks for your help.
best wishes!
      yang.
Re: start io-pkt-v4?dose it work?  
this is the NIC information:

emac0: 
  AT91SAM9XX EMAC Ethernet Controller

  Link is DOWN

  Physical Node ID ........................... 000000 000000
  Current Physical Node ID ................... 662200 031615
  Current Operation Rate ..................... Unknown
  Active Interface Type ...................... Unknown
  Maximum Transmittable data Unit ............ 1514
  Maximum Receivable data Unit ............... 128
  Memory Aperture ............................ 0xfffbc000 - 0xfffbcfff
  Promiscuous Mode ........................... Off
  Multicast Support .......................... Disabled

  Packets Transmitted OK ..................... 0
  Bytes Transmitted OK ....................... 0

  Packets Received OK ........................ 0
  Bytes Received OK .......................... 0

I find that there is not a " en0"  but a  "emac0".
and I use the conmand :
ifconfig emac0 192.168.0.5
the sloginfo says that :

Jan 01 00:17:23    2    14     0 set_phys_addr(): MAC 66:22:00:03:16:15
Jan 01 00:17:23    2    14     0 at91sam9xx_init_phy(): media_rate: -1, duplex: -1, PHY: 0
Jan 01 00:17:23    2    14     0 at91sam9xx_init_phy(): devnp-at91sam9xx: Cannot find an active PHY
Jan 01 00:17:23    2    14     0 at91sam9xx->rx_cap_mask: 0x0

Jan 01 00:17:23    2    14     0 at91sam9xx->tx_cap_mask: 0x0

I doubt that the net driver of the BSP , devnp-at91sam9263.so,do not support the DM9000?If it did ,how could I DO?
any help would be very useful for me.thanks
 yang.
Re: start io-pkt-v4?dose it work?  
Is this a custom board or the exact evaluation board?

I am not familiar with the hardware, but the BSP build file indicate
 io-pkt-v4 -dat91sam ioport=0xfffbc000,irq=21,rmii,mac=662200021615,verbose -ptcpip -v &
This shows irq=21, but your earlier log shows irq=0

Also, you mentioned that the NIC is DM9000, we do have devn-dm9000 in for io-net driver. But that is not the same as 
this driver. 

If this is a customized board, and the NIC is different than the evaluation board, then why do you choose to use this 
driver?

Re: start io-pkt-v4?dose it work?  
zhu:
    thanks very much. my board is a customized with a DM9000 connected with EBI0  NCS2. Before I did not realize that. 
So maybe I have to custom a NIC driver by myself.
   You mentioned that there is a devn-dm9000,can you share me?I just find a dev-dm9102 on the database. I tried to fiind
 the source code of a network driver in foundry27,but failed....I find the link to the source code of a network driver,
but I alway rejected.I do not know why.