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 E2732C433FE for ; Mon, 10 Oct 2022 07:06:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 795B784CE7; Mon, 10 Oct 2022 09:06:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=eurek.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 9E8B884E16; Mon, 10 Oct 2022 09:06:41 +0200 (CEST) Received: from submit-1.e-mind.com (submit-1.e-mind.com [188.94.192.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E272584C59 for ; Mon, 10 Oct 2022 09:06:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=eurek.it Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=gianlucarenzi@eurek.it Received: from localhost (unknown [127.0.0.1]) by submit-1.e-mind.com (Postfix) with ESMTP id 7DE7B85B904 for ; Mon, 10 Oct 2022 07:06:38 +0000 (UTC) Received: from submit-1.e-mind.com ([127.0.0.1]) by localhost (submit-1.e-mind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9HJMC_YNZB2P for ; Mon, 10 Oct 2022 09:06:38 +0200 (CEST) Received: from qmail.e-mind.com (qmail34.e-mind.com [188.94.192.34]) by submit-1.e-mind.com (Postfix) with SMTP id 64FC685B902 for ; Mon, 10 Oct 2022 09:06:38 +0200 (CEST) Received: (qmail 29390 invoked by uid 0); 10 Oct 2022 07:06:38 -0000 Received: from unknown (HELO mailproxy-2.e-mind.com) (192.168.102.11) by 0 with SMTP; 10 Oct 2022 07:06:38 -0000 Message-ID: <7ccb6800-6d7b-cab8-ed75-ce0f5ef79a63@eurek.it> Date: Mon, 10 Oct 2022 09:06:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Content-Language: en-US To: u-boot@lists.denx.de From: gianluca Subject: Multiple kernels and boot partitions selection Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Hello, I was wondering if there is/are some standard way(s) to achieve a multiple boot selection on u-boot startup. Let's say I have a bunch of partitions: 1- /dev/mmcblk0p7 with Debian 11 Bullseye 2- /dev/mmcblk0p5 with Debian 10 Buster All of these partitions have the /boot/uImage kernel images, the /lib/modules/$(uname -r) drivers folders and /boot/dtb device-trees into their partition section. u-boot has NOT the specific environment partition, i.e. it is located in the end of bootloader itself up to the maximum size of the bootloader partition. So, to be clear the /dev/mmcblk0p1 contains u-boot code & envar space. If needed I can have a MB85RC64 a 24LC64 FRAM/EEPROM compatible memory chip to store information on boot. Regards, Gianluca -- Eurek s.r.l. | Electronic Engineering | http://www.eurek.it via Celletta 8/B, 40026 Imola, Italy | Phone: +39-(0)542-609120 p.iva 00690621206 - c.f. 04020030377 | Fax: +39-(0)542-609212