[Skiboot] [RFC/WIP/PATCH v2] Fast reboot for P8
Michael Neuling
mikey at neuling.org
Thu Jul 28 16:24:15 AEST 2016
> diff --git a/core/init.c b/core/init.c
> index ca3ad55..1a3d741 100644
> --- a/core/init.c
> +++ b/core/init.c
> @@ -287,7 +287,7 @@ extern uint64_t boot_offset;
> static size_t kernel_size;
> static size_t initramfs_size;
>
> -static bool start_preload_kernel(void)
> +bool start_preload_kernel(void)
> {
> int loaded;
>
> @@ -384,6 +384,9 @@ static void load_initramfs(void)
> {
> int loaded;
>
> + dt_check_del_prop(dt_chosen, "linux,initrd-start");
> + dt_check_del_prop(dt_chosen, "linux,initrd-end");
When applying this patch, I can no longer pass into skiboot an initrd that
is passed through to linux. The linux,initrd-start/end properties are
deleted.
I think this hunk is causing the problem.
> +
> loaded = wait_for_resource_loaded(RESOURCE_ID_INITRAMFS,
> RESOURCE_SUBID_NONE);
>
> @@ -447,6 +450,7 @@ void __noreturn load_and_boot_kernel(bool is_reboot)
>
> /* Set kernel command line argument if specified */
> #ifdef KERNEL_COMMAND_LINE
> + dt_check_del_prop(dt_chosen, "bootargs");
I assume this will cause similar issues for bootargs.
Mikey
More information about the Skiboot
mailing list