Jump to content


Photo

pcDuino3B ethernet not working after many attempts - hardware defect?

pcDuino3B ethernet network

  • Please log in to reply
1 reply to this topic

#1 jack_fruit

jack_fruit

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 18 August 2017 - 12:02 AM

The wired ethernet is not working.  I tried to diagnose this problem for a few hours along with 2 coworkers with considerable linux experience.   I am asking this forum before I return the pcDuino3B as DOA.

 

Bottom line is I can't even ping my own linksys router or any other device connected to the router.  

  1. Ethernet lights work - constant green and blinking orange
  2. When I plug ethernet cable in and out, Ubuntu recognizes that and tries to acquire IP - it fails every time.
  3. I can connect to same router using wireless, but I have done wired ethernet tests with wireless disconnected.  
  4. I tried auto IP and static IP address, gateway, subnet mask.   Both fail.
  5. I used the linux images for the pcDuino3 from linksprite.  I tried both Ubuntu 12 and 14.   pcduino3_a20_kernel_dd_20140721.img and pcduino3_100M_ubuntu_dd_0204.img
  6. I searched around internet and forum for this problem but didn't find a solution.  Some solutions suggesting using gmac (gigabit) driver but I believe this is only 100Mbit ethernet.  
linaro@linaro-alip:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Linaro
Description:    Linaro 14.04
Release:        14.04
Codename:       trusty

linaro@linaro-alip:~$ uname -a
Linux linaro-alip 3.4.79+ #1 SMP PREEMPT Wed Dec 24 07:34:22 PST 2014 armv7l armv7l armv7l GNU/Linux

linaro@linaro-alip:~$ lsmod
Module                  Size  Used by
ft5x_ts                63843  0
sw_interrupt            3085  0
gpio                    5280  0
pwm                    10716  0
adc                     2373  0
hardwarelib             1365  4 adc,pwm,gpio,sw_interrupt
sun4i_csi0             23759  0
videobuf_dma_contig     5583  1 sun4i_csi0
videobuf_core          15240  2 sun4i_csi0,videobuf_dma_contig
gc2035                 16176  1
gc0308                 14344  0
keypad                  3901  0
g_ether                45283  0
sw_usb_udc             20382  0
udc_core                5297  2 sw_usb_udc,g_ether
rt5370sta             618129  0
8188eu                475915  0
8192cu                433952  0
mali_drm                2095  1
drm                   156800  2 mali_drm
mali                   91686  0
disp_ump                 691  0
ump                    44306  4 mali,disp_ump



linaro@linaro-alip:~$ sudo lshw
linaro-alip
    description: Computer
    width: 32 bits
  *-core
       description: Motherboard
       physical id: 0
     *-memory
          description: System memory
          physical id: 0
          size: 875MiB
     *-cpu
          physical id: 1
          bus info: cpu@0
  *-network:0 DISABLED
       description: Ethernet interface
       physical id: 1
       logical name: usb0
       serial: 00:11:22:33:44:55
       capabilities: ethernet physical
       configuration: broadcast=yes driver=g_ether driverversion=29-May-2008 firmware=sw_usb_udc link=no multicast=yes
  *-network:1
       description: Wireless interface
       physical id: 2
       bus info: usb@1:1
       logical name: wlan0
       serial: 8c:18:d9:61:a4:f3
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8188eu ip=192.168.1.107 multicast=yes wireless=IEEE 802.11bg
  *-network:2
       description: Ethernet interface
       physical id: 3
       logical name: eth0
       serial: 02:13:06:02:93:d8
       size: 100Mbit/s
       capacity: 100Mbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=sunxi_emac driverversion=1.01 duplex=full link=yes multicast=yes port=MII speed=100Mbit/s

	   
	   
linaro@linaro-alip:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 02:13:06:02:93:d8
          inet6 addr: fe80::13:6ff:fe02:93d8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:709 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:149868 (149.8 KB)  TX bytes:21650 (21.6 KB)
          Interrupt:87 Base address:0xe000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:36 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2384 (2.3 KB)  TX bytes:2384 (2.3 KB)

