platform/core/system/upgrade-tools.git
21 months agoMerge changes Id8ad3953,I98b5a184 into tizen tota-upg-tizen
Karol Lewandowski [Thu, 1 Sep 2022 22:04:20 +0000 (22:04 +0000)]
Merge changes Id8ad3953,I98b5a184 into tizen

* changes:
  Remove unused Apply_Container_Delta() function from CreatePatch.py
  Fix ensure_dir_exists() function behaviour and exception handling

21 months agoMerge changes I7634bd46,I6abeeca4,I78c7a4d8 into tizen
Karol Lewandowski [Thu, 1 Sep 2022 22:04:10 +0000 (22:04 +0000)]
Merge changes I7634bd46,I6abeeca4,I78c7a4d8 into tizen

* changes:
  Fix inconsistent code formating and indentations in CreatePatch.py
  Remove unnecessary difflines() function and unnecessary closing of files in CreatePatch.py
  Remove bare excepts in CreatePatch.py

21 months agoModify upgrade-verifier to verify partitions with image files
SangYoun Kwak [Thu, 18 Aug 2022 01:58:05 +0000 (10:58 +0900)]
Modify upgrade-verifier to verify partitions with image files

Change-Id: I7d83092a65ff153e18dd498e40122d6787318094
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
22 months agoAdd update-verifier
Mateusz Moscicki [Wed, 27 Jul 2022 10:43:20 +0000 (12:43 +0200)]
Add update-verifier

Change-Id: Id074d36297145e07f68d49be8f51feafcc726d5a

22 months agoRemove unused Apply_Container_Delta() function from CreatePatch.py
Antoni [Mon, 18 Jul 2022 15:08:46 +0000 (17:08 +0200)]
Remove unused Apply_Container_Delta() function from CreatePatch.py

Change-Id: Id8ad395399ba6b631cf1ad2ecb3ce8b201b95e43

22 months agoFix ensure_dir_exists() function behaviour and exception handling
Antoni [Mon, 18 Jul 2022 11:42:35 +0000 (13:42 +0200)]
Fix ensure_dir_exists() function behaviour and exception handling

Change-Id: I98b5a184714d34784068e840a1bb2636458a752f

22 months agoDrop DELTA_FS image generation
Karol Lewandowski [Thu, 21 Jul 2022 12:48:20 +0000 (14:48 +0200)]
Drop DELTA_FS image generation

This commit changes all occurences of DELTA_FS with DELTA_IMAGE.
DELTA_FS is considered legacy and should not be used unless necessary.

Change-Id: I17dccac5ec532af2db0bb2e385c9871763956b38

22 months agoFix inconsistent code formating and indentations in CreatePatch.py
Antoni [Mon, 18 Jul 2022 11:39:35 +0000 (13:39 +0200)]
Fix inconsistent code formating and indentations in CreatePatch.py

Change-Id: I7634bd462dd8b875c816540b3ca0720cde93b2ab

22 months agoRemove unnecessary difflines() function and unnecessary closing of files in CreatePat...
Antoni [Mon, 18 Jul 2022 11:33:12 +0000 (13:33 +0200)]
Remove unnecessary difflines() function and unnecessary closing of files in CreatePatch.py

Change-Id: I6abeeca4ed203d0718ca04b51809220fafe11f56

22 months agoRemove bare excepts in CreatePatch.py
Antoni [Fri, 15 Jul 2022 13:15:25 +0000 (15:15 +0200)]
Remove bare excepts in CreatePatch.py

Change-Id: I78c7a4d88057f21eaf5fb708a94c0a7378a0b742

23 months agoSave a checksum of all files contained in delta archive
Mateusz Moscicki [Mon, 20 Jun 2022 11:28:31 +0000 (13:28 +0200)]
Save a checksum of all files contained in delta archive

Change-Id: I82563afd2ef30784ece716a7b9a090241a159b95

23 months agoUnifies the location of the result delta.tar file
Mateusz Moscicki [Mon, 20 Jun 2022 10:18:12 +0000 (12:18 +0200)]
Unifies the location of the result delta.tar file

Change-Id: I2089c6e6f10bb1c462f68efe58faa8bb49d32cef

23 months agoUse Date field from info.ini for old & new version string
Mateusz Moscicki [Thu, 9 Jun 2022 12:59:06 +0000 (14:59 +0200)]
Use Date field from info.ini for old & new version string

Change-Id: I79861a7d7f08166c191552a1c52b71256c51ecd6

23 months agoRename upgrade types:
Mateusz Moscicki [Thu, 9 Jun 2022 14:47:09 +0000 (16:47 +0200)]
Rename upgrade types:

Types now include information in the name about what the upgrade is
(FULL_IMAGE, DELTA_IMAGE) and when it is to be performed
(BEFORE_BOOT_FOTA, AT_BOOT_FOTA):

  PRE_UA    -> FULL_IMAGE:BEFORE_BOOT_FOTA
  FULL_IMG  -> FULL_IMAGE:AT_BOOT_FOTA
  DELTA_IMG -> DELTA_IMAGE:AT_BOOT_FOTA

Change-Id: I31343d64a37156d0ca4673b9150cdfeb97f99ff4

23 months agoAdd upgrade-apply
Mateusz Moscicki [Fri, 3 Jun 2022 14:49:43 +0000 (16:49 +0200)]
Add upgrade-apply

Change-Id: Idd1a48cf89a17bb74351672094cc1f471a2e973e

2 years agoFix rootfs mount for metadata extraction
Mateusz Moscicki [Fri, 27 May 2022 15:15:33 +0000 (17:15 +0200)]
Fix rootfs mount for metadata extraction

Change-Id: I63e1203ba98fa1513bb3c3b731cb15f1210d8922

2 years agoAdd script to generate full delta
Mateusz Moscicki [Thu, 26 May 2022 14:41:59 +0000 (16:41 +0200)]
Add script to generate full delta

To generate the full delta, pass the 'full' argument to the
delta-generation.sh:

    ./scripts/delta-generation.sh . device_XYZ full

Change-Id: Ic847f396455b97e07091bf01c62bfb21b5da7ea9

2 years agoSave the checksum and image size of PRE_UA images in the update.cfg
Mateusz Moscicki [Fri, 13 May 2022 09:37:48 +0000 (11:37 +0200)]
Save the checksum and image size of PRE_UA images in the update.cfg

Change-Id: If6338b6ac94ec8c327f0891ae50cc45ee4be4996

2 years agoUse arm64 as architecture string instead of aarch64
Karol Lewandowski [Wed, 11 May 2022 08:55:47 +0000 (10:55 +0200)]
Use arm64 as architecture string instead of aarch64

It's was requested to be consistent with arm32 naming.

Change-Id: I0939e70745bb88354cd47861f5ad0326a6a26971

2 years agoUse Release field from info.ini for old & new version string
Karol Lewandowski [Tue, 10 May 2022 10:56:16 +0000 (12:56 +0200)]
Use Release field from info.ini for old & new version string

Change-Id: I58f34834589787101cd740287954e5271e6e71d4

2 years agoAlways copy whole /usr/libexec/upgrade-support to delta tar
Karol Lewandowski [Mon, 4 Apr 2022 18:27:16 +0000 (20:27 +0200)]
Always copy whole /usr/libexec/upgrade-support to delta tar

Recently there have been quite a few changes with upgrade scripts,
with each change requiring in this repository _in additon_ to changes
in packages which provide such scripts (tota-ua).

This commit generalizes the script concept, allowing it for any
package to install needed scrips to /usr/libexec/upgrade-support whose
contents will be copied in verbatim to delta.tar.

Change-Id: Ia6baec1ab777da842c4ea5b87e83046cbaa0b8fd

2 years agoAdd new upgrade scripts to delta
Karol Lewandowski [Mon, 4 Apr 2022 15:37:44 +0000 (17:37 +0200)]
Add new upgrade scripts to delta

