please apply below patch to your l4t_bup_gen.func under Linux_for_Tegra/bootloader.
--- a/t186/BUP/l4t_bup_gen.func
+++ b/t186/BUP/l4t_bup_gen.func
@@ -1,4 +1,4 @@
-# Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved.
+# Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
@@ -147,9 +147,6 @@
'part_name=RP4; part_type=xusb; part_spec=${_common_spec}; part_file=$(ls rp4.blob 2> /dev/null || echo "")'
)
- # For Jetson TX1, must use bl_update_payload to update bootloader.
- local partitions_jetson_tx1=()
-
# For Jetson Nano QSPI SD, we can use all payloads to update corresponding partitions.
local _nano_qspi_sd="jetson-nano-devkit-mmcblk0p1"
local partitions_jetson_nano_qspi_sd=(
@@ -174,15 +171,12 @@
'part_name=RP4; part_type=nano_qspi_bl; part_spec=${_common_spec}; part_file=$(ls rp4.blob 2> /dev/null || echo "")'
)
- # For Jetson Nano eMMC, it's same as TX1, must use bl_update_payload to update bootloader.
- local partitions_jetson_nano_emmc=()
+ local partitions_t210ref=("${partitions_t210ref_common[@]}")
- local partitions_t210ref=(
- "${partitions_t210ref_common[@]}"
- "${partitions_jetson_tx1[@]}"
- "${partitions_jetson_nano_qspi_sd[@]}"
- "${partitions_jetson_nano_emmc[@]}"
- )
+ # Only nano-devkit uses "partitions_jetson_nano_qspi_sd"
+ if [[ "${_sw_spec}" == *"${_nano_qspi_sd}" ]]; then
+ partitions_t210ref+=("${partitions_jetson_nano_qspi_sd[@]}")
+ fi
# for binary common for different operating mode, op_mode = 0
# for binary different for different operating mode:
do I need some other commands? after modify the l4t_bup_gen.func,then do
sudo ./flash.sh --no-flash -k LNX jetson-nano-emmc-smpsq mmcblk0p1 .the same error:
*** Signing boot.img ***
./tegraflash.py --chip 0x21 --cmd “sign ./signed/boot.img.encrypt”
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.0025 ] Generating signature
Error: Not supported
Failed to flash/read t210ref.
Hi WayneWWW::
Thank you, the commamd pass, BUP gernerate succse,I will try it !
Does must place the BUP file in the target system under this directory /opt/ota_package/ ?
could you please setup serial console to share the errors for reference,
BTW,
since you’re having board customization,
you should also check you’re using correct cfg files in the python scripts to generate encrypt binaries.
you may perform a full-flash, check the flash messages for reference.
thanks
Hello JerryChang:
I will check it. I have some questions:
1.is BUP just for Bootloader? if I just modify kernel dtb ,used BUP update DTB , is it ok?
2.for kernel, its incluse Image,DTB and many ko files, you said Image can replaced,
DTB used dd refer LNX, for many ko ,is also used replace? do you have better methods?
DTB and LNX are two different partitions for device tree blob and kernel images,
please check the flash configuration file for the partition layouts.
for example, flash_l4t_t210_emmc_p3448.xml
thanks
Dear JerryChang:
I checked our cfg,but not find why used ./flash.sh --no-flash -k DTB jetson-nano-emmc-smpsd mmcblk0p1 compile error. Please help again, Thank you (2.8 KB)
*** Signing smpsd-tegra210-p3448-0002-p3449-0000-a02.dtb ***
./tegraflash.py --chip 0x21 --cmd “sign ./signed/smpsd-tegra210-p3448-0002-p3449-0000-a02.dtb.encrypt”
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.0018 ] Generating signature
Error: Not supported
Failed to flash/read t210ref.
smpsd-tegra210-p3448-0002-p3449-0000-a02.dtb.encrypt is not right, it didn’t pad with zero.
according to post #39, it shows that locally sign and encrypt binary files is not supported for t210 series. (i.e. Jetson Nano).
that’s why you’ll see Error: Not supported messages reported while generating signature.
hence,
it’s an alternative way in post #42, which has enable tegraflash.py to perform sign and encrypt locally.
you should also review the command-line and assign all correct cfg files accordingly.
thanks