From this Kernel command line, I think it is booting from eMMC. I want to boot the device using microSD card. Can you please tell me any settings I need to change on the board to boot from microSD card.
Observed few errors and warnings as mentioned below.
The following error observed related to mb1-bct. How I can avoid this?
[ 0.4969 ] Generating coldboot mb1-bct
[ 0.4994 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_cold_boot_bct.cfg --misc tegra234-mb1-bct-misc-p3701-0000_cpp.dtb --device tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.5022 ] MB1-BCT version: 0.10
[ 0.5024 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.5036 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.5040 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.5044 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[ 0.5059 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[ 0.5063 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[ 0.5068 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[ 0.5071 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[ 0.5075 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[ 0.5080 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[ 0.5084 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[ 0.5088 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[ 0.5092 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[ 0.5095 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
[ 0.5466 ] Generating recovery mb1-bct
[ 0.5492 ] tegrabct_v2 --chip 0x23 0 --mb1bct mb1_bct.cfg --misc tegra234-mb1-bct-misc-p3701-0000_cpp.dtb --device tegra234-mb1-bct-device-p3701-0000_cpp.dtb
[ 0.5519 ] MB1-BCT version: 0.10
[ 0.5523 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.5539 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.5550 ] ERROR: carveout /misc/carveout/aux_info@CARVEOUT_UNUSED1/ is not supported
[ 0.5560 ] ERROR: /misc/tsc_controls/tsc_locking_config is not supported
[ 0.5567 ] ERROR: /misc/tsc_controls/tsc_locking_diff_configuration is not supported
[ 0.5574 ] ERROR: /misc/tsc_controls/tsc_locking_ref_frequency_configuration is not supported
[ 0.5579 ] ERROR: /misc/tsc_controls/tsc_locking_control is not supported
[ 0.5583 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_configuration is not supported
[ 0.5588 ] ERROR: /misc/tsc_controls/tsc_locking_fast_adjust_configuration is not supported
[ 0.5593 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_delta_control is not supported
[ 0.5599 ] ERROR: /misc/tsc_controls/tsc_capture_control_ptx is not supported
[ 0.5599 ] ERROR: /misc/tsc_controls/tsc_capture_config_ptx is not supported
[ 0.5599 ] ERROR: /misc/tsc_controls/tsc_stscrsr is not supported
[ 0.5599 ] ERROR: /misc/tsc_controls/tsc_locking_adjust_num_control is not supported
Observed the following message related to Kernel Image. When I built kernel using the link, in step 7 it was mentioned as copy Image to "Linux_for_Tegra/kernel/Image ". So the following message can be ignored?
gzip: /home/user/Orin/Linux_for_Tegra/kernel/Image: not in gzip format
_BASE_KERNEL_VERSION=5.10.120-tegra
I have built minimal rootfs by refering the link , so can I ignore the following warnings?
cp: cannot stat ‘/home/user/Orin/Linux_for_Tegra/rootfs/lib/modules/5.10.120-tegra/kernel/drivers/mtd/mtd.ko’: No such file or directory
warning: cp -f /home/user/Orin/Linux_for_Tegra/rootfs/lib/modules/5.10.120-tegra/kernel/drivers/mtd/mtd.ko /home/user/Orin/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/modules/5.10.120-tegra/kernel/drivers/mtd/mtd.ko
cp: cannot stat ‘/home/user/Orin/Linux_for_Tegra/rootfs/lib/modules/5.10.120-tegra/kernel/drivers/mtd/mtdblock.ko’: No such file or directory
warning: cp -f /home/user/Orin/Linux_for_Tegra/rootfs/lib/modules/5.10.120-tegra/kernel/drivers/mtd/mtdblock.ko /home/user/Orin/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/modules/5.10.120-tegra/kernel/drivers/mtd/mtdblock.ko
cp: cannot stat ‘/home/user/Orin/Linux_for_Tegra/rootfs/lib/modules/5.10.120-tegra/kernel/drivers/mtd/mtd_blkdevs.ko’: No such file or directory
warning: cp -f /home/user/Orin/Linux_for_Tegra/rootfs/lib/modules/5.10.120-tegra/kernel/drivers/mtd/mtd_blkdevs.ko /home/user/Orin/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/modules/5.10.120-tegra/kernel/drivers/mtd/mtd_blkdevs.ko
cp: cannot stat ‘/home/user/Orin/Linux_for_Tegra/rootfs/lib/modules/5.10.120-tegra/kernel/drivers/mtd/devices/qspi_mtd.ko’: No such file or directory
warning: cp -f /home/user/Orin/Linux_for_Tegra/rootfs/lib/modules/5.10.120-tegra/kernel/drivers/mtd/devices/qspi_mtd.ko /home/user/Orin/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/modules/5.10.120-tegra/kernel/drivers/mtd/devices/qspi_mtd.ko
cp: cannot stat ‘/home/user/Orin/Linux_for_Tegra/rootfs/lib/modules/5.10.120-tegra/kernel/drivers/spi/spi-tegra210-qspi.ko’: No such file or directory
warning: cp -f /home/user/Orin/Linux_for_Tegra/rootfs/lib/modules/5.10.120-tegra/kernel/drivers/spi/spi-tegra210-qspi.ko /home/user/Orin/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/modules/5.10.120-tegra/kernel/drivers/spi/spi-tegra210-qspi.ko
cp: cannot stat ‘/home/user/Orin/Linux_for_Tegra/rootfs/usr/lib/modules/5.10.120-tegra/kernel/drivers/net/ethernet/realtek/r8168.ko’: No such file or directory
warning: cp -f /home/user/Orin/Linux_for_Tegra/rootfs/usr/lib/modules/5.10.120-tegra/kernel/drivers/net/ethernet/realtek/r8168.ko /home/user/Orin/Linux_for_Tegra/bootloader/ramdisk_tmp//lib/modules/5.10.120-tegra/kernel/drivers/net/ethernet/realtek/r8168.ko
Finally the script failed with the following exceptions and exited with error. Can you guide how I can overcome the below errors?
saving flash command in /home/user/Orin/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /home/user/Orin/Linux_for_Tegra/bootloader/flash_win.bat
*** Sign and generate flashing ready partition images… ***
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
[ 0.0227 ] tegrasign_v3.py --key None --getmode mode.txt
[ 0.0228 ] Assuming zero filled SBK key
[ 0.0212 ] Parsing partition layout
[ 0.0230 ] tegraparser_v2 --pt flash.xml.tmp
Traceback (most recent call last):
File “/home/user/Orin/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 1401, in tegraflash_update_bpmp_dtb
if bpmp_dtb == None and bpmp_dtb_in_layout == None:
UnboundLocalError: local variable ‘bpmp_dtb’ referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “./tegraflash.py”, line 1383, in
tegraflash_run_commands()
File “./tegraflash.py”, line 1217, in tegraflash_run_commands
interpreter.onecmd(command)
File “/usr/lib/python3.8/cmd.py”, line 217, in onecmd
return func(arg)
File “./tegraflash.py”, line 730, in do_sign
self.chip_inst.tegraflash_sign(exports)
File “/home/user/Orin/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 2594, in tegraflash_sign
self.tegraflash_parse_partitionlayout()
File “/home/user/Orin/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 467, in tegraflash_parse_partitionlayout
self.tegraflash_update_bpmp_dtb()
File “/home/user/Orin/Linux_for_Tegra/bootloader/tegraflash_impl_t234.py”, line 1468, in tegraflash_update_bpmp_dtb
raise tegraflash_exception('Unexpected error in updating: ’ + bpmp_dtb + ’ ’ + str(e))
UnboundLocalError: local variable ‘bpmp_dtb’ referenced before assignment
Error: /home/user/Orin/Linux_for_Tegra/bootloader/signed/flash.idx is not found
Error: failed to relocate images to /home/user/Orin/Linux_for_Tegra/tools/kernel_flash/images
Cleaning up…
user:~/Orin/Linux_for_Tegra$ sudo ./apply_binaries.sh
Using rootfs directory of: /home/user/Orin/Linux_for_Tegra/rootfs
Installing extlinux.conf into /boot/extlinux in target rootfs
/home/user/Orin/Linux_for_Tegra/nv_tegra/nv-apply-debs.sh
Root file system directory is /home/user/Orin/Linux_for_Tegra/rootfs
Copying public debian packages to rootfs
Skipping installation of nvidia-l4t-dgpu-apt-source_35.4.1-20230801124926_arm64.deb …
Skipping installation of nvidia-l4t-dgpu-config_35.4.1-20230801124926_arm64.deb …
Skipping installation of nvidia-l4t-factory-service_35.4.1-20230801124926_arm64.deb …
Start L4T BSP package installation
QEMU binary is not available, looking for QEMU from host system
Found /usr/bin/qemu-aarch64-static
Installing QEMU binary in rootfs
mknod: /home/user/Orin/Linux_for_Tegra/rootfs/dev/random: File exists
user:~/Orin/Linux_for_Tegra
Following are the folders in “Linux_for_Tegra”. Deleting “BSP folder” means which one I need to delete?
I faced the above error at the beginning. After running apply_binaries.sh, didn’t see the above error. I am facing the exceptions from tegraflash_impl_t234.py python script, following is the error screenshot. Complete flash log( Flash_log.zip (5.3 KB)
) attached.
I have tried the following Steps with new BSP folder.
Untared the Jetson_Linux_R35.4.1_aarch64.tbz2 . It created Linux_for_Tegra folder with files and folders inside.
Untared public_sources.tbz2. It created sources inside Linux_for_Tegra folder. Untared kernel_src.tbz2 inside Linux_for_Tegra/source/public. Then followed steps 2 to 4 from the link.
For rootfs build, executed the command mentioned at the link from Linux_for_Tegra/tools/samplefs path.
Copied Linux_for_Tegra/tools/samplefs/sample_fs.tbz2 to Linux_for_Tegra/rootfs/ and extracted using sudo.
Executed step 6 and step 7 mentioned at the link. Not able to do step 5 mentioned in this link as there is no folder modules under Linux_for_Tegra/rootfs/usr/lib/. So skiping step 5 is fine?
Try to create user using the below command mentioned at the link, but got error. This user creation is mandatory?
user:~/Jetson/Linux_for_Tegra$ sudo ./tools/l4t_create_default_user.sh -u nvidia -a
[sudo] password for user:
ERROR: Cannot find the Tegra software license agreement
user:~/Jetson/Linux_for_Tegra$
Ran apply_binaries.sh from Linux_for_Tegra.
Placed the development kit in recovery mode and ran the following flash command.
This time flash almost completed and failed as the microSD card size is not enough. I am yet to receive 64GB microSD card, so will try soon with 64GB card.
Complate flash log( Flash_log_latest.zip (34.7 KB)
) attached.
Can you help on the questions I have asked in Step 5 and Step 6 in the above mentioned steps.
Can you help to understand the layout(partitions for boot, kernel and rootfs) used for flashing.
Note: Down the line I need to customize the devicetree, kernel and rootfs for the custom board, so I have flashed using Linux_for_Tegra\tools/kernel_flash/l4t_initrd_flash.sh instead of sdkmanager.
But it failed at the end with the following error.
writing item=1, 9:0:primary_gpt, 512, 19968, gpt_primary_9_0.bin, 16896, fixed--0, 2e98865fe8738689a4cd97b869b82f2ab77badd6
Error: Could not stat device /dev/nvme0n1 - No such file or directory.
Flash failure
Cleaning up…
I have connected micro-USB to the board and open minicom on ttyACM0. Captured host log( Host_side_log.zip (28.1 KB)
) and device log( devkit_log.zip (24.4 KB)
).
We have purchased Jetson AGX Orin 32GB Dev-Kit Module, please let me know the command which I used to flash NVMe SSD is fine or any changes are required?
bash-5.0#
[ 95.200174] NFS: state manager: check lease failed on NFSv4 server fc00:1:1:0::1 with error 13
[ 100.318403] NFS: state manager: check lease failed on NFSv4 server fc00:1:1:0::1 with error 13
Please remove the Ethernet cable on the device in case it’s plugged in.
Or find another host PC for testing.