From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 06 Jun 2023 17:07:16 +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 1q6YHF-00DBJ0-Jx for lore@lore.pengutronix.de; Tue, 06 Jun 2023 17:07:16 +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 1q6YHC-0001mx-Gq; Tue, 06 Jun 2023 17:07:14 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6YH9-0001mU-4m; Tue, 06 Jun 2023 17:07:11 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q6YH7-005X3K-N1; Tue, 06 Jun 2023 17:07:09 +0200 Received: from localhost ([127.0.0.1]) by ptz.office.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q6YH6-00BjH6-GT; Tue, 06 Jun 2023 17:07:08 +0200 Message-ID: From: Jan =?ISO-8859-1?Q?L=FCbbe?= To: Ahmad Fatoum , Johannes Zink , distrokit@pengutronix.de Date: Tue, 06 Jun 2023 17:07:08 +0200 In-Reply-To: <9a5a0fff-266f-4e76-e95b-b1759e88c1a0@pengutronix.de> References: <20230606-default_enable_fastboot_rock3a-v1-0-42195d538df2@pengutronix.de> <20230606-default_enable_fastboot_rock3a-v1-5-42195d538df2@pengutronix.de> <9a5a0fff-266f-4e76-e95b-b1759e88c1a0@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.1 (by Flathub.org) MIME-Version: 1.0 Subject: Re: [DistroKit] [PATCH 5/5] 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 Tue, 2023-06-06 at 16:47 +0200, Ahmad Fatoum wrote: > On 06.06.23 16:31, Johannes Zink wrote: > > This allows to boot a kernel with dtb and initrd entirely from RAM afte= r > > loading it via Android Fastboot by simply calling 'boot fastboot'. > >=20 > > Signed-off-by: Johannes Zink > > --- > > configs/platform-v8a/barebox-common-defaultenv/boot/fastboot | 7 +++++= ++ > > 1 file changed, 7 insertions(+) > >=20 > > diff --git a/configs/platform-v8a/barebox-common-defaultenv/boot/fastbo= ot b/configs/platform-v8a/barebox-common-defaultenv/boot/fastboot > > new file mode 100755 > > index 000000000000..a06414d582bf > > --- /dev/null > > +++ b/configs/platform-v8a/barebox-common-defaultenv/boot/fastboot > > @@ -0,0 +1,7 @@ > > +#!/bin/sh > > + > > +global.bootm.image=3D/tmp/kernel > > +global.bootm.initrd=3D/tmp/initramfs > > +global.bootm.oftree=3D/tmp/oftree > > + > > +global.linux.bootargs.dyn.root=3D"rdinit=3D/sbin/init root=3D/dev/ram" >=20 > Isn't rdinit=3D/sbin/init the default? rd=3D/init is the defaut. root=3D/dev/ram is not needed, AFAIR, it's for in= itrd, not initramfs. Also, we could add a symlink /init -> /sbin/init, which would simplify usin= g this initramfs with a bootloaders not passing the correct cmdline. Jan --=20 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 |