Hi Dietmar,

I have tried to reproduce your problem without success.
See what i did:
a) Connected from PC-1 via serial console to foxboard
b) Telneted from PC-1 to foxboard
runned top, so i had some data traveling...
c) Telneted from PC-2 to foxboard
d) Telneted from PC-3 to foxboard
e) Browsed from PC-1 to foxboard
f) Browsed from PC-2 to foxboard
and then started to unplug and plug the ethernet cable for at least 
20 times and waited sometimes from 10 to 90 seconds while 
disconnected.

I had never closed the telnet connection and at some unplugged time i 
forced a disconnection to see i could connect again, yes i could.
I had no problem at all.

Well, perhaps this is not enough times to reproduce it.
If you are still thinking it is at kernel level, i guess this will 
happen without your ftp program.

You didnt say which foxboard you have and how long you keep it 
disconnected, and what you do with your sockets when a connection 
breaks, so it is all i can help.
You say the blinking red light stops, so i guess it is the red fox 
you are using, if i have time i will do it on my red foxboard and 
tell you the results. 
I dont know libcurl, maybe i missed the point.

Alexander

Anyway here is the foxboard log message:

Oct 11 18:54:21 mobigo-00408c168525 syslogd 1.4.1: restart.
Oct 11 18:54:21 mobigo-00408c168525 kernel: klogd 1.4.1, log source 
= /proc/kmsg started.
Oct 11 18:54:21 mobigo-00408c168525 kernel: Linux version 2.4.31 
([EMAIL PROTECTED]) (gcc version 3.2.1 Axis release R63/1.63) #45 Sat 
Dec 8 18:40:02 BRST 2007
Oct 11 18:54:21 mobigo-00408c168525 kernel: Setting up paging and the 
MMU.
Oct 11 18:54:21 mobigo-00408c168525 kernel: On node 0 totalpages: 2048
Oct 11 18:54:21 mobigo-00408c168525 kernel: zone(0): 2048 pages.
Oct 11 18:54:21 mobigo-00408c168525 kernel: zone(1): 0 pages.
Oct 11 18:54:21 mobigo-00408c168525 kernel: zone(2): 0 pages.
Oct 11 18:54:21 mobigo-00408c168525 kernel: Linux/CRIS port on ETRAX 
100LX (c) 2001, 2002 Axis Communications AB
Oct 11 18:54:21 mobigo-00408c168525 kernel: Kernel command line: 
root=/dev/mtdblock3 init=/linuxrc
Oct 11 18:54:21 mobigo-00408c168525 kernel: ds1302: RTC found.
Oct 11 18:54:21 mobigo-00408c168525 kernel: ds1302: SDA, SCL, RST on 
PB0, PB1, GENIO2
Oct 11 18:54:21 mobigo-00408c168525 kernel: rtc_time^I: 18:54:15
Oct 11 18:54:21 mobigo-00408c168525 kernel: rtc_date^I: 2008-10-11
Oct 11 18:54:21 mobigo-00408c168525 kernel: Enabling watchdog...
Oct 11 18:54:21 mobigo-00408c168525 kernel: Calibrating delay loop... 
99.73 BogoMIPS
Oct 11 18:54:21 mobigo-00408c168525 kernel: Memory: 14200k/16384k 
available (1042k kernel code, 2184k reserved, 288k data, 40k init)
Oct 11 18:54:21 mobigo-00408c168525 kernel: kmem_create: Forcing size 
word alignment - mm_struct
Oct 11 18:54:21 mobigo-00408c168525 kernel: kmem_create: Forcing size 
word alignment - filp
Oct 11 18:54:21 mobigo-00408c168525 kernel: Dentry cache hash table 
entries: 2048 (order: 1, 16384 bytes)
Oct 11 18:54:21 mobigo-00408c168525 kernel: Inode cache hash table 
entries: 1024 (order: 0, 8192 bytes)
Oct 11 18:54:21 mobigo-00408c168525 kernel: kmem_create: Forcing size 
word alignment - inode_cache
Oct 11 18:54:21 mobigo-00408c168525 kernel: Mount cache hash table 
entries: 1024 (order: 0, 8192 bytes)
Oct 11 18:54:21 mobigo-00408c168525 kernel: kmem_create: Forcing size 
word alignment - bdev_cache
Oct 11 18:54:21 mobigo-00408c168525 kernel: kmem_create: Forcing size 
word alignment - cdev_cache
Oct 11 18:54:21 mobigo-00408c168525 kernel: kmem_create: Forcing size 
word alignment - kiobuf
Oct 11 18:54:21 mobigo-00408c168525 kernel: Buffer cache hash table 
entries: 2048 (order: 0, 8192 bytes)
Oct 11 18:54:21 mobigo-00408c168525 kernel: Page-cache hash table 
entries: 2048 (order: 0, 8192 bytes)
Oct 11 18:54:21 mobigo-00408c168525 kernel: POSIX conformance testing 
by UNIFIX
Oct 11 18:54:21 mobigo-00408c168525 kernel: Linux NET4.0 for Linux 2.4
Oct 11 18:54:21 mobigo-00408c168525 kernel: Based upon Swansea 
University Computer Society NET3.039
Oct 11 18:54:21 mobigo-00408c168525 kernel: kmem_create: Forcing size 
word alignment - sock
Oct 11 18:54:21 mobigo-00408c168525 kernel: Initializing RT netlink 
socket
Oct 11 18:54:21 mobigo-00408c168525 kernel: Starting kswapd
Oct 11 18:54:21 mobigo-00408c168525 kernel: kmem_create: Forcing size 
word alignment - file_lock_cache
Oct 11 18:54:21 mobigo-00408c168525 kernel: JFFS version 1.0, (C) 
1999, 2000  Axis Communications AB
Oct 11 18:54:21 mobigo-00408c168525 kernel: kmem_create: Forcing size 
word alignment - jffs_node
Oct 11 18:54:21 mobigo-00408c168525 kernel: JFFS2 version 2.1. (C) 
2001 Red Hat, Inc., designed by Axis Communications AB.
Oct 11 18:54:21 mobigo-00408c168525 kernel: pty: 256 Unix98 ptys 
configured
Oct 11 18:54:21 mobigo-00408c168525 kernel: kmem_create: Forcing size 
word alignment - blkdev_requests
Oct 11 18:54:21 mobigo-00408c168525 kernel: RAMDISK driver 
initialized: 16 RAM disks of 4096K size 1024 blocksize
Oct 11 18:54:21 mobigo-00408c168525 kernel: PPP generic driver 
version 2.4.2
Oct 11 18:54:21 mobigo-00408c168525 kernel: PPP Deflate Compression 
module registered
Oct 11 18:54:21 mobigo-00408c168525 kernel: SCSI subsystem driver 
Revision: 1.00
Oct 11 18:54:21 mobigo-00408c168525 kernel: usb.c: registered new 
driver usbdevfs
Oct 11 18:54:21 mobigo-00408c168525 kernel: usb.c: registered new 
driver hub
Oct 11 18:54:21 mobigo-00408c168525 kernel: usb.c: registered new 
driver serial
Oct 11 18:54:21 mobigo-00408c168525 kernel: usbserial.c: USB Serial 
Driver core v1.4
Oct 11 18:54:21 mobigo-00408c168525 kernel: usbserial.c: USB Serial 
support registered for FTDI SIO
Oct 11 18:54:21 mobigo-00408c168525 kernel: usbserial.c: USB Serial 
support registered for FTDI 8U232AM Compatible
Oct 11 18:54:21 mobigo-00408c168525 kernel: usbserial.c: USB Serial 
support registered for FTDI FT232BM Compatible
Oct 11 18:54:21 mobigo-00408c168525 kernel: usbserial.c: USB Serial 
support registered for USB-UIRT Infrared Tranceiver
Oct 11 18:54:21 mobigo-00408c168525 kernel: usbserial.c: USB Serial 
support registered for Home-Electronics TIRA-1 IR Transceiver
Oct 11 18:54:21 mobigo-00408c168525 kernel: ftdi_sio.c: v1.3.5:USB 
FTDI Serial Converters Driver
Oct 11 18:54:21 mobigo-00408c168525 kernel: usbserial.c: USB Serial 
support registered for PL-2303
Oct 11 18:54:21 mobigo-00408c168525 kernel: pl2303.c: Prolific PL2303 
USB to serial adaptor driver v0.10.1
Oct 11 18:54:21 mobigo-00408c168525 kernel: Initializing USB Mass 
Storage driver...
Oct 11 18:54:21 mobigo-00408c168525 kernel: usb.c: registered new 
driver usb-storage
Oct 11 18:54:21 mobigo-00408c168525 kernel: USB Mass Storage support 
registered.
Oct 11 18:54:21 mobigo-00408c168525 kernel: usb.c: registered new 
driver rt2500usb
Oct 11 18:54:21 mobigo-00408c168525 kernel: ETRAX 100LX 10/100MBit 
ethernet v2.0 (c) 2000-2005 Axis Communications AB
Oct 11 18:54:21 mobigo-00408c168525 kernel: eth0 initialized
Oct 11 18:54:21 mobigo-00408c168525 kernel: eth0: changed MAC to 
00:40:8C:CD:00:00
Oct 11 18:54:21 mobigo-00408c168525 kernel: ETRAX 100LX serial-driver 
1.75 $, (c) 2000-2003 Axis Communications AB^M
Oct 11 18:54:21 mobigo-00408c168525 kernel: ttyS0 at 0xb0000060 is a 
builtin UART with DMA
Oct 11 18:54:21 mobigo-00408c168525 kernel: ttyS2 at 0xb0000070 is a 
builtin UART with DMA
Oct 11 18:54:21 mobigo-00408c168525 kernel: ttyS3 at 0xb0000078 is a 
builtin UART with DMA
Oct 11 18:54:21 mobigo-00408c168525 kernel: cse0: Probing a 
0x04000000 bytes large window at 0xe0000000.
Oct 11 18:54:21 mobigo-00408c168525 kernel: cse0: Probing for AMD 
compatible flash...
Oct 11 18:54:21 mobigo-00408c168525 kernel: cse0: Found no AMD 
compatible device at location zero
Oct 11 18:54:21 mobigo-00408c168525 kernel:  Amd/Fujitsu Extended 
Query Table v1.3 at 0x0040
Oct 11 18:54:21 mobigo-00408c168525 kernel: cse0: Swapping erase 
regions for broken CFI table.
Oct 11 18:54:21 mobigo-00408c168525 kernel: number of CFI chips: 1
Oct 11 18:54:21 mobigo-00408c168525 kernel: cfi_cmdset_0002: 
Disabling fast programming due to code brokenness.
Oct 11 18:54:21 mobigo-00408c168525 kernel: cse1: Probing a 
0x04000000 bytes large window at 0xe4000000.
Oct 11 18:54:21 mobigo-00408c168525 kernel: cse1: Probing for AMD 
compatible flash...
Oct 11 18:54:21 mobigo-00408c168525 kernel: cse1: Found no AMD 
compatible device at location zero
Oct 11 18:54:21 mobigo-00408c168525 kernel: CFI: Found no cse1 device 
at location zero
Oct 11 18:54:21 mobigo-00408c168525 kernel: cse0: 0x00800000 bytes of 
flash memory.
Oct 11 18:54:21 mobigo-00408c168525 kernel:  Found a valid partition 
table at 0xf001000a-0xf0010056.
Oct 11 18:54:21 mobigo-00408c168525 kernel:   /dev/flash1 at 
0x00010000, size 0x00350000
Oct 11 18:54:21 mobigo-00408c168525 kernel:   /dev/flash2 at 
0x00360000, size 0x004a0000
Oct 11 18:54:21 mobigo-00408c168525 kernel:  Adding readonly flash 
partition for romfs image:
Oct 11 18:54:21 mobigo-00408c168525 kernel:   /dev/flash3 at 
0x000b5a7c, size 0x00248000
Oct 11 18:54:21 mobigo-00408c168525 kernel: Creating 4 MTD partitions 
on "cse0":
Oct 11 18:54:21 mobigo-00408c168525 kernel: 0x00000000-
0x00010000 : "part0"
Oct 11 18:54:21 mobigo-00408c168525 kernel: 0x00010000-
0x00360000 : "part1"
Oct 11 18:54:21 mobigo-00408c168525 kernel: 0x00360000-
0x00800000 : "part2"
Oct 11 18:54:21 mobigo-00408c168525 kernel: 0x000b5a7c-
0x002fda7c : "romfs"
Oct 11 18:54:21 mobigo-00408c168525 kernel: I2C driver v2.2, (c) 1999-
2004 Axis Communications AB
Oct 11 18:54:21 mobigo-00408c168525 kernel: GPIO port G: in_bits: 
0x3FFFFF3F out_bits: 0x3E00003E val: F1FF3F17
Oct 11 18:54:21 mobigo-00408c168525 kernel: GPIO port G: dir: 
00000000 changeable: 01FFFF01
Oct 11 18:54:21 mobigo-00408c168525 kernel: ETRAX 100LX GPIO driver 
v2.5, (c) 2001, 2002, 2003, 2004 Axis Communications AB
Oct 11 18:54:21 mobigo-00408c168525 kernel: usb-host.c: ETRAX 100LX 
USB-HCD $Revision: 1.23 $ (c) 2001-2003 Axis Communications AB
Oct 11 18:54:21 mobigo-00408c168525 kernel: usb-host.c: ETRAX 100LX 
USB on-chip controller version 0x10
Oct 11 18:54:21 mobigo-00408c168525 kernel: GPIO port G: in_bits: 
0x3FFFFF3F out_bits: 0x3E00003E val: F1FF3F17
Oct 11 18:54:21 mobigo-00408c168525 kernel: GPIO port G: dir: 
00000000 changeable: 01FFFF01
Oct 11 18:54:21 mobigo-00408c168525 kernel: GPIO port G: in_bits: 
0x01FFFF3F out_bits: 0x3200003E val: F1FF3F17
Oct 11 18:54:21 mobigo-00408c168525 kernel: GPIO port G: dir: 
00000000 changeable: 01FFFF01
Oct 11 18:54:21 mobigo-00408c168525 kernel: kmem_create: Forcing size 
word alignment - top_half_reg_cache
Oct 11 18:54:21 mobigo-00408c168525 kernel: usb.c: new USB bus 
registered, assigned bus number 1
Oct 11 18:54:21 mobigo-00408c168525 kernel: hub.c: USB hub found
Oct 11 18:54:21 mobigo-00408c168525 kernel: hub.c: 2 ports detected
Oct 11 18:54:21 mobigo-00408c168525 kernel: NET4: Linux TCP/IP 1.0 
for NET4.0
Oct 11 18:54:21 mobigo-00408c168525 kernel: IP Protocols: ICMP, UDP, 
TCP
Oct 11 18:54:21 mobigo-00408c168525 kernel: kmem_create: Forcing size 
word alignment - ip_dst_cache
Oct 11 18:54:21 mobigo-00408c168525 kernel: IP: routing cache hash 
table of 1024 buckets, 8Kbytes
Oct 11 18:54:21 mobigo-00408c168525 kernel: TCP: Hash tables 
configured (established 2048 bind 4096)
Oct 11 18:54:21 mobigo-00408c168525 kernel: NET4: Unix domain sockets 
1.0/SMP for Linux NET4.0.
Oct 11 18:54:21 mobigo-00408c168525 kernel: VFS: Mounted root (cramfs 
filesystem) readonly.
Oct 11 18:54:21 mobigo-00408c168525 kernel: Freeing unused kernel 
memory: 40k freed
Oct 11 18:54:22 mobigo-00408c168525 kernel: eth0: changed MAC to 
00:40:8C:16:85:25
Oct 11 18:54:31 mobigo-00408c168525 
root: /usr/share/udhcpc/default.script: eth0: IP address: ""
Oct 11 18:54:31 mobigo-00408c168525 
root: /usr/share/udhcpc/default.script: eth0: Netmask: ""
Oct 11 18:54:31 mobigo-00408c168525 
root: /usr/share/udhcpc/default.script: eth0: Broadcast: ""
Oct 11 18:55:32 mobigo-00408c168525 
root: /usr/share/udhcpc/default.script: eth0: IP 
address: "192.168.254.7"
Oct 11 18:55:32 mobigo-00408c168525 
root: /usr/share/udhcpc/default.script: eth0: Netmask: "255.255.255.0"
Oct 11 18:55:32 mobigo-00408c168525 
root: /usr/share/udhcpc/default.script: eth0: Broadcast: ""
Oct 11 18:55:32 mobigo-00408c168525 
root: /usr/share/udhcpc/default.script: eth0: Default gateway: 
192.168.254.254
Oct 11 18:55:33 mobigo-00408c168525 
root: /usr/share/udhcpc/default.script: DNS server: 192.168.254.254
Oct 11 18:55:33 mobigo-00408c168525 
root: /usr/share/udhcpc/default.script: Hostname: mobigo-00408c168525
Oct 11 18:59:51 mobigo-00408c168525 login[139]: root login  on 
`ttyp0' 
Oct 11 19:03:15 mobigo-00408c168525 login[146]: root login  on 
`ttyp1' 
Oct 11 19:37:11 mobigo-00408c168525 login[161]: root login  on 
`ttyp2' 



--- In [email protected], "dietmar.dreyer33" 
<[EMAIL PROTECTED]> wrote:
>
> Thank you Alexander,
> 
> I watched memory resources while connecting/disconnecting, but the
> system wasn't low on memory.
> The crash occurs spontaneously, but it's difficult to say, when 
exactly,
> but sooner or later it eventually will
> fail. I connected a serial console, sending all log messages to it, 
but
> there was no indication of an error, logging
> just stopped.
> 
> Any further ideas?
> 
> Dietmar
> 
> --- In [email protected], "xfingerfox32" <xfinger@> wrote:
> >
> > Hello Dietmar,
> >
> > Try to check if you have spawned too many threads making foxboard 
run
> > out of memory.
> > Use "top" command and watch the memory in use by your program 
while
> > you connect and disconnect the ethernet cable.
> >
> > Hope this helps.
> >
> > Alexander
> >
> >
> > --- In [email protected], "dietmar.dreyer33"
> > dietmar.dreyer33@ wrote:
> > >
> > > Hi all!
> > >
> > > I encountered a very strange problem on the fox board on kernel 
2.4
> > > (using Axis Developer Boards/Device Server SDK Release 2.01).
> > > I wrote a daemon program that uses libcurl for periodically
> > uploading
> > > data to an FTP server in several threads (using pthread lib).
> > > Up to this point all goes well, the problems begin when pulling 
the
> > > ethernet connection from the foxboard and reconnecting some time
> > > later. When telnetting to the fox board sometimes the board 
seems to
> > > freeze, i.e. I receive part of the welcome message (Connected to
> > > 192.168.xxx.xxx
> > > etc.), but I don't get the actual login prompt and cannot login
> > > anymore, as there is no response. Furthermore the blinking red
> > status
> > > led freezes (blinking is caused by program statusled), halting 
in a
> > > on- or off-state, which seems to indicate, that several programs
> > crashed,
> > > so I suppose, there might be a kernel problem/ethernet driver
> > problem?
> > > I noticed, that the fox board still responded to ping requests, 
but
> > in
> > > one case, the yellow led also freezed.
> > > I wrote syslogs to usb flash disk, but there was no indication 
of
> > any
> > > problems.
> > >
> > > Any ideas, what might be wrong? Thanks a lot!
> > >
> > > Dietmar
> > >
> >
>


Reply via email to