From patchwork Tue Jun 25 15:02:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Mikanovich X-Patchwork-Id: 3633 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 25 Jun 2024 17:02:30 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f191.google.com (mail-lj1-f191.google.com [209.85.208.191]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 45PF2UGC026095 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 25 Jun 2024 17:02:30 +0200 Received: by mail-lj1-f191.google.com with SMTP id 38308e7fff4ca-2ec4efbbb7asf27154181fa.2 for ; Tue, 25 Jun 2024 08:02:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1719327744; cv=pass; d=google.com; s=arc-20160816; b=Hjar1rgOyUBhjJgX050MBmWF2pqU4DWdFjPrEY5u2NJpOrA4TjYM9vY5GWzhA75MQR 47GHzlP+QpO8ctd+0fo5FaukY5ON8K5BQ5fgbk5Mf4TwC6gZqpMyZzho+mOCpzgWLZSJ CzHMPnSdhwxMqdnMgItf3EBfLIQ6SkSrFe487iTBvU/1U9QvnPYrecCPdJE9aPT69v8S 5vCZRCafFHxSwkH1Y3+21jKuOg0GSIdNR3p8J5jCkP2zpcnhv0Wkn329wXiSHGeHLvM0 UBzFQXOb6lxS23/vC+MJxcK3TTFFO5AGfeBgtEwg0ZcE3y0B9ENrEHUwm9TaLUGeq2qM w8Mw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=DFj3/oMQlVa+HOTxb/xiN55jQoRPd2APyXhxHruti/8=; fh=v63fCEbZ24ENk830BK/QdrPkrsAqBz7GdOCsFiC3UZ0=; b=yGxTlR2Sp+d6J91P6pCjjYky1k+UHrxYhdx//JFTsnVmUZ7rRnHGFB/G0yGU3bF7Po csiXCECwkCMc85vJery7x+dECiyNt25eB0j5wA6FnmpGSwToTeyEvmaGAn8ofbvh5tCm 7Q18JAyOJrwNgZMd6UB7CwyeVDjof/hkjLLVMI+j1AhFfPIniXYesaGsw75BcGv9xx9H EJ0N9H9wqIWSshHAHcV5qXeb+CcyTx346kq4mzWphGJlnzvRsU30eTetqCMRO5Qxs6s6 /bmSu/nlQ69Eg5eO/ksFxTTYODxJ7shZP0PExrPOMQXfcBKy2eQhsRPIJhVSqLYveUCH SAPw==; 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=1719327744; x=1719932544; 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:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=DFj3/oMQlVa+HOTxb/xiN55jQoRPd2APyXhxHruti/8=; b=YeWvvsiN4I+/0nKEnJvun7wxM262vYlTE+OxNZTTkQ3rG3WSdJzBKaVSnPRwF0Axp7 to2r/5Ib6oWO55oOkL9TUwaeLiTTiRUmpYeq0BllQmQWuFwE+JRQdmWfRwpY/7pSoMf/ TjZ8Qx+OkESd62dNejxgM4DbAhLpJfew3m5wyWgNwZa6JdgcGjHc+wyuTZF2drdP+jFA julTvmNczMpdE2+7Kgw3w+9XviA4OTO7IY1yP2SVuY6JjlS1CTAw5fjUtPIvijxYQ2PT IQm4FfscqgWFwLLVLN3LGwUyM6PhBmzGv0u1rovQKC6fxmNaRaZgvmoooa0Djmz4mwSX jXZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719327744; x=1719932544; 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 :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=DFj3/oMQlVa+HOTxb/xiN55jQoRPd2APyXhxHruti/8=; b=qxepD3mXMB4CAZkTjYcvpv+33mAQ5HazrhJEk0brLeZeSwElel2Vt7e/thP/y9ijiZ ZI9F72V+/pjEpUKwUlP84GOg+XLENiVeckA31Xhi2cGIgOOITA33sbgaZOCFQcIGwDvy e9efL1va51GqjVnmD7g02wonE8AtpfY4pmXYW85fLGVm8ZTCGgWTGb2RbSv44+B4AH+v mAsssHF1RqGLgteBMUgVAQY83aa+9AqzHTIkjWgmUilMPgEROhv4SABZgbMxuA5J5zOg 4fBhdk5uxbP8flxVSlF1GRYbopcmq2+V9EEGNaJxbgcAh93pz6I6BxKmOePF8QkGezyX P/nQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVThCUBAtAlgIeupmeumRa2J51hfAU5P7BBo7IDadyaNPfBlWrNBuZ42G6idAxXUpi3rIbRg4f+O+67zaIln3WyTcp1hJA= X-Gm-Message-State: AOJu0YzsUr+aSAAbzSy3wQP8ybQAW5GGuv7ORvdFI93fRqZZS6WW/658 bNylVd/90BlSFWOOmqB+b2OQJJV05JLLSsfDDy/8EytZrzbYgJsj X-Google-Smtp-Source: AGHT+IEDKB2aL/kGaC/WXqhVeST3MdUyKoorXcB5g029Rgo424YIYIR6Ct/53kG3/aATBznHQFJCZA== X-Received: by 2002:a05:6512:ac8:b0:52d:582e:4111 with SMTP id 2adb3069b0e04-52d582e41d9mr212179e87.18.1719327743207; Tue, 25 Jun 2024 08:02:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:5232:0:b0:52c:a25e:f9d2 with SMTP id 2adb3069b0e04-52ccf09edafls2341917e87.2.-pod-prod-05-eu; Tue, 25 Jun 2024 08:02:21 -0700 (PDT) X-Received: by 2002:ac2:58f5:0:b0:52c:a5cc:27e7 with SMTP id 2adb3069b0e04-52ce185d097mr5271546e87.66.1719327740051; Tue, 25 Jun 2024 08:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719327740; cv=none; d=google.com; s=arc-20160816; b=O3aEvaL+LXXbMDpwufZaKDUeOTTYISZhTXsI1TBtVQ14/8gjzIGEwZqYB/KWaQuVGr LatgHfSwngbfmQtmvRhp7O85ToneYayJyB+qlxRqUnnU9Bmit2H+u8UcGtGYOKuyIGCy raEwSvuhtoxrtiXUN/YbGHq0xCoy7wryCaO+bHKD8UJiz42t8unj9VeJweqxWsZVnfQJ g327b1rlYL5eaJqfrx1qUSRWx3k/SyrlUuHoqOZUYuIp32OYfjjHruvbSdZjPVcJkK5O gXMq2Fn7TLfm83prBh8f9ts47QafHyjXuqdxrCcKrfU8RkLX7+xeFOHqiu/a5V7NPHPW saWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=kKS1i2m/2dxQT8B4/0jNBkdN/9LWNk7z6AIReq737qE=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=IOAzM9QDFZZYL0Cfjpx72Olr4KMiPFxXdm21DvVtnWOCaA8oRSNrGcUlsZ0mPejfWb iouOwmS8UcZ5YYZRxZSSPUzrn/oCFmImM/gYFakRolR3az0W6eRNosm5vWAcmCmvhPx2 yoApgQYq4XP7bcqpjBBE0i86r1+v9Itz6TWsa3Jfg9Y16T3p9XYi066iH5tzdbZX6GlH ASWGWdX5EeSmo3g+8ilAWEFKM+f3sPaTRQy0b5lzOUW5697iNKpo43kVsU1PHbeicUtI 2xjuAVqD5OfOZoxCrW3ay8/nEiccsD8juRaeJCfOF+u0QsGczWcHUry9AI5AOO0LRjD5 Dazg==; 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 2adb3069b0e04-52cd63bdbfesi193149e87.4.2024.06.25.08.02.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Jun 2024 08:02:19 -0700 (PDT) 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 45PF2HKP026036 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jun 2024 17:02:18 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v2 1/4] meta-isar: Switch phyboard-mira to mainline kernel Date: Tue, 25 Jun 2024 18:02:07 +0300 Message-Id: <20240625150210.417117-2-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240625150210.417117-1-amikan@ilbers.de> References: <20240625150210.417117-1-amikan@ilbers.de> 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_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?= As the board is already supported by currently available 6.6.11 kernel. Config fragment verification was moved to the separate function check_fragments_applied() so it can be omitted. Signed-off-by: Anton Mikanovich --- meta-isar/conf/machine/phyboard-mira.conf | 2 +- ...bsinstall-fix-installing-DT-overlays.patch | 30 ------------------- .../linux/linux-mainline_6.6.11.bb | 8 +++-- .../linux/linux-phy_5.10.76-phy4.bb | 16 ---------- .../recipes-kernel/linux/linux-phy_6.6.11.bb | 14 +++++++++ 5 files changed, 21 insertions(+), 49 deletions(-) delete mode 100644 meta-isar/recipes-kernel/linux/files/0001-dtbsinstall-fix-installing-DT-overlays.patch delete mode 100644 meta-isar/recipes-kernel/linux/linux-phy_5.10.76-phy4.bb create mode 100644 meta-isar/recipes-kernel/linux/linux-phy_6.6.11.bb diff --git a/meta-isar/conf/machine/phyboard-mira.conf b/meta-isar/conf/machine/phyboard-mira.conf index 0bc60cb0..feec4e54 100644 --- a/meta-isar/conf/machine/phyboard-mira.conf +++ b/meta-isar/conf/machine/phyboard-mira.conf @@ -16,7 +16,7 @@ MKUBIFS_ARGS := "-m 0x800 -e 0x1f000 -c 8012" UBINIZE_ARGS = "-vv -m 0x800 -p 0x20000" IMAGE_FSTYPES ?= "ubi ubifs" -DTB_FILES = "imx6q-phytec-mira-ff-rdk-nand.dtb" +DTB_FILES = "imx6q-phytec-mira-rdk-nand.dtb" IMAGE_INSTALL += "barebox" diff --git a/meta-isar/recipes-kernel/linux/files/0001-dtbsinstall-fix-installing-DT-overlays.patch b/meta-isar/recipes-kernel/linux/files/0001-dtbsinstall-fix-installing-DT-overlays.patch deleted file mode 100644 index 0865870d..00000000 --- a/meta-isar/recipes-kernel/linux/files/0001-dtbsinstall-fix-installing-DT-overlays.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 74c2d5edf5d9d601b1caac0cae8be785e45e9af0 Mon Sep 17 00:00:00 2001 -From: Anton Mikanovich -Date: Tue, 8 Feb 2022 19:47:35 +0300 -Subject: [PATCH] dtbsinstall: fix installing DT overlays - -Add dtbo target needed for __dtbs_install to fix 'make dtbs_install' -call. 'No rule to make target' error will occur otherwise. - -Signed-off-by: Anton Mikanovich ---- - scripts/Makefile.dtbinst | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/scripts/Makefile.dtbinst b/scripts/Makefile.dtbinst -index 50d580d77ae9..829609ce29cf 100644 ---- a/scripts/Makefile.dtbinst -+++ b/scripts/Makefile.dtbinst -@@ -29,6 +29,9 @@ quiet_cmd_dtb_install = INSTALL $@ - $(dst)/%.dtb: $(obj)/%.dtb - $(call cmd,dtb_install) - -+$(dst)/%.dtbo: $(obj)/%.dtbo -+ $(call cmd,dtb_install) -+ - PHONY += $(subdirs) - $(subdirs): - $(Q)$(MAKE) $(dtbinst)=$@ dst=$(patsubst $(obj)/%,$(dst)/%,$@) --- -2.25.1 - diff --git a/meta-isar/recipes-kernel/linux/linux-mainline_6.6.11.bb b/meta-isar/recipes-kernel/linux/linux-mainline_6.6.11.bb index d7483eb0..2287e763 100644 --- a/meta-isar/recipes-kernel/linux/linux-mainline_6.6.11.bb +++ b/meta-isar/recipes-kernel/linux/linux-mainline_6.6.11.bb @@ -24,8 +24,7 @@ KERNEL_DEFCONFIG:qemuamd64 = "x86_64_defconfig" LINUX_VERSION_EXTENSION = "-isar" -# For testing purposes only -dpkg_configure_kernel:append() { +check_fragments_applied() { grep -q "# CONFIG_MTD is not set" ${S}/debian/rules || cat << EOF | sed -i '/^override_dh_auto_build/ r /dev/stdin' ${S}/debian/rules if ! grep "# CONFIG_MTD is not set" \$(O)/.config && \\ @@ -37,3 +36,8 @@ dpkg_configure_kernel:append() { (echo "Self-check failed: CONFIG_ROOT_NFS not enabled" && exit 1) EOF } + +# For testing purposes only +dpkg_configure_kernel:append() { + check_fragments_applied +} diff --git a/meta-isar/recipes-kernel/linux/linux-phy_5.10.76-phy4.bb b/meta-isar/recipes-kernel/linux/linux-phy_5.10.76-phy4.bb deleted file mode 100644 index accb3c9a..00000000 --- a/meta-isar/recipes-kernel/linux/linux-phy_5.10.76-phy4.bb +++ /dev/null @@ -1,16 +0,0 @@ -require recipes-kernel/linux/linux-custom.inc - -SRC_URI += "https://git.phytec.de/linux-mainline/snapshot/linux-mainline-${PV}.tar.bz2 \ - file://0001-dtbsinstall-fix-installing-DT-overlays.patch" - -SRC_URI[sha256sum] = "ce0cff708da9f3dca1f6f8d6c433589fd5a5ea8db9e33114f44497ecf873f875" - -S = "${WORKDIR}/linux-mainline-${PV}" - -KBUILD_DEPENDS:append = "lzop" - -KERNEL_DEFCONFIG = "imx_v6_v7_defconfig" - -LINUX_VERSION_EXTENSION = "-isar" - -COMPATIBLE_MACHINE = "phyboard-mira" diff --git a/meta-isar/recipes-kernel/linux/linux-phy_6.6.11.bb b/meta-isar/recipes-kernel/linux/linux-phy_6.6.11.bb new file mode 100644 index 00000000..25864d1c --- /dev/null +++ b/meta-isar/recipes-kernel/linux/linux-phy_6.6.11.bb @@ -0,0 +1,14 @@ +require recipes-kernel/linux/linux-mainline_6.6.11.bb + +SRC_URI:remove = "file://ftpm-module.cfg" +SRC_URI:remove = "file://subdir/no-ubifs-fs.cfg" + +check_fragments_applied() { + echo "Kernel config fragments checking disabled" +} + +KERNEL_DEFCONFIG = "imx_v6_v7_defconfig" + +LINUX_VERSION_EXTENSION = "-isar" + +COMPATIBLE_MACHINE = "phyboard-mira"