Forum Discussion

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

Ethernet on 3C120

Hi,

Does anybody manage to make the TSE run under uClinux ? I try what I read on the wiki, but I can't get a ping from or to the dev board (FPGA Dev kit 3c120).

Do I have to use the opencore 10/100 MAC ?

Thank you in advance.

23 Replies

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

    Hi Actris,

    thank you for your help!

    Generic Media Independent Interface device support is selected and also Altera Tripple Speed (EXPERIMENTAL).

    No PHY option is selected.

    Anyway, the system doesn't boot.

    zImage size is:

    -rwxr-xr-x 1 fabio fabio 1390589 2010-07-01 10:38 zImage

    the system has 64MB of DDR2 RAM, so that shouldn't be the problem here.

    Some possible clues are:

    1) I have no definitions for the Stratix III board and I'm using the settings for the Cyclone III 3C120 under

    Processor type and features --> Platform (Altera CYCLONE III 3C120 Development board support)

    I'm not sure this can be the problem, when I don't set ethernet support the system boots indipendent of the board choice (DE2, CycloneIII, ...).

    2) The other suspect I have is Marvell-related.

    To make it work under interniche tcp/ip, I had to add some code to the libraries to make an additional reset of the Marvell chip. But this should only create problem with the ethernet, not with the boot of the whole system...

    (check http://alterauserforum.com/forum/showthread.php?t=3210&page=2 post# 17 )

    Thanks!

    Bye

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

    hi,

    i have a problem with my 3c120 dev board. i succesfully build kernel with uclinux 20090730 nommu dist. i boot the kernel from ddr2_sdram.when entered dhcpcd command, it stucks and timeout occurs tse interface doesn' t get dinamic ip from server.

    i use sof and ptf files which is located nioswiki simple socket server plus example, for building and running uclinux. i tried the board's ethernet lights lit but i can't communicate with ethernet.

    i tried giving ip with command shell, eth0 interface manually configured but i can't communicate with board via ethernet...please help me
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Actris,

    I having somes problem with the 3c120 TCP protocol.. I am running uClinux by the way..

    Currently I am using the .sof that came from the uCLinux tarball.. I was able to flash the board with the linux image and file system.. I can do ping from the board and ping to the board.. I have even hook wireshark to monitor the msgs... UDP/ICMP/ARP/DHCP seems to be fine but not TCP transmission..

    I have seen from your post that you have resolve the problem. If you dont mind could I ask if you could share the quartus design file?.. Your quartus files seems to be diffrent compared to the design file that came from the altera wiki..

    hope you could help..

    --- Quote Start ---

    Hi mantoz,

    Did you select the :

    Ethernet (10 ot 100 Mbit) -> Generic Media Independent Interface device support.

    No need to select the :

    PHY Device support and infrastructure -> Drivers for Marvell PHYs.

    What size is your zImage ?

    bye

    --- Quote End ---