From: Steve S. <sa...@gm...> - 2008-02-19 17:17:23
|
We should try to find a common thread among those experiencing this problem. It seems so far that the reports have the following in common: - connex motherboard - netCF or netMMC expansion card - 100Mb ethernet connection - DHCP Correct? Steve On Feb 19, 2008 8:34 AM, Peterson, Jordan <Pet...@ma...> wrote: > I am seeing the same issue on my netstix 200 (connex, netCF, console-st). > After booting without the Ethernet cable connected, I get no link light when > I connect it. Doing an ifdown/ifup eth0 doesn't affect the link light; not > even a blip. It fails to get a DHCP lease, of course. It doesn't matter if > I do a soft reboot or power cycle. > > I am running u-boot 1.2.0 and a custom OE image that includes > gumstix-basic-image.bb and adds python-core. Kernel is > uImage-2.6.21-r1-gumstix-custom-connex.bin. > > My gumstix-custom-connex.conf in user.collection/conf/machine contains > MACHINE_FEATURES += "ethernet" and I've commented out the lines for usbhost, > usbgadget, bluetooth, and sound, but have made no other changes to the > default form of this file. It still tries to load Bluetooth and audio > drivers during boot, which I don't understand... do I have to run some > special BitBake command to get it to disable those pieces? > > After a power-on with the Ethernet cable connected, this happens (output of > dmesg): > > <4>smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <ni...@ca...> > <4>eth0: SMC91C11xFD (rev 2) at c4870300 IRQ 59 DMA 8 [nowait] > <4>eth0: Ethernet addr: 3a:98:b8:93:b1:50 > <7>eth0: PHY LAN83C183 (LAN91C111 Internal) > <6>usb0: Ethernet Gadget, version: May Day 2005 > <6>usb0: using pxa2xx_udc, OUT ep2out-bulk IN ep1in-bulk STATUS ep6in-bulk > <6>usb0: MAC 3a:98:b8:93:b1:60 > <6>usb0: HOST MAC 3a:98:b8:93:b1:61 > <6>usb0: RNDIS ready > > [snip] > > <6>eth0: link down > <6>eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 > <4>cfio: module license 'unspecified' taints kernel. > <4>Before register driver > <4>After register driver > <6>NETDEV WATCHDOG: eth0: transmit timed out > <7>eth0: TX timeout (INT 0x00 INTMASK 0x00 MEM 0x0404 FIFO 0x8000 EPH_ST > 0x0000) > <6>Auto negotiation NOT supported > > The NETDEV WATCHDOG messages repeat approximately every 2 seconds. No link > light. The link light pops on briefly during boot, and it grabs a DHCP > lease, but the light turns off only a second or so later. > > > > > -----Original Message----- > From: gum...@li... > [mailto:gum...@li...] On Behalf Of Steve > Sakoman > Sent: Tuesday, February 19, 2008 8:51 AM > To: General mailing list for gumstix users. > Subject: Re: [Gumstix-users] Problems with Ethernet on a recently > > reflashedConnex400 xm with netMMC & console-st > > Do these messages come about once every 5 seconds? Looking at the > driver source I see: > > /* > * Transmit timeout, default 5 seconds. > */ > static int watchdog = 5000; > module_param(watchdog, int, 0400); > MODULE_PARM_DESC(watchdog, "transmit timeout in milliseconds"); > > Seems like a plenty long timeout, so I doubt increasing it would make > any difference. Just want to verify that the message timing matches > what you are seeing. > > Steve > > On Feb 18, 2008 11:11 PM, Stafford Williams <sta...@gm...> > wrote: > > I've just flashed (now twice) the latest OE to my connex 200 w/ netCF & > > console-st, and have found similar, if not identical issues. > > > > On first boot after flashing, the unit does not connect until issued an > > "ifup eth0" from console. Once this is issued, it correctly obtains a > DHCP > > address and can communicate over the network interface. > > > > Upon power-cycling again, every boot afterwards seems to bring up the eth0 > > link (and obtain a DHCP lease), then halfway through booting it starts > > flooding the console with > > > > NETDEV WATCHDOG: eth0: transmit timed out > > Auto negotiation NOT supported > > > > I have tested this on a 3COM router and a Belkin router, with different > > cables: still the same result. > > > > Cheers, > > Stafford. > > > > > > > -----Original Message----- > > > From: gum...@li... [mailto:gumstix-users- > > > bo...@li...] On Behalf Of Steve Sakoman > > > Sent: Tuesday, 19 February 2008 7:12 p.m. > > > To: General mailing list for gumstix users. > > > Subject: Re: [Gumstix-users] Problems with Ethernet on a recently > > > > > reflashedConnex400 xm with netMMC & console-st > > > > > > I haven't been able to reproduce this. I wonder if it might be > > > related to the router the netMMC is connected to? Have you tried > > > other routers to see if there is any difference in behavior? I'm > > > connecting to a Netgear router. Maybe a cable not up to 100mb > > > standards? Just throwing out ideas . . . > > > > > > Looking at the driver source, it seems the Auto negotiation message is > > > related to detecting 10 vs 100 ethernet. > > > > > > I diff-ed the smc91x driver vs the latest version in the 2.6.24 kernel > > > and found that they are essentially identical. So no fixes have made > > > it into the upstream driver. > > > > > > Steve > > > > > > On Feb 18, 2008 4:49 PM, Yuvraj Agarwal <yu...@uc...> wrote: > > > > Steve - It seems that when I flash a new image Ethernet works for the > > > first > > > > time. > > > > When I then reboot the gumstix it doesn't quite work and gives all the > > > > messages during > > > > bootup also, making it extremely slow to boot. > > > > > > > > Auto negotiation NOT supported > > > > NETDEV WATCHDOG: eth0: transmit timed out > > > > > > > > I dug deeper and it seems that if I force remove the smc91x module I > get > > > a > > > > bunch of > > > > errors, because there is not a proper release function in the driver > and > > > > also after > > > > that if I modprobe and install the Ethernet module (smc91x) again and > do > > > an > > > > "ifup eth0" > > > > it does start to work. > > > > > > > > Just thought I'd pass this information along to see if it helps. > > > > > > > > thanks > > > > yuvraj > > > > > > > > ******************************** > > > > Auto negotiation NOT supported > > > > NETDEV WATCHDOG: eth0: transmit timed out > > > > eth0: TX timeout (INT 0x00 INTMASK 0x00 MEM 0x0404 FIFO 0x8000 EPH_ST > > > > 0x0000) > > > > > > > > root@gumstix-custom-connex:~$ lsmod > > > > Module Size Used by > > > > i2c_dev 6052 0 > > > > i2c_pxa 6720 0 > > > > i2c_core 17104 2 i2c_dev,i2c_pxa > > > > mcf25 197712 0 > > > > cfio 4928 1 mcf25 > > > > vfat 10080 0 > > > > fat 46332 1 vfat > > > > nls_base 6688 2 vfat,fat > > > > pxa2xx_cs 2916 1 > > > > pxa2xx_core 10304 1 pxa2xx_cs > > > > proc_gpio 7084 0 > > > > pcmcia 25288 1 cfio > > > > pcmcia_core 31024 4 mcf25,cfio,pxa2xx_core,pcmcia > > > > firmware_class 7520 1 pcmcia > > > > g_ether 25296 0 > > > > smc91x 16616 0 > > > > mii 4704 1 smc91x > > > > gumstix_smc91x 2752 1 smc91x > > > > pxa2xx_udc 16516 1 g_ether > > > > gumstix_gadget 1344 1 pxa2xx_udc > > > > > > > > root@gumstix-custom-connex:~$ ifdown eth0 (<-- This makes the > messages > > > > stop) > > > > > > > > root@gumstix-custom-connex:~$ ifup eth0 > > > > Auto negotiation NOT supported > > > > eth0 no wireless extensions. > > > > > > > > udhcpc (v1.2.1) started > > > > Sending discover... > > > > Sending discover... > > > > Sending discover... > > > > No lease, failing. (<-- Now it doesn't want to get DHCP leases.... > ) > > > > root@gumstix-custom-connex:~$ > > > > > > > > > > > > root@gumstix-custom-connex:~$ modprobe -rv smc91x > > > > rmmod /lib/modules/2.6.21/kernel/drivers/net/smc91x.ko > > > > rmmod /lib/modules/2.6.21/kernel/drivers/net/mii.ko > > > > rmmod /lib/modules/2.6.21/kernelDevice 'smc91x.0' does not have a > > > release() > > > > function, it is broken and must be fixed. > > > > /drivers/net/gumstix-smc91x.ko > > > > BUG: at drivers/base/core.c:106 device_release() > > > > [<c001f6b8>] (dump_stack+0x0/0x14) from [<c00fee00>] > > > > (device_release+0x80/0x94) > > > > [<c00fed80>] (device_release+0x0/0x94) from [<c00d81bc>] > > > > (kobject_cleanup+0x68/0x84) > > > > [<c00d8154>] (kobject_cleanup+0x0/0x84) from [<c00d81ec>] > > > > (kobject_release+0x14/0x18) > > > > r7 = C356FF34 r6 = C356E000 r5 = C00D81D8 r4 = BF0087E8 > > > > [<c00d81d8>] (kobject_release+0x0/0x18) from [<c00d91a4>] > > > > (kref_put+0x84/0xa0) > > > > [<c00d9120>] (kref_put+0x0/0xa0) from [<c00d814c>] > > > (kobject_put+0x20/0x28) > > > > r5 = 00000000 r4 = BF008760 > > > > [<c00d812c>] (kobject_put+0x0/0x28) from [<c00ff020>] > > > (put_device+0x1c/0x20) > > > > [<c00ff004>] (put_device+0x0/0x20) from [<c0103af0>] > > > > (platform_device_put+0x1c/0x20) > > > > [<c0103ad4>] (platform_device_put+0x0/0x20) from [<c0103b74>] > > > > (platform_device_unregister+0x20/0x24) > > > > [<c0103b54>] (platform_device_unregister+0x0/0x24) from [<bf00803c>] > > > > (cleanup_module+0x2c/0x3c [gumstix_smc91x]) > > > > r4 = BF008940 > > > > [<bf008010>] (cleanup_module+0x0/0x3c [gumstix_smc91x]) from > > > [<c004e114>] > > > > (sys_delete_module+0x1b4/0x1e4) > > > > [<c004df60>] (sys_delete_module+0x0/0x1e4) from [<c001ac60>] > > > > (ret_fast_syscall+0x0/0x2c) > > > > r8 = C001AE08 r7 = 00000081 r6 = 00015480 r5 = 00000000 > > > > r4 = 00015430 > > > > root@gumstix-custom-connex:~$ > > > > > > > > root@gumstix-custom-connex:~$ ifup eth0 > > > > eth0: link down > > > > eth0 no wireless extensions. > > > > > > > > udhcpc (v1.2.1) started > > > > Sending discover... > > > > eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 > > > > Sending discover... > > > > Sending select for *.*.*.*. (Yuvraj-removed) ... > > > > Lease of *.*.*.*. (Yuvraj-removed) (removed) obtained, lease time > 86400 > > > > adding dns *.*.*.*. (Yuvraj-removed) > > > > adding dns *.*.*.*. (Yuvraj-removed) > > > > root@gumstix-custom-connex:~$ ping www.google.com > > > > PING www.l.google.com (209.85.173.104): 56 data bytes > > > > 64 bytes from 209.85.173.104: icmp_seq=0 ttl=239 time=33.2 ms > > > > > > > > --- www.l.google.com ping statistics --- > > > > 1 packets transmitted, 1 packets received, 0% packet loss > > > > round-trip min/avg/max = 33.2/33.2/33.2 ms > > > > root@gumstix-custom-connex:~$ > > > > root@gumstix-custom-connex:~$ > > > > > > > > -----Original Message----- > > > > From: gum...@li... > > > > [mailto:gum...@li...] On Behalf Of > Steve > > > > Sakoman > > > > Sent: Monday, February 18, 2008 11:11 AM > > > > To: General mailing list for gumstix users. > > > > Subject: Re: [Gumstix-users] Problems with Ethernet on a recently > > > reflashed > > > > Connex400 xm with netMMC & console-st > > > > > > > > > > > > > I also have a connex 400 +netMMC and am seeing similar issues. Did > > > this > > > > get > > > > > resolved? > > > > > I would really appreciate any pointers on fixing this issue if you > did > > > > .... > > > > > > > > I'm not seeing this, but I'll try to reproduce it. > > > > > > > > > But when I flash the image on my connex I get an older version > number > > > ... > > > > > Is it time to nuke "tmp" and rebuild from scratch ? > > > > > > > > You'd have to bitbake -c rebuild version in order to get > > > > /etc/gumstix-version to update. > > > > > > > > Steve > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > - > > > > This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > gumstix-users mailing list > > > > gum...@li... > > > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > - > > > > This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > gumstix-users mailing list > > > > gum...@li... > > > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > gumstix-users mailing list > > > gum...@li... > > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > gumstix-users mailing list > > gum...@li... > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |