Home » TX1入门教程基础篇 » TX1入门教程基础篇-备份和恢复

TX1入门教程基础篇-备份和恢复

TX1入门教程基础篇-备份和恢复

说明:

  • 介绍如何为TX1进行备份和恢复

(0)准备:

  • 准备好利用Jetpack刷过机的Ubuntu的主机(HOST PC)
  • 在利用Jetpack刷机时候,建立目录TX1,并保存有JetPack-L4T-*-linux-x64.run文件
  • 再进行第一次刷机之后会增加其他目录,并生成子目录TX1
  • 效果如图:

请输入图片描述

(1) 备份:

  • 进入HOST PC的JetPack安装目录下bootloader目录
$ cd ~/TX1/64_TX1/Linux_for_Tegra_64_tx1/bootloader
  • 连上TX1,并进入recovery模式(通电,按住recovery键3秒,再按一下reset键)
  • 检查是否出现0955:7140 Nvidia Corp
$ lsusb
  • 效果如图:

![请输入图片描述][2]

  • 从TX1下载镜像:
$ sudo ./tegraflash.py --bl cboot.bin --applet nvtboot_recovery.bin --chip 0x21 --cmd "read APP my_backup_image_APP.img"
  • 效果如下:
sudo ./tegraflash.py --bl cboot.bin --applet nvtboot_recovery.bin --chip 0x21 --cmd "read APP my_backup_jetpack_2412_APP.img"

[sudo] password for dusty: 
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 RCM messages
[   0.0047 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 --download rcm nvtboot_recovery.bin 0 0
[   0.0059 ] RCM 0 is saved as rcm_0.rcm
[   0.0105 ] RCM 1 is saved as rcm_1.rcm
[   0.0105 ] List of rcm files are saved in rcm_list.xml
[   0.0105 ] 
[   0.0105 ] Signing RCM messages
[   0.0149 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.hash
[   0.0164 ] Assuming zero filled SBK key
[   0.0313 ] 
[   0.0313 ] Copying signature to RCM mesages
[   0.0325 ] tegrarcm --chip 0x21 --updatesig rcm_list_signed.xml
[   0.0339 ] 
[   0.0339 ] Boot Rom communication
[   0.0348 ] tegrarcm --rcm rcm_list_signed.xml
[   0.0357 ] BootRom is not running
[   0.2092 ] 
[   0.2093 ] Retrieving storage infomation
[   0.2104 ] tegrarcm --oem platformdetails storage storage_info.bin
[   0.2113 ] Applet version 00.01.0000
[   0.3594 ] Saved platform info in storage_info.bin
[   0.3606 ] 
[   0.3606 ] Reading BCT from device for further operations
[   0.3606 ] Sending bootloader and pre-requisite binaries
[   0.3619 ] tegrarcm --download ebt cboot.bin 0 0
[   0.3630 ] Applet version 00.01.0000
[   0.5354 ] Sending ebt
[   0.5381 ] [................................................] 100%
[   0.8105 ] 
[   0.8111 ] tegrarcm --boot recovery
[   0.8117 ] Applet version 00.01.0000
  • 大概要花30分钟左右完成镜像下载。

  • 分配权限,并压缩保存:

$ sudo chmod 744 my_backup_jetpack_2412_APP.img
$ tar -zcvf my_backup_jetpack_2412_APP.img.zip my_backup_jetpack_2412_APP.img
  • 备份后也可以挂载到ubuntu下进行相应编辑
mkdir testimg
sudo mount -o loop my_backup_jetpack_2412_APP.img.img  testimg

(2) 恢复:

  • 进入HOST PC的JetPack安装目录下bootloader目录
$ cd ~/TX1/64_TX1/Linux_for_Tegra_64_tx1/bootloader
  • 复制my_backup_jetpack_2412_APP.img为system.img
$ sudo cp my_backup_jetpack_2412_APP.img system.img
  • 连上TX1,并进入recovery模式(通电,按住recovery键3秒,再按一下reset键)
  • 检查是否出现0955:7140 Nvidia Corp
$ lsusb
  • 退出到上一层目录,使用flash.sh开始烧录
$ cd ../
# As an example, you should be in ~/TX1/64_TX1/Linux_for_Tegra_64_tx1/
$ sudo ./flash.sh -r jetson-tx1 mmcblk0p1
$ sudo ./tegraflash.py --bl cboot.bin --applet nvtboot_recovery.bin --chip 0x21 --cmd "write my_backup_jetpack_2412_APP.img"
  • 大概要花费15分钟时间完成恢复镜像。

参考:

  • http://developer.ridgerun.com/wiki/index.php?title=Compiling_Tegra_X1_source_code

纠错,疑问,交流: 请进入讨论区点击加入Q群

获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号


标签: tx1入门教程基础篇