Age | Commit message (Collapse) | Author | Files | Lines |
|
There was a missing code for handling the null character
so that it doesn't exceed the array size when reading and storing strings.
The code has been modified to handle the array safely.
To avoid overflow issue, this is necessary.
Change-Id: Ib75301a07906391c57fb739ef3399ff211cd1503
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Use set_upgrade_type to select the type of upgrade:
* online
* offline
After reboot fota, u-boot will run online or offline upgrade based on
the selected type.
Change-Id: I33c86c91d6f7e13db7a29dde10d3c360b977dd37
|
|
As support hal-abi-versioning, the hal-backend package should be built
using only the hal-rootstrap.
Other packages not included in the hal-roostrap have been deleted to remove dependencies.
util is added to replace functions of dlog and libsyscommon package.
Change-Id: I828813ef12dc695ddf66885269df5aabf2cd8717
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
To make upgrade state getter work even if there are whitespaces before
and after the upgrade state string.
Change-Id: I5aa08651110891a0dce3b5fbdaf72cfe427c7d3a
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
|
|
To clarify the states of upgrade process, "upgrade state" feature is
added.
It is different from the "upgrade status", which looks similar but only
shows the progress(-1 and 0~100) of RO and RW upgrades.
The "upgrade state" shows the upgrade processes by multiple steps.
(Steps follow the definition of the platform)
Since the names "upgrade status" and "upgrade state" are similar,
to distinguish them, "upgrade status" is renamed as
"upgrade progress status".
Change-Id: I7881ade876fa733f1c74ac1017df63d3c0ab31e8
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
|
|
In the hal backend module, when the moudle exits, the hal_backend_[module]_funcs was
handled from [module]_exit function.
The data parameter is handed over from hal-api-common put_backend function.
And data is pointing to hal_backend_[module]_funcs, and free by hal-backend module.
As memory release operation moves to the hal-api-device side,
also double free operation is useless, thus it is deleted from hal-backend.
Change-Id: I8b80ce3180e722fbfe0025c509f3228994a20637
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-memory side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"memory" -> "device-memory"
Change-Id: Ibc48399e2ead7ffcd8aa5f2e1169ba699682eb16
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-touchscreen side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"touchscreen" -> "device-touchscreen"
Change-Id: I6776398dcfa8c36c5749e284ba673e0da08b70d9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-led side and there is no need to be free
hal_backend_module_funcs in backend side.
So, hal_backend_module_funcs free code is removed.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"led" -> "device-led"
Change-Id: Id15deeb9ae80d85c8d9606e7ace8f2815d08cc1e
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-thermal side.
Also, wrong module name is fixed and hal interface inclusion path is changed.
"thermal" -> "device-thermal"
Change-Id: I89caa12d62873b1fcd7d478699cb201d0f44db21
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
To apply HAL ABI versioning, major/minor_version is added.
Also, as removed abi_version policy, abi_version variable is removed.
Change-Id: Ic665ad4881276ca4e0e87a8f352c884773133de9
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-haptic side.
Change-Id: Iac7f8f2b96b4bcd31c3fcbf7bb493580bf1b4fbf
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "haptic" but "device-haptic".
Change-Id: I7123f7905e36dda623bf5e3f1b5afbd94162b91e
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-board side.
Change-Id: I2e26248546fec1622a46b7cb653ea238790f3737
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "board" but "device-board".
Change-Id: I2e9e39f6e6c03b9e1b0c06b83e086930f7c7e9e4
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
As the header files installation path below hal-api-device module is changed,
the inclusion path is also changed.
Change-Id: I7a747f930df63bc65ebf467851ad228c2558cf43
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
To support OS upgrade feature, hal-backend and hal-api module needs HAL ABI versioning.
So, major/minor version is added to hal_backend structure.
While applying HAL ABI versioning, hal_backend_[module]_funcs is allocated from hal-api-[module] side.
Thus, allocation is moved to hal-api-device-display side.
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
Change-Id: I6c77e6cee028ea987f9fa43c2869913b464b1e9a
|
|
According to HAL API Prototype rule,
hal module funcs structure naming should be hal_backend_[module]_funcs.
However, the hal module name was being used incorrectly.
Actual module name is not "display" but "device-display".
Change-Id: I6fc128c1e305dca0f4b2e1137b21f9fffb8f1347
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Change-Id: I0499579065a19d287c10055e7170b755180049b7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
Add available input device type for touchscreen.
Change-Id: I9c604f001162e68338c5a04c5add0c163690074f
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
Add input.conf example file to control input device event
Input device event can be handled by device id number.
With this config file, user can set the input devices to use
Detailed descriptions are exist in this example file.
[InputDeivce] format which is in input.conf
InputDeviceType -> input device type
InputDeviceId -> id number which exist under the /sys/class/input/input(id) path
InputDeviceName -> device name
InputDeviceDefault -> yes/no
Change-Id: I06330bde9b4044cde96a6a0d5eac651af306950b
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
|
|
The service "clone_partitions" performs cloning partitions only when the
bootmode is "normal".
"ramdisk" was mapped to "normal" because cloning partitions should be
performed on both modes.
Change-Id: Idc265bc1c6b96683bd619372ba0d327971ddc616
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
|
|
Change-Id: I07104009925a0501872ba1ade389704fda1cc305
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
|
|
Change-Id: I7de7e713c6a448a833baaaee7d90f6e0e801dcc4
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
|
|
Documents of hal APIs can be found here: hal-api-device/include/hal-board.h
Change-Id: I3c0dff62ba8ca8360c417b8c032bbdd880c80f48
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
|
|
get_partition_status(), clear_boot_mode()
Change-Id: Ifc9c32d3c7c27d42cb907aabf769daa95fa2cefe
Signed-off-by: Marek Szulc <m.szulc3@samsung.com>
|
|
Change-Id: I7b4e338cd86e339dccc26319711b5be09c5d8a09
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
|
|
Change-Id: Ie3946532dbb0c93026fe94156b32504bf3b45fe0
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
|
|
Change-Id: I50226ee8a39fef130201c1ea42b32897e13bce98
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
|
|
Change-Id: Ic217a5077414e9f51c79c6394cff2429cc806e55
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
|
|
The actual operation of usb-gadget is no more hal dependent. Instead,
the deviced is now in charge of running usb-gadget. The hal backend
has changed to provide only target specific usb-gadget configurations.
If there is no target specific configurations, deviced runs usb-gadget
with default configurations.
Change-Id: Idb2ccbb9e4b19651fd2674ec932baac1f82f63e8
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
It creates two libraries that are exactly same except for brightness
nodepath. Each library is packaged into corresponding rpi3/rpi4 rpm.
Change-Id: I3c6498211d3e75eb7541ee1595aa25df070ab051
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
Change-Id: If12534d556b067b2869085fe96c989bfad74e2b2
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
From rpi4 new vendor kernel release, dri nodes are changed between
v3d and vc4, so gem_info can be in card 1. Consider also the
changed sysfs node.
Change-Id: I33cf4f3a0fc515a04f7fb180309610b3db49b7b7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
|
|
Change-Id: Ic42e6ca43297dc8a7e7c9ad8547b0397039e7dd5
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
Change-Id: I02c8ae54c35a4f39b21f40659c314ef2f347bd29
|
|
Change-Id: I5fc2df8336470fb9e24efbebe819706ae9020031
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
Change-Id: Ibc6a1574ad4d872e21bd87ca4c4aa2fe92e10f46
|
|
Change-Id: I57433638117491dfe64d4a2078ccc486697ebec8
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
For better readability and aesthetics.
Change-Id: I3899f5449eba0f3d8d5bb03e20af1fb0409c1504
|
|
Change-Id: I970d4c3488f57379e489e63954502a35dda390cf
Signed-off-by: Adrian Szyndela <adrian.s@samsung.com>
|
|
Change-Id: If115206aaa3d5ea46c0c02d2469cb298f68cbb92
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
Change-Id: I33b2e37cc1b7b48c6cac7145d87e3077d46e7009
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
For haltest, it cannot run by itself because it is not able to resolve
sys_get_int() symbol of libsyscommon. Therefore, provide ldflag to
locate libsyscommon.so
Change-Id: Ic9b4cedce88c888a9925264cfd22ff3504ee5193
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
|
|
Change-Id: I79a94dc5418c83994bd39fedf1504c6c59f32325
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
|
|
In rpi, there is no way for the kernel and bootloader to pass the boot reason.
So, platform provides /mnt/inform (/dev/disk/by-label/inform) storage to kernel.
The kernel passes the reboot reason to the bootloader throught this.
Change-Id: I5f33b54ef653aff08d8e79d71b05f916f695fba7
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
|
|
Change-Id: I293ccef227500f1da22558e16670d37002e60cdf
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
|
|
Change-Id: Ifb5ed73626186e5d250fc5141217c44423100edd
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
|
- memory: DIVISION_BY_ZERO
Change-Id: I17ff0853a48ff6c6c517e6bf97257fd8c02c7650
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|