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.

AM335x (BeagleBone Black) Flattened Device Tree

Hi,

I'm working with a BeagleBone Black using ti-sdk-am335x-evm-06.00.00.00. I followed the steps on the developer guide in order to recompile my own kernel. (http://processors.wiki.ti.com/index.php/Sitara_Linux_Software_Developer%E2%80%99s_Guide)

I created my SD card and when I'm booting I got this error:  ** File not found /boot/am335x-boneblack.dtb **

I would like to know if the TI PSP is using DTS ? If the answer is yes, I would like to know what I need to do to generate the dtb file.

My guess is that TI is not using DTS right now and I will probably need to modify my uboot environnement variable fdtfile and findfdt to get ride of this message.

Your thought ?

Thanks

  • Hello,

    Our 3.2 kernel from SDK 6.00 does not support device tree.  Where are you getting your uboot images from?  If you use the u-boot images from the SDK (or build your own from the uboot source in the SDK), it will be configured to work easily with our 3.2 kernel.

    Regards,

    Josh

  • Hi,

    I downloaded the PSP (uboot and linux) from TI website. (http://software-dl.ti.com/sitara_linux/esd/AM335xSDK/latest/index_FDS.html)

    I used "make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm O=Beaglebone am335x_evm" to configure and compile uboot.

    I need to remove these env var from uboot, otherwise I cannot boot:

    fdt_high=0xffffffff
    fdtaddr=0x80F80000
    fdtfile=am335x-boneblack.dtb
    findfdt=if test $board_name = A335BONE; then setenv fdtfile am335x-bone.dtb; fi; if test $board_name = A335BNLT; then setenv fdtfile am335x-boneblack.dtb; fi; if test $board_name = A33515BB; then setenv fdtfile am335x-evm.dtb; fi; if test $board_name = A335X_SK; then setenv fdtfile am335x-evmsk.dtb; fi

    Is there something wrong with my uboot configuration ?

    Regards,

  • Hello,

    I wonder if the problem here is that you are still booting from the eMMC on BBB instead of your sd card.  There is a specific process for booting from SD Card on this page in the "Booting up the BeagleBone Black section."  Let me know if that works for you.

    Also, can you give me the log from your u-boot boot process?  Furthermore, please do  "printenv" in u-boot command line and send me that, as well.

    Regards,

    Josh

  • You are right.

    I mounted the emmc partition, erased the MLO and it worked. I'm booting from the SD now.

    Thank you !

    Regards,

  • Hi

    we are using latest SDK V3.00.00.04 and u-boot-2016,kernel -4.4.12.

    we are facing same issue .Previous default am335x-evmsk.dtb its booting while passing the boot args

    setenv fdtfile am335x-evmsk.dtb

    but when we are running my custom board .dtb file

    That time we are getting file not found /boot/am335x-evmsk.dtb

    we passed boot arg as

    setenv fdtfile am335x-custom.dtb

    saveenv

    boot

    we got below logs message:

    U-Boot 2016.05 (Aug 24 2016 - 14:31:08 +0530)
    
           Watchdog enabled
    I2C:   ready
    DRAM:  256 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    reading uboot.env
    Net:   eth0: ethernet@4a100000
    Warning: usb_ether MAC addresses don't match:
    Address in SROM is         de:ad:be:ef:00:01
    Address in environment is  68:9e:19:84:3d:f9
    , eth1: usb_ether
    Press SPACE to abort autoboot in 2 seconds
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    switch to partitions #0, OK
    mmc0 is current device
    Scanning mmc 0:1...
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    reading boot.scr
    ** Unable to read file boot.scr **
    reading uEnv.txt
    ** Unable to read file uEnv.txt **
    3677648 bytes read in 238 ms (14.7 MiB/s)
    ** File not found /boot/am335x-evmsk.dtb **
    Kernel image @ 0x82000000 [ 0x000000 - 0x381dd0 ]
    

    its not booting please

  • Hello Veera,

    Please, have a look at findfdt U-Boot environment variable.

    Best regards,
    Kemal

  • Thanks for your reply.solved my issue .ya we passed findfdt argument u-boot environment variable.