summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-07-24util: Add handling code to safely read and write arraystizen_9.0_m2_releaseaccepted/tizen/unified/x/asan/20240813.230430accepted/tizen/unified/x/20240726.013207accepted/tizen/unified/toolchain/20240812.132145accepted/tizen/unified/dev/20240729.000858accepted/tizen/unified/20240725.155024accepted/tizen/9.0/unified/20241031.000036tizen_9.0tizenaccepted/tizen_unified_x_asanaccepted/tizen_unified_xaccepted/tizen_unified_toolchainaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedYunhee Seo1-11/+10
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>
2024-07-04Add upgrade type featureaccepted/tizen/unified/x/20240708.014820accepted/tizen/unified/dev/20240709.043434accepted/tizen/unified/20240708.173201Mateusz Moscicki1-0/+51
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
2024-07-03Use only hal-rootstrap package to buildaccepted/tizen/unified/x/20240705.012359accepted/tizen/unified/dev/20240708.001623accepted/tizen/unified/20240704.075638Yunhee Seo18-64/+280
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>
2024-06-20Modify to trim string in get_upgrade_state()accepted/tizen/unified/x/20240625.014038accepted/tizen/unified/dev/20240701.073030accepted/tizen/unified/20240624.104727SangYoun Kwak1-0/+31
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>
2024-06-07Add upgrade state featureaccepted/tizen/unified/x/asan/20240625.092115accepted/tizen/unified/x/20240614.160347accepted/tizen/unified/toolchain/20240624.121337accepted/tizen/unified/dev/20240620.010518accepted/tizen/unified/20240614.084953SangYoun Kwak1-15/+51
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>
2024-04-24Remove free data section when the module exitsYunhee Seo7-24/+0
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>
2024-04-22memory: Apply HAL ABI versioningYunhee Seo1-10/+13
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>
2024-04-19touchscreen: Apply HAL ABI versioningYunhee Seo1-14/+17
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>
2024-04-19led: Apply HAL ABI versioningYunhee Seo1-24/+23
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>
2024-04-19thermal: Apply HAL ABI versioningYunhee Seo1-14/+17
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>
2024-04-15Work in advance to apply HAL ABI versioningYunhee Seo7-7/+8
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>
2024-04-09haptic: Apply HAL ABI versioningYunhee Seo1-6/+11
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>
2024-04-09haptic: Fix incorrect module namingYunhee Seo1-11/+11
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>
2024-04-09board: Apply HAL ABI versioningYunhee Seo1-4/+9
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>
2024-04-09board: Fix incorrect module namingYunhee Seo1-17/+17
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>
2024-04-09Change header file inclusion pathYunhee Seo7-7/+7
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>
2024-04-04display: Apply HAL ABI versioningYunhee Seo1-4/+9
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
2024-03-18display: Fix incorrect module namingYunhee Seo1-8/+8
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>
2023-07-25board: Replace prefix 'libsys' with 'syscommon'tizen_8.0_m2_releaseaccepted/tizen/unified/riscv/20231220.095310accepted/tizen/unified/20230726.163537accepted/tizen/8.0/unified/20231005.094501accepted/tizen_unified_riscvYoungjae Cho1-2/+2
Change-Id: I0499579065a19d287c10055e7170b755180049b7 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2023-02-07input: add information for touchcreen input typeaccepted/tizen/unified/20230209.111301Yunhee Seo1-1/+7
Add available input device type for touchscreen. Change-Id: I9c604f001162e68338c5a04c5add0c163690074f Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
2023-01-16input: add input.conf fileaccepted/tizen/unified/20230118.172022Yunhee Seo1-0/+37
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>
2022-10-06Map bootmode ramdisk to normal for cloning partitionsSangYoun Kwak1-0/+4
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>
2022-09-20Use strtok_r instead of strtok for thread safetytizen_7.0_m2_releaseaccepted/tizen/unified/20220922.114010accepted/tizen/7.0/unified/hotfix/20221116.110413accepted/tizen/7.0/unified/20221110.063505tizen_7.0_hotfixaccepted/tizen_7.0_unified_hotfixDongwoo Lee1-1/+2
Change-Id: I07104009925a0501872ba1ade389704fda1cc305 Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
2022-09-02Fix typo (partition status path)accepted/tizen/unified/20220916.022138accepted/tizen/unified/20220916.022100accepted/tizen/unified/20220915.173211SangYoun Kwak1-1/+1
Change-Id: I7de7e713c6a448a833baaaee7d90f6e0e801dcc4 Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2022-09-02Fix hal APIs according to documentationsSangYoun Kwak1-84/+116
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>
2022-09-01add API functions get_upgrade_status(), set_partition_status(),Marek Szulc1-2/+83
get_partition_status(), clear_boot_mode() Change-Id: Ifc9c32d3c7c27d42cb907aabf769daa95fa2cefe Signed-off-by: Marek Szulc <m.szulc3@samsung.com>
2022-08-17Add hal api (get_boot_mode)SangYoun Kwak1-0/+17
Change-Id: I7b4e338cd86e339dccc26319711b5be09c5d8a09 Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2022-07-14Add hal board functions to manipulate partition/upgrade parameterssubmit/tizen/20220714.055817accepted/tizen/unified/20220715.141308SangYoun Kwak1-7/+67
Change-Id: Ie3946532dbb0c93026fe94156b32504bf3b45fe0 Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2022-07-14Add list of PARTLABEL and LABEL of a/b partitionsSangYoun Kwak3-0/+15
Change-Id: I50226ee8a39fef130201c1ea42b32897e13bce98 Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2022-07-13Add hal board function to get/switch partition_abSangYoun Kwak2-3/+52
Change-Id: Ic217a5077414e9f51c79c6394cff2429cc806e55 Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2022-05-02usb-gadget: remove usb-gadget and add configuration filesubmit/tizen/20220525.001052accepted/tizen/unified/20220526.144121Youngjae Cho5-101/+23
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>
2022-03-04display: separate rpi3/rpi4 nodepathsubmit/tizen/20220308.032646accepted/tizen/unified/20220310.120950Youngjae Cho3-5/+33
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>
2022-02-15Update ABI versionsubmit/tizen/20220222.024249Youngjae Cho8-8/+8
Change-Id: If12534d556b067b2869085fe96c989bfad74e2b2 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2022-02-11memory: consider changed rpi4 dri node for gem_infosubmit/tizen/20220211.102515submit/tizen/20220211.080709submit/tizen/20220210.111655accepted/tizen/unified/20220212.064808Seung-Woo Kim1-5/+9
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>
2022-02-08display: return -ENOTSUP if there is no brightness nodesubmit/tizen/20220208.075544Youngjae Cho1-3/+3
Change-Id: Ic42e6ca43297dc8a7e7c9ad8547b0397039e7dd5 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2021-12-20spec: add "ExclusiveArch: %{arm} aarch64"submit/tizen/20211220.071509accepted/tizen/unified/20211220.133626INSUN PYO1-0/+1
Change-Id: I02c8ae54c35a4f39b21f40659c314ef2f347bd29
2021-09-27touchscreen: disable get/set state by kerenl versiontizen_6.5.m2_releasesubmit/tizen_6.5/20211028.163201submit/tizen/20210927.071602accepted/tizen/unified/20210927.120907accepted/tizen/6.5/unified/20211028.115524Youngjae Cho1-0/+9
Change-Id: I5fc2df8336470fb9e24efbebe819706ae9020031 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2021-08-03Introduce separate package and config for RPi3/RPi4submit/tizen/20210810.054703accepted/tizen/unified/20210810.065637Mateusz Majewski3-0/+49
Change-Id: Ibc6a1574ad4d872e21bd87ca4c4aa2fe92e10f46
2021-08-02thermal: rename device_thermal_e to hal_device_thermal_esubmit/tizen/20210802.064402accepted/tizen/unified/20210804.085740Youngjae Cho1-2/+2
Change-Id: I57433638117491dfe64d4a2078ccc486697ebec8 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2021-07-23peripheral-io: add spaces to uart configAdrian Szyndela1-1/+1
For better readability and aesthetics. Change-Id: I3899f5449eba0f3d8d5bb03e20af1fb0409c1504
2021-07-21peripheral-io: add config file for GPIOAdrian Szyndela1-0/+7
Change-Id: I970d4c3488f57379e489e63954502a35dda390cf Signed-off-by: Adrian Szyndela <adrian.s@samsung.com>
2021-07-05peripheral-io: add uart port-devpath mapping filesubmit/tizen/20210705.023617accepted/tizen/unified/20210705.125141Youngjae Cho2-0/+7
Change-Id: If115206aaa3d5ea46c0c02d2469cb298f68cbb92 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2021-06-18board: fix parameter of get_device_serial_number()submit/tizen/20210618.075427accepted/tizen/unified/20210621.123310Youngjae Cho1-10/+9
Change-Id: I33b2e37cc1b7b48c6cac7145d87e3077d46e7009 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2021-06-17Add libsyscommon to required package to provide linker flagYoungjae Cho2-2/+2
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>
2021-06-14Merge "board: renaming get_device_serial_number" into tizensubmit/tizen/20210614.021455accepted/tizen/unified/20210615.120433Hyotaek Shim1-2/+2
2021-06-14board: renaming get_device_serial_numberYoungjae Cho1-2/+2
Change-Id: I79a94dc5418c83994bd39fedf1504c6c59f32325 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2021-06-09reboot: support storage partition for delivering reboot parameterssubmit/tizen/20210609.021843accepted/tizen/unified/20210609.082341INSUN PYO2-0/+4
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>
2021-06-04Initialization for platform/hal/backend/rpi/device-rpisubmit/tizen/20210604.091051accepted/tizen/unified/20210604.120629Hyotaek Shim4-7/+7
Change-Id: I293ccef227500f1da22558e16670d37002e60cdf Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2021-03-12memory: change return value when node is not supportedYunmi Ha1-1/+1
Change-Id: Ifb5ed73626186e5d250fc5141217c44423100edd Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
2021-02-22Fix svace issuesYunmi Ha1-2/+5
- memory: DIVISION_BY_ZERO Change-Id: I17ff0853a48ff6c6c517e6bf97257fd8c02c7650 Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>