Change-Id: Ica6839d9340820cae70369046618869c22322779

2 years agoFix 'touch' in case there is no file with the given extension
Mateusz Moscicki [Tue, 22 Feb 2022 17:28:53 +0000 (18:28 +0100)]
Fix 'touch' in case there is no file with the given extension

Change-Id: I21ab3c2467ccaf62ab7d54ec704b7fb3825b0cbc

2 years agoAdd additional update scripts to delta.tar
Mateusz Moscicki [Tue, 15 Feb 2022 13:24:37 +0000 (14:24 +0100)]
Add additional update scripts to delta.tar

Scripts:

  upgrade-fota.sh
  upgrade-partial.sh
  upgrade-prepare-partitions.sh

must be supplied in delta.tar file to run their latest version.

Change-Id: I61772f1ec5bfdeb3e4cfadd2c784c448a66a3d69

2 years agoAdd support for DELTA_IMG_AB update type
Mateusz Moscicki [Mon, 14 Feb 2022 14:32:11 +0000 (15:32 +0100)]
Add support for DELTA_IMG_AB update type

DELTA_IMG_AB type is the same as DELTA_IMG except that the patch is
compressed with Brotli instead of LZMA. Due to the fact that Brotli
allows decompression with a small amount of RAM, this type is suitable
for patching large partition.

Change-Id: I3980bd395184855804c8f0c0bc5e64763023d10b

2 years agoEnsure metadata is generated for both delta_fs and delta_img
Karol Lewandowski [Thu, 30 Dec 2021 21:43:27 +0000 (22:43 +0100)]
Ensure metadata is generated for both delta_fs and delta_img

Change-Id: I910e76a88e2c732d3ea8e55f3ba24f4ccc594702

2 years agoPack important files at beginning of the archive
Karol Lewandowski [Fri, 31 Dec 2021 10:01:59 +0000 (11:01 +0100)]
Pack important files at beginning of the archive

Change-Id: I4c538610d9a61e98a70977de7578b0311f82e1d7

2 years agoGenerate delta in /run/upgrade-sysroot instead of /system
Karol Lewandowski [Wed, 8 Dec 2021 10:56:32 +0000 (11:56 +0100)]
Generate delta in /run/upgrade-sysroot instead of /system

Upgrade path is hardcoded and it's used by Update Agent.
In A/B case Update Agent is run in normal boot, requiring
for the /system path to be "reserved" - possibly causing
conflicts.

Change-Id: I044f0949b57ba7828c764b92f9418f1c4b2fa696

2 years agoAdd support for updating /hal partition on RPI 3|4.
Ernest Borowski [Wed, 22 Sep 2021 10:40:29 +0000 (10:40 +0000)]
Add support for updating /hal partition on RPI 3|4.

It can not be updated using full image because it is mounted during
normal boot mode, therefore is has to be DELTA_FS type.

Change-Id: Ib0e3d549ac57557bf31b15fab22b4f4315141897
Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
2 years agoAdd rpi4-headless and rpi4-headed profiles
Karol Lewandowski [Fri, 27 Aug 2021 15:38:28 +0000 (17:38 +0200)]
Add rpi4-headless and rpi4-headed profiles

These profiles come with added update-info.ini metadata

Change-Id: I3ec1be54b66238adb8b9d5b85f87ab7cc449abfd

2 years agoAdd update-info.ini with metadata to the image
Karol Lewandowski [Fri, 27 Aug 2021 15:37:24 +0000 (17:37 +0200)]
Add update-info.ini with metadata to the image

Metadata is only added if it's provided in board configuration
file - cfg/update-info.ini.in.

Change-Id: I0bb45aceb8bb8a08b27494fcd21ffe40b13aa711

2 years agoRemoves entries from the final update.cfg file for which no image was generated.
Mateusz Moscicki [Fri, 4 Jun 2021 09:51:07 +0000 (11:51 +0200)]
Removes entries from the final update.cfg file for which no image was generated.

Until now, the update.cfg file has contained entries even when the
related image file was not generated due to lack of differences. For
example if there were no differences between Tizen versions for boot.img
then the image as not placed in delta.tar file, but in update.cfg the
entry associated with it remained.

This patch removes entries for which there is no corresponding image. In
case the resulting update.cfg (e.g. an update between the same
versions), the mk_delta.sh script will end with an error.

Change-Id: I61278a8f1efb69bd908b1dd1aae5ebf714963f6e

3 years agoMerge "Include boot and modules partitions update on RPI4 and RPI3" into tizen
Karol Lewandowski [Wed, 2 Jun 2021 11:19:30 +0000 (11:19 +0000)]
Merge "Include boot and modules partitions update on RPI4 and RPI3" into tizen

3 years agoMerge "Add RPI4 target" into tizen
Karol Lewandowski [Wed, 2 Jun 2021 11:19:21 +0000 (11:19 +0000)]
Merge "Add RPI4 target" into tizen

3 years agoInclude boot and modules partitions update on RPI4 and RPI3
Mateusz Moscicki [Tue, 1 Jun 2021 11:18:38 +0000 (13:18 +0200)]
Include boot and modules partitions update on RPI4 and RPI3

These partitions are updated as PRE_UA so that after a reboot the update
will run with the new kernel making it possible e.g. to use a new
filesystem.

Change-Id: I530bb685f5794f30c2605f5e394b86f01b0c10a8

3 years agoAdd RPI4 target
Mateusz Moscicki [Mon, 31 May 2021 11:14:45 +0000 (13:14 +0200)]
Add RPI4 target

Change-Id: I557bf7edf4890446c8e458bff5760339164d1dca

3 years agoRemove explicit filesystem argument to mount.
Ernest Borowski [Fri, 22 Jan 2021 13:55:28 +0000 (13:55 +0000)]
Remove explicit filesystem argument to mount.

This allows to use this scripts with other filesystems such as btrfs.

Change-Id: I0f145b13548296b35d3138a2a0afe88de890546e

3 years agoAdd TW3 target
Kichan Kwon [Tue, 6 Oct 2020 06:20:48 +0000 (15:20 +0900)]
Add TW3 target

Change-Id: I741ca0b707b6970361ed7302e27ad9db08d5ef60
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
3 years agoFix typo at warning message
Jeon Sang-Heon [Fri, 30 Oct 2020 11:19:33 +0000 (11:19 +0000)]
Fix typo at warning message

aready -> already

Change-Id: I44fef23b15666262635bb12b2a64ef0d68fda739
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
3 years agoRename pre script to setup script
Kichan Kwon [Thu, 17 Sep 2020 08:26:33 +0000 (17:26 +0900)]
Rename pre script to setup script

Change-Id: Icf264c91f278c8785bf44047e6346f7edfcb479d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
3 years agoInclude pre script to recovery image if exists
Kichan Kwon [Wed, 16 Sep 2020 10:29:17 +0000 (19:29 +0900)]
Include pre script to recovery image if exists

Change-Id: I08ab160746db0272d44557eae9eb17abb106d49a
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
3 years agoAdd recovery profile for ARTIK530_710
Kichan Kwon [Wed, 16 Sep 2020 08:56:21 +0000 (17:56 +0900)]
Add recovery profile for ARTIK530_710

Change-Id: I14bcedd6cf93492e886159de7ffea72ac2adb6b8
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
3 years agoMerge "Parse command options to allow empty PKCS password" into tizen
Kwon [Mon, 14 Sep 2020 06:51:30 +0000 (06:51 +0000)]
Merge "Parse command options to allow empty PKCS password" into tizen

3 years agoChange build information format
Jeon Sang-Heon [Mon, 31 Aug 2020 18:03:02 +0000 (18:03 +0000)]
Change build information format

- AS-IS : build_id.txt -> old=(old);'\n'new=(new);
- TO-BE : build_string.txt -> (old)@(new)

Change-Id: I79b3e39d459e9a24c3a60f8407c33df9876a2626
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
3 years agoParse command options to allow empty PKCS password
Kichan Kwon [Fri, 28 Aug 2020 08:30:26 +0000 (17:30 +0900)]
Parse command options to allow empty PKCS password

- Somebody can make PKCS file without password
- But, shell script function can't distinguish
  between NULL argument and whitespace
- To distinguish, use command options and
  input password option if user wants

Change-Id: I5c37a705be4eef274222b4cebb8f3f353459cca7
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
3 years agoFix bug while generating images
Jeon Sang-Heon [Wed, 26 Aug 2020 12:08:42 +0000 (12:08 +0000)]
Fix bug while generating images

- Fix ignoring last line if there is no new lines in config file
- Fix unexpected file compression by using asterisk

Change-Id: Ic6258eede8f131793063b66e0a3b8fc752ce7532
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
3 years agoSign recovery image if you want
Kichan Kwon [Mon, 24 Aug 2020 06:51:17 +0000 (15:51 +0900)]
Sign recovery image if you want

- generate_package.sh TOTA_UPG_PATH TARGET SIGN_PKCS_FILE SIGN_PKCS_PASSWORD

Change-Id: I526a59aeff9ac478f735378d935e44f984d0e0dd
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
3 years agoApply verifier patch
Kichan Kwon [Mon, 24 Aug 2020 06:15:34 +0000 (15:15 +0900)]
Apply verifier patch

- Rename magic number : TOTA -> IMG
- Rename signer : sign_upg -> sign_img

Change-Id: I2d86198f24970cb50b0ed542013ab11afe824fa5
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
3 years agoAdd recovery image generate tool
Jeon Sang-Heon [Thu, 16 Jul 2020 11:34:50 +0000 (11:34 +0000)]
Add recovery image generate tool

- Merge boot, platform, config to result
- Target image must be tar.gz format
- Config file name : recovery.cfg -> Filesystem label, bin name, blk dev
- Result file name : tizen-recovery.img

Change-Id: I1bd5fa4eac713e95e23d0efff11b96439633d988
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
3 years agoFix bug that not including build_id.txt
Jeon Sang-Heon [Mon, 6 Jul 2020 20:39:44 +0000 (20:39 +0000)]
Fix bug that not including build_id.txt

Change-Id: I91bb7550b1ed63a726ed7df1201d5c878c80397c
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
3 years agoChange version.txt to build_id.txt
Jeon Sang-Heon [Mon, 6 Jul 2020 13:47:04 +0000 (13:47 +0000)]
Change version.txt to build_id.txt

- Release version may not be unique, so change to read build id

Change-Id: Ibc74d24b79136e2dc23b8a833540b67cf7ce927d
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
3 years agoRead SMACK capability only once
Kichan Kwon [Thu, 2 Jul 2020 03:35:36 +0000 (12:35 +0900)]
Read SMACK capability only once

- chsmack_attr tries to read all capabilities
  though some capabilities aren't SMACK attribute
- security.capability is raw binary having NULL byte,
  so attr prints warning message
  - warning: command substitution: ignored null byte in input
- It doesn't cause the problem on making delta,
  but chsmack_attr will read only SMACK capability
  to remove meaningless message

Change-Id: Ibb06ad73cfe4d04c26d84e6669f5bdfc1559ec43
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
3 years agoModify signed file structure
Kichan Kwon [Wed, 3 Jun 2020 06:29:33 +0000 (15:29 +0900)]
Modify signed file structure

- Add delta size
- Magic number : TOTA_SIGNED -> TOTA_SIGNED_V1

Change-Id: Ide8067a7d7968d8493beacbd48f54294f6efb3b3
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
3 years agoSign with PKCS file instead of raw key/cert
Kichan Kwon [Tue, 2 Jun 2020 11:34:06 +0000 (20:34 +0900)]
Sign with PKCS file instead of raw key/cert

- delta-generation argument is changed
  - delta-generation.sh TOTA_UPG_PATH TARGET SIGN_PKCS_FILE SIGN_PKCS_PASSWORD

Change-Id: Ifcf092f4df87638ea31ea5d96aa3aeb90990ece2
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoIntroduce package signing
Kichan Kwon [Mon, 1 Jun 2020 05:22:29 +0000 (14:22 +0900)]
Introduce package signing

- To sign delta, you can call delta-generation like this
  - delta-generation.sh TOTA_UPG_PATH TARGET SIGN_KEY SIGN_CERT

Change-Id: I783d2f081dbb81618a278d1673d451fa16cf05f4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoMerge "Add release version to delta file" into tizen
Jeon Sang-Heon [Tue, 26 May 2020 09:06:33 +0000 (09:06 +0000)]
Merge "Add release version to delta file" into tizen

4 years agoCompress system.7z without Delta method
Kichan Kwon [Mon, 11 May 2020 11:22:12 +0000 (20:22 +0900)]
Compress system.7z without Delta method

- p7zip compresses file with some kinds of methods
  including Delta method
- However, extracting the file compressed by Delta method
  is failed because the version of libtota's lzma-sdk is
  too old(9.20)
- With "-mf=off" option, we can compress with only LZMA method
  which old lzma-sdk supports

- NOTICE
  - Compression ratio is slightly decreased
  - If you want to use Delta method, please update lzma-sdk
    to 15.05 or higher and port libtota

Change-Id: Ib33eec082b7b15c10f3127c8d0c4d558b8c5aa1d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoFix typo
Kichan Kwon [Wed, 6 May 2020 05:59:39 +0000 (14:59 +0900)]
Fix typo

Change-Id: Ieded567e648f774b6fcf90f9a05e674466503c11
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
4 years agoAdd release version to delta file
Jeon Sang-Heon [Mon, 20 Apr 2020 05:55:24 +0000 (14:55 +0900)]
Add release version to delta file

Change-Id: I381d00af0a4cbcfee60d423177a5fabd328de6ee
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
4 years agoRemove the specific logic for dzImage
Kichan Kwon [Mon, 15 Jul 2019 02:49:24 +0000 (11:49 +0900)]
Remove the specific logic for dzImage

Change-Id: I9f9a5874be3b83e3b67ff08d7f8f09395bfa7e89
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoMerge some patches for ARTIK
Kichan Kwon [Mon, 8 Jan 2018 11:03:49 +0000 (20:03 +0900)]
Merge some patches for ARTIK

- Update ARTIK ramdisk as PRE_UA
- Include pre-script if exist

Change-Id: I4143a981b9bb80b2531bfa033700c836e51da3ca

6 years agoMerge commit 'tizen_4.0' into tizen
Sunmin Lee [Fri, 9 Feb 2018 06:09:54 +0000 (15:09 +0900)]
Merge commit 'tizen_4.0' into tizen

Change-Id: I2013f26cb53ef7164170ea9d67b41a8a37e94c64

6 years agotw2: revise delta name and add recovery kernel
Sunmin Lee [Thu, 21 Dec 2017 07:27:37 +0000 (16:27 +0900)]
tw2: revise delta name and add recovery kernel

Change-Id: I8058842bcd08b344b53acd4dd829a7c10dbb3a5c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agomk_delta: extract file for update
Sunmin Lee [Mon, 18 Dec 2017 07:10:26 +0000 (16:10 +0900)]
mk_delta: extract file for update

Some binaries used for update are required to be extracted
from new image and appended to update package (delta.tar).
Extract these file from known image and path, whether those
images are listed in config file or not.

Change-Id: I31e52b0eb651827b55cd5653828e462335e8ca35
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoUse valid label which is available in all targets
Sunmin Lee [Tue, 14 Nov 2017 00:11:43 +0000 (09:11 +0900)]
Use valid label which is available in all targets

Because RPi3 and ARTIK target don't set partition name, it is invalid
in RPi3's config file. Change it to filesystem label which is
available in RPi3 and ARTIK target.
In addition, all reference targets are using partition/filesystem
name in lowercase. So use it as a default.

