mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] Introduce global.bootm.root env var for booting via PARTUUID
@ 2020-06-30 13:48 Robert Karszniewicz
  2020-06-30 13:48 ` [RFC PATCH 1/4] bootm: add env var root_dev Robert Karszniewicz
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Robert Karszniewicz @ 2020-06-30 13:48 UTC (permalink / raw)
  To: barebox

This patch introduces a new env var which specifies which device
is the rootfs device to be used in Linux, passed to Linux via bootargs,
identified by the rootfs partition's PARTUUID.

global.bootm.root supplements global.bootm.appendroot, in that it overrides
appendroot's naïve default, which picks the partition that the kernel resides
on (global.bootm.image).

I don't know if it is the right way, or a good way, but this is the shortest
and simplest way that I've found.

What do you think of this? And is it generally something that would be
accepted, or is this out of scope for barebox?

Example:
detect mmc2
global.bootm.image='/mnt/mmc2.0/zImage'
global.bootm.appendroot=1
global.bootm.root='/mnt/mmc2.1/'
boot mmc

Note that the trailing slash is important.
See comment in follow_automount() in fs/fs.c

Robert Karszniewicz (4):
  bootm: add env var root_dev
  globalvar: add bootm.root
  bootm: handle global.bootm.root
  bootm: mount root device before accessing linux_rootarg

 common/bootm.c  | 13 +++++++++++--
 include/bootm.h |  2 ++
 2 files changed, 13 insertions(+), 2 deletions(-)

-- 
2.7.4


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

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

end of thread, other threads:[~2020-07-14 18:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-30 13:48 [RFC PATCH 0/4] Introduce global.bootm.root env var for booting via PARTUUID Robert Karszniewicz
2020-06-30 13:48 ` [RFC PATCH 1/4] bootm: add env var root_dev Robert Karszniewicz
2020-06-30 13:48 ` [RFC PATCH 2/4] globalvar: add bootm.root Robert Karszniewicz
2020-06-30 13:48 ` [RFC PATCH 3/4] bootm: handle global.bootm.root Robert Karszniewicz
2020-06-30 13:48 ` [RFC PATCH 4/4] bootm: mount root device before accessing linux_rootarg Robert Karszniewicz
2020-06-30 14:20 ` [RFC PATCH 0/4] Introduce global.bootm.root env var for booting via PARTUUID Robert Karszniewicz
2020-07-01  5:58   ` Sascha Hauer
2020-07-08  6:55     ` Stefan Riedmüller
2020-07-09 14:14 ` Sascha Hauer
2020-07-13 11:18   ` Robert Karszniewicz
2020-07-14 18:37     ` Sascha Hauer

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