From patchwork Thu Nov 14 13:55:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Mikanovich X-Patchwork-Id: 3928 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 14 Nov 2024 14:55:45 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f185.google.com (mail-lj1-f185.google.com [209.85.208.185]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4AEDtjU2002291 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 14 Nov 2024 14:55:45 +0100 Received: by mail-lj1-f185.google.com with SMTP id 38308e7fff4ca-2fb56e144absf3894311fa.0 for ; Thu, 14 Nov 2024 05:55:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1731592539; cv=pass; d=google.com; s=arc-20240605; b=irhZ9CfiZuwc4Um9f07GO98Wr7YbpdMiBVjMTh92TPJzuG4skJdRViUmZ6zEZg9bwq 58u/EQ8r1pAzdwnTrraW06qI3179UgirUI+2BFdb3avoLyC8K6/dL+WSQwLksaGIkNwV rPU148ugI5W1DiEcotuCTMeZmInzR4zDpDsRq8X/1PGCE18VH2uk7eBobRg/oophOgoZ uH4jrS4jjh33OzfA9PeARTzKsPEzX5SkIPB7+7gJp3qKEQYN+z37N65HSPCXYCePeysF g/1wXmsc2NGFZOL68lk3CzexsLfdyJhcSr7ZNiLVQbCmeTY0t5OkpC0KqaVvMDdpFYWF LAMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=uHBpQyxi05xzO3UuJY5+lhqPW+SpCGgGg174G5sx4vA=; fh=XqlTp/47clB/a/hqEa7mP08QcEvURJQg9HIFXuwlrJs=; b=aFGMcJzH7wq2u0hijZw8Q39CmJP781T9l7V0HJ1r0+HzAxYodO0ybHYnpbinhvmO/X BctQrGFnmN7TVm03zKIgcy6A9wJtoWmra6PVQb8xoWEfi6rK5W9K2KjRCBxthwB0MQLs heQJU71bqTM9aIbV1Pr88PLkqCeuWFjGXUx7MAunvHufe8+IrO0K3JNTDnbUOm2ZWjf2 6AriO+XbtsDvIYip6qch+WebKaFFrOi05YS1tGbQXgSZFzI99PQr1I5wopMnXPswA5Tv cchpHU0i8Qq6wi4W2qPz8MFCPQFBFSdeoWolTMMsWbW5xwPywEm9nogprv3y6eB7W9Mz z5ZQ==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1731592539; x=1732197339; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=uHBpQyxi05xzO3UuJY5+lhqPW+SpCGgGg174G5sx4vA=; b=GqV95Kajsa4oBZncSYMAzhUXRvocZkqttPn8lBrQO/qiGVR0TlSxsKfdARCAtLocjo O1Yr9rz0+QPHzKdVVXWdFTOiAn5PJnOSPHCnSfrZlYKqjmtP9ZAPyZA9HlByLmOwenK+ OlL1n6zuA6AAIzeSrTpyTM+sCHa8O8OLu4WLHr7RLQPNCtN5d3kfUtPrRMa5/ySia9Os 3YkDu23ldkTvFZjUhLjKabg7o9AFqeQIg2VkweWebbhK5ZIGwNrZGT81MktD7OZr64YT 63boTrqDaQ920OUlJ1uOelnnptzpiYcM0hIfGQBNx0xeGrLHLt4HQrVSCLyMdxmRP+c7 tY3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731592539; x=1732197339; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=uHBpQyxi05xzO3UuJY5+lhqPW+SpCGgGg174G5sx4vA=; b=jew81Fd6dThw9vE8xEx8y69cKlriitYGebURfB4QRmmjGH3ry70ozmJt92tXWJwxHQ MjrqbHmeYEjeigZFmvFT8tDkhnzy63aQnvz9rU6sHBqUj1OcL92u0aFkxQmTJnoWyWAW MBTzJhUqU4JSuHw8mhvrHPnEmE+II6BNxg6tpNHSds1y/8xWTDD3lKbrK/GFAZnFSIOI QIKSBqTIejAORuAgc4xKr3FqvRpPTYHIwsCtmyshP9tKB25cjkOp+4iHkBxZ//nQwxVF uhWDtVwygd3+P8/vi26h80idH48MFgqud66NXSNiiKjJu86UgrRLdm6y8zmwa9ODjLtk tsEg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVagTO60hP4BXs+nNDJYwuT968879V7QPfstgR6lY5e7wk2B7+nc57QFYcQxL5ZuLPzmozmlPs=@isar-build.org X-Gm-Message-State: AOJu0YxnrVyHH47wYSAgs8Cv9sUBlh9Aa/Y+FlvJFqxNwS358JDkYU9L ZZwrDkzPBHPbg8cCD5WxVarkIChOqQjtn0E7zayjheDQ1HqSWdhJ X-Google-Smtp-Source: AGHT+IHRPatLhMGLKj/nnyrzZlakHPCEVq4URsHXM4McBcz9uoM43sq05PStBRt1UO1abrzWvu3K2g== X-Received: by 2002:a2e:9fc5:0:b0:2fb:607b:4cde with SMTP id 38308e7fff4ca-2ff202a7081mr127358771fa.39.1731592538976; Thu, 14 Nov 2024 05:55:38 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:9646:0:b0:2f3:ee66:7cd with SMTP id 38308e7fff4ca-2ff56adf487ls2523431fa.1.-pod-prod-07-eu; Thu, 14 Nov 2024 05:55:37 -0800 (PST) X-Received: by 2002:a2e:a58e:0:b0:2fb:4ca9:8e2 with SMTP id 38308e7fff4ca-2ff20259630mr132059701fa.28.1731592536776; Thu, 14 Nov 2024 05:55:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731592536; cv=none; d=google.com; s=arc-20240605; b=MUiTh+mYMxHaSAf4nB3cLcEjlFNWUFM7yV4meUtcKqnRreMX/jx8ZwR7MkAfjqe4hq hcsvzEZGcrJm1YD8M12Gtc7VwlkFr/soYg+Hf+73Biroh0101KUOLLRrU0L6p3FUNVey zly7r9K/6+f2ODPXBASoRdMipBzyrIEnqRGdimPwfosH6gwWk8ISikVquLHFlvLgRFhS StHBYGEUGwoErqNPrksvcksnV3viS/nAugKMAKt9OlKnZWdmiicGDk5qF8a2JIHwdRAk 1h2O5YlqA4vhZu6EaHsNaORytr5RZo0Cc6fm4E7YmEBVsgm/PwMMjd4s0OLHf3tyh2X8 HVow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=/SDZPXPGoy4N8dSX3KVIVXItcWkN+l48OyzkCXL947I=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=ZRPatMulA0KXExJk4gRh+j9cq4RivMwOLE+TIGujIi23vDzD3wlVMg0GAzMSqVP58u Q7+hBdiTfB4inQeGCIHOtPgE6U44+TVIuM2ULxTiespw43aldSaCNYVqAKSusiOAcaUK Xv95KNfMp7g4EOvt7Kb/Bkye2TJScvs62ZLibiwrp5YPlNWuE1iNSaZHEmX476gTG8m9 E235J0f138qcaEmT0GJ5b9Yun/x+6bFQ8dCbvrBVc8TF/X+wSl9DPILW5BSegxkso2/O iC+ZanYnT8j+nI5busKMiV3ThQBb7R2wD//4qob+MiR3w2TSiXV88LpL7RJJ0N+SRA1j /lkQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-432dabed334si328525e9.1.2024.11.14.05.55.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Nov 2024 05:55:36 -0800 (PST) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from user-B660.promwad.corp ([159.148.83.114]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 4AEDtZI5002277 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Nov 2024 14:55:36 +0100 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH] meta-isar: Enable image installer support for RPi targets Date: Thu, 14 Nov 2024 15:55:29 +0200 Message-Id: <20241114135529.1467287-1-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: amikan@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= Enable isar-installer usage for Raspberry Pi board. Signed-off-by: Anton Mikanovich --- 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