首先利用SDK中自带命令rkImageMaker解压固件,命令路径为
cd ~/Desktop/SDK/RK3399pro/tools/linux/Linux_Pack_Firmware/rockdev
#格式 ./rkImageMaker -unpack <固件> <解压后存放路径>
./rkImageMaker -unpack /home/edem/Desktop/SDK/RK3399pro/D500_FPV_V0.2.19/update.img /home/edem/Desktop/SDK/RK3399pro/D500_FPV_V0.2.19/
解压后生成boot.bin和firmware.img,继续对firmware.img进行解压
mkdir /home/edem/Desktop/SDK/RK3399pro/D500_FPV_V0.2.19/output
./afptool -unpack /home/edem/Desktop/SDK/RK3399pro/D500_FPV_V0.2.19/firmware.img /home/edem/Desktop/SDK/RK3399pro/D500_FPV_V0.2.19/output/
cd /home/edem/Desktop/SDK/RK3399pro/D500_FPV_V0.2.19/output/
cd ./Image/
mkdir rootfs
sudo mount rootfs.img rootfs
cd rootfs
ls
至此固件解压文件系统完成。
原作者:通俗_易懂