* [PATCH] meta-isar: Enable image installer support for RPi targets
@ 2024-11-14 13:55 Anton Mikanovich
2024-11-14 13:57 ` Anton Mikanovich
2024-11-21 6:49 ` Uladzimir Bely
0 siblings, 2 replies; 3+ messages in thread
From: Anton Mikanovich @ 2024-11-14 13:55 UTC (permalink / raw)
To: isar-users; +Cc: Anton Mikanovich
Enable isar-installer usage for Raspberry Pi board.
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
meta-isar/conf/machine/rpi-common.conf | 4 ++++
meta-isar/scripts/lib/wic/canned-wks/installer-rpi.wks | 7 +++++++
2 files changed, 11 insertions(+)
create mode 100644 meta-isar/scripts/lib/wic/canned-wks/installer-rpi.wks
diff --git a/meta-isar/conf/machine/rpi-common.conf b/meta-isar/conf/machine/rpi-common.conf
index 949496ec..4f7a9955 100644
--- a/meta-isar/conf/machine/rpi-common.conf
+++ b/meta-isar/conf/machine/rpi-common.conf
@@ -7,6 +7,10 @@ BAUDRATE_TTY ?= "115200"
IMAGE_FSTYPES ?= "wic"
WKS_FILE ?= "rpi-sdimg"
+INSTALLER_WKS_FILE ?= "installer-rpi.wks"
+
+# RPi have custom kernel file names
+KERNEL_FILE = "${KERNEL_NAME}.img"
KERNEL_TYPE = "raspios"
KERNEL_IMAGE_PKG ?= "raspberrypi-kernel"
diff --git a/meta-isar/scripts/lib/wic/canned-wks/installer-rpi.wks b/meta-isar/scripts/lib/wic/canned-wks/installer-rpi.wks
new file mode 100644
index 00000000..248d2bbc
--- /dev/null
+++ b/meta-isar/scripts/lib/wic/canned-wks/installer-rpi.wks
@@ -0,0 +1,7 @@
+# short-description: Create installer image for RPi machines
+
+part /boot --source bootimg-partition --fstype=vfat --label boot --active --align 4096 --size 10 --use-uuid
+part / --source rootfs --fstype ext4 --exclude-path=install --label installroot --align 4096 --exclude-path=boot --use-uuid
+part /install --source rootfs --change-directory=install --label INSTALLDATA --size 4G --fstype=vfat --use-uuid --align 4096
+
+bootloader
--
2.34.1
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20241114135529.1467287-1-amikan%40ilbers.de.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] meta-isar: Enable image installer support for RPi targets
2024-11-14 13:55 [PATCH] meta-isar: Enable image installer support for RPi targets Anton Mikanovich
@ 2024-11-14 13:57 ` Anton Mikanovich
2024-11-21 6:49 ` Uladzimir Bely
1 sibling, 0 replies; 3+ messages in thread
From: Anton Mikanovich @ 2024-11-14 13:57 UTC (permalink / raw)
To: isar-users
14/11/2024 15:55, Anton Mikanovich wrote:
> Enable isar-installer usage for Raspberry Pi board.
>
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
This one wasn't tested on real hardware yet.
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/6105be53-9bb5-4434-b54e-7aceedc27837%40ilbers.de.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] meta-isar: Enable image installer support for RPi targets
2024-11-14 13:55 [PATCH] meta-isar: Enable image installer support for RPi targets Anton Mikanovich
2024-11-14 13:57 ` Anton Mikanovich
@ 2024-11-21 6:49 ` Uladzimir Bely
1 sibling, 0 replies; 3+ messages in thread
From: Uladzimir Bely @ 2024-11-21 6:49 UTC (permalink / raw)
To: Anton Mikanovich, isar-users
On Thu, 2024-11-14 at 15:55 +0200, Anton Mikanovich wrote:
> Enable isar-installer usage for Raspberry Pi board.
>
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
> meta-isar/conf/machine/rpi-common.conf | 4 ++++
> meta-isar/scripts/lib/wic/canned-wks/installer-rpi.wks | 7 +++++++
> 2 files changed, 11 insertions(+)
> create mode 100644 meta-isar/scripts/lib/wic/canned-wks/installer-
> rpi.wks
>
> diff --git a/meta-isar/conf/machine/rpi-common.conf b/meta-
> isar/conf/machine/rpi-common.conf
> index 949496ec..4f7a9955 100644
> --- a/meta-isar/conf/machine/rpi-common.conf
> +++ b/meta-isar/conf/machine/rpi-common.conf
> @@ -7,6 +7,10 @@ BAUDRATE_TTY ?= "115200"
>
> IMAGE_FSTYPES ?= "wic"
> WKS_FILE ?= "rpi-sdimg"
> +INSTALLER_WKS_FILE ?= "installer-rpi.wks"
> +
> +# RPi have custom kernel file names
> +KERNEL_FILE = "${KERNEL_NAME}.img"
>
> KERNEL_TYPE = "raspios"
> KERNEL_IMAGE_PKG ?= "raspberrypi-kernel"
> diff --git a/meta-isar/scripts/lib/wic/canned-wks/installer-rpi.wks
> b/meta-isar/scripts/lib/wic/canned-wks/installer-rpi.wks
> new file mode 100644
> index 00000000..248d2bbc
> --- /dev/null
> +++ b/meta-isar/scripts/lib/wic/canned-wks/installer-rpi.wks
> @@ -0,0 +1,7 @@
> +# short-description: Create installer image for RPi machines
> +
> +part /boot --source bootimg-partition --fstype=vfat --label boot --
> active --align 4096 --size 10 --use-uuid
> +part / --source rootfs --fstype ext4 --exclude-path=install --label
> installroot --align 4096 --exclude-path=boot --use-uuid
> +part /install --source rootfs --change-directory=install --label
> INSTALLDATA --size 4G --fstype=vfat --use-uuid --align 4096
> +
> +bootloader
> --
> 2.34.1
>
Applied to next.
--
Best regards,
Uladzimir.
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/d9b42246b750f449793b9f435b994ea7aa7d980c.camel%40ilbers.de.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-21 6:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-14 13:55 [PATCH] meta-isar: Enable image installer support for RPi targets Anton Mikanovich
2024-11-14 13:57 ` Anton Mikanovich
2024-11-21 6:49 ` Uladzimir Bely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox