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.

AM3358: U-boot cli not shown

Part Number: AM3358

I cannot get the u-boot cli.

Device: BeagleBone Green Wireless (AM3358)
Connection: BBGW -> Serial -> PL2303 -> PC

Build:
-------------------------------------------
cd u-boot-v2020.01/
export CROSS_COMPILE='arm-linux-gnueabihf-'
export KBUILD_OUTPUT='O'
make -j3 am335x_evm_defconfig
make -j3 all
-------------------------------------------

ls -lh u-boot-v2020.01/O/spl/u-boot-spl.bin u-boot-v2020.01/O/u-boot.bin
-------------------------------------------
-rwxr-xr-x 1 darren darren 105K Mar 24 21:19
u-boot-v2020.01/O/spl/u-boot-spl.bin
-rw-r--r-- 1 darren darren 546K Mar 24 21:19 u-boot-v2020.01/O/u-boot.bin
-------------------------------------------

Test:
-------------------------------------------
echo '
115200
-clocal
ignbrk ignpar
-icrnl -ixon -opost -isig -icanon -iexten -echo
' | xargs stty -F /dev/ttyUSB0
sx --xmodem -k -vv </dev/ttyUSB0 >/dev/ttyUSB0
u-boot-v2020.01/O/spl/u-boot-spl.bin
sx --xmodem -k -vv </dev/ttyUSB0 >/dev/ttyUSB0 u-boot-v2020.01/O/u-boot.bin
cu -l /dev/ttyUSB0 -s 115200
-------------------------------------------

After that, what I get in cu is nothing but the following
---------------------------------------------------------------
xyzModem - CRC mode, 5975(SOH)/0(STX)/0(CAN) packets, 4 retries
Loaded 764512 bytes
CCC <INFINITE 'C's>
---------------------------------------------------------------

But I want this
---------------
=> 
---------------

Thanks.

  • Hi Darren

    it looks like the initial loading of SPL works but then something goes wrong. Does your U-Boot tree have support for the BB green wireless? If the board can't be detected/identified because code is missing it may get stuck and not continue. Does that same U-Boot build (MLO and u-boot.img) boot to prompt when booting from SD card? If so that would mean BB green wireless should be supported from a board-detection point of view, and the issue may be somewhere else.

    Some quick suggestions here:

    1. The UART boot flow is a combination of using X-Modem (1st stage, ROM loading SPL) and Y-Modem (2nd stage, SPL loading U-Boot proper) protocols, I don't see this reflected in your steps. Also see here https://processors.wiki.ti.com/index.php/AM335x_U-Boot_User's_Guide#Boot_Over_UART
    2. Can you try using a terminal emulator such as "minicom" for initial bringup rather then shell magic (optimizations as such are good but should be done as a second step)
    3. Try using a different USB-to-serial converter. PL2303 have caused issues in the past, I'd recommend using something from FTDI.
    4. If none of that helps try using JTAG to see what U-Boot is doing once it gets stuck (might need to solder a JTAG header to the board)

    Regards, Andreas

  • Minicom is great.

    Problem solved w/ am335x_boneblack_vboot_defconfig as make target, instead of am335x_evm_defconfig.

    Thanks Andreas.

    Regards, Darren