Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Start eth0 device

Hi all,

The final objective of my test is to be able to ping the NEEK demo board and to be able to display an embedded webpage when I connect to the board from my workstation.

First things first: the first step is to be able to assign a dynamic IP for my device (static would be fine for now) and ping it.

At first, when uclinux start, typing ifconfig shows only "lo", which means no eth0 is there.

In order to solve that issue, I ran the following command:

# ifconfig eth0 172.16.115.191 up

this is what I get as output:

ATSE: Waiting on PHY Link ........

ATSE: PHY Auto negotiation faild, continue anyway ...

ATSE driver: nios2-linux/linux-2.6/drivers/net/atse.c:MAC SW reset bit never cleared!

eth0 up, link speed 100, half duplex, eth hw addr 00:07:ed:0d:09:19

This means that eth0 is alive, right ?

But no leds are blinking, and if I try to ping the device from my workstation I get no reply.

Any pointers ?

Thanks

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The communication with the PHY isn't working, which is a bad sign, and it seems that the MAC is stuck. The "MAC SW reset bit never cleared!" is in fact a failure that says that the MAC didn't init properly.

    Is it receiving a valid 25MHz/125MHz clock?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks Daixiwen for your reply.

    I have found out what is happening thanks to an earlier thread of mine. It appeared I had enabled both Altera's experimental tse driver and SLS driver, and that was causing the trouble.

    Now I can start the device, ping it from my laptop etc. I was able to start boa webserver as well, and run cgi script.

    Now I need to go one step further and be able to modify the page that is displayed in my web browser when I type in my board's IP address in the address bar.

    What are the files that need to be modified ?