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: where to get source of uboot/ kernel for bone blk

Part Number: PROCESSOR-SDK-AM335X

Hi Team,

I am posting this on behalf of our customer. To make sure that I will not miss all the issue, I will paste here the customer inquiry:

"I have a bone blk(BB) board really worked great for me as far as  2015
I hadd its stuff in HDD on Linux Ubuntu 10 and the HDD dead, stop spining
Now per request from client of my consulting firm I got back to work on BB Linux and ran into so many problem I never had before 6 years ago when I got it up/ran perfectly
down loaded the latest

PROCESSOR-SDK-LINUX-AM335X  06_03_00_106

1) Tool chain
developer.arm.com/.../gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz
2) Linux source
software-dl.ti.com/.../am335x-evm-linux-sdk-src-06.03.00.106.tar.xz
Per info there it recommend to use Ubuntu14 with make version 3.8
Per TI Info on uboot for BeagleBone Black cofig with
am335x_evm_defconfig
But the uboot include only
am335x_evm_vboot_defconfig
However I went on to build it and ends up in failure with error below

  HOSTCC  scripts/basic/fixdep
cc1: error: unrecognized command line option ‘-std=gnu11’
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
I did try with as many release as I could and found sarting from the latest 06_03It's very wierd as it goes from the latest v6,v5, v4, v3, v2, v1, and All suden v8 v7
Total I download 15 releasees and found only few uboot version uboot-2013, uboot-2014, uboot-2015, uboot*20126. uboot-2019
I could compile all but the latest boot-2019
The problem with old version is it does booting but hand due to error "UNKOWN BOARD"
Even the board was from market not a custom one
The board is good as It work with my old stuff in SD card built 5years ago around 2015
I had the board up/ran smoothly from bootup/load kernel and ask for login
My question is where  to down load Linux the release I got it 5 year agoworked perfectly with my BB
Why starting from the latest release v6 back the previous release numbered v6.. v1 and allsuden v8, v7"

Please let me know if you are able to support this inquiry.

Thanks,

