public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH] meta-isar: Enable image installer support for RPi targets
Date: Thu, 14 Nov 2024 15:55:29 +0200	[thread overview]
Message-ID: <20241114135529.1467287-1-amikan@ilbers.de> (raw)

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.

             reply	other threads:[~2024-11-14 13:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-14 13:55 Anton Mikanovich [this message]
2024-11-14 13:57 ` Anton Mikanovich
2024-11-21  6:49 ` Uladzimir Bely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241114135529.1467287-1-amikan@ilbers.de \
    --to=amikan@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox