From patchwork Sun Apr 7 19:53:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 42075 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79F10CD129A for ; Sun, 7 Apr 2024 19:54:17 +0000 (UTC) Received: from mail-oa1-f67.google.com (mail-oa1-f67.google.com [209.85.160.67]) by mx.groups.io with SMTP id smtpd.web11.90484.1712519648768222994 for ; Sun, 07 Apr 2024 12:54:08 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=bvccq4ed; spf=pass (domain: konsulko.com, ip: 209.85.160.67, mailfrom: tim.orling@konsulko.com) Received: by mail-oa1-f67.google.com with SMTP id 586e51a60fabf-222a9eae9a7so2000937fac.3 for ; Sun, 07 Apr 2024 12:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1712519647; x=1713124447; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=aFWd4K1sD8262p3ctumxZqYbM0ZWpRsLYec6k8cOVVc=; b=bvccq4edK2/v5CPe9A4GrLdhC8uPrt7jFGuwMVW8Px3sflA1r54UvVOxEeDXebR+KQ 08OsW3/6f1KgQWsDvaVfstIUwE3v0YdCrmCzzcMyzINq6w8u7UoTGmiKsmW3dV48Ksnk N3KVLMEbgA/wu3LXINwiSrQPGd2gEDd+y/HRw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712519647; x=1713124447; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aFWd4K1sD8262p3ctumxZqYbM0ZWpRsLYec6k8cOVVc=; b=M1gdgcUQ+CmrW/SSe4B3yn5AeOYqVlXRpY+CpBqF27RmiM3VCq6IwpT2LzV/L5Glig /OMnwxHaDsuNPUK70dYojkHPrU9MQsErP1b6peasKA95kxIf+wqfodHP+zFUurAQE2rG gY6joQql1EtPFhahnxbJWTfyDRAZqX1ChCMMcfuY6G8+q3iiWmW89L7YEStr0hhNDdLZ PiiQnqWhG3ZC1Zn9XOD54/FhiMXsn9Vuqfrly1lD2QPdEZj7X4oia9/ZfRhwSZhPygdv Gv1jkv5iiiFcentwtj5U6XFv7+FHkf66szkyX2K/OuUTaqp8gfe5v/1Euks0P1mtJcIP vDWg== X-Gm-Message-State: AOJu0YxrcuMyhaVmyhy2XQ828rwdUp5ZvxQPscCzkqYQvpQMNq67ke/m toFFgIUvaBsmMz3fLaOZSruePJ6wmCu9BOAx3kyZIxJG9Btn5FGi5YUjwhlwE6zydtJfFV6L7yg FICT4HNdW X-Google-Smtp-Source: AGHT+IFaYj+LgNFp5YhHjMhMc/ix+VeJYLNkOOwNHt9z+ueBb/zu356CLJc+zVTLjJJQRYDyVABKrA== X-Received: by 2002:a05:6870:80ca:b0:22e:c656:4dc3 with SMTP id r10-20020a05687080ca00b0022ec6564dc3mr8003107oab.12.1712519647676; Sun, 07 Apr 2024 12:54:07 -0700 (PDT) Received: from localhost ([2601:1c0:ca00:bd60:5996:ce4c:d10f:fa94]) by smtp.gmail.com with ESMTPSA id b187-20020a62cfc4000000b006e6b7124b33sm5173425pfg.209.2024.04.07.12.54.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 12:54:07 -0700 (PDT) From: Tim Orling To: yocto@lists.yoctoproject.org Subject: [meta-raspberrypi][PATCH 1/3] layer.conf: rpi5 recommends lts-u-boot-mixin Date: Sun, 7 Apr 2024 12:53:59 -0700 Message-ID: <88d6d14c11d2846531d235ae18f88ddd4391d7a4.1712518899.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 07 Apr 2024 19:54:17 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/62892 Add lts-u-boot-mixin to LAYERRECOMMENDS https://git.yoctoproject.org/meta-lts-mixins 'scarthgap/u-boot' branch adds u-boot v2024.04 support which includes the initial support for raspberrypi5. Signed-off-by: Tim Orling --- conf/layer.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/layer.conf b/conf/layer.conf index 9488ac9..deea4a1 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -11,6 +11,9 @@ BBFILE_PRIORITY_raspberrypi = "9" LAYERSERIES_COMPAT_raspberrypi = "nanbield scarthgap" LAYERDEPENDS_raspberrypi = "core" +# Recommended for u-boot support for raspberrypi5 +# https://git.yoctoproject.org/meta-lts-mixins 'scarthgap/u-boot' branch +LAYERRECOMMENDS_raspberrypi = "lts-u-boot-mixin" # Additional license directories. LICENSE_PATH += "${LAYERDIR}/files/custom-licenses" From patchwork Sun Apr 7 19:54:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 42073 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79108CD1292 for ; Sun, 7 Apr 2024 19:54:17 +0000 (UTC) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mx.groups.io with SMTP id smtpd.web10.90641.1712519650592082520 for ; Sun, 07 Apr 2024 12:54:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=DcB2fMbU; spf=pass (domain: konsulko.com, ip: 209.85.214.179, mailfrom: tim.orling@konsulko.com) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1e3e84a302eso6267215ad.0 for ; Sun, 07 Apr 2024 12:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1712519650; x=1713124450; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=pBN3rSNtCduIZfqDKEvDkJAa+2cgFaLSV0KoNaPiZRg=; b=DcB2fMbUbwKTbkL2rsT/Bcrk4Y7pvjSgt+s6a7evz7lWuWHbMM3mVJF9iJBc/i+hd8 TwChEZQ0WTSAzdVCqw0Jg4kw4cg1Tt4xW5O771400mBLmkp1AR3/mqsmyiW6hgCZ7BMK PiPcWmV8wb06W1UmX6snA2rxLIcOKXgA5ElBY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712519650; x=1713124450; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pBN3rSNtCduIZfqDKEvDkJAa+2cgFaLSV0KoNaPiZRg=; b=svHNVGYorfO7D8PV60R/EZbiiLLFAHaSMxbkH9nC0VBuGdsVPi4Hasa7+Wje+j1CL6 lTlYHnmMlXQ0ga1hi4iE3bK34pqcnVKfUiRO6wZvpjoQswHK50yy+HNldQheL23u6zV+ /F1V8IX2O1ZloQVWRpMq+wZWwEU8rqBKYQdMPY/7iQRSo6Tx9VDoCeuYpXXXyRkrnGG4 hrE3rdat9ED9q3IqEWvn0MY6uTu8A2lYqamzhMRpBAdwLw8hpLkJtLxqJJA9krO0W54R 6rhSOnMGoYqEMAeMO3LoLSgJfPSbRGV+D+aC4GRFoJZ6Qr0RBP7/0L38Fh1i9O/eSY8q YPvg== X-Gm-Message-State: AOJu0Yzno5ZiQinCN2bTSaFl2baz50yH8PtYBFKjmVyYj8hnH77wbNLa x8+mUxXbWkt5NVZV50QBIfBKWkLgFtRZ2Duuhs4A+4qv4SM1NDygCPgmfZxN9MFY08gQH0X5hGR dei6KXg== X-Google-Smtp-Source: AGHT+IF9kg8OrOOmUW44jY4gTMe+5QUFjcsz4BDSWbBJiGfPHio16moCPPkdmROUGN0LKts4xp4agA== X-Received: by 2002:a17:902:dac8:b0:1e2:8c12:aac0 with SMTP id q8-20020a170902dac800b001e28c12aac0mr9111387plx.28.1712519649716; Sun, 07 Apr 2024 12:54:09 -0700 (PDT) Received: from localhost ([2601:1c0:ca00:bd60:5996:ce4c:d10f:fa94]) by smtp.gmail.com with ESMTPSA id q4-20020a170902a3c400b001e2a43bafbasm5418889plb.216.2024.04.07.12.54.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 12:54:09 -0700 (PDT) From: Tim Orling To: yocto@lists.yoctoproject.org Subject: [meta-raspberrypi][PATCH 2/3] u-boot: re-enable rapsberrypi5 Date: Sun, 7 Apr 2024 12:54:00 -0700 Message-ID: <16dcfcd6ee331d712e3cc7c0cdf2b0f85c33e8af.1712518899.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 07 Apr 2024 19:54:17 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/62893 With meta-lts-mixins scarthgap/u-boot we can now support raspberrypi5 Signed-off-by: Tim Orling --- conf/machine/raspberrypi5.conf | 2 ++ recipes-bsp/u-boot/u-boot_%.bbappend | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/conf/machine/raspberrypi5.conf b/conf/machine/raspberrypi5.conf index 8c38637..e53c2d5 100644 --- a/conf/machine/raspberrypi5.conf +++ b/conf/machine/raspberrypi5.conf @@ -24,3 +24,5 @@ VC4DTBO ?= "vc4-kms-v3d" # "zImage" not supported on arm64 and ".gz" images not supported by bootloader yet KERNEL_IMAGETYPE_DIRECT ?= "Image" + +UBOOT_MACHINE = "rpi_arm64_config" diff --git a/recipes-bsp/u-boot/u-boot_%.bbappend b/recipes-bsp/u-boot/u-boot_%.bbappend index 78b3e48..e50acf5 100644 --- a/recipes-bsp/u-boot/u-boot_%.bbappend +++ b/recipes-bsp/u-boot/u-boot_%.bbappend @@ -12,6 +12,3 @@ do_install:append:rpi () { install -d ${D}${sysconfdir} install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config } - -# Temporary avoid Raspberry Pi 5 because U-Boot has not been ported yet -COMPATIBLE_MACHINE:raspberrypi5 = "(-)" From patchwork Sun Apr 7 19:54:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 42074 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69ADDCD128A for ; Sun, 7 Apr 2024 19:54:17 +0000 (UTC) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mx.groups.io with SMTP id smtpd.web10.90643.1712519652650278102 for ; Sun, 07 Apr 2024 12:54:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=dLR0p2AW; spf=pass (domain: konsulko.com, ip: 209.85.214.170, mailfrom: tim.orling@konsulko.com) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1e4266673bbso2135665ad.2 for ; Sun, 07 Apr 2024 12:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1712519652; x=1713124452; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=OlYEhoBYV4W86tGeLDFGJHSkcfJPBwA35VNWLeo4WBs=; b=dLR0p2AWApjV7sNLmqoTQh+kmJrB8pTHJMAloMNzvIv3WXP2ftopshAwB3ZI8gIlS1 XjRhsUbuxlsdO8Ez69AKMYP5XC1eONOf6aXjl/WdxdmFcnproymw7H3feLDCcxoOLZAZ tD7Mg/wlgC092vHkaXnIiPqcfdC7hxbNSfuGk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712519652; x=1713124452; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OlYEhoBYV4W86tGeLDFGJHSkcfJPBwA35VNWLeo4WBs=; b=U9ydij5np2ao7DngKyUpkYcch3Rb5DUS2+778nWVslX5rohK/bONTfJuyJor2lzKxX KRKHpk/mEpBsciYwsFg/Qaj3XmTwCg5o47Ui5ZomE/XQK+90MNfQASVoSiX2Ig8KGlbS gAnz40UUZBqpIetzri8dlwq9rPFPpBjWHNPXAhktEV3SIxFby3TSNRQVobXpeXw++ZXy 83RrF3EWudAF7Dm+jFpTCgdPCMpXgm0fJC6MHWckBnHxYZtx5DmaMMjcfS3NaqjIVEgy qoDNQ5NQizNfIDqRmhpMPzDeaDBRdUc+zhep2AVb2kPKBM8BfVqizGMOOeUdnZbCQJXw 2Lnw== X-Gm-Message-State: AOJu0YycFdG7KJImfA1M/0oMz8qpTQ5zJQrMMvJoNGueJnVnNZkHjHQB WqP5eQbY8/iY9xfkmxE0va0YmbzqbmOb5sF7A9lvRAndrMV/pW0CMOCbk972QeCmPCU2tfznOKw jafmnPA== X-Google-Smtp-Source: AGHT+IFPjuOGOlb3M8tUy7lHbmOAYJxSpU/15K+DbviW8DIj3C87LfqqnIgCKQ5EquLM+EXg8dOqMQ== X-Received: by 2002:a17:902:f7c3:b0:1e0:d544:8818 with SMTP id h3-20020a170902f7c300b001e0d5448818mr5985274plw.20.1712519651699; Sun, 07 Apr 2024 12:54:11 -0700 (PDT) Received: from localhost ([2601:1c0:ca00:bd60:5996:ce4c:d10f:fa94]) by smtp.gmail.com with ESMTPSA id p12-20020a170902780c00b001e3c9a98429sm4609035pll.119.2024.04.07.12.54.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 12:54:11 -0700 (PDT) From: Tim Orling To: yocto@lists.yoctoproject.org Subject: [meta-raspberrypi][PATCH 3/3] raspberrypi5.conf: Fix KERNEL_IMAGETYPE_UBOOT Date: Sun, 7 Apr 2024 12:54:01 -0700 Message-ID: <32cdeae038c317a1e9891600752e13a3c95f8d47.1712518899.git.tim.orling@konsulko.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 07 Apr 2024 19:54:17 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/62894 Similar to raspberrypi4-64.conf, we need to set KERNEL_IMAGETYPE_UBOOT to "Image" and set KERNEL_BOOTCMD to "booti" Signed-off-by: Tim Orling --- conf/machine/raspberrypi5.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/machine/raspberrypi5.conf b/conf/machine/raspberrypi5.conf index e53c2d5..03f15c3 100644 --- a/conf/machine/raspberrypi5.conf +++ b/conf/machine/raspberrypi5.conf @@ -22,7 +22,11 @@ SERIAL_CONSOLES ?= "115200;ttyAMA10" VC4DTBO ?= "vc4-kms-v3d" +# When u-boot is enabled we need to use the "Image" format and the "booti" +# command to load the kernel +KERNEL_IMAGETYPE_UBOOT ?= "Image" # "zImage" not supported on arm64 and ".gz" images not supported by bootloader yet KERNEL_IMAGETYPE_DIRECT ?= "Image" +KERNEL_BOOTCMD ?= "booti" UBOOT_MACHINE = "rpi_arm64_config"