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.

PROCESSOR-SDK-AM335X: how to boot bone black over UART

Part Number: PROCESSOR-SDK-AM335X

Hello

I could compile to get MLO +uboot.img

I used tera term XMODEM to send MLO But it failed  with 0 bytes sent

What should I do for booting BBonle Blk over UART

Just update info

I used known goog uboot=MLO+uboot.img as they used to boot fine with SD card for BBone Blk(BBB)

I can use Tera Term XMODEM to send MLO sucesfully with many byte
Once done Icontinued to send uboot.img

But nothing send

So it seems to me  BBB reject it 

Whatshould I do ??

Thanks

DuyKy

  • Hi DuyKy,

    Have you looked at this link?

    https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/AM335X/linux/Foundational_Components_U-Boot.html#booting-u-boot-from-the-console-uart

    >>>>

    You will need to use the spl/u-boot-spl.bin and u-boot.img files to boot. As per the TRM, the file is to be loaded via the X-MODEM protocol at 115200 baud 8 stop bits no parity (same as using it for console). SPL in turn expects to be sent u-boot.img at the same rate but via Y-MODEM. 

    <<<<

    Best,

    -Hong

  • I did try exactly just that  
    u-boot-spl.bin

    and it went thru sucessully but oce done I sent u-boot.img but it got hang

    So what's wrong ?

    To the best of my knowledge MLO really is u-boot-spl.bin

    Am I right ??

    Thanks so much for you great ino

    Very Kind Regards,
    DuyKy

  • Hi DuyKy,

    1. After sending "spl/u-boot-spl.bin" over xmodem,  any SPL banner print log...from the serial terminal?

    2, Did you send "u-boot.img" via xmodem or ymodem? 

    Best,

    -Hong

  • Hello

    Just my update on my problem

    I just xmodem sent u-boot spl.bin and u-boot.bin 

    The 1st one sucessfully sent but the 2nd got hang It is uboot 2015 I did scompiled using native Ubuntu arm-linux-gnueabihf-gcc

    However they are failed to boot from SD card
    So my guess is something wrong with my procedure

    u-boot-2015 I got NOT from TI

    Either wrong uboot or wrong Xgcc

    I did down load SDK-AM335-Linux from TI but I cannot use it as it has no DEFCONF IG required for making the image
    I'm wondering if you can provide a link for u-boot known working for bone black along with details How to and required Xgcc

    like regular arm-linux-gnueabi-gcc or special arm-linux-gnueabi-hf 
    Probably is it really require something very special like Ubuntu 32b/64b or even Ubuntu version

    Very kind Regards
    Very great appreciation to your kindness

    Sincerely

    DuyKy

  • Hi DuyKy,

    As being said in my first reply, for booting from UART,

    1. Sending first "u-boot-spl.bin" over x-modem, and
    2. After the x-modem transmitted SPL successfully booted on target (SPL banner would be printed over serial terminal), SPL expects the “u-boot.img” be transmitted over y-modem. So sending u-boot.img” via y-modem.

    AM335x SDK packages are downloadable from

    https://software-dl.ti.com/processor-sdk-linux/esd/AM335X/latest/index_FDS.html

    All tool chains needed to build SDK are included in the SDK package, and how to build u-boot is referenced here:

    https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/AM335X/linux/Foundational_Components_U-Boot.html#getting-the-u-boot-source-code

    Best,

    -Hong

  • Hello dear Pal

    I just wish to update my latest situation to make sure I won't waste your valuable time/effort hopefully
    I did check that some how I got ti-uboot-ti-u-boot-2015.07 per its folder name but not sure its original 

    I can do DEFCONFIG with

    am335x_boneblack_defconfig

    I used all XGCC I do have

    Linaro  arm-linux-gnueabi-gcc version 4.6.3 from Ubuntu

    Linaro arm-linux-gnueabi-gcc-hf verion 4.6.3 from Ubuntu

    Linaro arm-linux-gnueabi-gcc-hf verion7.5 from Linaro

    I'm using 32b-Ubuntu-12

    I'm afraid Ubuntu 64b not mature enough even I got 64b Ibuntu-14 and Idid run into some weird behavor so I keep using 32-bit Ubtu-12 until I'm sure 64b Ubuntu 14 really work for bone black

    Plz advice

    Kindest Regards to U All

    Sincerely

    DuyKy 

    But all image not bootable from SD card

  • Hello

    I did send both u-boot-spl.bin and u-boot.img using XModem in Tera Term

    Once spl sent done to sent u-boot.img

    I did try procedure recomeded in the link above 

    https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/AM335X/linux/Foundational_Components_U-Boot.html#booting-u-boot-from-the-console-uart
    I install lrzsz and I realy love this way as I can make a shell script to do the job very convenient

    Below is its status

    Sending ./_OUT1/Ubtu_ARM/u-boot-spl.bin, 586 blocks: Give your local XMODEM receive command now.

    Xmodem sectors/kbytes sent: 0/ 0k.bin, 586 blocks: Give your local XMODEM receive command now.

    It's very confusing with 

    Xmodem sectors/kbytes sent: 0/ 0k.bin, 586 blocks

    I did very it send the right file u-boot-spl.bin

    The bottomline i it's was a failure

    I'm wondering the root cause is wrong baud rate but I don't know how to set baud rate as the document does not shoe how to set baud rate for this ltool lrzsz

    Greatly appreciate if Wondering if some body can help to make this procedure sucessfully by show me how to set baud rate 115200 for this tool lrzsz

    Best Regards

    DuyKy

     

    and

  • Hello Hond

    I used Tera Term to send both u-boot-spl.bin and it was sent nOK Once done I use XMODEM to send  u-noot.img but it got hang 

    Any idea ?/

    Best Regards

    DuyKy

  • Hello Honb

    So sorry for my mistypo your name 

    My y eyes are getting worse but cannot get  new glass

    I'm afraid the root cause is bad image as they cannot be used with SD card for booting up BBB
    TI have good u-boot-2013 booting BBB OK but only MLO and img no SPL

    I got ti-ubbot -2013 but ithas no am335x_boneblack_defconfig as in my u-bbot-2015

    I really appreciate if somone give a link to get u-boot-2013 with am335x_boneblack_defconfig known working ok for BBB

    Thanks a lot

    DuyKy

  • Hello Hong

    Just to confirm with you
    I should send only pl/u-boot-spl.bin and  u-boot.img  will be sent automatically by BB upon receipt of SPL, as long as  u-boot.img under same folder with SPL

    Hong, Plz confirm if my state is correct
    Plz advise

    Best Regard

    DuyKy

  • Hi Duyky,

    You would need to send two files separately as in my last reply.

    >>>>

    As being said in my first reply, for booting from UART,

    1. Sending first "u-boot-spl.bin" over x-modem, and
    2. After the x-modem transmitted SPL successfully booted on target (SPL banner would be printed over serial terminal), SPL expects the “u-boot.img” be transmitted over y-modem. So sending “u-boot.img” via y-modem.

    <<<<

    These two binary files are included in the "prebuilt-images" folder in all TI AM335x SDK packages downloadable from the link in my last reply.

    Best,

    -Hong

  • Hello Hong

    Owing to your invaluable help Now UART boot working fine

    Just to confirm with you that the only file required is SPL sent with XModem and then u-boot.img is auto sent some how I don't know as I moved u-boot.img away to some where the boot failed

    It really booted OK but got hang to Unknown Board ID

    I found function read_eeprom() read ID so I return 0; in the function but uart-booting still failed 

    It is u-boot-2013

    I do have u-boot -2015 but uart absolutely booting  failed  not even u-boot greeting shown up

    Do U have any u-boot working fine for uart-boot Hong

    Thanks a lot for your great help, Hong I realy appreciate your invaluable help

    Best Regards

    DuyKy

    But booting fae

    Now I run into problem Unknown

  • Duyky,

    Are you running on BBB or your own customized board?

    - If it is BBB (or any TI boards), the binary in prebuilt-images folder in TI SDK package downloadable from links in my previous reply would work.

    - If it is customized board, here is the guideline on u-boot board porting.

    software-dl.ti.com/.../U-Boot.html

    General recommendation would be upgrading to the latest TI SDK if feasible, and indeed u-boot-2013 is beyond supporting scope.

    Best,

    -Hong

  • Dear Hong

    I spent a lot of time/effort to downloadd almost all TI AM335xSDK LINUX 00-07 00-08 1_00 2_00 3_00 4_00 5_00 6_00

    I compiled  uboot  as many as I can 2013 2014 2015 and found only 2013 2014 really did UART 2015failedboot but got hang due to pro blem of Unknown board

    Coul you give a link to get u-boot good for Bone Blk

    I found a lot from www but none work!!     

    Thnks a lot for rour great help Hong

    DuyKy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              only 

  • Dear Hong I just down load the latest AM335x_SDK_LIUX version 06_03
    Hoever there's only in ir configs/

    am335x_boneblack_vboot_defconfig

    with extra  vboot but not as usual as

    am335x_boneblack_defconfig

    Does it matter

    I went on any wayand failed to config with error

    IP_2//WKK/UBT/BBB/_UBT-19 # make am335x_boneblack_vboot_defconfig
    HOSTCC scripts/basic/fixdep
    cc1: error: unrecognized command line option ‘-std=gnu11
    make[1]: *** [scripts/basic/fixdep] Error 1

    So sorry not to emphasize that I've been using  regular BBB brd . not custom one

    Any idea on problem how to compile the latest BBB u-boot -2019 from TI pckg 06_00_03


    Thnks so much for your time/efoort to help me, Hong

    Best Redards

    DuyKy

     

     

  • Hi Duyky,

    After you download and install SDK 6.3,  have you tried testing UART boot with the two binary files included in the package?

    1. "/board-support/prebuilt-images/u-boot-spl.bin-am335x-evm.bin"

    2. "/board-support/prebuilt-images/u-boot-am335x-evm.img"

    Best,

    -Hong

  • Hello

    I've been figting with uboot error
    Unknown board, cannot configure pinmux.C

    Even I'm using bone black board from market

    And I real worked fine few years ago

    Now all sudden I got this error using uboot 2013 I got he latest uboot 2019 but unable to compile I did post the problem but no solution do far What's wrong with the latest release ?

    Thanks

    DuyKy

  • Hi Duyky,

    As being said in my early reply, all tool chains needed to build SDK are included in the SDK package, and how to build u-boot is referenced here:

    https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/AM335X/linux/Foundational_Components_U-Boot.html#build-and-boot-flow-on-32-bit-platforms

     have you tried testing UART boot with the two binary files included in the SDK package?

    1. "/board-support/prebuilt-images/u-boot-spl.bin-am335x-evm.bin"

    2. "/board-support/prebuilt-images/u-boot-am335x-evm.img"

    -Hong