mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* root= kernel cmdline parameter
@ 2018-07-31 11:20 Giorgio Dal Molin
  2018-08-06 18:15 ` Uwe Kleine-König
  2018-08-08  7:52 ` Sascha Hauer
  0 siblings, 2 replies; 7+ messages in thread
From: Giorgio Dal Molin @ 2018-07-31 11:20 UTC (permalink / raw)
  To: barebox

Hi all,

I'm trying to find out the best method to define the root=
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.

giorgio

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-08-31 13:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-31 11:20 root= kernel cmdline parameter Giorgio Dal Molin
2018-08-06 18:15 ` Uwe Kleine-König
2018-08-06 19:30   ` Giorgio Dal Molin
2018-08-06 19:44     ` Uwe Kleine-König
2018-08-08  7:52 ` Sascha Hauer
2018-08-09  7:45   ` Giorgio Dal Molin
2018-08-31 13:43     ` Giorgio Dal Molin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox