Tizen OS Recovery Image Generation Guide

From Tizen Wiki
Jump to: navigation, search

※ Caution : This guide is based on rpi4


  1. Install squashfs
    1. Download squashfs rpm from Tizen public
    2. Extract rpm with rpi2cpio
      • sudo apt-get install -y rpm2cpio
      • rpm2cpio (download squashfs rpm) | cpio -idv
    3. Copy mksquashfs from extract rpm to /usr/bin
      • sudo cp (rpm extract path)/usr/bin/mksqushfs /usr/bin/mksquashfs
      • sudo cp (rpm extract path)/usr/bin/unsquashfs /usr/bin/unsquashfs

Generate Recovery Image

  1. Download recovery image generator : tota-upg
    1. Clone repository
      • git clone (repository)
    2. Change branch to tizen
      • cd tota-upg
      • git checkout -t remotes/origin/tizen
  2. Download boot/platform image in tota-upg
    ※ You must have only one image per directory. multiple image in directory cause unintentional behavior.
    • Boot image path : tota-upg/recovery/target/rpi/boot
    • Platform image path : tota-upg/recovery/target/rpi/platform
  3. Generate Recovery Image : tota-upg/recovery/scripts/generate_package.sh (tota-upg path) rpi
  4. Check result : tota-upg/recovery/target/rpi/result/tizen-recovery.img

Manage config file

  1. If you have any changes below property, modify config file
    ※ Notice : modifying config file is not recommended if not required.
    • Config file path : tota-upg/recovery/target/rpi/cfg/recovery.cfg
  2. Config file format
BOOT boot.img /dev/mmcblk0p1
rootfs rootfs.img /dev/mmcblk0p2
system-data system-data.img /dev/mmcblk0p3
user user.img /dev/mmcblk0p5
modules modules.img /dev/mmcblk0p6
ramdisk ramdisk.img /dev/mmcblk0p7
ramdisk-recovery ramdisk-recovery.img /dev/mmcblk0p8