Change-Id: I49da6831b8663118af698f4e0733a8cba8d972b8
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoMerge branch 'tizen' into tizen_4.0
Sunmin Lee [Tue, 19 Dec 2017 00:08:19 +0000 (09:08 +0900)]
Merge branch 'tizen' into tizen_4.0

Change-Id: Ic18bec6aeb90d8d44f563abe0697994c746595fa

6 years agoNew update type: PRE_UA
Sunmin Lee [Thu, 9 Nov 2017 12:00:30 +0000 (21:00 +0900)]
New update type: PRE_UA

Separate update type:
FULL_IMG)
 Generate update package with full image whether the image was
 in old image or not
PRE_UA)
 Special case of FULL_IMG - this image will be flashed by update
 -trigger in advance of update agent (UA)

Change-Id: I923a7f34adf4516587a2d40c9b8405eb127a77a2
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoAdd ARTIK530_710 target
Kichan Kwon [Wed, 1 Nov 2017 11:25:16 +0000 (20:25 +0900)]
Add ARTIK530_710 target

- TODO : add routine for ramdisk(-recovery)

- Temporarily, make the EXCLUDED update type
  - Just (un)tar image and don't make delta
  - To extract delta.ua from ramdisk2

Change-Id: I9a342865a0e883343c04b3de3907dbd30d7372f1
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoCleanup previous residues for delta generating automation
Sunmin Lee [Wed, 8 Nov 2017 06:33:46 +0000 (15:33 +0900)]
Cleanup previous residues for delta generating automation

If delta generation is aborted during work, some remained
data could cause aborting at next work.
So before generate delta, cleanup them first.

Change-Id: I790fcab3d03a2a55156278b1716ffa32e730e904
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoTW1: Update recovery kernel
Sunmin Lee [Thu, 2 Nov 2017 09:54:16 +0000 (18:54 +0900)]
TW1: Update recovery kernel

Recovery kernel was introduced in Tizen 4.0.
This image also needs to be updated.

Change-Id: I5b52c77c4e23049c5a003c022eb8d4d737077a96
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoSupport specifying target for multi device env.
Sunmin Lee [Thu, 2 Nov 2017 00:42:27 +0000 (09:42 +0900)]
Support specifying target for multi device env.

Make upgrade-automation script use serial option of sdb
in order to support multi device connected environment.

Change-Id: Iebc5ae247df97e4f27feccb3a339addb6ded6261
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoBinary sameness is not an error
Sunmin Lee [Wed, 25 Oct 2017 10:19:45 +0000 (19:19 +0900)]
Binary sameness is not an error

It is not an error that some binary in both images are same
while generate delta.
It should be just skipped, not be aborted.

Change-Id: I49d179a148634247981cee8a2cbc8f50b4436c5b
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoIntegrate input config files
Kichan Kwon [Thu, 26 Oct 2017 02:31:33 +0000 (11:31 +0900)]
Integrate input config files

Change-Id: I69a90f0861f27418dc9500a963762d5018706811
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoUpdate type EXTRA is not suppoerted yet
Sunmin Lee [Tue, 17 Oct 2017 11:25:56 +0000 (20:25 +0900)]
Update type EXTRA is not suppoerted yet

EXTRA update for recovery is not fully supported yet.
Disable this option.

Change-Id: I14e7810bb7784600a28ed2ad87adf2187059c6ea
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoMerge "Add TW2 target" into tizen
Sunmin Lee [Tue, 24 Oct 2017 10:57:04 +0000 (10:57 +0000)]
Merge "Add TW2 target" into tizen

6 years agoRemove experimental code and add fix for symlinks
shirsh.kumar [Wed, 20 Sep 2017 10:26:41 +0000 (15:56 +0530)]
Remove experimental code and add fix for symlinks

Change-Id: Ifca98ae5fd8449f3f2a7e0aa012fcb099e1b6680
Signed-off-by: shirsh.kumar <shirsh.kumar@samsung.com>
6 years agoAdd TW2 target
Sunmin Lee [Tue, 17 Oct 2017 11:22:45 +0000 (20:22 +0900)]
Add TW2 target

