platform/core/system/initrd-flash.git
5 years agopackaging: spec: add module-init-tools as Requires 97/203397/3
Jaehoon Chung [Fri, 12 Apr 2019 07:26:33 +0000 (16:26 +0900)]
packaging: spec: add module-init-tools as Requires

module-init-tools is provieded commands likes lsmod, insmod, etc.
To enable WiFi device, it needs to include them in image.

Change-Id: Ic4603deb3489ba30582579b839d3a69323f6caa9
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agopackaging: spec: copy broadcom firmware files into image 96/203396/3
Jaehoon Chung [Fri, 12 Apr 2019 07:08:02 +0000 (16:08 +0900)]
packaging: spec: copy broadcom firmware files into image

Copy broadcom firmware files into ramdisk-recovery image.

Change-Id: I043728ff8cb7fbaa4c8065542b51fd712aee1317
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agodata: add broadcom open firmware file and license file 95/203395/3
Jaehoon Chung [Fri, 12 Apr 2019 06:26:51 +0000 (15:26 +0900)]
data: add broadcom open firmware file and license file

Add broadcom opne firmware file and license file for rpi3.
These firmwares take from below url.
- https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

Change-Id: I59fc2ca1e9f28b89afe0a398b1f359a69d088f04
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
5 years agoAdd grep into the list for ramdisk-recovery creation 80/202480/1 accepted/tizen/unified/20190401.225006 submit/tizen/20190329.061322
Dongwoo Lee [Fri, 29 Mar 2019 02:15:42 +0000 (11:15 +0900)]
Add grep into the list for ramdisk-recovery creation

'grep' is used for parsing the current IP address, but grep is not
presented in ramdisk-recovery image basically. To this end, this adds
grep into the list for ramdisk-recovery image creation.

Change-Id: Id208ef8e9dde428daf2ded22a3e0fc0d8dec8610
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoRefactor file download mode 93/201093/1 tizen_5.0 accepted/tizen/unified/20190315.061232 submit/tizen/20190314.014942 submit/tizen_5.0/20190319.011148
Dongwoo Lee [Fri, 8 Mar 2019 07:16:39 +0000 (16:16 +0900)]
Refactor file download mode

To fix the problem of file download mode, and to improve error
handling of mount/unmount operation, this patch refactors file
download mode.

Change-Id: I2df4378bc00181632f1399833221a182a6c4407b
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoCheck failure of network configuration 04/200104/4 accepted/tizen/unified/20190307.231038 submit/tizen/20190222.054942 submit/tizen/20190306.092244 submit/tizen_5.0/20190306.065358
Dongwoo Lee [Tue, 19 Feb 2019 06:55:53 +0000 (15:55 +0900)]
Check failure of network configuration

If network configuration is failed due to some reason, tfm cannot be
proceeded. In this case, reboot the system to retry  when network setup
fails.

Change-Id: Idb615fb455ea2af9226c5caf395e1a06bb94e954
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoPrint out progress status 03/200103/3
Dongwoo Lee [Tue, 12 Feb 2019 04:36:40 +0000 (13:36 +0900)]
Print out progress status

To print out the information about transfer progress and
synchronization state, the additional messages will be added.

Change-Id: I931700c5c9bc88267d656d2ac02b111f1275fa29
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoCorrect dfu thread state 02/200102/3
Dongwoo Lee [Fri, 1 Feb 2019 05:57:35 +0000 (14:57 +0900)]
Correct dfu thread state

There is no need to unlock to change dfu state, this patch removes
lock/unlock between dfu state change. Also, some missing state change
is applied either.

Change-Id: I15215504bc4c2d7ca407285822d2508fe09b5a25
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoUnmount inform partition to clear reboot-param.bin explicitly 01/200101/4
Dongwoo Lee [Thu, 10 Jan 2019 06:27:22 +0000 (15:27 +0900)]
Unmount inform partition to clear reboot-param.bin explicitly

Before synchronizing changes on reboot-param.bin for clear boot
parameter, flash-manager can be rebooted by fatal errors and thus
the target re-enters download mode unintendly. To prevent this,
unmount inform partition right after clearing parameter file.

Change-Id: Ibd5dc72f31cb6b869d7164185ff1a894d615fc47
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoRemove user-level ip configuration 14/196614/1 accepted/tizen/unified/20190104.061230 submit/tizen/20190102.221308 submit/tizen/20190103.040758 submit/tizen_5.0/20190103.041413 submit/tizen_5.0/20190110.063209
Dongwoo Lee [Thu, 27 Dec 2018 04:25:26 +0000 (13:25 +0900)]
Remove user-level ip configuration

Since rpi u-boot can support ip configuration thorugh kernel itself,
user-level configuration is no more needed. Since this patch, just
prints out to inform IP address to user which is configured by kernel.

Change-Id: I92cff85c050119af4b3706b802a1df956967a80f
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoUpdate partition info file 92/196492/2 submit/tizen/20190102.053705
Dongwoo Lee [Mon, 31 Dec 2018 07:59:08 +0000 (16:59 +0900)]
Update partition info file

To support dtb files, all dtbs are included. In addition, to specify
the board, now partition file has the name of the board as prefix.

Change-Id: I1278108ac90ce2d6b5e3f93c05fd1b9048f3abe8
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoUse static partition node 50/196050/5
Dongwoo Lee [Fri, 21 Dec 2018 04:05:33 +0000 (13:05 +0900)]
Use static partition node

Label-based search for target partition node cannot be successfully
proceed for all cases. So, this patch removes label-based search,
and adds static partition node to information file to be used for
target partition node.

Change-Id: I2636ddabe9ea46f916d0faa4dd02a7a5bed3242a
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoImprove dfu thread state for safe exit 62/195662/2
Dongwoo Lee [Mon, 10 Dec 2018 07:48:43 +0000 (16:48 +0900)]
Improve dfu thread state for safe exit

To acomplish exit process safely when tfm fails to flash image, this
patch improves dfu thread state. Since this, dfu thread could be
canceled only when flashing is not proceed to protect the target.

Change-Id: I7c1b50520ec6b70a51afe2af222d7449022fdbed
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoClean up file list for ramdisk-recovery image creation 63/195663/2
Dongwoo Lee [Fri, 7 Dec 2018 00:48:28 +0000 (09:48 +0900)]
Clean up file list for ramdisk-recovery image creation

This patch changes the action of file list properly, and removes
unnecessary entries.

Change-Id: Ib856faa87dc1c506ce5c17d91b3a6d0277088bd6
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoFix partition search for ramdisk-recovery image 78/195978/1
Dongwoo Lee [Thu, 20 Dec 2018 07:34:43 +0000 (16:34 +0900)]
Fix partition search for ramdisk-recovery image

Since ramdisk-recovery.img is mounted on memory space and it also has
the same label with physical partition, the target partition could be
wrong if the ram-mounted partition is searched first. To resolve it,
this fixes partition search as excepting the devices including 'ram'
on its node name.

Change-Id: I15b6124eb202f0c5ddbe8ca518bfcc892309aa9a
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoRemove unnecessary conditional statement in CMakeList.txt 50/192150/1 accepted/tizen_5.0_unified accepted/tizen/5.0/unified/20181217.141949 accepted/tizen/unified/20181107.081814 submit/tizen/20181102.055037 submit/tizen_5.0/20181107.081820 submit/tizen_5.0/20181214.082247
Dongwoo [Wed, 31 Oct 2018 02:19:53 +0000 (11:19 +0900)]
Remove unnecessary conditional statement in CMakeList.txt

To resolve asan build error, unnecessary conditional statement
for adding linker option will be removed from CMakeList.

Change-Id: I94da35d24280653527b652da77f645549b088c4e
Signed-off-by: Dongwoo <dwoo08.lee@samsung.com>
5 years agoFix error path of main thread with freeing allocated buffer 02/190802/3 accepted/tizen/5.0/unified/20181102.021321 accepted/tizen/unified/20181011.095115 submit/tizen/20181010.051409 submit/tizen_5.0/20181101.000004
Seung-Woo Kim [Fri, 5 Oct 2018 09:46:41 +0000 (18:46 +0900)]
Fix error path of main thread with freeing allocated buffer

There can be memory leak for strdup(). Fix error path of main
thread with freeing allocated buffer.

