Request debug RTCPU image for JP5.1.1

When debugging a MIPI camera for Orin NX, I encountered an issue.
It seems that the rtcpu on Orin NX has entered a pseudo-deadlock state, and only a power cycle can restore the Jetson board.
Could you provide a debug version of rtcpu and the flashing method? I would like to examine the rtcpu logs to assist in resolving the problem.

Did you run argus APP or v4l2-ctl.
Suppose using v4l2-ctl shouldn’t have deadlock problem.

hello xumm_td,

here’s JP-5.1.1 debug version camera firmware, Topic260583_Jul21_debug.7z (201.0 KB)
please also refer to Topic 226574 for sample commands to apply debug firmware with flash script.

however, since it’s Orin NX, it cannot use flash script to perform image flashing.
here’re steps to replace the camera debug firmware.

  1. please check you’ve ran a full flash to create system image before.
    it shall looks like below…
    $ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1 -c tools/kernel_flash/flash_l4t_external.xml -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" -p --showlogs --network usb0 jetson-orin-nx-devkit-16gb internal

  2. there’ll be image/ folder created once you’ve done above commands, $OUT/Linux_for_Tegra/tools/kernel_flash/images/
    and, you’ll see the default camera firmware located at… $OUT/Linux_for_Tegra/tools/kernel_flash/images/internal/camera-rtcpu-t234-rce_sigheader.img.encrypt

  3. Since it’s sign/encrypt binary file, let’s copy that debug camera firmware to $OUT/Linux_for_Tegra/bootloader folder, and perform sign/encrypt for this binary file locally.
    Please execute below command to generate signed camera-rtcpu-t234-rce.img
    $ sudo ./flash.sh --no-flash -r -k A_rce-fw jetson-agx-orin-devkit mmcblk0p1

  4. Copy this new created sign/encrypt file to… $OUT/Linux_for_Tegra/tools/kernel_flash/images/internal/
    You may execute below command to perform a partition update to flash camera firmware.
    $ sudo ./tools/kernel_flash/l4t_initrd_flash.sh -k A_rce-fw --flash-only --showlogs

I deeply appreciate your prompt response~ @JerryChang

@JerryChang I’m really sorry that I only had the opportunity to test this rtcpu today and attempt to troubleshoot my issue.
However, I noticed that when using the debug version of rtcpu you provided, I didn’t see any logs in dmesg while performing image preview.

there might be something wrong for updating your binary file.
please dig into flash messages, please examine A_rce-fw is actually updated.

Hi @JerryChang
Please help me check the upgrade logs. As far as I can see, the upgrade has been successful.
flash_1-1_0_20230810-230935.log (12.2 KB)

ya, that seems the partition flash has done correctly.
please refer to step-2 and 3, did you replace debug version camera firmware to re-generate camera-rtcpu-t234-rce_sigheader.img.encrypt correctly?

I double-checked again, and I followed your instructions strictly. Do I need to replace “jetson-agx-orin-devkit” in the following command?
$ sudo ./flash.sh --no-flash -r -k A_rce-fw jetson-agx-orin-devkit mmcblk0p1
camera-rtcpu-t234-rce_sigheader.img.encrypt.7z (201.4 KB)

no, it’s the trick to sign/encrypt binary file with flash script.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.