Change-Id: If3ce8b985df611feb0acbc40c6e2a5f8ed9bbbd3
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoAdd README
Sunmin Lee [Mon, 25 Sep 2017 02:08:56 +0000 (11:08 +0900)]
Add README

Change-Id: I0a23aaba0bef99eafe5fec961dde97f61d772346
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoupgrade-automation.sh: get update package directly
Sunmin Lee [Fri, 8 Sep 2017 00:04:47 +0000 (09:04 +0900)]
upgrade-automation.sh: get update package directly

Simplify the interface of upgrade automation script
to use update pacakge (delta.tar) directly rather than find it.

Change-Id: Id997275659e427d88f41de77783f6bf544316ed8
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoDetach meaningless "-d" option from sdb
Kichan Kwon [Wed, 20 Sep 2017 08:19:09 +0000 (17:19 +0900)]
Detach meaningless "-d" option from sdb

- "-d" option is used for selecting target device
- Therefore, we don't have to use it without argument
- Moreover, it can be occur error when the target device
  is connected with ethernet

Change-Id: Ieef57be3fff4b765ad05f772b5c23d7dac90a356
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoUpdate package with some binaries extracted from image
Sunmin Lee [Mon, 4 Sep 2017 03:30:09 +0000 (12:30 +0900)]
Update package with some binaries extracted from image

Some binaries which is necessary for upgrade have to be extracted
from image of new version. This patch implements file extracting
function for this reason.

Change-Id: Iecf9598e169bb307d7ec5c02e6deea3ae7d1714b
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoAdd automated upgrade script tool
Sunmin Lee [Mon, 28 Aug 2017 02:55:13 +0000 (11:55 +0900)]
Add automated upgrade script tool

This patch provides a script for automated upgrade.
- upgrade-automation.sh: script for automated upgrade test with device

Change-Id: I84add57261f2d10d13fdc35f9fccd5ed29899cec
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoAdd automated delta generation script
Sunmin Lee [Mon, 28 Aug 2017 02:55:13 +0000 (11:55 +0900)]
Add automated delta generation script

This patch provides a script for automated delta generation.

Change-Id: I688a1af6c0779cb1d75acf46bffb58c3dab92d4b
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoFULL_IMG delta in case of missing in old_tar
Sunmin Lee [Fri, 25 Aug 2017 01:11:37 +0000 (10:11 +0900)]
FULL_IMG delta in case of missing in old_tar

Until tizen 3.0, ramdisk images had not been supported.
It causes that the upg cannot generate delta of ramdisks
because they are missing.

This patch supports FULL_IMG in case of not in old_tar
just includes full image as raw data which can be used
at client.

Change-Id: I0d89e86dbac363300ac5f7eb4dcd6e849ecd5fa1
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoCreate delta.tar with delta.ua in it
Sunmin Lee [Thu, 25 May 2017 06:03:43 +0000 (15:03 +0900)]
Create delta.tar with delta.ua in it

delta.ua should be included into delta package (delta.tar), too.
It would be extracted from RAMDISK2 of new binary.

Change-Id: Icb8b89b61ad3095b62bace19875e1ab6c2965115
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoUnify UPG bin directory
Sunmin Lee [Wed, 23 Aug 2017 09:18:16 +0000 (18:18 +0900)]
Unify UPG bin directory

Most of bin scripts in each target is same.
There is no reason of separating bin directory at each target.
This patch integrates these scripts to common bin diretory.

Change-Id: Icf7597a25a196f43666683c0de5fb7b9dfc3d977
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoInitial codes of tota-upg
Sunmin Lee [Fri, 14 Jul 2017 05:34:38 +0000 (14:34 +0900)]
Initial codes of tota-upg

Change-Id: I5bef4311c1ceb5a91d836f4aed9aefd7d7c0f5af

6 years agoInitial empty repository
Tizen Infrastructure [Mon, 3 Jul 2017 03:47:08 +0000 (03:47 +0000)]
Initial empty repository