This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Ethernet setup problems


Hi All

I've been trying to setup a network connection on the Altera Excalibur epxa1
board. So far the connection works perfect with redboot (etc. I can ping),
but when I want run the standard ping test program, the problems start.

First of all, if I boot from a redboot with no network implimentation,
upload the ping test application and run it, the ping test gives the
following :

RedBoot> go
Network stack using 65536 bytes for misc space
                    65536 bytes for mbufs
                    131072 bytes for mbuf clusters
[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device 'lan91c111_eth0'
No LAN91C111 signature 0x3300
[cyg_net_init] Init: loopattach(0x00000000)
[cyg_net_init] Init: ifinit(0x0000000
IFP: 0x0009d588, next: 0x000f1ba0
IFP: 0x000f1ba0, next: 0x00000000
[cyg_net_init] Init: domaininit(0x00000000)
[cyg_net_init] Init: cyg_net_add_domain(0x0009ee70)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x0009e518)
New domain route at 0x00000000
[cyg_net_init] Init: cyg_route_init(0x00000000)
[cyg_net_init] Done
Start PING test
No PHY found
Not found!
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
No PHY found
Not found!


It looks like the ethernet driver isn't initilized at all??

Secondly, using a redboot with network, it boots up seemingly ok (using
DHCP):

+Ethernet eth0: MAC address 00:30:f1:31:69:db
IP: 146.232.147.75, Default server: 146.232.128.1

RedBoot(tm) bootstrap and debug environment [REDBOOT]
Non-certified release, version UNKNOWN - built 16:14:29, Mar 31 2004

Platform: EPXA1 system (ARM9)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x02000000, 0x00002000-0x01f21000 available
FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 10.000 seconds - enter ^C to abort
^C
RedBoot>



Now when I upload the ping test with the same MAC address as redboot (using
DHCP again), I get the following (just an extract) :

RedBoot> go
Network stack using 65536 bytes for misc space
                    65536 bytes for mbufs
                    131072 bytes for mbuf clusters
[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device 'lan91c111_eth0'
[cyg_net_init] Init: loopattach(0x00000000)
[cyg_net_init] Init: ifinit(0x00000000)
IFP: 0x0009d588, next: 0x000f1ba0
IFP: 0x000f1ba0, next: 0x00000000
[cyg_net_init] Init: domaininit(0x00000000)
[cyg_net_init] Init: cyg_net_add_domain(0x0009ee70)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x0009e518)
New domain route at 0x00000000
[cyg_net_init] Init: cyg_route_init(0x00000000)
[cyg_net_init] Done
Start PING test
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
---------DHCPSTATE_INIT sending:
BOOTP[eth0] op: REQUEST
       htype: Ethernet
        hlen: 6
        hops: 0
         xid: 0xe3a069db
        secs: 0
       flags: 0x80
       hw_addr: 00:30:f1:31:69:db
     client IP: 0.0.0.0
         my IP: 0.0.0.0
     server IP: 0.0.0.0
    gateway IP: 0.0.0.0
  options:
        DHCP message: 1 DISCOVER
        DHCP option: 37/55.9: 54 51 58 59 1 3 6 15 28
        DHCP option: 39/57.2: 576
---------DHCPSTATE_SELECTING received:
...rx_addr is family 2, addr 0d90e892, port 17152
BOOTP[eth0] op: REPLY
       htype: Ethernet
        hlen: 6
        hops: 1
         xid: 0x727d4a59
        secs: 0
       flags: 0x0
       hw_addr: 00:e0:4c:ff:31:24
     client IP: 0.0.0.0
         my IP: 146.232.147.115
     server IP: 146.232.128.1
    gateway IP: 146.232.144.13
  options:
        DHCP message: 5 ACK
        DHCP server id: 146.232.128.1
        DHCP time 51: 84600
        subnet mask: 255.255.252.0
        domain name: sun.ac.za
            gateway: 146.232.144.1
      domain server: 146.232.128.1, 146.232.128.10
Unknown option: 2c/44.8: 146 232 20 10 146 232 129 87
Unknown option: 2e/46.1: 8
---------DHCPSTATE_SELECTING received:
...rx_addr is family 2, addr 0d90e892, port 17152
BOOTP[eth0] op: REPLY
       htype: Ethernet
        hlen: 6
        hops: 1
         xid: 0x727d4a59
        secs: 0
       flags: 0x0
       hw_addr: 00:e0:4c:ff:31:24
     client IP: 0.0.0.0
         my IP: 146.232.147.115
     server IP: 146.232.128.10
    gateway IP: 146.232.144.13
  options:
        DHCP message: 5 ACK
        DHCP server id: 146.232.128.10
        DHCP time 51: 84600
        subnet mask: 255.255.252.0
        domain name: sun.ac.za
            gateway: 146.232.144.1
      domain server: 146.232.128.1, 146.232.128.10
Unknown option: 2c/44.8: 146 232 20 10 146 232 129 87
Unknown option: 2e/46.1: 8
BOOTP/DHCP failed on eth0
PASS:<Ping test OK>
EXIT:<done>

The thing that worries me is that the "my IP" field is just zeros. It looks
like it couldn't find the IP. Is this because redboot uses the same MAC and
thus IP address on the network. At the end it looks like the Ping test
passed, but the DHCP failed (redboot using the same MAC again??).

How can I fix this and why doesn't the ethernet driver initilize when I boot
from the redboot without network implementation? Can redboot and the user
application use the same MAC address?

Can anybody help me or give suggestions?

Thanks in advance.
Jacques




-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]