From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88A2FEB64DA for ; Sat, 1 Jul 2023 02:08:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 48657863E7; Sat, 1 Jul 2023 04:08:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="wNOkzBA+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EA9768603A; Sat, 1 Jul 2023 04:08:15 +0200 (CEST) Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (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 DFF138603A for ; Sat, 1 Jul 2023 04:08:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1b7dfb95761so3735355ad.1 for ; Fri, 30 Jun 2023 19:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688177290; x=1690769290; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=mjyVaFNUrPYkr3tPYa6UdMprqNehFDN/dBfqWFSJ74E=; b=wNOkzBA++lHrVwOjpo52sdOKiQ/z0bUuvxU0GdP7U9bRgWif31wKDHoxm4GZqnwFCs GoQhBBL/+A0ai9LYqemNPTj7jBlG2yz+g0NF5KWocNnbLlpHR2mxQwy5qYUEF84aIiI7 b2vZnPheovcqQHfF+2kclvyojsbZA2W/WrEjjTTQHiMmEE5tUEcZm2LHsiiTHdJc/Pty JuLYMgOo+ebrHNqlTM91NALj/lqQvQrwkl0RrsfVrN6ZjjmNIVpm3/ocThs8DvDfGBNW cjaWr1rRGMY33NulxaZVB/boDD4grMweZVEtMKhlgoka9u/sUjXMoxjbo+mZzdbNfifK 434Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688177290; x=1690769290; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mjyVaFNUrPYkr3tPYa6UdMprqNehFDN/dBfqWFSJ74E=; b=Tebhqawb2vczVbADG51+LxHqfFGmJG+Mq1JsJejbXshFlYCTqzeY3jz4qh6nUoiDh9 lwn3lHsEoQ03f2Yf7i6bEsKtwuALBBQJjHEDRYMKOJ0ReQXyuE4DYm6qLK2xcuPp9H5D 189FIeOBSIgZoHPd1+1Ghkv0qKsQui70KkpMMHUEkRfKnodeulDjNly2pMcHJOblqW/S Uxi14rbJxhFrqaxKiCkckD5JI6mOdHjCDt9Nh5MjWhpi3rd1EF9j8wMd03moO7ru1HYt FhLGR6yiEEcZ1onrUHEJxceGsIvTvLaKMhuhe1X1PIiaL2ayDJyZLtYuf9LwBZUvcaQC xIEA== X-Gm-Message-State: ABy/qLZASLvCig97hQ2GmRps+9c4vGD42oO0oBV6E0aOoUO6rkgG0DVE i0J7bRHeF0AQo+keK8dIYQAj+A== X-Google-Smtp-Source: APBJJlFe/rIVHR/KaMXPtsJ48wgg3N8PdKdlAKmyowCW4pnVD1BO4vw7Xx2dfr92x6XzGatgzJBkDw== X-Received: by 2002:a17:903:807:b0:1ae:7ba2:1a7e with SMTP id kr7-20020a170903080700b001ae7ba21a7emr3790528plb.6.1688177289750; Fri, 30 Jun 2023 19:08:09 -0700 (PDT) Received: from laputa (p914133-ipoe.ipoe.ocn.ne.jp. [153.243.15.132]) by smtp.gmail.com with ESMTPSA id c14-20020a170902d48e00b001b02df0ddbbsm3053647plg.275.2023.06.30.19.08.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 19:08:09 -0700 (PDT) Date: Sat, 1 Jul 2023 11:08:01 +0900 From: AKASHI Takahiro To: Frank Wunderlich Cc: u-boot@lists.denx.de Subject: Re: distro_boot vs. env-based bootmenu Message-ID: Mail-Followup-To: AKASHI Takahiro , Frank Wunderlich , u-boot@lists.denx.de References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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.8 at phobos.denx.de X-Virus-Status: Clean Hi, On Wed, Apr 12, 2023 at 11:22:23AM +0200, Frank Wunderlich wrote: > Hi, > > i try to move from distro-boot (extlinux-config files) to an env-based bootmenu (builtin-environment) for > my bananapi r2pro. > > basicly it works, but i see more bootmenu-entries than i have defined in my environment > > *** U-Boot Boot Menu *** > > 1. Boot from SD/EMMC. > mmc 1:2 > mmc 1:3 > mmc 1:4 > U-Boot consoleHit any key to stop autoboot: 2 > > i have only defined one botmenu-entry (first one in uEnv_r2pro.txt) > > bootmenu_0=1. Boot from SD/EMMC.=run newboot > bootmenu_default=0 > > i guess the 3 mmc 1:x entries are part from distro-boot. i see a series from simon where he drops > distroboot for rockchip-boards. Probably they came from UEFI's removable media support, specifically commit c606c0059f7f Author: Masahisa Kojima Date: Thu Apr 28 17:09:42 2022 +0900 bootmenu: add UEFI boot entry into bootmenu > https://patchwork.ozlabs.org/project/uboot/patch/20230409084454.v9.8.I4cf7708a1ba953b9abd81375d93af34665c7b251@changeid/ > > can anyone explain me where i can disable the mmc 1:x entries? i wanted to leave distro_boot as > fallback but it seems this is not possible. Try to disable either CONFIG_CMD_EFICONFIG or CONFIG_CMD_BOOTEFI_BOOTMGR, even CONFIG_EFI_LOADER if you don't need UEFI subsystem at all. -Takahiro Akashi > maybe i have to disable these? > > BOOTMETH_DISTRO [=y] > DISTRO_DEFAULTS [=y] > > can i keep distro-boot (seems to works with env too, but overridden by my builtin env) somehow and drop the mmc-entries from my bootmenu? > > any idea why i have no linebreak after u-Boot console? > > i use u-boot 2023.04 my source for this conversion/tests is there: > https://github.com/frank-w/u-boot/tree/2023-04-bpi-r2pro > using modified configs/evb-rk3568_defconfig > > regards Frank