Mateusz Moscicki [Thu, 27 May 2021 13:50:16 +0000 (15:50 +0200)]
Allow to use labels in uppercase in update.cfg
This is required to be able to flash the partition with the BOOT label,
which is in upperacse.
Change-Id: Ib018befe9cee4c66bc6ae13708d1cc436ba04f23
Ernest Borowski [Wed, 12 May 2021 12:42:08 +0000 (12:42 +0000)]
Improve logging in upgrade-trigger.sh script.
- Add log helper function which can log to stdout and file
logging format:
[script-name][tag]actual_log
currently supported tag formats: [Error] [Info]
Change-Id: Iebb727b8ec4a12fca80b03f6b64c472134749020
Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
Ernest Borowski [Fri, 23 Apr 2021 17:05:12 +0000 (17:05 +0000)]
Improve upgrade-trigger.sh script:
- Add support for delta.tar.gz
- Add missing ""
- Add proper error handling
- Remove useless cat
Change-Id: I6fd9e6e611bd9232d5a2ca5f6cf129d644a1e1f5
Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
Kichan Kwon [Wed, 4 Nov 2020 06:39:52 +0000 (15:39 +0900)]
Fix invalid parenthesis
Change-Id: I8cf55406c5f81bc4816d065ffdc0827dee84cc42
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Fri, 30 Oct 2020 04:58:12 +0000 (13:58 +0900)]
Set progress to 100% as soon as hash remaking is finished
- verity-handler always use 45 seconds though hash is not made
- To prevent this situation, cancel progress thread after
hash thread is terminated
Change-Id: Ie31f259e0270874128a98c16ae81e1cd7f8d2b81
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Thu, 29 Oct 2020 09:36:37 +0000 (18:36 +0900)]
Update boilerplate
Change-Id: I7785ff75af0de67bfa0c69c81a81aa906d6b3f32
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 28 Oct 2020 07:36:42 +0000 (16:36 +0900)]
Improve the readability about progress rearrangement
Change-Id: Idd92eccb52614e10b74550f03c6f3d3adda9f645
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 26 Oct 2020 02:42:06 +0000 (11:42 +0900)]
Fix build warning
Change-Id: I21adccf31a2fc5a97598520220b5bae776dd189c
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 26 Oct 2020 02:16:55 +0000 (11:16 +0900)]
Introduce verity-handler
- It launches verityctl and updates progress
- If dm-verity is enabled, initrd-fota will launch it
Change-Id: Ibb82ac06e4c628bbb7c0428ed5c1eefccb9ef041
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 26 Oct 2020 01:56:56 +0000 (10:56 +0900)]
Reflect dm-verity status to update progress
- With dm-verity : 20 ~ 80%
- 80 ~ 100% is for hash remaking
- Without dm-verity : 20 ~ 100%
Change-Id: Icf9a65456eb40334f239f12ac407ddee22d7e6a9
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 5 Oct 2020 06:03:01 +0000 (15:03 +0900)]
Update img-verifier usage
Change-Id: Ida586c4b105ea96ca490e50c7d1f5d30a78e114d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Thu, 24 Sep 2020 06:58:33 +0000 (15:58 +0900)]
Input log path instead of macro
- If you want to write log file, input "-l LOG_FILE_PATH"
- In addition, you have to use "-i IMAGE_PATH" option
Change-Id: I9c7802981caa78f794d6d4518db474cbfea0cda5
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Thu, 17 Sep 2020 08:29:05 +0000 (17:29 +0900)]
Rename pre script to setup script
Change-Id: Iaeaaf005a9760fd9c1edb0ae91a6044f2855c041
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 16 Sep 2020 05:50:10 +0000 (14:50 +0900)]
Fix build warning
- Define unless it is defined
- No more depends on the length of the source argument
- Reduce the size of directory path to prevent string truncation
Change-Id: I71e102b9c2ce9c78af6f5afb13bc9038fd61bb8c
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 16 Sep 2020 02:11:24 +0000 (11:11 +0900)]
Clarify argument as file path
Change-Id: I8922ecf13b8791c28bb5102ee4e4a4e5844ca612
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 16 Sep 2020 01:59:15 +0000 (10:59 +0900)]
Hash delta in block to prevent storing whole delta
Change-Id: I0d368db79d9a5be47d28a836ff9e9534d48a72ff
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 16 Sep 2020 01:53:50 +0000 (10:53 +0900)]
Use right stack's function
Change-Id: I464e305d39020ed4760bd2a980c4c328c38ead7c
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 14 Sep 2020 08:54:58 +0000 (17:54 +0900)]
Version up : 1.2.9
Change-Id: I251d385639027c14aca18016e7e814bb3d3abc34
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kwon [Mon, 14 Sep 2020 08:53:59 +0000 (08:53 +0000)]
Merge "Improve the readability of global variables" into tizen
Kwon [Mon, 14 Sep 2020 08:53:56 +0000 (08:53 +0000)]
Merge "Reject the certificate same with CA" into tizen
Kichan Kwon [Mon, 14 Sep 2020 08:26:41 +0000 (17:26 +0900)]
Improve the readability of global variables
- Declare global variables in one place
- Rename global variables
Change-Id: I8ab81482e56263c568cd5b18dec2a628c3a200a8
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Fri, 11 Sep 2020 07:56:26 +0000 (16:56 +0900)]
Reject the certificate same with CA
- Security team guide : do not sign image same with CA
Change-Id: Ie18115fb29b0224838f357b1c3b05f44e4ad0b74
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Jeon Sang-Heon [Wed, 2 Sep 2020 17:51:48 +0000 (17:51 +0000)]
Add return code when reboot failed
- With local update, trigger script will be executed with system_fw
- So /sbin/reboot will be failed
- If reboot fota failed, return 100
Change-Id: I93ad6d25aa9d63a94d3ced4dc1428ba2a572623b
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Kichan Kwon [Fri, 28 Aug 2020 05:18:55 +0000 (14:18 +0900)]
Copy img-verifier root CA to ramdisk-recovery
Change-Id: I7fe259b8f73870517cd06a16a5e2ae49238bee6b
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 24 Aug 2020 05:58:49 +0000 (14:58 +0900)]
Verify image with all root CAs
- Each signer can use their own root CA
- Root CA dir : TZ_SYS_RO_CA_DIR/img-verifier
- TZ_SYS_RO_CA_DIR is defined in ca-certificates
Change-Id: I4175957a24851af242836b96b6e7d4ac76cb8f77
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 24 Aug 2020 05:38:09 +0000 (14:38 +0900)]
Rename upg-verifier to img-verifier
- Verifier is no more only for TOTA
- System-recovery also use it
Change-Id: I2f188c6bb1782507581ac8efddff4e5313e47099
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 6 Jul 2020 02:50:46 +0000 (11:50 +0900)]
Define the prefix of error code
- To check where this error occurs
Change-Id: Icd441b852aeb3e87762071b2c11cb3aaa131def3
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Jeon Sang-Heon [Tue, 16 Jun 2020 18:18:51 +0000 (03:18 +0900)]
Add libtota library to WITHLIB
Change-Id: I09f25b333a8da8cfecd3eff0c0565c2f0f40c77f
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Jeon Sang-Heon [Tue, 16 Jun 2020 15:36:44 +0000 (00:36 +0900)]
Fix lib path to support 64bit
- Change hardcode lib path(/usr/lib) to rpm lib macro({_libdir})
Change-Id: I6ff3f1cda446c6c0fde74e7c870bb4a64698e04d
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Kichan Kwon [Mon, 8 Jun 2020 02:19:20 +0000 (11:19 +0900)]
Write current progress to file by itself
- To unify with system-rw-update
- Write to socket -> Write to file
- Remove fota-gui-test
Change-Id: I79d26710b171759e40df511a5996a13f6e0e3373
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kunhoon Baik [Tue, 16 Jun 2020 01:08:18 +0000 (10:08 +0900)]
Enable 64 bit
Tizen will support 64 bit binary officially.
TOTA-UA will be included to initrd-recovery partition.
Although initrd-recovery partition size is exceeded, TOTA-UA will be applied.
Change-Id: I983e17e0b24b1e520a92f36d404dbcdb5180aae7
Kichan Kwon [Fri, 5 Jun 2020 07:10:28 +0000 (16:10 +0900)]
Make directory for TOTA root CA
Change-Id: I4909c925a19238f2e61d7c5d5d747ef4c14580a4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 8 Jun 2020 02:27:32 +0000 (11:27 +0900)]
Unify the error checking of open()
Change-Id: Id65ea98987c616e5fb481d0410b0a87960709619
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Jeon Sang-Heon [Thu, 4 Jun 2020 09:27:20 +0000 (18:27 +0900)]
Add group write permission to tota dir
Change-Id: I81343bc291539bae1c6867d69391d26067a1d897
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Kichan Kwon [Thu, 4 Jun 2020 03:36:02 +0000 (12:36 +0900)]
Add some comments about upg-verifier for easy understanding
Change-Id: Id74ee43b3ca8aec60426c68613e0cd875d3ee3a5
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Tue, 2 Jun 2020 05:14:47 +0000 (14:14 +0900)]
Don't update config file after PRE_UA
- upg verification is failed because of manipulation
- Although PRE_UA is remained, tota-ua will skip it
Change-Id: I6ac7ae7e6de207f21b259395bc150336d4f52e15
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 3 Jun 2020 06:00:47 +0000 (15:00 +0900)]
Deny signed file without root CA
- Signed file + Root CA : try to verify
- Unsigned file + Root CA : deny
- Only signed file : deny
- Only unsigned file : skip
Change-Id: I8a8e8eae0fee75396bd7c16a12027f295d084dcd
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 1 Jun 2020 07:13:57 +0000 (16:13 +0900)]
Introduce package verifier
- Before upgrade, upg-verifier checks whether upg has valid signature
Change-Id: I42cc2306b9582413e40f2166b582533d1c121ef6
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Jeon Sang-Heon [Mon, 1 Jun 2020 05:06:59 +0000 (14:06 +0900)]
Remove update-helper
- Remove update-helper
- Give permission to system_fw of tota_dir
- Version up : 1.2.8
Change-Id: I888d52279f754fd004273d71c022dd666639e5f4
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Kichan Kwon [Fri, 29 May 2020 06:14:25 +0000 (15:14 +0900)]
Detach fota_gui
- It is moved to tota-gui
Change-Id: I76e5d141a93193fdc159c07081510e7c57581e0b
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Fri, 29 May 2020 05:49:02 +0000 (14:49 +0900)]
Move fota_gui_test to the tota-ua package
- fota_gui_test is independent from wearable GUI
Change-Id: I40091e2bfad138d296a1fede2890350c5e7a6015
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Jeon Sang-Heon [Wed, 12 Feb 2020 05:20:06 +0000 (14:20 +0900)]
Fix coverity issue
- make cfg_data to null terminated
Change-Id: I95d762dd21e6ad6e18f5b2a9bf9ba18082d3f332
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Jeon Sang-Heon [Mon, 10 Feb 2020 01:17:53 +0000 (10:17 +0900)]
fix memory leak
Change-Id: I1dc2e278dac680b5d0d47790a609db645d9c54a6
Jeon Sang-Heon [Thu, 19 Sep 2019 06:22:56 +0000 (15:22 +0900)]
Add PATH variable to script
Fixed security issue in upgrade-trigger.sh
Change-Id: Ic595ea068087c3bfa6aba830e4dfe6c81a3dcab2
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Kichan Kwon [Tue, 20 Aug 2019 09:10:59 +0000 (18:10 +0900)]
Version up : 1.2.7
Change-Id: I38e1ae87bd838da4a0f8b28231c89fe5377c5aa5
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kwon [Tue, 16 Jul 2019 06:32:47 +0000 (06:32 +0000)]
Merge "Migrate to openssl 1.1" into tizen
Jeon Sang-Heon [Mon, 15 Jul 2019 01:04:32 +0000 (10:04 +0900)]
Add Line feed to all log
Change-Id: I4d75e03ef0465c5d1a5da1763de621d4aea479aa
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Dariusz Michaluk [Fri, 12 Jul 2019 13:25:11 +0000 (15:25 +0200)]
Migrate to openssl 1.1
Change-Id: I6e3d7242d219078e6f46837803b325bcd1f6da5b
Kwon [Fri, 12 Jul 2019 01:54:35 +0000 (01:54 +0000)]
Merge "Delete meaningless configuration" into tizen
Kichan Kwon [Thu, 11 Jul 2019 11:08:08 +0000 (20:08 +0900)]
fota_gui : apply HWC(HardWare Composer)
- Wearable targets use HWC windows since Tizen 5.5
- Commit via HWC if backend has HWC capability
Change-Id: I444050c369d58d2b7ddc4c96df693803720095fb
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
INSUN PYO [Mon, 8 Jul 2019 11:29:01 +0000 (20:29 +0900)]
Delete meaningless configuration
Change-Id: I4699e047dcdb3319c67b59224cf830c9b14af7ad
Kichan Kwon [Fri, 28 Jun 2019 06:29:50 +0000 (15:29 +0900)]
Revert missing TZ_SYS_UPGRADE
Change-Id: Ia961c75939454831bf4d2569adbccb94174ae12d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Sunmin Lee [Mon, 18 Mar 2019 06:59:08 +0000 (15:59 +0900)]
Revert "Apply upgrade path config: TZ_SYS_UPGRADE"
This reverts commit
9633446018c18469d167a1cabbf5cfa601140010.
Change-Id: I41bde7ffc24ef34db829c29fd768efbc9b41f361
Sunmin Lee [Mon, 17 Sep 2018 01:36:46 +0000 (10:36 +0900)]
Run Package Verifier at upgrade-trigger.sh
In some cases, the verifier needs to be run at the
upgrade-trigger.sh before enter the upgrade mode.
Change-Id: Ie93c13898ad335b8290491d9a577ffe32ca81f7d
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 17 Sep 2018 09:23:35 +0000 (18:23 +0900)]
update-helper: New dbus method "get_result"
Introduce new dbus method to get the result of update.
Change-Id: Ie0e9c476ddb0ce7f89b92b51e710252105ff7853
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 10 Aug 2018 00:56:29 +0000 (09:56 +0900)]
Introduce dbus activation for update-helper
Introduce dbus activation for update-helper service
which substitutes previous path activation.
Change-Id: I3b34fff84a009ef46a655433b9121d6dec344c43
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 27 Apr 2018 05:02:39 +0000 (14:02 +0900)]
Apply upgrade path config: TZ_SYS_UPGRADE
Replace hard coded path with platform config path.
Change-Id: Ia1a4b9074dff75fdd3d4173c84bfabdcc6f7f3dd
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 26 Jul 2018 07:27:52 +0000 (16:27 +0900)]
Require libtota as shared
As a default, make tota-ua (delta.ua) require libtota.so
instead of static one.
Change-Id: I7477e7ad6f2c60cdb1ae45d356a042c43a2534f3
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 27 Apr 2018 05:02:39 +0000 (14:02 +0900)]
Fix typo
Change-Id: I697f4970ca757945568b99c63160210e1167ece0
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 14 Feb 2018 02:40:56 +0000 (11:40 +0900)]
Patch for update-helper
The update-helper is a system privileged service that:
- executes the TOTA trigger script
- copies the update result to DOWNLOAD.PATH which can be
accessible by downloader (ex. client)
Change-Id: I9df91e1417ffdb80937d4be9d8af1e80c2e1c6d1
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 12 Mar 2018 07:21:40 +0000 (16:21 +0900)]
Merge branch 'tizen_4.0' into tizen
Change-Id: If978b9a396fd2ca73f3b55f18b04d4a670d774bd
sanghyuk Ko [Thu, 7 Dec 2017 05:56:53 +0000 (14:56 +0900)]
Change parameter of SS_Get_last_update_status API
Change-Id: I45ac37992e9cda6d53aeb31c12fb703391177d82
sanghyuk Ko [Mon, 4 Dec 2017 12:54:38 +0000 (21:54 +0900)]
Tried to update the applied file when second update
Files that are applied the patch during the update are skipped during the second update.
Files that are deleted during the update are skipped during the second update.
Change-Id: Icb563c1fc7693287232d52dd38f15d3ccf4115a7
Sunmin Lee [Fri, 9 Feb 2018 02:19:23 +0000 (11:19 +0900)]
Merge branch 'tizen_4.0' into tizen
Change-Id: I6946fcc963c19c9d53c8bf148717038f678931a5
Sunmin Lee [Thu, 1 Feb 2018 07:53:15 +0000 (16:53 +0900)]
Remove unnecessary package requirement
For now, no code of tota-ua requires libsmack.
Change-Id: I7cd40d610df67f445225f74e84c70a108fddc571
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 11 Jan 2018 01:22:12 +0000 (10:22 +0900)]
Apply new version format
Tizen version used by RW scripts is changed to
4-digit (ex 4.0.0.0).
And remove the release number because it will not be used.
Change-Id: Icd65ce7c3d9f0535d4d4c3726bbb1eaa78d1bf6d
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Kichan Kwon [Tue, 9 Jan 2018 07:50:54 +0000 (16:50 +0900)]
Run pre-script before system-update if exist
Change-Id: Ia71e239e87dcf28fc586e6397b78edd611993f96
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 8 Jan 2018 11:00:37 +0000 (20:00 +0900)]
Refer config file when trigger can't find device path
Change-Id: Idd5b34c0682dd34c53c18f8bb4dd5b2399e873fc
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Fri, 3 Nov 2017 10:05:30 +0000 (19:05 +0900)]
Migrate UA data structures to libtota
- To prevent error by structure difference
- You can see the ua_types.h in the libtota
- NOTICE : it must be merged along with the libtota patch
- https://review.tizen.org/gerrit/#/c/158841/
Change-Id: I743da85dcaa8450d266bd50cac9749b0146fd3a7
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Sunmin Lee [Fri, 15 Dec 2017 07:22:36 +0000 (16:22 +0900)]
Use the same path for update
Change-Id: Ie6b90ffd6011d0ac9340d44da738ef6c5908fefd
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 15 Dec 2017 02:46:52 +0000 (11:46 +0900)]
Arrange the error cases
Arrange the error cases of tota-ua
- Cleanup the unused cases
- Add catch clause for missing cases
Change-Id: I15f94e9ea936612402eb023e0c05fb69384cef6c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 4 Dec 2017 07:50:57 +0000 (16:50 +0900)]
Add required package
The "tar command" is required for upgrade-trigger.
Specify this dependency in spec file.
Change-Id: I345535362493cc4e7e5aa9b4adceb44f6238c6c5
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 22 Nov 2017 06:18:15 +0000 (15:18 +0900)]
Merge branch 'tizen' into tizen_4.0
- Remove target dependent partition information
- Remove the target dependency for UA and script
- Remove SS_RECOVERYRAMDISK
Change-Id: I3dbc22b09748b3ccaacf1895f149734c3aad2da2
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 2 Nov 2017 09:32:24 +0000 (18:32 +0900)]
upgrade-trigger: flash some images preceding update
A new update type PRE_UA means that the image
would be flashed by upgrade-trigger.
The upgrade trigger was modified to flash the image
according to update type in config file.
Change-Id: Ic8eb33b408f3479bdbbedaab8bde180dab5781da
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Kichan Kwon [Wed, 1 Nov 2017 05:46:42 +0000 (14:46 +0900)]
Remove SS_RECOVERYRAMDISK
- All targets are using ramdisk-recovery to upgrade
Change-Id: Ib2a95e3bf04c9e8a880f910b5a83ea72f21f0bfd
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Tue, 31 Oct 2017 05:52:12 +0000 (14:52 +0900)]
Remove the target dependency for UA and script
- No more need target specific package if GUI is not used
- Component
- tota-ua : UA, upgrade trigger
- target_X : GUI (in current, only wearable)
Change-Id: I26167d869a60034b9eb9224622521e6afe99d540
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Fri, 27 Oct 2017 05:19:06 +0000 (14:19 +0900)]
Remove target dependent partition information
- To target independent, we remove these below
- Default partition configuration
- Partition-dependent error value
- UPG always make config file if successful, so
UA doesn't have to know it already
- If config file is not found, stop upgrade and return error
- NOTICE : it must be merged along with the libtota patch
- https://review.tizen.org/gerrit/#/c/158166/
Change-Id: I9ca5665b06cf8066f701016309d6b22712db492c
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Sunmin Lee [Thu, 2 Nov 2017 09:32:24 +0000 (18:32 +0900)]
Flash recovery kernel before update
In Tizen 3.0, the recovery kernel was not exist, neither.
Therefore it should be flashed in advance like ramdisk, ramdisk-recovery.
Change-Id: I5ad7d9667d18756fc2e7a5202f2b7ad7de30be45
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 25 Oct 2017 08:16:32 +0000 (17:16 +0900)]
Release 1.0.0
tota-ua for Tizen 4.0 is released
(accepted/tizen/4.0/unified/
20171011.150240)
Change-Id: I6ed67477ed5b9c0d97735bde637cab6d97d0bb47
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 24 Oct 2017 11:26:12 +0000 (20:26 +0900)]
Adjust feature definitions
The SUPPORT_CAPABILITY feature is necessary for rpi3, too.
And remove unused fature definition.
Change-Id: I2f91fdb924c5f1868d5fd6410cd9ca2d991b4dc4
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 25 Sep 2017 10:22:28 +0000 (19:22 +0900)]
Patch for TW2
The latest codes for TW2 is alomost same with TW1.
Therefore apply differences of TW2 codes to TW1 and
make it common codes.
Change-Id: I6ed4a4f095c53294cce1bda41396be0ca75b7bf5
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 8 Sep 2017 01:57:56 +0000 (10:57 +0900)]
Apply the latest codes for fota gui
Current fota_gui codes are based on old tdm library.
This patch applies the lastest changes for fota gui.
Change-Id: I6b4334799fba12e306b89535a14014d08b0e7cfe
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 25 Sep 2017 01:45:37 +0000 (10:45 +0900)]
Apply Tizen coding rule
Change-Id: I2e9193da5f9000a67f2039440e82fa45d3597d18
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 29 Sep 2017 03:00:27 +0000 (12:00 +0900)]
Unify reboot parameter for upgrade
As common reboot parameter for upgrade,
use "fota" in RPi3 target, too.
Change-Id: I4a1a2bb100d825777249370dcbcccb1e0a02e6d3
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 25 Sep 2017 02:10:33 +0000 (11:10 +0900)]
Add README
Change-Id: I690b241885fbc8dbc8642e63e329820f48753695
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 19 Sep 2017 03:20:24 +0000 (12:20 +0900)]
Fix svace issues
Change-Id: I272dc7e4a6e29484f7b522cc75582a6c41789fa7
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 13 Sep 2017 01:24:45 +0000 (10:24 +0900)]
Apply ASLR to delta.ua
Change-Id: Iacae067657791067052bf2a57c45e9dd4d9e205c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 12 Sep 2017 01:48:26 +0000 (10:48 +0900)]
Fix build warnings
Change-Id: I6d8c2fe644ac565a75d34d86f8808058c7f31c81
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 8 Sep 2017 02:35:27 +0000 (11:35 +0900)]
Apply ASLR to fota_gui
Change-Id: Ie3691a5899c5129b77b1d62ccad8c536b92d6633
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 1 Sep 2017 02:39:28 +0000 (11:39 +0900)]
No verification of EXTRA (RAMDISK2) as FULL_IMG
If RAMDISK2 (EXTRA) is updated as FULL_IMG,
IMG verification is not necessary.
Change-Id: I6a0cacfdf046a08ab45801f6393f6af5f142a02c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 30 Aug 2017 01:12:26 +0000 (10:12 +0900)]
Supplementary patch for upgrade automation
- Truncate target suffix from trigger and rename it instead
- Recover tota directory: do not exit the script when it doesn't exist
Change-Id: Ib63e25b98e8437f0928727794b67c90da700dc7f
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 28 Aug 2017 02:49:42 +0000 (11:49 +0900)]
Add scripts for upgrade without client
Include below scripts for upgrade
- upgrade-trigger-(rpi3, tw1).sh: upgrade preparation script as like client
Change-Id: I08fbd9282b9c9027ff541c49d160125d64af9dcf
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 22 Aug 2017 00:08:46 +0000 (09:08 +0900)]
Remove dummy resource for non-gui target
The target gui not supported does not require gui codes
to be compiled. This patch excludes gui sources from non-gui
tota-ua package.
Change-Id: I4a6930525e9f2836e3e8b52765eeda5dd0ec28bd
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 24 Jul 2017 01:53:28 +0000 (10:53 +0900)]
Make build time feature to flag based
The FEATURE_SUPPORT_CAPABILITY was used to build time feature,
but the target code (SS_FSUpdate) was moved to libtota.
To control the feature in tota-ua, make the feature to API
and set the value in tota-ua.
Change-Id: Ie6d041284e29e4e559916b2abd3fd80b4b6f1cfc
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 24 Jul 2017 01:53:28 +0000 (10:53 +0900)]
Fix vulnerabilities
Change-Id: I0499762ff502b51ac4e5ae384a67640cc89e322a
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Kunhoon Baik [Tue, 25 Jul 2017 06:08:58 +0000 (15:08 +0900)]
Fix unintented depenedency issue
Only one user-agent per target should be installed.
If per target agent has dependency on the main package,
conflict packages should be declared to avoid multiple target agent installation.
Thus, this patch defines the conflict packages for each user-agent per target.
Eventually, per-target agent will be removed.There are per-ux specifc agent will be created.
For example, circle-ux-agent, box-ux-agent, no-ux-agent.
Change-Id: I2b20879adb7e67997e3805b6193a2301c561b17d
Sunmin Lee [Wed, 5 Jul 2017 02:44:29 +0000 (11:44 +0900)]
Add TW1 resources
Change-Id: I981fa028dd508e2c7067fdd82234a199cc9fbc95
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 23 May 2017 02:55:47 +0000 (11:55 +0900)]
Integrate some common codes to libtota
There were duplicated codes in tota-ua and libtota.
It would be better to integrate in one place and manage them.
Change-Id: I20108e80f4731adac60ee1510834bcfdf0a96a4e
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 19 May 2017 07:02:07 +0000 (16:02 +0900)]
Move SS_FSUpdate.* to libtota
SS_FSUpdate is considered as part of libtota.
To get rid of ss_engine from tota-ua, move it to libtota.
Change-Id: I2524ad851927353d49f4b53827f7a92d9cd1a1c4
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 13 Jul 2017 01:44:28 +0000 (10:44 +0900)]
Initial codes of tota-ua
Change-Id: Iffdb362865f9dfbef2aeccf79cf760e09634c4c3