From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 09 Jun 2023 15:36:50 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q7cIN-00HFvn-IX for lore@lore.pengutronix.de; Fri, 09 Jun 2023 15:36:50 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1q7cIL-0000tg-8x; Fri, 09 Jun 2023 15:36:49 +0200 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1q7cIJ-0000tK-Nl; Fri, 09 Jun 2023 15:36:47 +0200 Message-ID: <429faf1f-f5d9-c89d-e9cb-753dc02c4233@pengutronix.de> Date: Fri, 9 Jun 2023 15:36:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Content-Language: en-US To: Johannes Zink , distrokit@pengutronix.de References: <20230606-default_enable_fastboot_rock3a-v2-0-92606c4de9a9@pengutronix.de> <20230606-default_enable_fastboot_rock3a-v2-4-92606c4de9a9@pengutronix.de> From: Ahmad Fatoum In-Reply-To: <20230606-default_enable_fastboot_rock3a-v2-4-92606c4de9a9@pengutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [DistroKit] [PATCH v2 4/4] v8a: barebox: add a boot target for fastboot loaded image files X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: patchwork-jzi@pengutronix.de Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On 09.06.23 12:28, Johannes Zink wrote: > This allows to boot a kernel with dtb and initrd entirely from RAM after > loading it via Android Fastboot by simply calling 'boot ram-fastboot'. > > Signed-off-by: Johannes Zink Reviewed-by: Ahmad Fatoum > > --- > > Changes: > > v1 -> v2: > - rename boot target fastboot to ram-fastboot to make it more obvious > that this boots the ram-{kernel,oftree,initrd}. > --- > configs/platform-v8a/barebox-common-defaultenv/boot/ram-fastboot | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/configs/platform-v8a/barebox-common-defaultenv/boot/ram-fastboot b/configs/platform-v8a/barebox-common-defaultenv/boot/ram-fastboot > new file mode 100755 > index 000000000000..ff17b2627823 > --- /dev/null > +++ b/configs/platform-v8a/barebox-common-defaultenv/boot/ram-fastboot > @@ -0,0 +1,7 @@ > +#!/bin/sh > + > +global.bootm.image=/tmp/ram-kernel > +global.bootm.initrd=/tmp/ram-initramfs > +global.bootm.oftree=/tmp/ram-oftree > + > +global.linux.bootargs.dyn.root="rdinit=/sbin/init" > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |