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.

SK-AM62P-LP: Linux Boot Failure in Falcon Mode with Display Sharing on AM62P-LP (OSPI NOR + SD Card Rootfs)

Part Number: SK-AM62P-LP
Other Parts Discussed in Thread: UNIFLASH

Tool/software:

Hello,

I'm facing an issue with Linux failing to boot in Falcon mode on the AM62P-LP (SK-AM62P-LP) using the TI Processor SDK Linux (version 11.00.09.04). I'm using OSPI NOR and display share application, with the root filesystem on an SD card (tisdk-display-cluster-image-am62pxx-evm-11.00.09.04.rootfs.wic). The display share application shows telltale output, but Linux crashes during tidss_probe. Below are my setup, steps, and logs.

Setup:

  • Platform: SK-AM62P-LP
  • SDK Version: ti-processor-sdk-linux-am62pxx-evm-11.00.09.04
  • MCU+ SDK: mcu_plus_sdk_am62px_11_00_00_16
  • Boot Mode: OSPI NOR (SBL and display share app), SD card (rootfs)
  • Root Filesystem: tisdk-display-cluster-image-am62pxx-evm-11.00.09.04.rootfs.wic on SD card
  • Mode: Falcon Mode (FALCON_MODE=1) for boot time optimization

Steps Performed:

  1. Kernel Configuration and Build:
    • Navigated to the kernel source directory (ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/board-support/ti-linux-kernel-6.12.17+git-ti/):
      • make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- defconfig ti_arm64_prune.config ti_early_display.config
    • Modified the kernel command line in the configuration to:

      • CONFIG_CMDLINE="console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait"
    • Modified k3-am62p5-sk.dts
      • Added bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait";
    • Built kernel:

      • make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- Image -j16
    • Copied Image from arch/arm64/boot/ to ti-processor-sdk-linux-am62pxx-evm-11.00.09.04/board-support/prebuilt-images/am62pxx-evm-display-cluster/.

  2. Display Share Application Build:

    • In mcu_plus_sdk_am62px_11_00_00_16/tools/boot/linuxAppimageGen/:
      • make -s BOARD=am62px-sk clean
        make -s BOARD=am62px-sk all FALCON_MODE=1
    • Flashed display share app

      • --file=../../examples/drivers/dss/dss_display_share/am62px-sk/wkup-r5fss0-0_freertos/ti-arm-clang/dss_display_share.release.appimage.hs_fs --operation=flash --flash-offset=0x80000
    • Used default_sbl_ospi_linux_falcon_hs_fs.cfg

  3. SBL Flashing:
    • Ran: make DEVICE=am62px -sj
    • Flashed using the command 

      • python uart_uniflash.py -p /dev/ttyUSB0 --cfg=sbl_prebuilt/am62px-sk/default_sbl_ospi_linux_falcon_hs_fs.cfg
  4. SD Card Setup:
    • Flashed SD card with:
      • tisdk-display-cluster-image-am62pxx-evm-11.00.09.04.rootfs.wic

Issue:

Booting with OSPI NOR (SBL and display share app) and SD card (rootfs) in Falcon mode shows the display share telltale, but Linux fails to boot, crashing with:

[    1.326984] Call trace:
[    1.329420]  device_link_put_kref+0x10/0xd4
[    1.333592]  device_link_del+0x2c/0x40
[    1.337330]  tidss_detach_pm_domains.part.0+0x44/0x9c
[    1.342372]  tidss_probe+0x15c/0x358
[    1.345937]  platform_probe+0x64/0xc0
[    1.349593]  really_probe+0xb8/0x294
[    1.353158]  __driver_probe_device+0x74/0x124
[    1.357505]  driver_probe_device+0x3c/0x110
[    1.361678]  __device_attach_driver+0xac/0x124
[    1.366111]  bus_for_each_drv+0x80/0xdc
[    1.369936]  __device_attach+0x9c/0x188
[    1.373762]  device_initial_probe+0x10/0x18
[    1.377934]  bus_probe_device+0xa0/0xa4
[    1.381759]  deferred_probe_work_func+0x80/0xb4
[    1.386279]  process_one_work+0x144/0x280
[    1.390281]  worker_thread+0x2c8/0x3d0
[    1.394020]  kthread+0x108/0x10c
[    1.397240]  ret_from_fork+0x10/0x20
[    1.400810] Code: a9be7bfd 910003fd a90153f3 aa0003f3 (b9431c01)
[    1.406887] ---[ end trace 0000000000000000 ]---