[PATCH v2] Initial module to interact with the android bcb.

2016-02-08 Thread Shea Levy
Android uses a dedicated partition or mtd to handle communication between the bootloader and the recovery system, which handles system and firmware updates as well as factory resets. This is known as the bootloader control block, or "bcb". The current form of the module allows the user to specify

[PATCH v3 1/3] Add helper functions to interact with android bootimg disks.

2016-02-08 Thread Shea Levy
Currently, the kernel, command line, and ramdisk can be extracted. --- grub-core/Makefile.core.def| 1 + grub-core/loader/android_bootimg.c | 253 + include/grub/android_bootimg.h | 12 ++ 3 files changed, 266 insertions(+) create mode 100644 gru

[PATCH v3 0/3] Android bootimg support

2016-02-08 Thread Shea Levy
This patch series adds support for booting from android bootimgs. A set of helper functions is added to read the kernel, command line, and initrd from a bootimg partition, the initrd command is updated to respect the android_bootimg: syntax for loading the initrd from the bootimg at , and on i386 t

[PATCH v3 2/3] i386: Add support for loading from android bootimg

2016-02-08 Thread Shea Levy
--- grub-core/loader/i386/linux.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux.c index fddcc46..6ab8d3c 100644 --- a/grub-core/loader/i386/linux.c +++ b/grub-core/loader/i386/linux.c @@

[PATCH v3 3/3] Add support for loading initrd from android bootimg

2016-02-08 Thread Shea Levy
--- grub-core/loader/linux.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/grub-core/loader/linux.c b/grub-core/loader/linux.c index be6fa0f..4c5537a 100644 --- a/grub-core/loader/linux.c +++ b/grub-core/loader/linux.c @@ -4,6 +4,7 @@ #include #include #include +#

Re: [PATCH v2 1/1] support loading of custom initrd images

2016-02-08 Thread Christian Hesse
Christian Hesse on Mon, 2016/02/08 09:30: >initrd= > + for i in ${GRUB_CUSTOM_INITRD}; do To hardcode know images we could add file names here... [...] for i in intel-ucode.img ${GRUB_CUSTOM_INITRD}; do [...] -- main(a){char*c=/*Schoene Gruesse */"B?IJj;MEH" "

[PATCH v2 1/1] support loading of custom initrd images

2016-02-08 Thread Christian Hesse
Signed-off-by: Christian Hesse --- docs/grub.texi | 6 ++ util/grub-mkconfig.in | 1 + util/grub.d/10_linux.in | 19 +-- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/docs/grub.texi b/docs/grub.texi index 0afdd8c..f65647c 100644 --- a/docs/grub.t

Re: [PATCH 1/1] support loading of custom initrd images

2016-02-08 Thread Christian Hesse
"Vladimir 'phcoder' Serbinenko" on Fri, 2016/02/05 18:23: > What is the name of ucode? What takes care of putting it under /boot? Can > we just add ucode if it's under standard name under /boot and not have > extra config? Ucode is something highly technical and we don't want user to > bother abou

Re: [PATCH 1/1] support loading of custom initrd images

2016-02-08 Thread Christian Hesse
Andrei Borzenkov on Sat, 2016/02/06 09:51: > > Nevertheless I have another use case: > > I do use Yubikeys in challenge/response mode to open my LUKS encrypted > > partition. [1] (This is not specific for mkinitcpio but works with dracut > > as well.) The challenges are stored in an extra initramf