From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fmk2h-0007n9-CR for barebox@lists.infradead.org; Mon, 06 Aug 2018 18:15:44 +0000 Date: Mon, 6 Aug 2018 20:15:28 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Message-ID: <20180806181528.c5f7rsa2sclth3ww@pengutronix.de> References: <479189478.116665.1533036012752@mail.vodafone.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <479189478.116665.1533036012752@mail.vodafone.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: root= kernel cmdline parameter To: Giorgio Dal Molin Cc: barebox@lists.infradead.org On Tue, Jul 31, 2018 at 01:20:12PM +0200, Giorgio Dal Molin wrote: > Hi all, > = > I'm trying to find out the best method to define the root=3D > parameter when booting the linux kernel from barebox. > = > My system boots from an sd card partitioned with a GPT. > The sd card has two independent set of partitions with > the following labels: > = > 1) boot_1 + rootfs_1 > 2) boot_2 + rootfs_2 > = > for redondance in case one set gets damaged while updating. > = > 'boot_1' is formatted with ext4 and contains the kernel + dtb images > for the userland in 'rootfs_1'; and the same for 'boot_2' and 'rootfs_2'. > = > Currently I hardcode the 'root' parameter to '/dev/mmcblk0p3' or > '/dev/mmcblk0p4' corresponding to the kernel in 'boot_1' or > 'boot_2' and it actually works but is there a better way to do > this ? > = > Using the global var. 'bootm.appendroot' does not work because the > userland image is not in the same partition as the kernel. What is the blocker to put kernel and dtb in rootfs_X? Best regards Uwe -- = Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox