Forum Discussion

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

help: ping is ok, but telnetd and ftpd doesn't work

hi,

based on the nios2-linux-20100621.tar, I refer to the step by step in www,alterawiki,com / wiki /UClinuxDist

then I get a zImage booting successfully on the altera's 3c120 development board.

then I <ifconfig eth0 192.168.0.200 up> ,

then I can ping from my PC to the 3c120 board.

[zhengj@localhost uclinux-dist]$ ping 192.168.0.200

ping 192.168.0.200 (192.168.0.200) 56(84) bytes of data.

64 bytes from 192.168.0.200: icmp_seq=1 ttl=64 time=2.04 ms

64 bytes from 192.168.0.200: icmp_seq=2 ttl=64 time=0.637 ms

64 bytes from 192.168.0.200: icmp_seq=3 ttl=64 time=0.656 ms

64 bytes from 192.168.0.200: icmp_seq=4 ttl=64 time=0.676 ms

64 bytes from 192.168.0.200: icmp_seq=5 ttl=64 time=0.647 ms

So I think the driver for the altera TSE is working . but I fail to telnet from PC to 3c120 board:

<

[zhengj@localhost uclinux-dist]$ telnet 192.168.0.200

trying 192.168.0.200...

telnet: connect to address 192.168.0.200: connection timed out

>

I fail to ftp :

<

[zhengj@localhost uclinux-dist]$ ftp 192.168.0.200

ftp: connect: connection timed out

ftp>

>

the output infomation for < netstat -a> is :

<

root:/>netstat -a # show network services

active internet connections (servers and established)

proto recv-q send-q local address foreign address state

tcp 0 0 <null>:ftp <null>:* listen

tcp 0 0 <null>:telnet <null>:* listen

active unix domain sockets (servers and established)

proto refcnt flags type state i-node path

>

the output infomation for <ifconfig> is :

<

root:/> ifconfig

eth0 link encap:ethernet hwaddr 00:07:ed:11:12:12

inet addr:192.168.0.200 bcast:192.168.0.255 mask:255.255.255.0

up broadcast running multicast mtu:1500 metric:1

rx packets:985 errors:0 dropped:452 overruns:0 frame:0

tx packets:13 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

rx bytes:124971 (122.0 kib) tx bytes:710 (710 b)

base address: 0x4000

lo link encap:local loopback

inet addr:127.0.0.1 mask:255.0.0.0

up loopback running mtu:16436 metric:1

rx packets:16 errors:0 dropped:0 overruns:0 frame:0

tx packets:16 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

rx bytes:1280 (1.2 kib) tx bytes:1280 (1.2 kib)

>

anyone please tell me how to do with the problem?

8 Replies

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

    --- Quote Start ---

    hi,

    based on the nios2-linux-20100621.tar, I refer to the step by step in www,alterawiki,com / wiki /UClinuxDist

    then I get a zImage booting successfully on the altera's 3c120 development board.

    --- Quote End ---

    Did you use git to upgrade the system to the current version ?

    Otherwise nobody from the community will provide any help, as this is a work in progress and there is no "released" version. " nios2-linux-20100621.tar" is just a random snapshot.

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

    I have run <./checout> under dir nios2-linux, I think this will git to update the system.

    the following script is in the checkout file:

    for i in

    binutils gcc3 linux-2.6 toolchain-build toolchain-mmu uclibc elf2flt

    insight u-boot uclinux-dist

    do

    cd $i

    git checkout -f

    cd ..

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

    Helo sir,

    I successfully generated the linux image, but i wants to know the paths of QUARTUS_ROOTDIR, SOPC_KIT_NIOS2,LD_LIBRARY_PATH? plz any suggestions?

    and iam trying to load the image into SDRAM,but its showing error like this

    alex@alex:~$ nios2-download -g ~/uClinux/distro/nios2-linux/uClinux-dist/images/zImage

    /opt/nios2eds/bin/nios2-gdb-server-wrapped: error while loading shared libraries: libjtag_client.so: cannot open shared object file: no such file or directory.

    Any suggestions?

    Thanks,

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

    I have run <./checout> under dir nios2-linux, I think this will git to update the system.

    the following script is in the checkout file:

    for i in

    binutils gcc3 linux-2.6 toolchain-build toolchain-mmu uClibc elf2flt

    insight u-boot uClinux-dist

    do

    cd $i

    git checkout -f

    cd ..

    done

    if I download the zImage of www, alterawiki.com/wiki/ Try_out_without_compilation , telnetd will work. there is "altera tse mii bus: mdio bus registered" message when booting.

    but when I download the zImage generated by myself, there is no "altera tse mii bus: mdio bus registered" message when booting.

    So I'm looking to the driver code.

    any help is appreciated&#65281;
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    for alexdb2012,

    sorry , I install quartus on win7, not on linux.

    but I think it seems that the driver for your download cable is not installed successfully.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks for ur reply sir,but i executed the nios2-download command its showing like this

    alex@alex:~$ nios2-download -g ~/uClinux/distro/nios2-linux/uClinux-dist/images/zImage

    there is a problem with the quartus ii installation on your computer.

    please use `jtagconfig` for further diagnosis.

    Kindly any help?

    Thanks,

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

    alexdb, please post your questions only once, and don't hijack other people's threads when your problem has nothing to do with the original one. You make the whole forum hard to read.

    fbc99, I don't use Linux but the mdio part is necessary for the driver to know what speed has been negotiated on the Ethernet link, so that the MAC is configured correctly. There could be some options in menuconfig to enable/disable the MDIO code. If you search for the sentence "mdio bus registered" in the driver source code you may find some information on what needs to be done.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    --- Quote Start ---

    anyone please tell me how to do with the problem?

    --- Quote End ---

    I recommend you to use 'Wireshark' or something, and check the packets on the wire.

    Kazu