host:装有ubuntu的电脑
source:要进行备份的TX2
target:要进行备份恢复的TX2
下载地址:https://developer.nvidia.com/embedded/jetpack
选择第三个进入下载目录,在终端输入
sudo apt install ./sdkmanager_1.1.0-6343_amd64.deb
安装完成后,运行
sdkmanager
STEP 01
第二栏 target hardware选择TX2
第三栏选择要安装的JetPack版本
STEP 02
勾选左下角的同意协议,点击continue
输入host密码
自动下载
下载完成后弹出如下界面
选择手动模式,通过TX2提供的黑色USB线(带有绿色标识)将TX2和HOST连接,并以recovery模式启动TX2(保证TX2接通电源但处于关机状态;按下power键后迅速按下recovery键;保持recovery按下的同时按下RST键然后松开RST键,松开recovery键)点击flash。
为TX2连接一个显示屏,JetPack OS安装完成后会弹出以下界面(之前recovery模式,不显示界面)
按提示一步步设置,账号和密码均设为nvidia(可自由更改),(可先为TX2更改源,方法见最后)然后在host端为TX2安装JetPack SDK Components。账号密码必须与之前设置的一致。
弹出如下界面即为成功。
进入host端的jetpack安装目录,查看是否存在flash.sh文件(也有可能在bootloader子文件夹下)
连上Source TX2,并进入recovery模式
在host端,flash.sh文件所在目录下允许以下命令
sudo ./flash.sh -r -k APP -G my_backup.img jetson-tx2 mmcblk0p1
会在当前目录下生成my_backup.img和my_backup.img.raw文件
将host与target TX2连接并进入recovery模式。
在host端进入flash.sh和备份文件所在目录
将my_backup.img复制为system.img
sudo cp my_backup.img system.img
将bootloader文件夹下的system.img备份为system.img.bak
cd bootloader
mv system.img system_bak.img.bak
将自己生成的镜像文件移动到bootloader目录
mv ../system.img system.img
返回上层目录,开始烧录
cd ..
sudo ./flash.sh -r jetson-tx2 mmcblk0p1
备份原始文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backu
修改文件并添加国内源
sudo gedit /etc/apt/sources.list
添加如下代码:
# 阿里云
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
# Ubuntu 官方源 (不要复制一下代码到文件中,此代码只是便于还源出问题时使用)
deb http://archive.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ gutsy-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
更新源
sudo apt-get update