Build the kernel Orin

Following the steps in document We have successfully compiled the kernel and replaced the image and device tree.
But when i want to flash into the USB device ,it failed.

In the folders generating from SDKmanager,I flashed successfully using the same command

Following the steps in document We have successfully compiled the kernel and replaced the image and device tree.
But when i want to flash into the USB device ,it failed.

In the folders generating from SDKmanager,I flashed successfully using the same command

Hi,
You need to use initrd to flash to external storage. Please refer to this README:

Linux_for_Tegra\tools\kernel_flash\README_initrd_flash.txt

I have read this documentation and have successfully flashed to the USB device using the workflow11 command, under the folder generated by SDKmanager. I have followed the official documentation and link above to download the source code, compiled it successfully and flashed it to the USB but encountered the problem as shown in the picture. Please tell me how to solve this problem.

Hi,
Do you use Orin developer kit or your own custom board?

It is Orin developer kit

Hi,
So you insert a USB disk to a type-A port on Orin developer kit, execute initrd to flash rootfs to the disk, and it gets stuck in middle of flashing. Is it correct?

I insert the USB to the pc. I execute initrd to flash rootfs to the disk,
I use the command:sudo BOARDID=3701 BOARDSKU=0000 FAB=TS4 BOARDREV=A.0 ./tools/kernel_flash/l4t_initrd_flash.sh -c tools/kernel_flash/flash_l4t_external.xml -S 20GiB --external-device sda1 --direct sdb jetson-agx-orin-devkit external
it gets stuck in middle of flashing.

Hi,
Your setup looks not right. Should insert one USB disk to Orin developer kit. Please try to flash through SDKManager. USB is an option for storage in SDKManager.

We used the same connection method and command and ran it in the folder generated by SDKmanager and it has been successfully flashed into the USB.But after we successfully compiled the folder swipe ourselves, we encountered the problem in the image above.
I copied the signed file which is generated by SDKmanager to my own compiled folder, so that it can be successfully flashed into the USB. How did the files in this folder get generated?


[/quote]

Hi,

I am not sure why this command needs to be done by you. Could you try to run

“sudo ./flash.sh --no-flash xxxx mmcblk0p1” Replace xxx to your board config and it shall generate those files.

I tried, but still not exist.

How about this?

Hi,
The correct step is to copy self-built kernel/dtb to the folders generated by SDKManager. It may miss certain files if you don’t base on the folders generated by SDKmanager.

It still have nothing in the folder jetson_linux_35_1/document/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/bootloader/signed

It still have nothing in the folder jetson_linux_35_1/document/Jetson_Linux_R35.1.0_aarch64/Linux_for_Tegra/bootloader/signed

Hi,
Please base on this folder:

nvidia/nvidia_sdk/JetPack_5.0.2_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/

Copy your self-built kernel image/dtb/dtbo to the folder so that you won’t miss any files.

In fact I would like to be able to do the whole step myself with commands, without installing SDKmanager. But these files have been missing. I’m following the steps in the documentation, so I’d like to know perhaps which command produced these files

Hi,
The files are not open source, so you cannot build it. Please download a complete release as the base and apply your self-built kernel files.

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