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.

u-boot-spl doesn't work



Hello!

I've installed Processor SDK Linux and build u-boot from top-level Makefile for am335x-evm board. I used am335x_boneblack_defconfig. When I start  load my beaglebaone black whith S2 pressed button, T see "CCCC" on my terminal. Then I load  u-boot-spl.bin file through x-modem and when loading is completed nothing happens. What should I do?


I've already tried to reinstall the SDK and rebuild u-boot image, but it didn't help. I use Processor SDK Linux 02.00.01.07/
.

Best regards,

Konstantin Ponomarev

  • Hi,

    Can you try the following steps:

    x0155517@mms:~/ti-processor-sdk-linux-am335x-evm-02.00.01.07$ cd board-support/u-boot-2015.07+gitAUTOINC+5922e09363/

    x0155517@mms:~/ti-processor-sdk-linux-am335x-evm-02.00.01.07/board-support/u-boot-2015.07+gitAUTOINC+5922e09363$ export ARCH=arm

    x0155517@mms:~/ti-processor-sdk-linux-am335x-evm-02.00.01.07/board-support/u-boot-2015.07+gitAUTOINC+5922e09363$ export PATH=/home/x0155517/ti-processor-sdk-linux-am335x-evm-02.00.01.07/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/:$PATH

    x0155517@mms:~/ti-processor-sdk-linux-am335x-evm-02.00.01.07/board-support/u-boot-2015.07+gitAUTOINC+5922e09363$ export CROSS_COMPILE=arm-linux-gnueabihf-

    x0155517@mms:~/ti-processor-sdk-linux-am335x-evm-02.00.01.07/board-support/u-boot-2015.07+gitAUTOINC+5922e09363$ make clean

    x0155517@mms:~/ti-processor-sdk-linux-am335x-evm-02.00.01.07/board-support/u-boot-2015.07+gitAUTOINC+5922e09363$ make am335x_evm_config

    x0155517@mms:~/ti-processor-sdk-linux-am335x-evm-02.00.01.07/board-support/u-boot-2015.07+gitAUTOINC+5922e09363$ make -j4

    After building is complete you should have MLO & u-boot.img generated in your u-boot-2015.07+gitAUTOINC+5922e09363 directory. Now you have two options: 
      1. Boot from SD CARD: 
        1.1. Create a bootable sd card with the create-sdcard.sh script (located in /ti-processor-sdk-linux-am335x-evm-02.00.01.07/board-support/u-boot-2015.07+gitAUTOINC+5922e09363/bin)  

        1.2. Copy MLO & u-boot.img in the boot partition of the sdcard. 

        1.3. Put the sdcard in the bbb slot hold S2 pressed to boot from sd card & power up the board while holding S2. 

      2. Boot from uart:

        1.1 You should use  u-boot-spl.bin file generated in ti-processor-sdk-linux-am335x-evm-02.00.01.07/board-support/u-boot-2015.07+gitAUTOINC+5922e09363/spl
        1.2 Power up the board and you should seee CCCCC on your console. 

        1.3 Send u-boot-spl.bin through x-modem. 

        1.4 Send u-boot.img (generated in ti-processor-sdk-linux-am335x-evm-02.00.01.07/board-support/u-boot-2015.07+gitAUTOINC+5922e09363 folder)

    Hope this helps. 

    Best Regards, 

    Yordan

  • Thank you for your answer, Yordan.
    I've solve this problem.
    But I have another one, I need to run u-boot on my custom board. I've already done it with previous versions of u-boot, but now I can't do it with u-boot 2015.07.
    As I don't have EEPROM on my board with identity information about my board, so I've add some code to board/ti/am335x/board.c and .../board.h, to let u-boot knows about my board. I did the same things with previous versions of u-boot, and it worked well. I use Samsung K4B4G1646D BCMA DDR3 SDRAM, so I added some code to arch/arm/include/asm/arch/ddr_defs.h like i did it in previous versions.
    After successful compilation, I load my u-boot-spl.bin file through x-modem, and nothing happens: no messages from uboot, nothing.
    I don't understand where I made a mistake.

    Best regards,

    Konstantin Ponomarev
  • Hi Konstantin,

    Konstantin Ponomarev said:
    I've add some code to board/ti/am335x/board.c and .../board.h, to let u-boot knows about my board.

    ....................

    I use Samsung K4B4G1646D BCMA DDR3 SDRAM, so I added some code to arch/arm/include/asm/arch/ddr_defs.h 

    Is it possible to share those files (board.c, board.h & ddr_defs.h), so I can compare them with the unmodified sources in TI SDK02.00.01.07? 

    Best Regards, 
    Yordan

  • Hello, Yordan.
    I've solved my problem. It was connected with "struct ti_am_eeprom", wrong work with pointers to the structure.

    Best regards,
    Konstantin Ponomarev