This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Connection time out when using tcp based program on linux2.6.10 and linux2.6.18

Hi

I'm using dm6467.

I found when using linux2.6.10 and linux2.6.18,I could normal use udp program.But  ,when using tcp program (telnet, mount nfs etc),the connection would time out.    When using linux2.6.32, I could normal use udp and tcp program.

 
Uncompressing Linux................................................................................................ done, booting the kernel.
Linux version 2.6.10_mvl401-davinci_evm-PSP_01_30_00_082 (gcc version 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)) #14 Wed Jan 19 09:58:16 CST 2011
CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Machine: DaVinci DM6467 EVM
Memory policy: ECC disabled, Data cache writeback
DM6467
Built 1 zonelists
Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=192.168.99.38:192.168.99.77 root=/dev/nfs nfsroot=192.168.99.77:/home/linux/install/arm/encode/restore,nolock mem=120M davincihd_capture.channel0_numbuffers=4
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 120MB = 120MB total
Memory: 118528KB available (2394K code, 514K data, 168K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
spawn_desched_task(00000000)
desched cpu_callback 3/00000000
ksoftirqd started up.
desched cpu_callback 2/00000000
desched thread 0 started up.
NET: Registered protocol family 16
DaVinci: 48 gpio irqs
Registering platform device 'serial8250.0'. Parent at platform
Registering platform device 'musb_hdrc'. Parent at platform
DaVinci I2C DEBUG: 09:55:35 Jan 19 2011
Registering platform device 'i2c'. Parent at platform
ch0 default output "COMPOSITE", mode "NTSC"
ch1 default output "", mode ""
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
musb_hdrc: version 2.2a/db-0.4.8 [cppi-dma] [host] [debug=0]
musb_hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn)
musb_hdrc: MHDRC RTL version 1.500
musb_hdrc: USB Host mode controller at c8000000 using DMA, IRQ 13
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
yaffs Jan 19 2011 09:54:56 Installing.
Registering platform device 'DavinciHD_vdce.2'. Parent at platform
CIR device registered successfully                        (Major = 253, Minor = 0)<6>Registering platform device 'cir.0'. Parent at platform
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
Registering platform device 'serial8250'. Parent at platform
ttyS0 at MMIO 0x1c20000 (irq = 40) is a ST16654
ttyS1 at MMIO 0x1c20400 (irq = 41) is a ST16650V2
io scheduler noop registered
io scheduler anticipatory registered
RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
Registering platform device 'ti_davinci_emac'. Parent at platform
TI DaVinci EMAC: MAC address is 5f:4e:4f:4e:45:20
TI DaVinci EMAC Linux version updated 5.0
TI DaVinci EMAC: Installed 1 instances.
netconsole: not configured, aborting
i2c /dev entries driver
Linux video capture interface: v1.00
Registering platform device 'vpif capture.1'. Parent at platform
Registering platform device 'vpif display.1'. Parent at platform
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
MUX: initialized ATAEN
hda: no response (status = 0xa1), resetting drive
hda: no response (status = 0xa1)
hdb: no response (status = 0xa1), resetting drive
hdb: no response (status = 0xa1)
Palm Chip BK3710 IDE Register Fail
elevator: using anticipatory as default io scheduler
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
Registering Audio Devices. Total communication  peripherals             (ASP) : 2
Codec with ID = 0 on ASP = 0 is initialized.Using minor number :  3
Configuring the McASP as Master
Configuring the McASP 1 for DIT
SPDIF on ASP = 1 isinitialized.Using minor number : 19
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
NET: Registered protocol family 1
NET: Registered protocol family 17
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
      device=eth0, addr=192.168.99.38, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.99.38, domain=, nis-domain=(none),
     bootserver=192.168.99.77, rootserver=192.168.99.77, rootpath=
Looking up port of RPC 100003/2 on 192.168.99.77
Looking up port of RPC 100005/1 on 192.168.99.77
VFS: Mounted root (nfs filesystem).
Freeing init memory: 168K
INIT: version 2.85 booting
Mounting a tmpfs over /dev...done.
Creating initial device nodes...done.
Activating swap...done.
Remounting root filesystem...done.
Calculating module dependencies
WARNING: Couldn't open directory /lib/modules/2.6.10_mvl401-davinci_evm-PSP_01_30_00_082: No such file or directory
FATAL: Could not open /lib/modules/2.6.10_mvl401-davinci_evm-PSP_01_30_00_082/modules.dep.temp for writing: No such file or directory
Loading modules:
Checking all file systems: fsck
fsck 1.35 (28-Feb-2004)
Mounting local filesystems: mount nothing was mounted
Cleaning: /tmp /var/lock /var/run done.
Setting up networking (ifupdown) ..
Cleaning: /etc/network/run/ifstate done.
Starting network interfaces: done.
Starting hotplug subsystem:
   pci
   pci      [success]
   usb
   usb      [success]
   isapnp
   isapnp   [success]
   ide
   ide      [success]
   input
   input    [success]
   scsi
   scsi     [success]
done.
Starting portmap daemon: portmap.
done.
Setting pseudo-terminal access permissions...done.
Updating /etc/motd...done.
INIT: Entering runlevel: 3
Starting NFS common utilities: statd lockd.
Starting internet superserver: inetd.
Starting MontaVista target tools daemon: mvltdmvltd version 2.1 MontaVista Software,Inc.
mvltd[1010]: can't send broadcast message: Network is unreachable
mvltd[1010]: can't send broadcast message: Network is unreachable
mvltd[1011]: started on port 34577
.
MontaVista(R) Linux(R) Professional Edition 4.0.1 (0600980)

192.168.99.38 login: root
Last login: Thu Jan  1 00:00:26 1970 on console
Linux 192.168.99.38 2.6.10_mvl401-davinci_evm-PSP_01_30_00_082 #14 Wed Jan 19 09:58:16 CST 2011 armv5tejl GNU/Linux

Welcome to MontaVista(R) Linux(R) Professional Edition 4.0.1 (0600980).

192.168.99.38:~# mount  -o tcp,nolock 192.168.99.77:/home/linux/install /mnt
mount: RPC: Remote system error - Connection timed out

I could mount  192.168.99.77:/home/linux/install  on other host.

linux@linux-desktop:/tmp$ sudo mount  -o tcp,nolock 192.168.99.77:/home/linux/install /mnt
[sudo] password for linux:
linux@linux-desktop:/tmp$

 

regards

Armstrong.

  • I see these lines in your log:

    armstrong james said:

    Starting NFS common utilities: statd lockd.

    Starting internet superserver: inetd.
    Starting MontaVista target tools daemon: mvltdmvltd version 2.1 MontaVista Software,Inc.
    mvltd[1010]: can't send broadcast message: Network is unreachable
    mvltd[1010]: can't send broadcast message: Network is unreachable
    mvltd[1011]: started on port 34577

    The fact that your filesystem is mounted over NFS, there doesn't seem to be any problem in mounting NFS shares.

    Can you check the contents of /etc/network/interfaces in the mounted filesystem and verify that thry would allow you to reach the destination host 192.168.99.77?

    A brute force mechanism (depending upon network topology) would be to make the contents same as your linux desktop where the mount is successful.

  • Hi Sanjeev:

    Thank you for you reply.

    I set MAC addr from 5F:4E:4F:4E:45:20 to 3A:95:FE:83:11:BE. I can use  tcp-based  applications on linux2.6.10 now.

    regards