Altera_Forum
Honored Contributor
16 years agoAvalon OpenCores MAC 10/100 + µClinux
Hi all,
Sorry for the previous post... I'm working on the implementation of a Boa embedded webserver using µClinux on the baseboard DBM_3C40 (Cyclone III / Nios II), with a Marvell 88E1119R PHY. My idea is to use the "Avalon OpenCores 10/100 Ethernet MAC v8.03" so I integrated it in my SOPC Builder design then I generated the *.ptf and a block "cpu" in Quartus to make clearly the pins assignments. Here are some representative screenshots : http://img22.imageshack.us/img22/5636/sopcbuilder.jpg (http://img22.imageshack.us/img22/5636/sopcbuilder.jpg) http://img200.imageshack.us/img200/2067/quartusdesign1.jpg (http://img200.imageshack.us/img200/2067/quartusdesign1.jpg) http://img40.imageshack.us/img40/1420/quartusdesign2.jpg (http://img40.imageshack.us/img40/1420/quartusdesign2.jpg) In the "menu makeconfig" kernel configuration, I chose only the following settings : ------------------------------------------------------------------ Device Drivers --> Network device support ─> ... [*] Network device support [*] Ethernet (10 or 100Mbit) [*] Opencores (Igor) Emac support [*] Generic Media Independant Interface device support (if I don't include this option with Opencores (Igor) Emac support, the compilation "make" fails...) [*] Drivers for Marvell PHY ------------------------------------------------------------------- Finally, I transferred the "zImage" file from Ubuntu to WindowsXP, configured the FPGA with my "webserver_time_limited.sof" and downloaded the µClinux image from the NIOS II 9.0 Command Shell : [NiosII EDS]$ nios2-terminal Uncompressing Linux... Ok, booting the kernel. .... eth0: Open Ethernet Core Version 1.0 oeth_probe: 75000 Khz Nios: 16 RX, 16 TX buffs NO Custom HW ALIGN. CONFIG_NIOS2_HW_MULX NOT defined. CONFIG_NIOS2_HW_MUL_OFF NOT defined. BMCR = 1140h. .... /> ifconfig eth0 192.168.1.10 up oeth_phymac_synch:eth0 MR1: 0x0000796D Autoneg'd Link OK: MODER: 0x0000A040 FullD 100BASE-TX /> route add -net 192.168.1.0 netmask 255.255.255.0 eth0 /> boa & [26] /> [30/Nov/1999:00:01:14 +0000] boa: server version Boa/0.94.14rc21 [30/Nov/1999:00:01:14 +0000] boa: server built Jun 30 2009 at 13:23:21. [30/Nov/1999:00:01:14 +0000] boa: starting server pid=27, port 80 I also check the configuration of the network-interface of my PC : IP-Adress: 192.168.1.1 Subnetmask: 255.255.255.0 Firewall: Disabled My problem is that I can't ping my PC from/to the µClinux and therefore, I can't access to the simple CGI demo included with uClinux-dist with my browser. I don't understand what i'm doing wrong.... Maybe the final IP configuration ? Or the pins assignments but I check them all twice at least ?? Do you have any ideas of benchmarking "ethernet" tests under µClinux to isolate the problem ? Thanks for your help ! Papy