Difference between revisions of "Yocto3.0 OTA"

From ESS-WIKI
Jump to: navigation, search
(Created page with "Yocto3.0 OTA First Release 1. Get Based Image  and Recovery Image 2. Get officialbuild or dailybuild Yocto 3.0 Image   (xxxA1AIM30LIVAxxx_iMX8xx_xx_2021-xx-xx.img...")
 
Line 3: Line 3:
 
First Release
 
First Release
  
1. Get Based Image  and Recovery Image
+
1. Get Based Image   (Dropbox Server : \share\temp\Yocto3.0_OTA_BaseImage\5720_Based_Image.sdcard  ) and Recovery Image. (Dropbox Server : \share\temp\Yocto3.0_OTA_BaseImage\recovery.img)
  
 
2. Get officialbuild or dailybuild Yocto 3.0 Image   (xxxA1AIM30LIVAxxx_iMX8xx_xx_2021-xx-xx.img.gz)
 
2. Get officialbuild or dailybuild Yocto 3.0 Image   (xxxA1AIM30LIVAxxx_iMX8xx_xx_2021-xx-xx.img.gz)
Line 13: Line 13:
 
-> Update manually some partitions
 
-> Update manually some partitions
  
(1) Update Uboot &nbsp; --> &nbsp;dd if=flash.bin of=/dev/sdx &nbsp; &nbsp;(sdx --> &nbsp;sda or sdb or sdc ....) &nbsp; &nbsp;(flash.bin form Yocto 3.0 Image)<br/>(2) Update Kernel &nbsp;--> &nbsp;copy kernel (file) &nbsp;from Yocto3.0 Image /dev/sdx1 &nbsp;to Based Image /dev/sdx1&nbsp;<br/>(3) Update Recovery &nbsp;--> sudo dd if=recovery-imx8mqrom5720a1.img of=/dev/sde3<br/>(4) Update Rootfs &nbsp; --> sudo dd if=rootfs.img of=/dev/sde2 &nbsp; (rootfs.img form Yocto3.0 images)<br/>(5) Update Rootfs<br/>&nbsp; &nbsp; -> &nbsp;create cache partition<br/>&nbsp; &nbsp; -> &nbsp;step1 : &nbsp;vim /etc/fstab &nbsp; &nbsp; &nbsp;&nbsp;<br/>&nbsp; &nbsp; &nbsp; &nbsp; ADD --> &nbsp;/dev/disk/by-label/cache &nbsp; &nbsp; &nbsp;/cache &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ext4 &nbsp; &nbsp; &nbsp; nosuid,nodev,nomblk_io_submit 0 0<br/>&nbsp; &nbsp; &nbsp; &nbsp; step2 : &nbsp; copy do_update.sh and New update.zip<br/>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br/>&nbsp; &nbsp; &nbsp; &nbsp; ** New update.zip &nbsp;in dailybuild or officiailbuild folder
+
(1) Update Uboot &nbsp; --> &nbsp;dd if=flash.bin of=/dev/sdx &nbsp; &nbsp;(sdx --> &nbsp;sda or sdb or sdc ....) &nbsp; &nbsp;(flash.bin form Yocto 3.0 Image)<br/>(2) Update Kernel &nbsp;--> &nbsp;copy kernel (file) &nbsp;from Yocto3.0 Image /dev/sdx1 &nbsp;to Based Image /dev/sdx1&nbsp;<br/>(3) Update Recovery &nbsp;--> sudo dd if=recovery-imx8mqrom5720a1.img of=/dev/sde3<br/>(4) Update Rootfs &nbsp; --> sudo dd if=rootfs.img of=/dev/sde2 &nbsp; (rootfs.img form Yocto3.0 images)&nbsp; .&nbsp; (PS: The rootfs (from sd card image))<br/>(5) Update Rootfs : Create cache partition<br/>&nbsp; &nbsp; &nbsp;step1&nbsp;: &nbsp;vim /etc/fstab &nbsp; &nbsp; &nbsp;&nbsp;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ADD --> &nbsp;/dev/disk/by-label/cache &nbsp; &nbsp; &nbsp;/cache &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ext4 &nbsp; &nbsp; &nbsp; nosuid,nodev,nomblk_io_submit 0 0<br/>&nbsp; &nbsp; &nbsp;step2&nbsp;: &nbsp; copy do_update.sh and New update.zip&nbsp;&nbsp;<br/>&nbsp; &nbsp; &nbsp; &nbsp; ** New update.zip &nbsp;in dailybuild or officiailbuild folder
  
 
(6) Update OTA Flow
 
(6) Update OTA Flow

Revision as of 07:36, 16 November 2021

Yocto3.0 OTA

First Release

1. Get Based Image   (Dropbox Server : \share\temp\Yocto3.0_OTA_BaseImage\5720_Based_Image.sdcard  ) and Recovery Image. (Dropbox Server : \share\temp\Yocto3.0_OTA_BaseImage\recovery.img)

2. Get officialbuild or dailybuild Yocto 3.0 Image   (xxxA1AIM30LIVAxxx_iMX8xx_xx_2021-xx-xx.img.gz)

3. Flash the Yocto 3.0 Image to SD card.

4. Creat the New Yocto Image (with OTA function)

-> Update manually some partitions

(1) Update Uboot   -->  dd if=flash.bin of=/dev/sdx    (sdx -->  sda or sdb or sdc ....)    (flash.bin form Yocto 3.0 Image)
(2) Update Kernel  -->  copy kernel (file)  from Yocto3.0 Image /dev/sdx1  to Based Image /dev/sdx1 
(3) Update Recovery  --> sudo dd if=recovery-imx8mqrom5720a1.img of=/dev/sde3
(4) Update Rootfs   --> sudo dd if=rootfs.img of=/dev/sde2   (rootfs.img form Yocto3.0 images)  .  (PS: The rootfs (from sd card image))
(5) Update Rootfs : Create cache partition
     step1 :  vim /etc/fstab       
                  ADD -->  /dev/disk/by-label/cache      /cache               ext4       nosuid,nodev,nomblk_io_submit 0 0
     step2 :   copy do_update.sh and New update.zip  
        ** New update.zip  in dailybuild or officiailbuild folder

(6) Update OTA Flow