From patchwork Wed Sep 7 14:22:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Stephan X-Patchwork-Id: 1675309 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=GC9+6NZ1; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MN5l64hYkz1yhP for ; Thu, 8 Sep 2022 01:29:03 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C05C684A71; Wed, 7 Sep 2022 17:28:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="GC9+6NZ1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E45AA80112; Wed, 7 Sep 2022 16:23:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A672A83FA2 for ; Wed, 7 Sep 2022 16:23:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jstephan@baylibre.com Received: by mail-ed1-x52d.google.com with SMTP id q21so12318730edc.9 for ; Wed, 07 Sep 2022 07:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=mE/uMGaDMUORq4pDvN3ubRCeJhpNTdCmpNYsFWYOGTo=; b=GC9+6NZ1bfARm+FMmbbcZ1OvpTuqJs/P2fVfK6XrQy9wY7l1cgcIn0DJC7G+E9CNn7 AQZfw+mMX6GyQVaxFV6JvUEjveWHonaCD6yjpGbQAHmzuB4wdSwvXkrnudaNy9Kc9H90 VfsLGMHpmv7/YTNuH/oAWpHtlPsvTfWhfHq7UM0jEnWvA9y7p/bYHH67mqH27o794cUf zzob/6jytk7bfMUy7cYDXPu3fsChuRFAjNd3+TAQ27vTPNwF23X1b8XcH5NfKf6y/k+R ZzC3QVHvqll1+cKoewUphtmLS28LXI7WamOtJFALorBn2pRoBV3gXgKk3fqJyjVwrp4x aqhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=mE/uMGaDMUORq4pDvN3ubRCeJhpNTdCmpNYsFWYOGTo=; b=ZGkhV51R68Tu4SWiojObg74t04PpqP//89f1gXiRKlo4UiPqBVbAu6Od8BzU5I6Vhm ystCqFonwz+2GJ93agTtm8YQSTDVl1Mwx2oGUc1D7Ld2LfhKcCvhSgnk9rtFJrQQheU2 0Ip7jitCUohGQq14K4Y8huW5JQC1VKquaf5oLCbbBYGFw/mh+CR7PHKGwWwsO1KgDkU+ IbgZ3afzdiXNWlIABGGvPl6b+aPVxVB05Z43YRkAKTIrqFJyKqkhXeWH1k1c4fnXxUaY NTcDr8VsKGSv6RK0awMsfcsVA0jz8p/1/iTbOsfVdj5D14Veek1NgJjBK/A1pQDvw6D7 RE4A== X-Gm-Message-State: ACgBeo1FnGOfEL/0DazDqaR4OhEwUf9+XXEC3bIVS9b4DGxvbteLgLmH RmmbL9X4v7rv52OuZgWxP+VEPXIfjMi8seQB X-Google-Smtp-Source: AA6agR7icFigwJgJ4ceAaYZaWzx5phIscjI23jGay7kpzocQzbLz+3xYd4LyePFRyX+7ZujVxQcaTw== X-Received: by 2002:aa7:db0a:0:b0:44e:5868:f489 with SMTP id t10-20020aa7db0a000000b0044e5868f489mr3371189eds.299.1662560584926; Wed, 07 Sep 2022 07:23:04 -0700 (PDT) Received: from localhost.localdomain (179.160.117.78.rev.sfr.net. [78.117.160.179]) by smtp.gmail.com with ESMTPSA id g24-20020a170906539800b0076f53f66e2dsm2510787ejo.113.2022.09.07.07.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 07:23:03 -0700 (PDT) From: Julien STEPHAN To: u-boot@lists.denx.de Cc: Jerome Brunet , Alexandre Mergnat , Julien STEPHAN Subject: [PATCH 1/2] configs: mediatek: define default variables Date: Wed, 7 Sep 2022 16:22:50 +0200 Message-Id: <20220907142251.1495122-1-jstephan@baylibre.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 07 Sep 2022 17:28:56 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Jerome Brunet define some default addresses and variables to help distro boot Signed-off-by: Jerome Brunet Signed-off-by: Alexandre Mergnat Signed-off-by: Julien STEPHAN --- include/configs/mt8183.h | 5 +++++ include/configs/mt8516.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/include/configs/mt8183.h b/include/configs/mt8183.h index c93d70ddf1..f2a0d71556 100644 --- a/include/configs/mt8183.h +++ b/include/configs/mt8183.h @@ -26,6 +26,11 @@ #define CONFIG_EXTRA_ENV_SETTINGS \ "scriptaddr=0x40000000\0" \ + "fdt_addr_r=0x44000000\0" \ + "fdtoverlay_addr_r=0x44c00000\0" \ + "kernel_addr_r=0x45000000\0" \ + "ramdisk_addr_r=0x46000000\0" \ + "fdtfile=" CONFIG_DEFAULT_FDT_FILE ".dtb\0" \ BOOTENV #endif diff --git a/include/configs/mt8516.h b/include/configs/mt8516.h index 7228f3e428..a9041aed46 100644 --- a/include/configs/mt8516.h +++ b/include/configs/mt8516.h @@ -26,6 +26,11 @@ #define CONFIG_EXTRA_ENV_SETTINGS \ "scriptaddr=0x40000000\0" \ + "fdt_addr_r=0x44000000\0" \ + "fdtoverlay_addr_r=0x44c00000\0" \ + "kernel_addr_r=0x45000000\0" \ + "ramdisk_addr_r=0x46000000\0" \ + "fdtfile=" CONFIG_DEFAULT_FDT_FILE ".dtb\0" \ BOOTENV #endif From patchwork Wed Sep 7 14:22:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Stephan X-Patchwork-Id: 1675310 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=jOPHKO4Q; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MN5lD0lGJz1yhP for ; Thu, 8 Sep 2022 01:29:12 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B5FC784A8E; Wed, 7 Sep 2022 17:28:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="jOPHKO4Q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 10F2F84A71; Wed, 7 Sep 2022 16:23:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EF1A080112 for ; Wed, 7 Sep 2022 16:23:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jstephan@baylibre.com Received: by mail-ed1-x52f.google.com with SMTP id e17so12359667edc.5 for ; Wed, 07 Sep 2022 07:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=rRWhqtpWwYqMr5pTx45nCMSQZ9rsuaPmDYawtInlzDA=; b=jOPHKO4QhusdOEJeG/aW/y4x7RCgnVQwVykSEHvR2qT2GI77mZlHjwxI1vBUZQRExn mDh9xpN5VnrqD+7zd7Xm9PO+4904O9gsslLTb8ZPmeMifvRNfAvVDk+GVjzJ7r9K9PR6 9Vq3+krA/tnMf1fRtchT7GmVcf/CLXvWkINCqnwwcBOd8Ztak+aekhoMONnLBi2pUIKP U/VTyKopzkXxehL5pg0i3qMOkM5To/s+4cjWnvomw61aCtms2eoTLjlw1dDGRIUdEdLW pE+r7SV0TiNt63P8+4ymztaRyYM6QlvdM+un4I0CgKmjEivhn+pRiGNahsmp9HV2zj7r ZS+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=rRWhqtpWwYqMr5pTx45nCMSQZ9rsuaPmDYawtInlzDA=; b=bmMbWxQCmX1kAA5+gQnuLIZo/vDgPI1dLh1mo3ZiLMJok477NON6f38BGI+r38Jcyt FHXAfQNYfUVVa6gF44mSxr1FsBg/j+p5/hdQP1QG0PHvHeGsOa+sFAtk6nm3ONHa06X2 1IGD1aNdegEtMPHUO+wdijmrWTncQ7t/wDJM7s3dM0Wed4IffHZWxo8J7GnydFVMLc3a 14F/1vDMSenwg/o/Fzmj8fg1TkrpqOC5WQg0rryeGLPI13qU/CRxo11A8Jy4z1UD6yNE 9kHrSg0IFcgAEMofoOhoFQhr5tjoyVFesUBLOBTBvd9vTi9PiIBCKHps6n7ZtRrQa5z+ 0BWw== X-Gm-Message-State: ACgBeo11oi0hMlWrgfZDny7crnhuEwUnv82nFb29B3LveOy0n8JEOPN/ OkrBF7R7Ec/kq2Fb6ueQGHTYhx2Wjc6QfDUC X-Google-Smtp-Source: AA6agR5N+KvxusHp4DdB9asJvJQ1TaSH7epN/0H0qluff1+S2VKdpNIAlLmD1q/VEEcN+XCYRhTrWg== X-Received: by 2002:a05:6402:2791:b0:448:763c:666f with SMTP id b17-20020a056402279100b00448763c666fmr3387951ede.36.1662560588316; Wed, 07 Sep 2022 07:23:08 -0700 (PDT) Received: from localhost.localdomain (179.160.117.78.rev.sfr.net. [78.117.160.179]) by smtp.gmail.com with ESMTPSA id g24-20020a170906539800b0076f53f66e2dsm2510787ejo.113.2022.09.07.07.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 07:23:07 -0700 (PDT) From: Julien STEPHAN To: u-boot@lists.denx.de Cc: Alexandre Mergnat , Jerome Brunet , Julien STEPHAN Subject: [PATCH 2/2] configs: mediatek: enable boot via extlinux Date: Wed, 7 Sep 2022 16:22:51 +0200 Message-Id: <20220907142251.1495122-2-jstephan@baylibre.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220907142251.1495122-1-jstephan@baylibre.com> References: <20220907142251.1495122-1-jstephan@baylibre.com> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 07 Sep 2022 17:28:56 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Alexandre Mergnat Enable FAT and SYSBOOT to use extlinux boot script Signed-off-by: Jerome Brunet Signed-off-by: Alexandre Mergnat Signed-off-by: Julien STEPHAN --- configs/mt8183_pumpkin_defconfig | 3 +++ configs/mt8516_pumpkin_defconfig | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/configs/mt8183_pumpkin_defconfig b/configs/mt8183_pumpkin_defconfig index 3c96d4eacb..9a7ad160d1 100644 --- a/configs/mt8183_pumpkin_defconfig +++ b/configs/mt8183_pumpkin_defconfig @@ -48,8 +48,11 @@ CONFIG_CMD_PART=y # CONFIG_CMD_ITEST is not set # CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_BLOCK_CACHE is not set +CONFIG_CMD_SYSBOOT=y CONFIG_CMD_EXT4=y +CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y +# CONFIG_DOS_PARTITION is not set CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_MMC_ENV_PART=2 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y diff --git a/configs/mt8516_pumpkin_defconfig b/configs/mt8516_pumpkin_defconfig index 0425ffd0f9..97212ea6bb 100644 --- a/configs/mt8516_pumpkin_defconfig +++ b/configs/mt8516_pumpkin_defconfig @@ -49,6 +49,12 @@ CONFIG_CMD_PART=y # CONFIG_CMD_SETEXPR is not set # CONFIG_CMD_BLOCK_CACHE is not set # CONFIG_CMD_SLEEP is not set +CONFIG_CMD_SYSBOOT=y +CONFIG_CMD_EXT4=y +CONFIG_CMD_FAT=y +CONFIG_CMD_FS_GENERIC=y +# CONFIG_DOS_PARTITION is not set +CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_CLK=y