alireza_fn
alireza_fn

Reputation: 944

How to execute linux kernel without kexec?

I want to exec linux kernel 's zImage while I have booted another linux kernel . I saw KEXEC but I can not use it because I can not recompile my kernel with kexec support . so my question is , how to do that without kexec ? ( I am using Android Kernel )

Upvotes: 2

Views: 2327

Answers (1)

subin
subin

Reputation: 490

Usually you need a boot loader to load a kernel image. Kexec is the other option. If you have the secondary kernel image pre-loaded to some memory location by something else, you can add a trigger in /proc or similar to perform a soft reboot to the new location. (see arch/arm/kernel/process.c for soft-restart). If you can't compile the kernel with kexec and can not use a userspace tool, your primary kernel will have to perform filesystem read/write directly which is not a recommended way.

Upvotes: 1

Related Questions