Step 1: Build r13.4.1
make /* Store images file for MFGTool use */
make dist /* Get ota_1.zip, and target_files_1.zip at out/dist, store them in a dedicated directory, for example .../release-1 */
Step 2: Modify any files in source code base;
Step 3: make dist /* Get ota_2.zip, and target_files_2.zip at out/dist, store them in a dedicated directory, for example .../release-2 */
Step 4: MFGTool flash release-1 images;
Step 5: cp ota_2.zip to SD;
Step 6: start board, then execute following commands under serial terminal;
cp /sdcard/ota_2.zip /cache/ota_2.zip
mkdir /cache/recovery
echo --update_package=/cache/ota_2.zip > /cache/recovery/command
sync
reboot recovery
Then you can see the upgrade successful.
Step 7: MFGTool flash release-1 images;
Step 8: ./build/tools/releasetools/ota_from_target_files -i .../release-1/target_files_1.zip .../release-2/target_files_2.zip ./diff_from_1_to_2.zip Step 9: cp diff_from_1_to_2.zip to SD;
Step10: start board, then execute following commands under serial terminal;
cp /sdcard/diff_from_1_to_2.zip /cache/diff.zip
mkdir /cache/recovery
echo --update_package=/cache/diff.zip > /cache/recovery/command
sync
reboot recovery