Forum Discussion

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

A problem about ethernet in Nios uClinux

Hello, everyone,

I am doing some work in Nios II with uClinux, and want to build the kenel with ehternet. But when I followed the instruction in nioswiki webpage, I met some problems. My Nios development board could not found the ethernet device.

The following is the procedure in nioswiki.

>>To enable network support, eg if you use the Altera dev board with SMC91111,

Networking -->

[*] Networking support

Networking options --->

<*> Packet socket

<*> Unix domain sockets

[*] TCP/IP networking

>>Device Drivers -->Network device support &#9472;>

[*] Network device support

[*] Ethernet (10 or 100Mbit)

<*> SMC 91111 support

I do this correctly, and kernel was complied successfully.

>>Then rebuild the kernel, and boot nios2 uclinux.

>>It should detect the SCM 91111 device as eth0.

>>Then config the ip address and router.

>>ifconfig eth0 192.168.1.10

I boot nios2 uclinux, when i use ifconfig eth0, uclinux tells me that : device not found. Really, I do not know how to reslove the problem. Please help me to find the reason.

The environment:

Nios Development Kit, Stratix Edition;

uClinux and patch, downloaded from nioswiki, standard;

Quartus II 5.0, Nios II 5.0;

I am looking forward to your&#39;s reply.

2 Replies

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

    The irq number of the ether chip can not be zero.

    Please change it in SOPC builder, and rebuild sof.

    Then start from vendor_hwselect again.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you very much, hippo!

    The irq 0 can not be allocated to any device!