硬件:自定义载板+jeston agx orin 64GB
软件:jp6.1
已经配置好了一套产品,包括运行环境、工具,怎么才能完整的烧写到另外几套产品中。
已经尝试的方法:
1.使用l4t_backup_restore.sh工具时,会将emmc的64GB全部导出,img太大,能不能只备份使用的空间,而不是全部
还有其他便捷的方法吗
I’ll include english below in case translate.google.com isn’t correct.
檢查你的 tools/backup_restore/nvbackup_partitions.sh 文件,確保 result= 對應的行包含以下命令:
result=“$( blkid -o value -s TYPE “/dev/${1}” )”。這將導致 tools/backup_restore/l4t_backup_restore.sh 使用 tar 命令存檔根檔案系統,而不是使用 dd 命令克隆。這樣應該會使 tools/backup_restore/images/mmcblk0p1.tar.gz 檔案更緊湊。
安裝機制不同,但不知道能否避免 GB 大小的問題?
tools/backup_restore/README_backup_restore.txt
工作流程 3:批次刷寫備份映像
步驟:
- 確保主機中只有一個處於復原模式的裝置。
- 從 Linux_for_Tegra 資料夾執行以下命令:
$ sudo ./tools/backup_restore/l4t_backup_restore.sh -b -c
其中 與 flash.sh 指令中使用的對應變數類似。 (更多詳情,請參閱官方文件的
板名表)。
請注意,此批次刷寫工作流程不支援多個外部儲存設備。
例如,您無法執行“-e nvme0n1:sda -b -c”。 - 如果此指令成功完成,initrd 刷寫映像將會儲存在
Linux_for_Tegra/tools/kernel_flash/images 中。 - 將裝置重新置於復原模式,並使用備份映像產生 MassFlash 軟體包:
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --use-backup-image --no-flash --network usb0 --massflash internal
其中 表示可同時燒錄的設備的最大數量。
與 flash.sh 指令中使用的對應變數類似。 (更多詳情,請參閱官方文件的
板名表)。 - 產生 MassFlash 映像和環境變數後,您可以將裝置置於復原模式來燒錄新裝置:
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash --network usb0
或者,使用產生的 mfi_.tar.gz 壓縮包。如需更多詳細說明,請參閱 Initrd Flash 的 README 檔案。
Check your tools/backup_restore/nvbackup_partitions.sh and make sure the line with result= has this command
result=“$( blkid -o value -s TYPE “/dev/${1}” )” which will cause tools/backup_restore/l4t_backup_restore.sh to archive rootfs with tar instead of being cloned with dd. That should make tools/backup_restore/images/mmcblk0p1.tar.gz more compact.
Different install mechanism but wonder if it would avoid the gigabyte size problem?
tools/backup_restore/README_backup_restore.txt
Workflow 3: To massflash the backup image
Steps:
- Make sure you have only ONE device in recovery mode plugged in the host
- Run this command from the Linux_for_Tegra folder:
sudo ./tools/backup_restore/l4t_backup_restore.sh -b -c
Where are similar to the corresponding variables used
in the flash.sh command. (See more details in the official documentation’s
board name table).
Be aware that this massflash workflow does not support multiple external storage devices.
For example, you cannot do “-e nvme0n1:sda -b -c”. - If this command completes successfully, an initrd flash image is stored in
Linux_for_Tegra/tools/kernel_flash/images. - Put the device in recovery mode again and generate a massflash package using backup image:
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --use-backup-image --no-flash --network usb0 --massflash internal
Where is the highest possible number of devices to be flashed concurrently.
are similar to the corresponding variables used
in the flash.sh command. (See more details in the official documentation’s
board name table). - After generate the massflash image and environment, you can flash new device by putting the device into recovery mode:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash --network usb0
Alternatively, use the generated mfi_.tar.gz tarball. More detailed instruction can be found in the Initrd flash README.
之前我备份的命令
使用sudo ./tools/backup_restore/l4t_backup_restore.sh -e mmcblk0-b rtso-1002
如果用mmcblk0会不会又备份很大
改變
result=“$( blkid “/dev/${1}” | awk ‘{ print $3 }’ | sed -n 's|TYPE=”(.*)“|\1|p’ )”
更改為
result=“$( blkid -o value -s TYPE “/dev/${1}” )”
- 備份和復原期間,必須暫時停用新的外部儲存裝置的自動掛載功能。您可以使用以下命令執行此操作:
sudo systemctl stop udisks2.service - 在您的 x86 主機上執行此腳本以安裝依賴項:
sudo tools/l4t_flash_prerequisites.sh - 此工具要求主機執行「nfs-kernel-server」服務:
sudo service nfs-kernel-server start
sudo ./tools/backup_restore/l4t_backup_restore.sh
-b jetson-agx-orin-devkit
#replace 為您最初刷入 orin 的主機板名稱。
Change
result=“$( blkid “/dev/${1}” | awk ‘{ print $3 }’ | sed -n 's|TYPE=”(.*)“|\1|p’ )”
to
result=“$( blkid -o value -s TYPE “/dev/${1}” )”
- Automount of new external storage devices must be temporarily disabled during backing up and restoring. You can do this using the following command:
sudo systemctl stop udisks2.service - Run this script on your x86 host to install the dependencies:
sudo tools/l4t_flash_prerequisites.sh - This tool requires the host to have “nfs-kernel-server” service running:
sudo service nfs-kernel-server start
sudo ./tools/backup_restore/l4t_backup_restore.sh
-b jetson-agx-orin-devkit
#replace with the orin-board-name you originally flashed the orin with.