[Solved] pcDuino3 (no ethernet)

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

[Solved] pcDuino3 (no ethernet)

Postby davini » Tue Jun 27, 2017 9:00 pm

I've searched the board, but it doesn't look like anyone is having this problem. Today (Tuesday, June 27, 2017), I attempted to boot a pcDuino3nano (http://store.linksprite.com/pcduino3-nano/) from a micro USB drive (8gb), using the tutorial from archlinuxarm.org (https://archlinuxarm.org/platforms/armv ... r/pcduino3). It looks like I was able to get it to boot. Everything seemingly booted fine, but I noticed this problem after running dmesg:

$this->bbcode_second_pass_code('', '
[ 14.167535] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[ 14.167547] sun7i-dwmac 1c50000.ethernet: no reset control found
[ 14.167590] sun7i-dwmac 1c50000.ethernet: no regulator found
[ 14.167629] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
[ 14.167635] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported
[ 14.167642] sun7i-dwmac 1c50000.ethernet: Normal descriptors
[ 14.255947] libphy: stmmac: probed
[ 14.259489] sun7i-dwmac 1c50000.ethernet (unnamed net_device) (uninitialized): PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
[ 14.271244] sun7i-dwmac 1c50000.ethernet (unnamed net_device) (uninitialized): PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01)
[ 14.296292] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[ 14.574418] RTL8211E Gigabit Ethernet stmmac-0:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=stmmac-0:00, irq=-1)
[ 14.642659] sun7i-dwmac 1c50000.ethernet: Failed to reset the dma
[ 14.648824] sun7i-dwmac 1c50000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[ 14.657646] sun7i-dwmac 1c50000.ethernet eth0: stmmac_open: Hw setup failed
')

Additionally, when I run:
$this->bbcode_second_pass_code('', '
[root@alarm ~]# ip link set eth0 up
RTNETLINK ansewr: Device or resource busy
')

Is something happening during startup which is causing this problem? Do I have the wrong kernel driver for this device -- meaning, will I need a custom kernel for this board? Any help would be super appreciated.

Thanks
Last edited by davini on Fri Jun 30, 2017 4:19 pm, edited 1 time in total.
davini
 
Posts: 4
Joined: Thu Nov 07, 2013 7:59 pm

Re: pcDuino3 (no ethernet)

Postby davini » Fri Jun 30, 2017 4:19 pm

Ah, it looks like I was able to find a solution: viewtopic.php?f=60&t=8971

reposting:

$this->bbcode_second_pass_code('', '
git clone git://git.denx.de/u-boot.git
cd u-boot
make CROSS_COMPILE=arm-linux-gnueabihf- Linksprite_pcDuino3_Nano_defconfig
make CROSS_COMPILE=arm-linux-gnueabihf-

mkdir -p ../u-boot-output
cp u-boot-sunxi-with-spl.bin spl/sunxi-spl.bin u-boot.img ../u-boot-output

cp u-boot.dtb ../u-boot-output/sun7i-a20-pcduino3-nano.dtb

# Zero and Write the new bootloader to the sdcard:
sudo dd if=/dev/zero of=/dev/sdX bs=1M count=8
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
sync
')
davini
 
Posts: 4
Joined: Thu Nov 07, 2013 7:59 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 7 guests