wlan0     Link encap:Ethernet  HWaddr 8c:18:d9:61:a4:f3
          inet addr:192.168.1.107  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::8e18:d9ff:fe61:a4f3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1181 errors:0 dropped:1242 overruns:0 frame:0
          TX packets:840 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:608682 (608.6 KB)  TX bytes:114464 (114.4 KB)


linaro@linaro-alip:~$ sudo dmesg | grep emac
[    4.228955] sunxi_emac Using mii phy on PortA
[    4.246747] sunxi_emac Using MAC from SID: 02:13:06:02:93:d8
[   22.554452] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   28.064316] NETDEV WATCHDOG: eth0 (sunxi_emac): transmit queue 0 timed out
[   28.064834] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[   34.024622] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   44.024377] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[   54.024328] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[   64.024277] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[   74.024255] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[   84.024264] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[   94.024268] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  104.024264] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  114.024263] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  162.034302] sunxi_emac sunxi_emac.0: eth0: link down
[  166.034371] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[  481.244482] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[  484.714476] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[  494.984291] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  504.984295] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  514.984270] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  524.984273] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  534.984283] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  544.984273] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  554.984295] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  564.984276] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  574.984290] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  584.984275] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  594.984257] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  604.984261] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  614.984326] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  624.984704] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  644.984291] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  664.984314] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  694.984280] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  724.984272] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  759.984298] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  791.174471] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[  801.014260] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  811.014260] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  821.014247] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  831.014258] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  841.014258] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  851.014248] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  861.014260] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[  871.014256] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[ 1154.094481] sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 1164.014277] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[ 1174.014250] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[ 1184.014270] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[ 1194.014292] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[ 1204.014251] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[ 1214.014307] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[ 1224.014249] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[ 1234.014249] sunxi_emac sunxi_emac.0: tx time out, resetting emac
[ 1244.014253] sunxi_emac sunxi_emac.0: tx time out, resetting emac



#2 dalerussell67

dalerussell67

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 04 September 2017 - 02:21 AM

I'm also having a similar issue in LINUX and Android, at this point I'm considering putting the device on a shelf and forgetting about it. The overall state of the ethernet driver or implementation of the ethernet hardware and lack of a working Android image that supports ethernet while installing the image on the built in NAND is terrible. I could build my own Android image or a custom build of LINUX using crosstool-ng and buildroot but I bought the device because the packaging says 100M/1000M ethernet with linux and android support. I could spend another month on bulding and testing custom Android builds or just boot one of the many beaglebone blacks on my desk and move on.

 

Did anyone actually QA the releases?

 

Why has linksprite not released an updated image that corrects the problem?

 

I have seen where it is blamed on Android and implementation of the network driver, if linksprite couldn't make it work then they shouldn't have sold it as an android compatible device with an ethernet device. There are a few links on the forum that suggest the ethernet on Android will work if use a microSD card to boot from but that defeats the purpose of the onboard NAND.

 

As to the issues in LINUX there are several workarounds to modify the sys file to enable ethernet, so why is there no release where this has been done for us as paying customers? I have also observed that the workaround doesn't always fix the issue. The best luck I have had with LINUX was installing Arch Linux from the ARM Arch Linux community, configuring the kernel to not use modules and statically build the drivers required in the kernel. I have multiple similar ARM platforms and had none of these issues with the supplied OS or with using a custom OS with exception to Linksprite's pcduino3.

 

I've been developing ARM platforms for nearly 20 years, an FPGA and ASIC designer for 15, and building operating systems since the release of Ygdrasil LINUX back in 1994. There is more to developing a dev board than drawing some schematics, a dev board is nearly useless if the supplied operating system doesn't make all the board features available without the customer having to complete the OS development and debug the OS platforms provided. The point of a dev board is so the customer can begin developing a solution on top of the product simply and reliably while focusing on the problem they have to solve. It is not meant to be a QA challenge for the developer to make the purchased board operate as advertised. 

 

I doubt I will purchase another device from liksprite. As a friend says "it's a clever device but maybe too clever by half".







Also tagged with one or more of these keywords: pcDuino3B, ethernet, network

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users