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.

Linux/TDA2EVM5777: linux bootup

Part Number: TDA2EVM5777
Other Parts Discussed in Thread: DRA742, PMP

Tool/software: Linux

Hi,

I followed the visionsdk linux user guide and have an issue booting up the system. The log shows like this:

U-Boot SPL 2016.05-00005-g636bf3e (Nov 30 2017 - 17:00:47)
DRA752-GP ES2.0
no pinctrl for hs200_1_8v
no pinctrl for ddr_1_8v
*** Warning - MMC init failed, using default environment

Trying to boot from MMC1
reading dra7-ipu2-fw.lzop
spl_load_file_fat: error reading file dra7-ipu2-fw.lzop, err - -1
spl: error reading image dra7-ipu2-fw.lzop, err - -1
Error loading remotecore IPU2!,Continuing with boot ...
reading dra7-dsp1-fw.lzop
spl_load_file_fat: error reading file dra7-dsp1-fw.lzop, err - -1
spl: error reading image dra7-dsp1-fw.lzop, err - -1
Error loading remotecore DSP1!,Continuing with boot ...
reading dra7-dsp2-fw.lzop
spl_load_file_fat: error reading file dra7-dsp2-fw.lzop, err - -1
spl: error reading image dra7-dsp2-fw.lzop, err - -1
Error loading remotecore DSP2!,Continuing with boot ...
reading dra7-ipu1-fw.lzop
spl_load_file_fat: error reading file dra7-ipu1-fw.lzop, err - -1
spl: error reading image dra7-ipu1-fw.lzop, err - -1
Error loading remotecore IPU1!,Continuing with boot ...
*** Warning - MMC init failed, using default environment

reading u-boot.img
reading u-boot.img
reading u-boot.img
reading u-boot.img


U-Boot 2016.05-00005-g636bf3e (Nov 30 2017 - 17:00:47 -0800)

CPU  : DRA752-GP ES2.0
Model: TI DRA742
Board: DRA74x EVM REV H.0
DRAM:  4 GiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
** First descriptor is NOT a primary desc on 1:1 **
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
ERROR: cannot find partition: 'userdata'

at arch/arm/cpu/armv7/omap-common/utils.c:195/mmc_get_part_size()
Warning: fastboot.userdata_size: unable to calc
SCSI:  SATA link 0 timeout.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
scanning bus for devices...
Found 0 device(s).
Net:   
Warning: ethernet@48484000 using MAC address from ROM
eth0: ethernet@48484000
Hit any key to stop autoboot:  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
165 bytes read in 2 ms (80.1 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
3551760 bytes read in 113 ms (30 MiB/s)
** File not found /boot/dra7-evm-infoadas.dtb **
Booting from mmc0 ...
Kernel image @ 0x82000000 [ 0x000000 - 0x363210 ]
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
** First descriptor is NOT a primary desc on 1:1 **
switch to partitions #0, OK
mmc1(part 0) is current device
** First descriptor is NOT a primary desc on 1:1 **
mmc - MMC sub system

Usage:
mmc info - display info of the current MMC device
mmc read addr blk# cnt                                                                                                                  
mmc write addr blk# cnt                                                                                                                 
mmc erase blk# cnt                                                                                                                      
mmc rescan                                                                                                                              
mmc part - lists available partition on current mmc device                                                                              
mmc dev [dev] [part] - show or set current mmc device [partition]                                                                       
mmc list - lists available devices                                                                                                      
mmc hwpartition [args...] - does hardware partitioning                                                                                  
  arguments (sizes in 512-byte blocks):                                                                                                 
    [user [enh start cnt] [wrrel {on|off}]] - sets user data area attributes                                                            
    [gp1|gp2|gp3|gp4 cnt [enh] [wrrel {on|off}]] - general purpose partition                                                            
    [check|set|complete] - mode, complete set partitioning completed                                                                    
  WARNING: Partitioning is a write-once setting once it is set to complete.                                                             
  Power cycling is required to initialize partitions after set to complete.                                                             
mmc bootbus dev boot_bus_width reset_boot_bus_width boot_mode                                                                           
 - Set the BOOT_BUS_WIDTH field of the specified device                                                                                 
mmc bootpart-resize <dev> <boot part size MB> <RPMB part size MB>                                                                       
 - Change sizes of boot and RPMB partitions of specified device                                                                         
mmc partconf dev boot_ack boot_partition partition_access                                                                               
 - Change the bits of the PARTITION_CONFIG field of the specified device
mmc rst-function dev value
 - Change the RST_n_FUNCTION field of the specified device
   WARNING: This is a write-once field and 0 / 1 / 2 are the only valid values.
mmc setdsr <value> - set DSR register value

mmc - MMC sub system

Usage:
mmc info - display info of the current MMC device
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
mmc rescan
mmc part - lists available partition on current mmc device
mmc dev [dev] [part] - show or set current mmc device [partition]
mmc list - lists available devices
mmc hwpartition [args...] - does hardware partitioning
  arguments (sizes in 512-byte blocks):
    [user [enh start cnt] [wrrel {on|off}]] - sets user data area attributes
    [gp1|gp2|gp3|gp4 cnt [enh] [wrrel {on|off}]] - general purpose partition
    [check|set|complete] - mode, complete set partitioning completed
  WARNING: Partitioning is a write-once setting once it is set to complete.
  Power cycling is required to initialize partitions after set to complete.
mmc bootbus dev boot_bus_width reset_boot_bus_width boot_mode
 - Set the BOOT_BUS_WIDTH field of the specified device
mmc bootpart-resize <dev> <boot part size MB> <RPMB part size MB>
 - Change sizes of boot and RPMB partitions of specified device
mmc partconf dev boot_ack boot_partition partition_access
 - Change the bits of the PARTITION_CONFIG field of the specified device
mmc rst-function dev value
 - Change the RST_n_FUNCTION field of the specified device
   WARNING: This is a write-once field and 0 / 1 / 2 are the only valid values.
mmc setdsr <value> - set DSR register value

Booting from eMMC ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=>

Can anyone help me with this?

Thanks,

Xing

  • Hi Xing,

    Below line in the log indicates the cause.

    ** File not found /boot/dra7-evm-infoadas.dtb **

    Please modify your uenv.txt to speciy correct dtb

     orig: fdtfile=dra7-evm-infoadas.dtb
     mod:  fdtfile=dra71-evm-infoadas.dtb

     

  • Yeah, I notice that dra7-evm-infoadas.dtb could not be found on sd card. However, there's no such file as dra71-evm-infoadas.dtb either. It seems that the user has to manually copy the file onto sd card, not just by .sh file.
  • Xing,

    I assume your config is tda2xx_evm_linux_all

    You can find corresponding DTB in vision_sdk/apps/configs/tda2xx_evm_linux_all/cfg.mk

    DEFAULT_DTB := dra7-evm-infoadas.dtb dra7-evm-infoadas-lcd-lg.dtb

    After “make linux_install”, you can see these two DTBs were copied

    from

    /ti_components/os_tools/linux/kernel/omap/arch/arm/boot/dts/

    to
    /ti_components/os_tools/linux/targetfs/boot/

    Then use the updated targetfs to make your SD card per the user guide. Your SD card should have the DTBs.

    Best Regards,