Jonathan

  • Hello Hong

    Ifeel I have to confirm what I did per your answer to the inquiry Jonanthan post to the forum all my behalf as it's dragged on on for so long
    I did down load the latest 1) Tool chain 2) source 3) Guide
    I strictly followed the guide

    1) Use Ubuntu 14 64b as it has the right make uility v3.83

    But per guide For bone black I have to do config 

    am335x_evm_defconfig

    But the release has only 

    am335x_evm_vboot_defconfig

    Neddless to say all cofig in dir configs in new UBoot Old Uboot use config in file boards.xfg but use config not def config

    I believe this is the root cause

    Another big questiion is why all uboot-2013 did work well for the board and now all sudden it got hang due to unknown board

    Even my old uboot-2033 binary on SD card boo very well and load kernel/ Filesystem upuntil user login

    Something extremely unsual really did happend happen

    I always extremely cautious about open source so I always kepp thing together as a a set=src+tool chain even version of host etc

    Thanks for you info Hong

    DuyKy

     

  • Hi DuyKy,

    After you download and install the 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

  • Dear Hong I just tried it and it reallybooted with capture below it really uboot -2019 and no error of unknown board

    So what's wrong with my compilation Even I strictly fowed the instruction

    1) 64b Ubuntu 14 for right make utility of version 3.83 I verified it's version 3.83

    2) Use tool chain down loaded from the same release 6_03

    gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/

    So TI team could do compilation but Why I failed ??

    Are Are You able compilt u-boot-2019, Hong

    If Yes  with what config statement was it

    am335x_boneblack_vboot_defconfig

    As it is the only one avail in dir configs in uboot-2019

    Thnks so much for your time/ effort


    U-Boot SPL 2019.01-g333c3e72d3 (Apr 19 2020 - 11:21:12 +0000)

    Trying to boot from UART

    CCCCCCCCCCspl: ymodem err - Timed out

    SPL: failed to boot from all boot devices

    ### ERROR ### Please RESET the board ###

    CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

  • Hi Duyky,

    dkn said:
    I just tried it and it reallybooted with capture below it really uboot -2019 and no error of unknown board

    Just want to confirm you successfully tested UART boot with the two binary files included in the package on your BBB?

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

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

    Best,

    -Hong

  • Dear Hong 

    I Use Xmodem to send SPL u-boot-spl.bin-am335x-evm and got that capture in my latest reply
    In my experience  for a  UART boot with other ubot 2013 I found only SPL is required for XModem send ;  IMG is auto sent aas long as IMG in the same folder with SPL

    I just tried to send  manually u-boot-am335x-evm.img this time  but failed to send both with X/Y Modem ??

    What next step should I do Hong

    Thanks/  Best Regards Hong

    DuyKy

  • Hi DuyKy,

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

    Best,

    -Hong

  • Dear Hong

    After SPL [u-boot-spl.bin-am335x-evm]XModem send done with appearance of banner 

    U-Boot SPL 2019.01-g333c3e72d3 (Apr 19 2020 - 11:21:12 +0000)

    Trying to boot from UART

    I did YModem send of IMG [ u-boot-am335x-evm.img]but it failed 0 bytes send

    Are you Have you succeded with them Hong ??

    I've been using Tera Term-4.83 on 32bWin7

    Thanks/Best Rards

    DuyKy

  • Hi DuyKy,

    dkn said:
    I did YModem send of IMG [ u-boot-am335x-evm.img]but it failed 0 bytes send

    Have you wait a bit longer when sending "u-boot-am335x-evm.img” via y-modem?

    I observed that negotiation between host and SPL takes a bit longer before sending "u-boot-am335x-evm.img” than negotiation between host and rom code for sending "u-boot-spl.bin-am335x-evm.bin".

    Yes, I tested the two pre-built binaries for UART boot on AM335x GP EVM, and my colleague tested them for UART boot on BBB.

    Also as shown in the table included in compiling MLO and u-boot section from below link, BBB u-boot for all boot modes is built with <am335x_evm_defconfig>.

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

    Best,

    -Hong

    "u-boot-spl.bin-am335x-evm.bin" over x-modem

  • Hello Hong

    YES I wait longer until to se few "CC" do Y modem of IMG and it did boot all the way to the end 

    up to

    TFTP from server 11.1.1.1; our IP address is 11.1.1.133

    Filename 'zImage'.

    Load address: 0x82000000

    Loading: *T T T T T T T T T T T T T T T T

    it got hang in atempting to get Linux img  via TFTP over network Ihad some expereience with this kind of thing and already had TFTP-even NFS-server set up on my Linux host for  mounting Root File system over net work  but I unable to set env for this process as it hang for ever  I had net cable connected but it expects serverip 11.1.1.1 while mine is 11.1.1.2. Normally HostId 1 reserved onlyfor router Whyit's used here for TPTP-server ??

    . Before I modified the source to set up serverip gatewayip . . .

    I'm aware  new ubot use uEnv.txt but couldn't find it in the release

    and I never ever use this way

    So the only way for me to go on is to do compile u-boot but I failed in doing so 

    You have any idea to compile uboot in this releaseI greatly appreciate if Ican get condition for a suceesful compilation like

    config statement something like ??????_def config

    I'm still nervous with the one in configs dir in uboot of this release

     am335x_boneblack_vboot_defconfig

    Any idea Hong ??

    Thanks/Best Regards

    DuyKy

     

     

     

  • Hi DuyKy,

    It is good to know you were able to use pre-built binary for uart boot on you setup.
    For building SPL/u-boot, as being said in my last reply,
    "Also as shown in the table included in compiling MLO and u-boot section from below link,
    BBB u-boot for all boot modes is built with <am335x_evm_defconfig>."

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

    <am335x_evm_defconfig> is used for building SPL/u-boot to support multiple TI EVMs and boot modes as tabulated in the table.
    Any board-dependent HW set-up (i.e. DDR, Pinmux, PMIC...) are configured in SPL/u-boot based on the detected board_ID (GP, BBB, SK, ICE...) from EEPROM. This makes it possible that a generic SPL/u-boot binary supports multiple TI boards and boot modes.


    Best,
    -Hong

  • Hello Hong

    I  thought I already confirm in my previous reply that

    I were able to use rebuilt binary from the latest release 6_03

    SPL=u-boot-spl.bin-am335x-evm

    IMG=u-boot-am335x-evm.img

    I got uart boot scuccessfully

    First XModem send of SPL once done sending I had to wait for a few 'C'

    then did YMdemsend of IMG and8it boot all to the end witha stream of 'T' in trying to load kernel using TFTP

    I got some experience in this kind of 0processusing TFTP to load kernel and NFS to runing Linux with NFS root file system [RFS]

    Howver to the best of my knowledge that

    In order to run Linux with NFS Root File System the kernel must be configure to support NFS for Root File System but I'm not sure if the rebuilt Linux binary has the feature configured
    So I do expect TI SDK team to provide me how to compile u-boot successfully

    I already had BBB RFS on my Linux Host I used 5 years ago to do this process perfectly

    But I really wish to start all over again from scratch by compile u-boot config/compile  kernel

    Hello Forum pal  Team any idea ??

    Thanks/Best Regards

    DuyKy

     

  • Hi DuyKy,

    dkn said:
    But I really wish to start all over again from scratch by compile u-boot config/compile  kernel

    The instructions for building TI SDK u-boot:

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

    and kernel:

    software-dl.ti.com/.../Foundational_Components_Kernel_Users_Guide.html

    Best,

    -Hong

  • Hello Hong

    I 'm very puzzle why my reply to you not clear that I already downloaded  the lastest TIvreleasestrictly folollowed TI instructions  in the release and used all TI relases = Tool Chain+source
    but I got error in compiling u-bboot the simplest job in Linux( kernel root file system)

    Could you con firm if  you able to com pile it, if  yes Could you provide me defails for successful compilation like

    1) What compiler

    2) what host 32b/64b Ubuntu version

    What config statementI you used 

    Is it

     am335x_evm_vboot_defconfig

    II wish I could have your confirm  could provide me tyou reply me with your  straight  answer to my questions above

    Rather than keep replying me with your old reply with the link of TI release

    I really wish not to waste time/effort of Forum member in reading the old duplicate reply from you for so long Hong

    Dear Forum member

    I'm sosorry about any incovenience it may cause due to my problem with BBB

    Sincerely/ Best Regards

    DuyKy

  • dkn said:

    Could you con firm if  you able to com pile it, if  yes Could you provide me defails for successful compilation like

    1) What compiler

    2) what host 32b/64b Ubuntu version

    These info and other useful info are described in the links:

    software-dl.ti.com/.../Overview_Getting_Started_Guide.html

    dkn said:

    What config statementI you used 

    Is it

     am335x_evm_vboot_defconfig

    For building SPL/u-boot, as being said in my last reply,
    "Also as shown in the table included in compiling MLO and u-boot section from below link,
    BBB u-boot for all boot modes is built with <am335x_evm_defconfig>."

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

  • Hello Hong

    It doesn’t make sense to me when you just duplicate my question to you in replying to me

    Once again my question to Hong is below so sorry to spell out your name Hong recommended to me as the best TI expert in this iled

    Hong, Are you able to have a successfully compilation of the latest TI Linux release 06_03 ??

    In particular the simplest one u-boot-2019

    If YES Could Hong provide me all details like Linux host/version ??

    Was the toochain from the release??

    What specific config statement you really used ????_[def]config

     

     

    Plz not duplicate reply In doing so we may cause some annoying inconvenience to our dear forum members as it's seen as an illusion  that the case going well while itreally get stuck seriously,

    I really wish not to waste both human/system resource[time/effort offot human bandwidth of system]

    Thanks/BestRegards for your cooperation Hong

    DuyKy

     

  • The links in my earlier reply are on how to setup build environments, toolchain, and instructions… to build u-boot per your questions.

    Yes, these instructions were tested by TI internal teams, as well as external users on successful building of SDK releases (including SDK 6.3).

    I listed steps I used for building SDK6.3 u-boot your reference.

    cd ~/am3/sdk6.3 (where ~/am3/sdk6.3 is an example of where SDK 6.3 is installed) 
    export TISDK_PATH=$PWD 
    export PATH=$TISDK_PATH/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH 
    cd board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3
    make CROSS_COMPILE=arm-linux-gnueabihf- distclean 
    make CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm am335x_evm_defconfig all
    

  • Hello

    What plat form for sucessful compilation

    I have 64b Ubuntu 14 but ended up it failure with error below

    arm-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0
    Copyright (C) 2018 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    DIR[_UBT-19]
    <dir[_UBT-19]>:
    make[1]: Entering directory `/WKK/UBT/BBB/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/am335x_evm'
    HOSTCC scripts/basic/fixdep
    cc1: error: unrecognized command line option ‘-std=gnu11’
    make[3]: *** [scripts/basic/fixdep] Error 1

    As senn the TI Cross vompile 8.3 used fror u-boot-20.18 Somthing realy quite wrong here

    The only thing needed to con firm here is info of the host 64b/32b ?? Ubuntu version

    These 2 pieces of info need to be confirms  as the src/tool cxhain are all from TI release 06_03

    Thanks

  • dkn said:
    The only thing needed to con firm here is info of the host 64b/32b ?? Ubuntu version

    You’ll find info for your questions from the link below:

    https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/AM335X/linux/Overview/Processor_SDK_Linux_Getting_Started_Guide.html#what-would-you-like-to-do-with-the-sdk

    1. Configure a Linux Host

    For example, at the time of this writing, Ubuntu 16.04 and Ubuntu 18.04 are the currently supported LTS versions.

    2. Install the SDK

    Processor SDK Installer is 64-bit, and installs only on 64-bit host machine.