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.

AM69, Cannot boot Linux FS from uboot

Other Parts Discussed in Thread: AM69, SK-AM69

Hi, 

I downloaded AM69 SDK from TI website and just wanted to rebuild it with bl32 prior rebuilt(without any changes as well).

I've started from optee core 

make CFG_ARM64_core=y CFG_TEE_BENCHMARK=n CROSS_COMPILE32=arm-none-linux-gnueabihf- CROSS_COMPILE64=aarch64-none-linux-gnu-  O=out/arm PLATFORM=k3-j784s4

After that u-boot

make u-boot UBOOT_TEE="/home/ti-processor-sdk-linux-j784s4-evm-09_01_00_06/board-support/optee-os-4.0.0+gitAUTOINC+2a5b1d1232/out/arm/core/tee-pager_v2.bin"

I have HS-FS board so I placed on BOOT partition of the SD card the tiboot3-j784s4-hs-fs-evm.bin  and tiboot3.bin which is linked with hs-fs bin  and from a72 :tispl.bin and u-boot.img.

I am booting from sdcard and I've got this issue

it any key to stop autoboot:  0
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
Failed to load 'boot.scr'
1329 bytes read in 2 ms (648.4 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc1 ...
Running uenvcmd ...
1 bytes read in 2 ms (0 Bytes/s)
Already setup.
GPIO: 'gpio@22_17' not found
Command 'gpio' failed: Error -22
GPIO: 'gpio@22_16' not found
Command 'gpio' failed: Error -22
k3_r5f_rproc r5f@41000000: Core 1 is already in use. No rproc commands work
Failed to load '/lib/firmware/j784s4-mcu-r5f0_1-fw'
597188 bytes read in 16 ms (35.6 MiB/s)
Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) d
Load Remote Processor 2 with data@addr=0x82000000 597188 bytes: Success!
301996 bytes read in 9 ms (32 MiB/s)
Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) d
Load Remote Processor 3 with data@addr=0x82000000 301996 bytes: Success!
179128 bytes read in 8 ms (21.4 MiB/s)
Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) d
Load Remote Processor 4 with data@addr=0x82000000 179128 bytes: Success!
179128 bytes read in 8 ms (21.4 MiB/s)
Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) d
Load Remote Processor 5 with data@addr=0x82000000 179128 bytes: Success!
596856 bytes read in 13 ms (43.8 MiB/s)
Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) d
Load Remote Processor 6 with data@addr=0x82000000 596856 bytes: Success!
179128 bytes read in 8 ms (21.4 MiB/s)
Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) d
Load Remote Processor 7 with data@addr=0x82000000 179128 bytes: Success!
14684456 bytes read in 79 ms (177.3 MiB/s)
Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) d
Load Remote Processor 8 with data@addr=0x82000000 14684456 bytes: Success!
14946600 bytes read in 80 ms (178.2 MiB/s)
Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) d
Load Remote Processor 9 with data@addr=0x82000000 14946600 bytes: Success!
14553384 bytes read in 76 ms (182.6 MiB/s)
Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) d
Load Remote Processor 10 with data@addr=0x82000000 14553384 bytes: Success!
14553384 bytes read in 75 ms (185.1 MiB/s)
Warning: Did not detect image signing certificate. Skipping authentication to prevent boot failure. This will fail on Security Enforcing(HS-SE) d
Load Remote Processor 11 with data@addr=0x82000000 14553384 bytes: Success!
19079680 bytes read in 197 ms (92.4 MiB/s)
Failed to load '/boot/dtb/ti/k3-am69-sk.dtb'
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
Failed to load '/boot/dtb/ti/k3-am69-sk-ddr-mem-carveout.dtbo'
Failed to load '/boot/dtb/ti/k3-j784s4-edgeai-apps.dtbo'
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
switch to partitions #0, OK
mmc0(part 0) is current device
** No partition table - mmc 0 **
Couldn't find partition mmc 0:1
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
No EFI system partition
No EFI system partition
Failed to persist EFI variables
BootOrder not defined
EFI boot manager: Cannot load any image
starting USB...
Bus usb@6000000: cdns-usb3-host usb@6000000: Unable to get USB2 phy (ret -61)
cdns-usb3-host usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
Register 2000840 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@6000000 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
k3-navss-ringacc ringacc@2b800000: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:328
k3-navss-ringacc ringacc@2b800000: dma-ring-reset-quirk: disabled
am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/01-08-04-b4-2e-8f-2f
am65_cpsw_nuss_port ethernet@46000000port@1: K3 CPSW: rflow_id_base: 2
ethernet@46000000port@1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
am65_cpsw_nuss_port ethernet@46000000port@1: phy_startup failed
am65_cpsw_nuss_port ethernet@46000000port@1: am65_cpsw_start end error
Retrieving file: pxelinux.cfg/00000000

  • the problem could be here

    Failed to load '/boot/dtb/ti/k3-am69-sk.dtb'
    libfdt fdt_check_header(): FDT_ERR_BADMAGIC
    No FDT memory address configured. Please configure
    the FDT address via "fdt addr <address>" command.
    Aborting! 

    But the question is why it is working with image already bundled in SD card delivered by TI

  • Another hint is that uboot does not discover SD-card 

    => mmc list
    mmc@4f80000: 0
    mmc@4fb0000: 1

  • => printenv
    addr_fit=0x90000000
    arch=arm
    args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02880000 ${mtdparts}
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
    args_ospi_nand=setenv bootargs console=${console} ${optargs} ubi.mtd=${ospi_nand_bootpart} root=${ospi_nand_bootvolume} rootfstype=ubifs
    args_ufs=setenv devtype scsi;setenv bootpart 1:1; run ufs_finduuid; setenv bootargs console = ${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${scsirootfstype}; setenv devtype scsi; setenv bootpart 1:1
    baudrate=115200
    board=j784s4
    board_name=am69-sk
    board_rev=E3
    board_serial=0151
    board_software_revision=01
    boot=mmc
    boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
    boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootaa64.efi; if fdt addr -q ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
    boot_efi_bootmgr=if fdt addr -q ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr;fi
    boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
    boot_fdt=try
    boot_fit=0
    boot_net_usb_start=usb start
    boot_prefixes=/ /boot/
    boot_rprocs=if test ${dorprocboot} -eq 1 && test ${boot} = mmc; then rproc init; run boot_rprocs_mmc; fi;
    boot_rprocs_mmc=env set rproc_id; env set rproc_fw; env set secure_suffix; if test ${secure_rprocs} -eq 1; then env set secure_suffix -sec; fi; for i in ${rproc_fw_binaries} ; do if test -z "${rproc_id}" ; then env set rproc_id $i; else env set rproc_fw $i${secure_suffix}; run rproc_load_and_boot_one; env set rproc_id; env set rproc_fw; fi; done
    boot_script_dhcp=boot.scr.uimg
    boot_scripts=boot.scr.uimg boot.scr
    boot_syslinux_conf=extlinux/extlinux.conf
    boot_targets=ti_mmc mmc0 mmc1 usb0 pxe dhcp
    bootcmd=run envboot; run distro_bootcmd;
    bootcmd_dhcp=devtype=dhcp; run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00011:UNDI:003000;setenv bootp_arch 0xb;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr -q ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci;
    bootcmd_mmc0=devnum=0; run mmc_boot
    bootcmd_mmc1=devnum=1; run mmc_boot
    bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
    bootcmd_ti_mmc=run findfdt; run init_${boot}; run main_cpsw0_qsgmii_phyinit; run boot_rprocs; if test ${boot_fit} -eq 1; then run get_fit_${boot}; run get_fit_overlaystring; run run_fit; else; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern; fi;
    bootcmd_usb0=devnum=0; run usb_boot
    bootdelay=2
    bootdir=/boot
    bootenvfile=uEnv.txt
    bootm_size=0x10000000
    bootpart=1:2
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    console=ttyS2,115200n8
    cpu=armv8
    default_device_tree=ti/k3-j784s4-evm.dtb
    dfu_alt_info_emmc=rawemmc raw 0 0x800000 mmcpart 1; rootfs part 0 1; tiboot3.bin.raw raw 0x0 0x400 mmcpart 1; tispl.bin.raw raw 0x400 0x1000 mmcpart 1; u-boot.img.raw raw 0x1400 0x2000 mmcpart 1; u-env.raw raw 0x3400 0x100 mmcpart 1; sysfw.itb.raw raw 0x3600 0x800 mmcpart 1
    dfu_alt_info_mmc=boot part 1 1; rootfs part 1 2; tiboot3.bin fat 1 1; tispl.bin fat 1 1; u-boot.img fat 1 1; uEnv.txt fat 1 1; sysfw.itb fat 1 1
    dfu_alt_info_nand=NAND.tiboot3 part 0 1; NAND.tispl part 0 2; NAND.tiboot3.backup part 0 3; NAND.u-boot part 0 4; NAND.u-boot-env part 0 5; NAND.u-boot-env.backup part 0 6; NAND.file-system part 0 7
    dfu_alt_info_ospi=tiboot3.bin raw 0x0 0x080000; tispl.bin raw 0x080000 0x200000; u-boot.img raw 0x280000 0x400000; u-boot-env raw 0x680000 0x020000; sysfw.itb raw 0x6c0000 0x100000; rootfs raw 0x800000 0x3800000
    dfu_alt_info_ospi_nand=ospi_nand.tiboot3 part 1; ospi_nand.tispl part 2; ospi_nand.u-boot part 3; ospi_nand.env part 4; ospi_nand.env.backup part 5; ospi_nand.rootfs part 6; ospi_nand.phypattern part 7
    dfu_alt_info_ram=tispl.bin ram 0x80080000 0x200000; u-boot.img ram 0x81000000 0x400000
    distro_bootcmd=scsi_need_init=; for target in ${boot_targets}; do run bootcmd_${target}; done
    do_main_cpsw0_qsgmii_phyinit=1
    dorprocboot=1
    dtboaddr=0x89000000
    efi_dtb_prefixes=/ /dtb/ /dtb/current/
    envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev}; if run loadbootscript; then run bootscript; else if run loadbootenv; then echo Loaded env from ${bootenvfile}; run importbootenv; fi; if test -n $uenvcmd; then echo Running uenvcmd ...; run uenvcmd; fi; fi; fi;
    ethaddr=08:04:b4:2e:8f:2f
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=fde74430
    fdtoverlay_addr_r=0x89000000
    findfdt=setenv name_fdt ${default_device_tree}; if test $board_name = am69-sk; then setenv name_fdt ti/k3-am69-sk.dtb; fi; if test $board_name = j784s4; then setenv name_fdt ti/k3-j784s4-evm.dtb; fi; setenv fdtfile ${name_fdt}
    finduuid=part uuid ${boot} ${bootpart} uuid
    get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/dtb/${name_fdt}
    get_fdt_ospi_nand=ubifsload ${fdtaddr} ${bootdir}/dtb/${fdtfile};
    get_fdt_ufs=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    get_fit_config=setexpr name_fit_config gsub / _ conf-${fdtfile}
    get_fit_mmc=load mmc ${bootpart} ${addr_fit} ${bootdir}/${name_fit}
    get_fit_ospi_nand=ubifsload ${addr_fit} ${bootdir}/${name_fit}
    get_fit_overlaystring=for overlay in $name_overlays; do; setexpr name_fit_overlay gsub / _ conf-${overlay}; setenv overlaystring ${overlaystring}'#'${name_fit_overlay}; done;
    get_kern_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
    get_kern_ospi_nand=ubifsload ${loadaddr} ${bootdir}/${name_kern}
    get_kern_ufs=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
    get_overlay_mmc=fdt address ${fdtaddr}; fdt resize 0x100000; for overlay in $name_overlays; do; load mmc ${bootpart} ${dtboaddr} ${bootdir}/dtb/ti/${overlay} && fdt apply ${dtboaddr}; done;
    get_overlay_ospi_nand=fdt address ${fdtaddr} fdt resize 0x100000; for overlay in $name_overlays; do; ubifsload ${dtboaddr} ${bootdir}/dtb/${overlay} && fdt apply ${dtboaddr}; done;
    get_overlay_ufs=fdt address ${fdtaddr}; fdt resize 0x100000; for overlay in $name_overlays; do; load scsi ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && fdt apply ${dtboaddr}; done;
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
    init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17; gpio clear gpio@22_16
    init_mmc=run args_all args_mmc
    init_ospi_nand=run args_all args_ospi_nand ospi_nand_ubi_init
    init_ufs=ufs init; scsi scan; run args_ufs
    kernel_addr_r=0x82000000
    load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
    loadaddr=0x82000000
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
    loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
    loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/dtb/${fdtfile}
    loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
    main_cpsw0_qsgmii_phyinit=if test $board_name = j784s4; then do_main_cpsw0_qsgmii_phyinit=1; else do_main_cpsw0_qsgmii_phyinit=0; fi; if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1 && test ${dorprocboot} -eq 1 && test ${boot} = mmc; then run init_main_cpsw0_qsgmii_phy; fi;
    mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
    mmcboot=mmc dev ${mmcdev}; devnum=${mmcdev}; devtype=mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev}; if run loadimage; then run args_mmc; if test ${boot_fit} -eq 1; then run run_fit; else run mmcloados; fi; fi; fi;
    mmcdev=1
    mmcloados=if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run get_fdt_mmc; then bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
    mmcrootfstype=ext4 rootwait
    mtdids=nor0=47040000.spi.0,nand0=spi-nand0
    mtdparts=mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),256k(ospi.env.backup),57088k@8m(ospi.rootfs),256k(ospi.phypattern);spi-nand0:512k(ospi_nand.tiboot3),2m(ospi_nand.tispl),4m(ospi_nand.u-boot),256k(ospi_nand.env),256k(ospi_nand.env.backup),98048k@32m(ospi_nand.rootfs),256k@130816k(ospi_nand.phypattern)
    name_fit=fitImage
    name_kern=Image
    ospi_nand_bootpart=ospi_nand.rootfs
    ospi_nand_bootvolume=ubi0:rootfs
    ospi_nand_ubi_init=ubi part ${ospi_nand_bootpart}; ubifsmount ${ospi_nand_bootvolume};
    partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
    pxefile_addr_r=0x80100000
    ramdisk_addr_r=0x88080000
    rd_spec=-
    rdaddr=0x88080000
    rproc_fw_binaries= 1 /lib/firmware/j784s4-mcu-r5f0_1-fw 2 /lib/firmware/j784s4-main-r5f0_0-fw 3 /lib/firmware/j784s4-main-r5f0_1-fw 4 /lib/firmware/j784s4-main-r5f1_0-fw 5 /lib/firmware/j784s4-main-r5f1_1-fw 6 /lib/firmware/j784s4-main-r5f2_0-fw 7 /lib/firmware/j784s4-main-r5f2_1-fw 8 /lib/firmware/j784s4-c71_0-fw 9 /lib/firmware/j784s4-c71_1-fw 10 /lib/firmware/j784s4-c71_2-fw 11 /lib/firmware/j784s4-c71_3-fw
    rproc_load_and_boot_one=if load mmc ${bootpart} $loadaddr ${rproc_fw}; then if rproc load ${rproc_id} ${loadaddr} ${filesize}; then rproc start ${rproc_id}; fi; fi
    run_fit=run get_fit_config; bootm ${addr_fit}#${name_fit_config}${overlaystring}
    run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
    scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi;
    scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then part uuid ${devtype} ${devnum}:${distro_bootpart} distro_bootpart_uuid ; run scan_dev_for_boot; fi; done; setenv devplist
    scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;run boot_efi_bootmgr;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootaa64.efi; then echo Found EFI removable media binary efi/boot/bootaa64.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
    scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo EXTLINUX FAILED: continuing...; fi
    scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
    scriptaddr=0x80000000
    scsi_boot=run scsi_init; if scsi dev ${devnum}; then devtype=scsi; run scan_dev_for_boot_part; fi
    scsi_init=if ${scsi_need_init}; then scsi_need_init=false; scsi scan; fi
    scsirootfstype=ext4 rootwait
    secure_rprocs=0
    serial#=0000000000000151
    soc=k3
    splashfile=ti.gz
    splashimage=0x82000000
    splashpos=m,m
    splashsource=mmc
    stderr=serial@2880000
    stdin=serial@2880000
    stdout=serial@2880000
    ubifs_boot=if ubi part ${bootubipart} ${bootubioff} && ubifsmount ubi0:${bootubivol}; then devtype=ubi; devnum=ubi0; bootfstype=ubifs; distro_bootpart=${bootubivol}; run scan_dev_for_boot; ubifsumount; fi
    ufs_finduuid=part uuid scsi ${bootpart} uuid
    update_to_fit=setenv loadaddr ${addr_fit}; setenv bootfile ${name_fit}
    usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi
    vendor=ti
    

  • and here it is env configuration from prebuilt image which was bundled on SD-card by TI . It differs quite significantly

    => printenv
    addr_fit=0x90000000
    arch=arm
    args_all=setenv optargs earlycon=ns16550a,mmio32,0x02880000 ${mtdparts}
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
    args_ufs=setenv devtype scsi;setenv bootpart 1:1;run ufs_finduuid;setenv bootargs console = ${console} ${optargs}root=PARTUUID=${uuid} rw rootfstype=${scsirootfstype};setenv devtype scsi;setenv bootpart 1:1
    baudrate=115200
    board=j784s4
    board_name=am69-sk
    board_rev=E3
    board_serial=0151
    board_software_revision=01
    boot=mmc
    boot_fdt=try
    boot_fit=1
    boot_rprocs=if test ${dorprocboot} -eq 1 && test ${boot} = mmc; then rproc init;run boot_rprocs_mmc;fi;
    boot_rprocs_mmc=env set rproc_id;env set rproc_fw;env set secure_suffix;if test ${boot_fit} -eq 1; then env set secure_suffix -sec;fi;for i in ${rproc_fw_binaries}; do if test -z "${rproc_id}" ; then env set rproc_id $i;else env set rproc_fw $i${secure_suffix};run rproc_load_and_boot_one;env set rproc_id;env set rproc_fw;fi;done
    bootcmd=run findfdt; run envboot; run init_${boot}; run main_cpsw0_qsgmii_phyinit; run boot_rprocs; if test ${boot_fit} -eq 1; then run get_fit_${boot}; run get_overlaystring; run run_fit; else; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern; fi;
    bootdelay=2
    bootdir=/boot
    bootenvfile=uEnv.txt
    bootm_size=0x10000000
    bootpart=1:2
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    console=ttyS2,115200n8
    cpu=armv8
    default_device_tree=k3-j784s4-evm.dtb
    dfu_alt_info_emmc=rawemmc raw 0 0x800000 mmcpart 1;rootfs part 0 1 mmcpart 0;tiboot3.bin.raw raw 0x0 0x400 mmcpart 1;tispl.bin.raw raw 0x400 0x1000 mmcpart 1;u-boot.img.raw raw 0x1400 0x2000 mmcpart 1;u-env.raw raw 0x3400 0x100 mmcpart 1;sysfw.itb.raw raw 0x3600 0x800 mmcpart 1
    dfu_alt_info_mmc=boot part 1 1;rootfs part 1 2;tiboot3.bin fat 1 1;tispl.bin fat 1 1;u-boot.img fat 1 1;uEnv.txt fat 1 1;sysfw.itb fat 1 1
    dfu_alt_info_ospi=tiboot3.bin raw 0x0 0x080000;tispl.bin raw 0x080000 0x200000;u-boot.img raw 0x280000 0x400000;u-boot-env raw 0x680000 0x020000;sysfw.itb raw 0x6c0000 0x100000;rootfs raw 0x800000 0x3800000
    dfu_alt_info_ram=tispl.bin ram 0x80080000 0x200000;u-boot.img ram 0x81000000 0x400000
    do_main_cpsw0_qsgmii_phyinit=1
    dorprocboot=0
    dtboaddr=0x89000000
    envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootscript; then run bootscript;else if run loadbootenv; then echo Loaded env from ${bootenvfile};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;fi;fi;
    ethaddr=08:04:b4:2e:8f:2f
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=fdeae070
    fdtoverlay_addr_r=0x80200000
    findfdt=setenv name_fdt ${default_device_tree};if test $board_name = am69-sk; then setenv name_fdt k3-am69-sk.dtb; fi;if test $board_name = j784s4; then setenv name_fdt k3-j784s4-evm.dtb; fi;setenv fdtfile ${name_fdt}
    finduuid=part uuid ${boot} ${bootpart} uuid
    get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}
    get_fdt_ufs=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    get_fit_mmc=load mmc ${bootpart} ${addr_fit} ${bootdir}/${name_fit}
    get_kern_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
    get_kern_ufs=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
    get_overlay_mmc=fdt address ${fdtaddr};fdt resize 0x100000;for overlay in $name_overlays;do;load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && fdt apply ${dtboaddr};done;
    get_overlay_ufs=fdt address ${fdtaddr};fdt resize 0x100000;for overlay in $name_overlays;do;load scsi ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && fdt apply ${dtboaddr};done;
    get_overlaystring=for overlay in $name_overlays;do;setenv overlaystring ${overlaystring}'#'${overlay};done;
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
    init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;gpio clear gpio@22_16
    init_mmc=run args_all args_mmc
    init_ufs=ufs init; scsi scan; run args_ufs
    kernel_addr_r=0x82000000
    loadaddr=0x82000000
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
    loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
    loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
    main_cpsw0_qsgmii_phyinit=if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1 && test ${dorprocboot} -eq 1 && test ${boot} = mmc; then run init_main_cpsw0_qsgmii_phy; run toggle_mux2_ethfw;fi;
    mmcboot=mmc dev ${mmcdev}; devnum=${mmcdev}; devtype=mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then run args_mmc; if test ${boot_fit} -eq 1; then run run_fit; else run mmcloados;fi;fi;fi;
    mmcdev=1
    mmcloados=if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
    mmcrootfstype=ext4 rootwait
    mtdids=nor0=47040000.spi.0,nor0=47034000.hyperbus
    mtdparts=mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),256k(ospi.env.backup),57088k@8m(ospi.rootfs),256k(ospi.phypattern);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),-@8m(hbmc.rootfs)
    name_fit=fitImage
    name_kern=Image
    partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
    pxefile_addr_r=0x80100000
    ramdisk_addr_r=0x88080000
    rd_spec=-
    rdaddr=0x88080000
    rproc_fw_binaries=2 /lib/firmware/j784s4-main-r5f0_0-fw 3 /lib/firmware/j784s4-main-r5f0_1-fw 4 /lib/firmware/j784s4-main-r5f1_0-fw 5 /lib/firmware/j784s4-main-r5f1_1-fw 6 /lib/firmware/j784s4-main-r5f2_0-fw 7 /lib/firmware/j784s4-main-r5f2_1-fw 8 /lib/firmware/j784s4-c71_0-fw 9 /lib/firmware/j784s4-c71_1-fw 10 /lib/firmware/j784s4-c71_2-fw 11 /lib/firmware/j784s4-c71_3-fw
    rproc_load_and_boot_one=if load mmc ${bootpart} $loadaddr ${rproc_fw}; then if rproc load ${rproc_id} ${loadaddr} ${filesize}; then rproc start ${rproc_id};fi;fi
    run_fit=bootm ${addr_fit}#${fdtfile}${overlaystring}
    run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
    scriptaddr=0x80000000
    scsirootfstype=ext4 rootwait
    serial#=0000000000000151
    soc=k3
    stderr=serial@2880000
    stdin=serial@2880000
    stdout=serial@2880000
    toggle_mux2_ethfw=gpio set gpio@22_13; gpio set gpio@22_14;gpio set gpio@22_15
    ufs_finduuid=part uuid scsi ${bootpart} uuid
    update_to_fit=setenv loadaddr ${addr_fit}; setenv bootfile ${name_fit}
    vendor=ti
    
    Environment size: 6518/131067 bytes
    

  • Hi Marcin,

    Could you try replacing tiboot3.bin with tiboot3-j784s4-hs-fs-evm.bin by renaming tiboot3-j784s4-hs-fs-evm.bin to tiboot3.bin?

    Thank you,

    Fabiana

  • I already did it as I mentioned here "I have HS-FS board so I placed on BOOT partition of the SD card the tiboot3-j784s4-hs-fs-evm.bin  and tiboot3.bin which is linked with hs-fs bin " so basically I;ve took  tiboot3-j784s4-hs-fs-evm.bin  copied it and renamed the copy to tiboot3.bin, both files are placed on SD card as it was on SD card delivered with board. Means it is not a solution here 

  • I've added `#define CONFIG_MMC_TRACE` to the top of j784s4_evm.h,

    I see data which confirms information mentioned above 

    Trying to boot from MMC2
    1
       - 0 'mmc@4f80000'
       - 1 'mmc@4fb0000'
       - found
    size=80, ptr=144, limit=140000: 81ec00c4
    size=4, ptr=148, limit=140000: 81ec0144
    

    It could be helpful 

    gpio_request_tail: Node 'mmc@4fb0000', property 'cd-gpios', failed to request GP                                                                                                               IO index 0: -2
    ofnode_read_u32_index: vmmc-supply: x (48)
    ofnode_read_u32_index: vqmmc-supply: x (49)
    clock is disabled (0Hz)
    clock is enabled (400000Hz)
    CMD_SEND:0
                    ARG                      0x00000000
                    MMC_RSP_NONE
    CMD_SEND:8
                    ARG                      0x000001aa
                    MMC_RSP_R1,5,6,7         0x000001aa
    CMD_SEND:55
                    ARG                      0x00000000
                    MMC_RSP_R1,5,6,7         0x00000120
    CMD_SEND:41
                    ARG                      0x40300000
                    MMC_RSP_R3,4             0x40ff8000
    CMD_SEND:55
                    ARG                      0x00000000
                    MMC_RSP_R1,5,6,7         0x00000120
    CMD_SEND:41
                    ARG                      0x40300000
                    MMC_RSP_R3,4             0xc0ff8000
    CMD_SEND:2
                    ARG                      0x00000000
                    MMC_RSP_R2               0x03534453
                                             0x4c333247
                                             0x80523dcc
                                             0xd9016700
    
                                            DUMPING DATA
                                            000 - 03 53 44 53
                                            004 - 4c 33 32 47
                                            008 - 80 52 3d cc
                                            012 - d9 01 67 00
    CMD_SEND:3
                    ARG                      0x00000000
                    MMC_RSP_R1,5,6,7         0xaaaa0520
    CMD_SEND:9
                    ARG                      0xaaaa0000
                    MMC_RSP_R2               0x400e0032
                                             0x5b590000
                                             0xedc87f80
                                             0x0a404000
    
                                            DUMPING DATA
                                            000 - 40 0e 00 32
                                            004 - 5b 59 00 00
                                            008 - ed c8 7f 80
                                            012 - 0a 40 40 00
    CMD_SEND:7
                    ARG                      0xaaaa0000
                    MMC_RSP_R1,5,6,7         0x00000700
    CMD_SEND:55
                    ARG                      0xaaaa0000
                    MMC_RSP_R1,5,6,7         0x00000920
    CMD_SEND:51
                    ARG                      0x00000000
                    MMC_RSP_R1,5,6,7         0x00000920
    CMD_SEND:6
                    ARG                      0x00fffff1
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:55
                    ARG                      0xaaaa0000
                    MMC_RSP_R1,5,6,7         0x00000920
    CMD_SEND:6
                    ARG                      0x00000002
                    MMC_RSP_R1,5,6,7         0x00000920
    CMD_SEND:6
                    ARG                      0x80fffff1
                    MMC_RSP_R1,5,6,7         0x00000900
    clock is enabled (50000000Hz)
    spl: mmc boot mode: fs
    blk_find_device: uclass_id=67, devnum=1: mmc@4f80000.blk, 67, 0
    blk_find_device: uclass_id=67, devnum=1: mmc@4fb0000.blk, 67, 1
    CMD_SEND:16
                    ARG                      0x00000200
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:17
                    ARG                      0x00000000
                    MMC_RSP_R1,5,6,7         0x00000900
    blk_find_device: uclass_id=67, devnum=1: mmc@4f80000.blk, 67, 0
    blk_find_device: uclass_id=67, devnum=1: mmc@4fb0000.blk, 67, 1
    CMD_SEND:16
                    ARG                      0x00000200
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:17
                    ARG                      0x00000000
                    MMC_RSP_R1,5,6,7         0x00000900
    blk_find_device: uclass_id=67, devnum=1: mmc@4f80000.blk, 67, 0
    blk_find_device: uclass_id=67, devnum=1: mmc@4fb0000.blk, 67, 1
    CMD_SEND:16
                    ARG                      0x00000200
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:17
                    ARG                      0x00000000
                    MMC_RSP_R1,5,6,7         0x00000900
    blk_find_device: uclass_id=67, devnum=1: mmc@4f80000.blk, 67, 0
    blk_find_device: uclass_id=67, devnum=1: mmc@4fb0000.blk, 67, 1
    CMD_SEND:16
                    ARG                      0x00000200
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:17
                    ARG                      0x00000800
                    MMC_RSP_R1,5,6,7         0x00000900
    size=4140, ptr=5380, limit=140000: aligned to 81ec1240
    size=200, ptr=5580, limit=140000: aligned to 81ec5380
    blk_find_device: uclass_id=67, devnum=1: mmc@4f80000.blk, 67, 0
    blk_find_device: uclass_id=67, devnum=1: mmc@4fb0000.blk, 67, 1
    CMD_SEND:16
                    ARG                      0x00000200
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:17
                    ARG                      0x00000800
                    MMC_RSP_R1,5,6,7         0x00000900
    size=c00, ptr=6180, limit=140000: aligned to 81ec5580
    FAT16, fat_sect: 4, fatlength: 256
    Rootdir begins at cluster: 0, sector: 516, offset: 40800
    Data begins at: 540
    Sector size: 512, cluster size: 4
    FAT read(sect=516), clust_size=4, read_size=4
    blk_find_device: uclass_id=67, devnum=1: mmc@4f80000.blk, 67, 0
    blk_find_device: uclass_id=67, devnum=1: mmc@4fb0000.blk, 67, 1
    CMD_SEND:16
                    ARG                      0x00000200
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:18
                    ARG                      0x00000a04
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:12
                    ARG                      0x00000000
                    MMC_RSP_R1b              0x00000b00
    reading tispl.bin at pos u
    Filesize: u bytes
    u bytes
    gc - clustnum: 709, startsect: 3376
    blk_find_device: uclass_id=67, devnum=1: mmc@4f80000.blk, 67, 0
    blk_find_device: uclass_id=67, devnum=1: mmc@4fb0000.blk, 67, 1
    CMD_SEND:16
                    ARG                      0x00000200
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:17
                    ARG                      0x00001530
                    MMC_RSP_R1,5,6,7         0x00000900
    Found FIT
    size=10c4c0, ptr=112640, limit=140000: aligned to 81ec6180
    size=4140, ptr=116780, limit=140000: aligned to 81fd2640
    size=200, ptr=116980, limit=140000: aligned to 81fd6780
    blk_find_device: uclass_id=67, devnum=1: mmc@4f80000.blk, 67, 0
    blk_find_device: uclass_id=67, devnum=1: mmc@4fb0000.blk, 67, 1
    CMD_SEND:16
                    ARG                      0x00000200
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:17
                    ARG                      0x00000800
                    MMC_RSP_R1,5,6,7         0x00000900
    size=c00, ptr=117580, limit=140000: aligned to 81fd6980
    FAT16, fat_sect: 4, fatlength: 256
    Rootdir begins at cluster: 0, sector: 516, offset: 40800
    Data begins at: 540
    Sector size: 512, cluster size: 4
    FAT read(sect=516), clust_size=4, read_size=4
    blk_find_device: uclass_id=67, devnum=1: mmc@4f80000.blk, 67, 0
    blk_find_device: uclass_id=67, devnum=1: mmc@4fb0000.blk, 67, 1
    CMD_SEND:16
                    ARG                      0x00000200
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:18
                    ARG                      0x00000a04
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:12
                    ARG                      0x00000000
                    MMC_RSP_R1b              0x00000b00
    reading tispl.bin at pos u
    Filesize: u bytes
    u bytes
    FAT16: entry: 0x000002c5 = 709, offset: 0x02c5 = 709
    blk_find_device: uclass_id=67, devnum=1: mmc@4f80000.blk, 67, 0
    blk_find_device: uclass_id=67, devnum=1: mmc@4fb0000.blk, 67, 1
    CMD_SEND:16
                    ARG                      0x00000200
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:18
                    ARG                      0x00000804
                    MMC_RSP_R1,5,6,7         0x00000900
    CMD_SEND:12
                    ARG                      0x00000000
                    MMC_RSP_R1b              0x00000b00
    FAT16: ret: 0x000002c6, entry: 0x000002c5, offset: 0x

    it hanged in tispl

    power_domain_get_by_index(dev=41c67c14, power_domain=81fd77ac)
    fdtdec_get_int: #power-domain-cells: x (2)
    fdtdec_get_int: #power-domain-cells: x (2)
    power_domain_get_by_index: dev_read_phandle_with_args failed: -2
    k3_arm64 a72@0: warning: power_domain_get_cluster() failed: -2
    power_domain_get_by_index(dev=41c67c14, power_domain=81fd77b8)
    fdtdec_get_int: #power-domain-cells: x (2)
    fdtdec_get_int: #power-domain-cells: x (2)
    Looking for power-controller
    Looking for power-controller
       - result for power-controller: power-controller (ret=0)
       - result for power-controller: power-controller (ret=0)
    power_domain_get_by_index(dev=41c67c14, power_domain=81fd77c4)
    fdtdec_get_int: #power-domain-cells: x (2)
    Looking for power-controller
    Looking for power-controller
       - result for power-controller: power-controller (ret=0)
       - result for power-controller: power-controller (ret=0)
    fdtdec_get_int: #clock-cells: x (2)
    Looking for clock-controller
    Looking for clock-controller
       - result for clock-controller: clock-controller (ret=0)
       - result for clock-controller: clock-controller (ret=0)
    ti_clk_of_xlate(clk=81fd77f0, args_count=2 [0]=61 [1]=0)
    clk_request(dev=41c66220, clk=81fd77f0)
    fdtdec_get_int: #reset-cells: x (2)
    Looking for reset-controller
    Looking for reset-controller
       - result for reset-controller: reset-controller (ret=0)
       - result for reset-controller: reset-controller (ret=0)
    size=4, ptr=117824, limit=140000: 81fd7820
    clk_set_defaults(reset-controller)
    clk_set_default_parents: could not read assigned-clock-parents for 41c66288
    ofnode_read_prop: assigned-clock-rates: <not found>
    ti_sci_reset_probe(dev=41c66288)
    ti_sci_reset_of_xlate(rst=81fd77d0, args_count=2)
    k3_arm64 a72@0: ti_sci_proc_of_to_priv
    ofnode_read_u32_index: ti,sci: x (14)
    ofnode_read_u32_index: ti,sci-proc-id: x (32)
    ofnode_read_u32_index: ti,sci-host-id: x (10)
    OF: ** translation for device a72@0 **
    OF: bus is default (na=2, ns=2) on
    OF: translating address: 00000000 0000a900
    OF: reached root node
    k3_arm64 a72@0: Remoteproc successfully probed
    k3_arm64 a72@0: k3_arm64_init
    k3_arm64 a72@0: k3_arm64_init: rproc successfully initialized
    env_init: Environment nowhere init done (ret=0)
    Loading Environment from nowhere... OK
    1
       - 0 'sysctrler'
       - 1 'a72@0'
       - found
    rproc_load: Loading to 'a72@0' from address 0x00000000 size of 1879048192 bytes
    k3_arm64 a72@0: k3_arm64_load addr = 0x70000000, size = 0x200
    ti_sci_proc_request: proc_id = 32
    mbox_send(chan=41c67e80, data=41c67ea4)
    k3_sec_proxy_send(chan=41c67e80, data=41c67ea4)
    k3_sec_proxy_send: Message successfully sent on thread 8
    mbox_recv(chan=41c67e8c, data=41c67ea4, timeout_us=10000000)
    k3_sec_proxy_recv(chan=41c67e8c, data=41c67ea4)
    k3_sec_proxy_recv: Message successfully received from thread 6
    power_domain_on(power_domain=81fd77c4)
    clk_get_rate(clk=81fd77f0)
    clk_get_rate(clk=41c6d4c0)
    clk_get_parent_rate(clk=41c6d4c0)
    clk_get_parent(clk=41c6d4c0)
    clk_get_rate(clk=41c6c080)
    clk_get_parent_rate(clk=41c6c080)
    clk_get_parent(clk=41c6c080)
    k3_arm64 a72@0: GTC RATE= 200000000
    ti_sci_proc_set_config: proc_id = 32, boot_vector = 0xx, cfg_set = 0x0, cfg_clr                                                                                                                = 0x70000000
    mbox_send(chan=41c67e80, data=41c67ea4)
    k3_sec_proxy_send(chan=41c67e80, data=41c67ea4)
    k3_sec_proxy_send: Message successfully sent on thread 8
    mbox_recv(chan=41c67e8c, data=41c67ea4, timeout_us=10000000)
    k3_sec_proxy_recv(chan=41c67e8c, data=41c67ea4)
    k3_sec_proxy_recv: Message successfully received from thread 6
    jump_to_image_no_args: Authenticating image: addr=70000000, size=45964, os=arm-t                                                                                                               rusted-firmware
    mbox_send(chan=41c67e80, data=41c67ea4)
    k3_sec_proxy_send(chan=41c67e80, data=41c67ea4)
    k3_sec_proxy_send: Message successfully sent on thread 8
    mbox_recv(chan=41c67e8c, data=41c67ea4, timeout_us=10000000)
    k3_sec_proxy_recv(chan=41c67e8c, data=41c67ea4)
    k3_sec_proxy_recv: Message successfully received from thread 6
    Authentication passed
    jump_to_image_no_args: Authenticating image: addr=9e800000, size=455684, os=tee
    mbox_send(chan=41c67e80, data=41c67ea4)
    k3_sec_proxy_send(chan=41c67e80, data=41c67ea4)
    k3_sec_proxy_send: Message successfully sent on thread 8
    mbox_recv(chan=41c67e8c, data=41c67ea4, timeout_us=10000000)
    k3_sec_proxy_recv(chan=41c67e8c, data=41c67ea4)
    k3_sec_proxy_recv: Message successfully received from thread 6
    Authentication passed
    Loading phdr 0 to 0x41010000 (2584 bytes)
    Loading phdr 1 to 0xa0100000 (140 bytes)
    Loading phdr 2 to 0xa0100400 (0 bytes)
    Loading phdr 3 to 0xa0400000 (0 bytes)
    Loading phdr 4 to 0xa05f0700 (21424 bytes)
    Loading phdr 5 to 0xa05f5ab0 (0 bytes)
    Loading phdr 6 to 0xa05f8000 (0 bytes)
    Loading phdr 7 to 0xa0647360 (117760 bytes)
    Loading phdr 8 to 0xa0663f80 (0 bytes)
    Loading phdr 9 to 0xa0673800 (52528 bytes)
    Loading phdr 10 to 0xa0680530 (0 bytes)
    Loading phdr 11 to 0xa0688580 (16072 bytes)
    Loading phdr 12 to 0xa0ffac00 (0 bytes)
    Loading phdr 13 to 0xa0ffc000 (0 bytes)
    jump_to_image_no_args: jumping to address 41010000
    Starting ATF on ARM64 core...
    
    1
       - 0 'sysctrler'
       - 1 'a72@0'
       - found
    _rproc_ops_wrapper: Starting a72@0...
    k3_arm64 a72@0: k3_arm64_start
    power_domain_on(power_domain=81fd77b8)
    ti_sci_proc_release: proc_id = 32
    mbox_send(chan=41c67e80, data=41c67ea4)
    k3_sec_proxy_send(chan=41c67e80, data=41c67ea4)
    k3_sec_proxy_send: Message successfully sent on thread 8
    mbox_recv(chan=41c67e8c, data=41c67ea4, timeout_us=10000000)
    k3_sec_proxy_recv(chan=41c67e8c, data=41c67ea4)
    k3_sec_proxy_recv: Message successfully received from thread 6
    NOTICE:  BL31: v2.9(release):v2.9.0-614-gd7a7135d32-dirty
    NOTICE:  BL31: Built : 09:34:15, Aug 24 2023
    
    U-Boot SPL 2023.04-dirty (Feb 05 2024 - 09:13:15 +0100)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.2--v09.01.02 (Kool Koala)')
    TLB table from ffff0000 to ffffa000
    addr=x level=0
    addr=x level=0
    idx=x PTE  at level -65536: x
    Checking if pte fits for virt=x size=x blocksize=x
    Setting PTE ffff0000 to block virt=x
    addr=x level=1073741824
    addr=x level=1073741824
    idx=x PTE 1 at level -65528: x
    Checking if pte fits for virt=x size=x blocksize=x
    Setting PTE ffff0008 to block virt=x
    addr=x level=
    

  • As you can see k3-am69-sk.dtb is available on 2 partition 

    ls mmc 1:2
    <DIR>       4096 .
    <DIR>       4096 ..
    <DIR>      16384 lost+found
    <DIR>       4096 bin
    <DIR>       4096 boot
    <DIR>       4096 dev
    <DIR>       4096 etc
    <DIR>       4096 home
    <DIR>       4096 include
    <SYM>         20 init
    <DIR>       4096 lib
    <SYM>         19 linuxrc
    <DIR>       4096 media
    <DIR>       4096 mnt
    <DIR>       4096 opt
    <DIR>       4096 proc
    <DIR>       4096 run
    <DIR>       4096 sbin
    <DIR>       4096 sys
    <DIR>       4096 tmp
    <DIR>       4096 usr
    <DIR>       4096 var
    <DIR>       4096 .cache
    <DIR>       4096 data
    => ls mmc 1:2 boot
    <DIR>       4096 .
    <DIR>       4096 ..
    <SYM>         26 Image
            19079680 Image-5.10.162-g76b3e88d56
    <SYM>         29 fitImage
             8307211 fitImage-5.10.162-g76b3e88d56
                3639 k3-am69-sk-csi2-ov5640.dtbo
               13811 k3-am69-sk-ddr-mem-carveout.dtbo
                3596 k3-am69-sk-fpdlink-fusion.dtbo
                3149 k3-am69-sk-rpi-cam-imx219.dtbo
                1936 k3-am69-sk-rpi-hdr-ehrpwm.dtbo
               90726 k3-am69-sk.dtb
                2471 k3-j721e-fpdlink-imx390-cm-0-0.dtbo
                2471 k3-j721e-fpdlink-imx390-cm-0-1.dtbo
                2471 k3-j721e-fpdlink-imx390-cm-0-2.dtbo
                2471 k3-j721e-fpdlink-imx390-cm-0-3.dtbo
                2471 k3-j721e-fpdlink-imx390-cm-1-0.dtbo
                2471 k3-j721e-fpdlink-imx390-cm-1-1.dtbo
                2471 k3-j721e-fpdlink-imx390-cm-1-2.dtbo
                2471 k3-j721e-fpdlink-imx390-cm-1-3.dtbo
                2471 k3-j721e-fpdlink-imx390-rcm-0-0.dtbo
                2471 k3-j721e-fpdlink-imx390-rcm-0-1.dtbo
                2471 k3-j721e-fpdlink-imx390-rcm-0-2.dtbo
                2471 k3-j721e-fpdlink-imx390-rcm-0-3.dtbo
                2471 k3-j721e-fpdlink-imx390-rcm-1-0.dtbo
                2471 k3-j721e-fpdlink-imx390-rcm-1-1.dtbo
                2471 k3-j721e-fpdlink-imx390-rcm-1-2.dtbo
                2471 k3-j721e-fpdlink-imx390-rcm-1-3.dtbo
               13306 k3-j784s4-edgeai-apps.dtbo
                1614 k3-j784s4-evm-csi2-ov5640.dtbo
               99385 k3-j784s4-evm.dtb
                3155 k3-j784s4-fpdlink-fusion.dtbo
               14313 k3-j784s4-vision-apps.dtbo 

  • Hi Marcin,

    Are you using SK-AM69 or AM69 EVM?

    Thank you,

    Fabiana

  • SK-AM69, I am using SDK 

    ti-processor-sdk-linux-edgeai-j784s4-evm-09_01_00_06-Linux-x86

  • I've decided to rebuild kernel to be able to access dtb directory, it issue disappeared, but new was shown 

    Working FDT set to 88000000
    11348 bytes read in 5 ms (2.2 MiB/s)
    10290 bytes read in 5 ms (2 MiB/s)
    failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
    ERROR: Did not find a cmdline Flattened Device Tree
    Could not find a valid device tree
    switch to partitions #0, OK
    mmc0(part 0) is current device
    ** No partition table - mmc 0 **
    Couldn't find partition mmc 0:1
    switch to partitions #0, OK
    mmc1 is current device
    Scanning mmc 1:1...
    No EFI system partition
    No EFI system partition
    Failed to persist EFI variables
    BootOrder not defined
    EFI boot manager: Cannot load any image
    starting USB...
    Bus usb@6000000: cdns-usb3-host usb@6000000: Unable to get USB2 phy (ret -61)
    cdns-usb3-host usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
    Register 2000840 NbrPorts 2
    Starting the controller
    USB XHCI 1.00
    scanning bus usb@6000000 for devices... 3 USB Device(s) found
           scanning usb for storage devices... 0 Storage Device(s) found
    
    Device 0: unknown device
    k3-navss-ringacc ringacc@2b800000: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:328
    k3-navss-ringacc ringacc@2b800000: dma-ring-reset-quirk: disabled
    

  • Cased close, important note, it is not enough to compile u-boot. It is mandatory to take default FS and overwrite SD card with it. It solves everything. I think it would be good idea to add this info here https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-am69/09_00_00_06/exports/docs/linux/Foundational_Components/U-Boot/UG-General-Info.html