tizen: Add extlinux.conf file to boot Tizen 38/307938/1
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 14 Mar 2024 10:47:07 +0000 (19:47 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 14 Mar 2024 10:48:38 +0000 (19:48 +0900)
Add extlinux.conf file to boot Tien OS.
It will be used to choose which OS can be booting.

Change-Id: I273b3949f7a0f75830a2f2599251be85669839dd
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
packaging/linux-lpi4a.spec
tizen/extlinux.conf [new file with mode: 0644]

index 9a195bd0445fbeaf0b36a35eed4a5df14e2a1302..1cca94053c31a46a8f93c52403fdc21a76f2c8ca 100644 (file)
@@ -121,6 +121,7 @@ mkdir -p %{buildroot}/lib/modules
 
 # Install kernel DTB
 install -m 644 arch/%{buildarch}/boot/dts/thead/th1520*.dtb %{buildroot}/boot/
+install -m 644 tizen/extlinux.conf %{buildroot}/boot/
 mkdir -p %{buildroot}/boot/overlays
 
 # Install kernel headers
@@ -179,6 +180,7 @@ rm -rf %{buildroot}
 %license COPYING
 /boot/Image
 /boot/th1520*.dtb
+/boot/extlinux.conf
 
 %files -n %{variant}-linux-kernel-headers
 /usr/include/*
diff --git a/tizen/extlinux.conf b/tizen/extlinux.conf
new file mode 100644 (file)
index 0000000..26b4b12
--- /dev/null
@@ -0,0 +1,35 @@
+default 21
+menu title U-Boot menu
+prompt 2
+timeout 50
+
+label l0
+       menu label RevyOS GNU/Linux 5.10.113-lpi4a (HDMI only)
+       linux /Image
+       fdtdir /dtbs/linux-image-5.10.113-lpi4a/
+       append root=/dev/mmcblk0p3 console=ttyS0,115200 rootwait rw earlycon clk_ignore_unused loglevel=7 eth= rootrwoptions=rw,noatime rootrwreset=yes
+
+label l1
+        menu label RevyOS GNU/Linux 5.10.113-lpi4a (HDMI and MIPI)
+        linux /Image
+        fdtdir /dtbs/linux-image-5.10.113-lpi4a/dual
+        append root=/dev/mmcblk0p3 console=ttyS0,115200 rootwait rw earlycon clk_ignore_unused loglevel=7 eth= rootrwoptions=rw,noatime rootrwreset=yes
+
+label l0r
+       menu label RevyOS GNU/Linux 5.10.113-lpi4a (rescue target)
+       linux /vmlinux-5.10.113-lpi4a
+       initrd /initrd.img-5.10.113-lpi4a
+       fdtdir /dtbs/linux-image-5.10.113-lpi4a/
+       append root=/dev/mmcblk0p3 console=ttyS0,115200 rootwait rw earlycon clk_ignore_unused loglevel=7 eth= rootrwoptions=rw,noatime rootrwreset=yes single
+
+label 20
+       menu label Tizen OS GNU/Linux v5.10.113
+       linux /Image
+       fdtdir /dtbs/linux-image-5.10.113-lpi4a/
+       append root=/dev/mmcblk1p7 console=ttyS0,115200 rootwait rw earlycon clk_ignore_unused loglevel=7 eth= rootrwoptions=rw,noatime rootrwreset=yes
+
+label 21
+       menu label Tizen OS GNU/Linux v6.6.20
+       linux /Image
+       fdtdir /
+       append root=/dev/mmcblk1p7 console=ttyS0,115200 rootwait rw earlycon clk_ignore_unused loglevel=7 eth= rootrwoptions=rw,noatime rootrwreset=yes