Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ejoerns/13f9d8b594f6816fdca0b8a4d531fc7d to your computer and use it in GitHub Desktop.
Save ejoerns/13f9d8b594f6816fdca0b8a4d531fc7d to your computer and use it in GitHub Desktop.
RAUC patch for calling barebox-state with DTB in EFI partition
From: Enrico Jorns <[email protected]>
Date: Wed, 13 Dec 2017 16:56:52 +0100
Subject: [PATCH] NOT FOR MAINLINE: src/bootchooser: add -i argument to
barebox-state call
This will load DTB from fixed EFI partition mount point on x86
Signed-off-by: Enrico Jorns <[email protected]>
---
src/bootchooser.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/bootchooser.c b/src/bootchooser.c
index a807c73..30be142 100644
--- a/src/bootchooser.c
+++ b/src/bootchooser.c
@@ -79,6 +79,8 @@ static gboolean barebox_state_set(GPtrArray *pairs) {
g_ptr_array_add(args, g_strdup("-s"));
g_ptr_array_add(args, g_strdup(pairs->pdata[i]));
}
+ g_ptr_array_add(args, g_strdup("-i"));
+ g_ptr_array_add(args, g_strdup("/run/efi/EFI/BAREBOX/state.dtb"));
g_ptr_array_add(args, NULL);
sub = g_subprocess_newv((const gchar * const *)args->pdata,
--
2.11.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment