reboot: support storage partition for delivering reboot parameters 09/259409/6 accepted/tizen/unified/20210609.082341 submit/tizen/20210609.021843
authorINSUN PYO <insun.pyo@samsung.com>
Mon, 7 Jun 2021 09:20:22 +0000 (18:20 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 9 Jun 2021 02:14:10 +0000 (11:14 +0900)
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>
hw/reboot/register_storage [new file with mode: 0644]
packaging/hal-backend-device-rpi.spec

diff --git a/hw/reboot/register_storage b/hw/reboot/register_storage
new file mode 100644 (file)
index 0000000..e69de29
index d6e3911..ed85a4a 100644 (file)
@@ -33,6 +33,9 @@ make %{?jobs:-j%jobs}
 %install
 %make_install
 
+# Reboot register storage
+install -D -m 644 hw/reboot/register_storage %{buildroot}%{_hal_sysconfdir}/reboot/register_storage
+
 %post
 /sbin/ldconfig
 
@@ -41,5 +44,6 @@ make %{?jobs:-j%jobs}
 
 %files
 %{_hal_libdir}/*.so*
+%{_hal_sysconfdir}/reboot/register_storage
 %manifest %{name}.manifest
 %{_hal_licensedir}/%{name}/LICENSE.Apache-2.0