3471 views|2 replies

187

Posts

0

Resources
The OP
 

How to perform OTA upgrade on the OKT507-C development board on the Android system [Copy link]

OTA upgrade is the standard software upgrade method provided by the Android system. It is very powerful and provides two modes: full upgrade (complete package) and incremental upgrade (difference package). Below we take the OKT507-C development board as an example to explain the specific steps.

01
OTA upgrade package compilation

Compile the firmware

Configure the compilation environment

Enter the source directory and execute the following command:

$ cd OKT507-android-source/longan

$./build.sh config

Enter 0 in the terminal and select Android.

$ cd /work/OKT507-android-source/android

$ source build/envsetup.sh

$ lunch okt507_c-userdebug

Compile all

cd /work/OKT507-android-source/longan

$ ./build.sh

$ cd /work/OKT507-android-source/android

$ extract-bsp

$ make installclean

$ make –j4

The compiled image is located in the out/target/product/okt507-c directory.

Packaging images

$ pack

The image file after packaging is longan/out/t507_android10_okt507_uart0.img

Compile OTA complete package and differential package

$ pack4dist

The corresponding version of the OTA package can be generated.

Target file package:

out/target/product/okt507-c/obj/PACKAGING/target_files_intermediates/okt507_c-target_files-eng.xxz.zip

Full upgrade package:

out/target/product/okt507-c/okt507_c-full_ota-eng.xxz.zip

The target file package is the basic material for making incremental upgrade packages. The target file package needs to be saved together with the firmware for subsequent generation of OTA packages.

The command to generate a complete package separately:

$./build/tools/releasetools/ota_from_target_files target.zip ota.zip

The command to generate a differential package separately:

$./build/tools/releasetools/ota_from_target_files -i origin.zip target.zipinc.zip

Note: Among them, origin.zip is the target file package of the basic version (i.e. the version to be upgraded), target.zip is the target file package of the current version, and inc.zip is the differential package.

2
Upgrade using OTA package

Use the complete package for a full upgrade and the differential package for an incremental upgrade. Rename the upgrade package to be used to update.zip.

Use TF card or USB flash drive to upgrade

Click Android Settings->System->Advanced->Local Upgrade, as follows:

Click OTA system upgrade, and the scanned update.zip package will be displayed.

Click update.zip, and the interface will prompt that it is verifying whether it can be installed. After verification, the Start Installation button is activated, and click to start the installation.

The interface will display verification, process the installation package, and then restart. After the restart, the interface enters recovery. After the upgrade, it will automatically restart and the OTA upgrade is completed.

Upgrading using Adb

Put the upgrade package update.zip into the PC, such as the root directory of drive F.

Run the following command in cmd on the PC side, and the development board will automatically restart and enter recovery.

adb reboot recovery

On the development board, use the volume up and down keys to select Apply update from ADB

Enter in cmd on the PC:

adb sideload F:\update.zip

Start the upgrade.

After the upgrade, the development board interface prompts:

Install from ADB completed with status 0

Select Reboot system now. After the development board restarts, the OTA upgrade is completed.

This post is from Analog electronics

Latest reply

Thanks for sharing, this upgrade is quite convenient!   Details Published on 2021-10-21 17:38

赞赏

1

查看全部赞赏


1412

Posts

3

Resources
2
 
Thanks for sharing.
This post is from Analog electronics
 
 

1942

Posts

2

Resources
3
 

Thanks for sharing, this upgrade is quite convenient!

This post is from Analog electronics
 
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>
Featured Posts
C51 programming of real-time clock chip DS1302

C51 programming of real-time clock chip DS1302 is divided into 8 parts

The significance of failure analysis

1. Failure analysis is to find out the cause of failure and take effective measures to prevent similar failure accidents ...

Power supply control principle of three-phase fuel pump used in Mercedes-Benz passenger cars

Masters, the gasoline pump used in Mercedes-Benz cars currently has three wires UVW coming out of the fuel pump computer ...

MSP430 MCU general I/O port settings sharing

In the first chapter, we will learn about I/O. I/O operation is the most basic, and these registers must be firmly maste ...

BMA400 triaxial accelerometer development

This post was last edited by Blkhumor on 2021-3-31 12:19 ****Main text**** # Introduction to BMA400 Bosch BMA400 tria ...

Domestic MCU replacement: a pitfall

  As a fan of Butterfly, I feel sorry for the shortage and price increase of STM32. But whether you are making product ...

[CB5654 Intelligent Voice Development Board Evaluation] Development Environment Construction

To evaluate and develop the development board, the construction of the development environment is indispensable. The CDK ...

MOS tube selection problem

I want to use a SOT23 MOS tube to drive a 24V/180MA solenoid valve. The maximum power dissipation here is 2.5W, but 24*0 ...

[Boliu BL606P audio and video development board] Smart speaker test

1af9ebbc234f3a6b60f0b3aeeb081b26 Preface In the previous article, we conducted a Bluetooth audio playback test, and in ...

Ultra-small package TI MSPM0 MCU can optimize design space and realize more possibilities. The live broadcast entrance is open!

Enter the live broadcast room 【Live broadcast time】 10:00-11:00 am, June 12 (today) Note: Registered users can log ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list