This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Beagle bone black uboot USB Ethernet Boot issue

Other Parts Discussed in Thread: UNIFLASH

I build u-boot and spl image use am335x_evm_defconfig ,the sdk version is 06_03_00_106, and want to update my beagle bone black emmc via ccs uniflash( version: 3.4.1).

Looks like the spl alreay be flash successfully, but uboot always failed, the log as blew:

CCCCCCCC
U-Boot SPL 2019.01-gc14892445a-dirty (Mar 30 2021 - 09:43:45 +0800)
Trying to boot from USB eth

Warning: eth_cpsw using MAC address from ROM
eth0: eth_cpsw
Warning: usb_ether using MAC address from ROM
, eth1: usb_ether
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
eth_cpsw Waiting for PHY auto negotiation to complete............................... TIMEOUT !
Problem booting with BOOTP
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

I can`t find the new virtual network adapter when spl code running, (there is a adapter: Linux USB Ethernet/RNDIS Gadget when transfer spl iamge, but it not be found in the stage of transfer uboot image).

 pls help to fix it, thanks.

  • Hi,

    The PC runs Windows or Linux?

    I can`t find the new virtual network adapter when spl code running, (there is a adapter: Linux USB Ethernet/RNDIS Gadget when transfer spl iamge, but it not be found in the stage of transfer uboot image).

    Did you try with the prebuilt U-Boot binaries in the Processor SDK to see if the same issue happens?

  • Hi, Bin

        Thanks your reply.

        My host pc is windows, and i just try it use prebuild image, the same thing happened, it`s so bad.

       I try to enable debug and want print some log, the new spl binaries size is 119k and looks like it can`t run normally. 

       To build debug binary, the change is:

    --- a/arch/arm/include/asm/arch-am33xx/omap.h
    +++ b/arch/arm/include/asm/arch-am33xx/omap.h
    @@ -19,7 +19,7 @@
    #ifdef CONFIG_AM33XX
    #define NON_SECURE_SRAM_START 0x402F0400
    #define NON_SECURE_SRAM_END 0x40310000
    -#define NON_SECURE_SRAM_IMG_END 0x4030B800
    +#define NON_SECURE_SRAM_IMG_END 0x4030F000
    #elif defined(CONFIG_TI816X) || defined(CONFIG_TI814X)
    #define NON_SECURE_SRAM_START 0x40300000
    #define NON_SECURE_SRAM_END 0x40320000

    diff --git a/include/common.h b/include/common.h
    index 657cc404cf..0aeba3fadd 100644
    --- a/include/common.h
    +++ b/include/common.h
    @@ -38,6 +38,8 @@ typedef volatile unsigned char vu_char;
    #define CONFIG_SYS_SUPPORT_64BIT_DATA
    #endif

    +#define DEBUG
    +
    #include <log.h>

    I am not sure if the change is correct, any comments welcome.

    By the way, whether or not spl binary tansfer, the uniflash Progress % always is 0.

    hope your reply.

    thanks.

  • Hi,

    Is this on Windows 10 or Windows 7?

    I only use Linux PC and don't have a Windows computer to run this test, but I saw many reports on internet that Windows 10 requires signed USB RNDIS driver for USB devices to be enumerated as USB RNDIS device, so many people got stuck with Windows 10.

  • My host pc is windows10, you are correct, It looks like the RNDIS driver is installed, but it's not optimal.

    I reinstall the rndis driver provide by microsoft, everything is ok.

    Thank you very much.