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?

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@ff0c0000: 1, dwmmc@ff0f0000: 0
        *** Warning - bad CRC, using default environment

        In:    serial
        Out:   serial
        Err:   serial
        Net:   
        Warning: ethernet@ff290000 (eth0) using random MAC address - 
5a:40:1a:28:0e:43
        eth0: ethernet@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@ff290000 Waiting for PHY auto negotiation to complete... done
        Speed: 100, full duplex
        Using ethernet@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...
-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to