Images must be named as following:
•
u-boot.bin
: U-Boot image for update. In
ls1012ardb
folder, this image includes RCW and U-Boot.
•
uImage
: kernel image for update
•
rootfs.ext4
: filesystem image for update
•
firmware_sdcard.bin
: a full firmware of SD card image.
10.4 OTA test case
1. Plug network cable into Eth1 on the board. This enables the network after the system is running.
2. Update U-Boot using the following steps:
• Update the .json on server as shown in the following example:
{
"updateStatus":"yes",
"updatePart":"u-boot",
"updateVersion":"1.0",
}
• Upload the u-boot image on server path: 1.0/<boardname>/u-boot.bin
• Run ota-update command on device board.
3. Updating the file system:
• Set the "updatePart" to "filesystem" in update.json.
• Upload the filesystem image on server path: 1.0/<boardname>/rootfs.ext4
• Run ota-update command on the device board.
4. Updating full firmware
• Set the "updatePart" to "all" in update.json.
• Upload the full firmware image on server path: 1.0/<boardname>/firmware_sdcard.bin
• Run ota-update command on device board.
5. Rollback test:
• The Kernel and file system can use a wrong image to upload on the server and test update on device.
NXP Semiconductors
OTA implementation
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
144 / 199