Change-Id: I292d66d8b9f5c857a692f35a9867d221dabb6a7d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoCheck whether creating temporary directory is success or not 97/190797/1
Seung-Woo Kim [Fri, 5 Oct 2018 09:16:29 +0000 (18:16 +0900)]
Check whether creating temporary directory is success or not

There is no checking created temporary directory. Check whether
creating is success of not.

Change-Id: I499d34487659f8d3b83b706c98d8fa8d8e5f3251
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoFix to convert variable type explicitly 06/190606/4
Dongwoo [Thu, 4 Oct 2018 01:22:47 +0000 (10:22 +0900)]
Fix to convert variable type explicitly

This patch resolves svace warnings "SIGNED_TO_BIGGER_UNSIGNED", which
means assignment of a signed value which has type int(void*) to a
variable of a bigger integer type uint64_t.

Change-Id: Icb9576641a41f695272d61fd1f0847884b865935
Signed-off-by: Dongwoo <dwoo08.lee@samsung.com>
5 years agoFix build warnings with -Wformat 12/190612/2
Seung-Woo Kim [Thu, 4 Oct 2018 06:22:50 +0000 (15:22 +0900)]
Fix build warnings with -Wformat

There are build warnings with -Wformat for printing format for
size_t and ssize_t. Fix the build warnings with profer formats.

Change-Id: I82f50c8541b9bc4ffba36f01b0c84eb89e04c12b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
5 years agoFix wrong check of empty queue 32/190632/2
Dongwoo [Thu, 4 Oct 2018 08:40:07 +0000 (17:40 +0900)]
Fix wrong check of empty queue

This patch resolves svace warnings "DEREF_OF_NULL", which means that can
have only NULL value. Even it is false positive, the condition is also
wrong because it should continue iteration if queue is not empty.

Change-Id: I445463c9ef4522e3e58923fbcbda01d0ce606dcc
Signed-off-by: Dongwoo <dwoo08.lee@samsung.com>
5 years agoRecognize partition device name by blkid label 81/188081/5 accepted/tizen/unified/20180918.152300 submit/devel/20180917.094703 submit/tizen/20180917.095112
Dongwoo Lee [Fri, 25 May 2018 00:15:30 +0000 (09:15 +0900)]
Recognize partition device name by blkid label

In certain case, target board can have different device name for
storage. So, static device name cannot be applicable for all cases.
This patch gets device name from blkid information within target
storage instead of static information in partition table.

Change-Id: I171fa8d5da79ea815b1acdef438908849a37861b
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoAdd pre-defined partition information for RPI3 80/188080/3
Dongwoo Lee [Tue, 15 May 2018 02:14:45 +0000 (11:14 +0900)]
Add pre-defined partition information for RPI3

The partition information about RPI3 will be added. This inforamation
is retrieved from sd_fusing script in RPI3 kernel repository.

Change-Id: Iac335daf5c285264c8d73a21c616035373028a5b
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoAdd script for enabling flash-manager for ramdisk-recovery image 79/188079/3
Dongwoo Lee [Mon, 16 Apr 2018 02:24:01 +0000 (11:24 +0900)]
Add script for enabling flash-manager for ramdisk-recovery image

This patch adds scripts for creating ramdisk partition image. The
script will be executed while MIC builds ramdisk image as copying
list of required files for building ramdisk-recovery image.

Change-Id: I63ac7dcde55df26217de46f9bfab63dd1faebb7f
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agoAdd initial implementation of network backend 78/188078/3
Dongwoo Lee [Thu, 2 Nov 2017 21:33:17 +0000 (06:33 +0900)]
Add initial implementation of network backend

This is initial version of flash-manager with network backend. The
entire structure would be evolved while the new feature is added.

Change-Id: I659c2795d339060afada9a9ffd5f41294c17f228
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agoCreate spec file for RPM package 42/179042/1
Dongwoo Lee [Mon, 16 Apr 2018 01:45:17 +0000 (10:45 +0900)]
Create spec file for RPM package

This patch creates files required to build the RPM package. Althogh it
is possible to build the package, only one empty RPM file would be
created since source files are not implemented yet.

Change-Id: Ie3ce70a8c2b00b9aaa88610bcdfdcf9384daa06d
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agoInitial empty repository master
Tizen Infrastructure [Wed, 9 May 2018 09:49:30 +0000 (09:49 +0000)]
Initial empty repository