[yocto] [meta-rockchip][PATCH 2/2] u-boot: Backport upstream fix for gmac_rockchip

Romain Perier romain.perier at collabora.com
Mon Jun 26 05:17:42 PDT 2017


Hi,


Le 18/06/2017 à 00:29, Trevor Woerner a écrit :
> Hi Romain,
>
> I assume this patch is meant to fix an ethernet issue in u-boot? How does
> someone test that ethernet is working from u-boot?

Because it has been merged on upstream and tested by Simon and me.
It only fixes ethernet for 100mbps, another fix for 1gbs is on the way.

Could you retry with ethernet 100mbs ? (in the worst case force your
autonego with ethtool...)

Thanks,
Romain

>
> Here is my firefly booting with these patches:
>
>
> 	U-Boot SPL 2017.05 (Jun 17 2017 - 17:12:20)
> 	Returning to boot ROM...
>
> 	U-Boot 2017.05 (Jun 17 2017 - 17:12:20 -0400)
>
> 	Model: Firefly-RK3288
> 	DRAM:  1.7 GiB
> 	MMC:   dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0
> 	*** Warning - bad CRC, using default environment
>
> 	In:    serial
> 	Out:   serial
> 	Err:   serial
> 	Net:   
> 	Warning: ethernet at ff290000 (eth0) using random MAC address - 5a:40:1a:28:0e:43
> 	eth0: ethernet at ff290000
> 	Hit any key to stop autoboot:  0 
>
> Here is me configuring the networking stuff in u-boot:
>
> 	=> setenv ipaddr 192.168.142.20
> 	=> setenv netmask 255.255.255.0
> 	=> setenv serverip 192.168.142.1
>
> Then I try pinging my server:
>
> 	=> ping 192.168.142.1
> 	ethernet at ff290000 Waiting for PHY auto negotiation to complete... done
> 	Speed: 100, full duplex
> 	Using ethernet at ff290000 device
>
> The next thing I know my firefly is rebooting:
>
> 	data abort
> 	pc : [<6ada703a>]          lr : [<6ada7dbb>]
> 	reloc pc : [<0003303a>]    lr : [<00033dbb>]
> 	sp : 68d67e48  ip : 00000000     fp : 00000002
> 	r10: 68d77e60  r9 : 68d71ee8     r8 : 00000000
> 	r7 : 00000001  r6 : 00000000     r5 : 0000002a  r4 : 6adfd04e
> 	r3 : 14000045  r2 : 148ea8c0     r1 : 018ea8c0  r0 : 6adfd04e
> 	Flags: nzcv  IRQs off  FIQs off  Mode SVC_32
> 	Resetting CPU ...
>
>
> 	U-Boot SPL 2017.05 (Jun 17 2017 - 17:12:20)
> 	Returning to boot ROM...




More information about the yocto mailing list