maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Kexec + power kernel = kernel swap without need for full reboot? (https://talk.maemo.org/showthread.php?t=83402)

taixzo 2012-04-02 19:13

Kexec + power kernel = kernel swap without need for full reboot?
 
There are at least 3 kernels in use on the N900: the stock pr1.3 kernel, kp49 and kp50. Often I boot into one, only to realize I needed something from another (such as the bleeding-edge wifi drivers). So I reboot.
There is a program called kexec, which allows for the loading of one linux kernel from another. And it is in the Maemo repositories as well. If I understand correctly, this would allow for a uboot-like system to be implemented in userspace - so we could have an app to select what to reboot to with a nice touchscreen interface, and no need for risky kernel flashing. (If a kernel loaded by kexec is broken, a full reset [taking the battery out and putting it back in] will load the original kernel from the flash memory.)

Does this sound feasible? Also, would anyone be interested in such an app?

farmatito 2012-04-02 21:27

Re: Kexec + power kernel = kernel swap without need for full reboot?
 
This would be feasible only if all kernels support kexec but i doubt that
the original Nokia kernel has kexec enabled.

Hurrian 2012-04-02 22:37

Re: Kexec + power kernel = kernel swap without need for full reboot?
 
Has anyone even had kexec even work on device?

Estel 2012-04-02 22:47

Re: Kexec + power kernel = kernel swap without need for full reboot?
 
Quote:

Originally Posted by taixzo (Post 1187315)
There are at least 3 kernels in use on the N900: the stock pr1.3 kernel, kp49 and kp50. Often I boot into one, only to realize I needed something from another (such as the bleeding-edge wifi drivers).

Isn't it easier and more convenient to update bleeding-edge drivers instead? ;)

Fabry 2012-04-02 22:57

Re: Kexec + power kernel = kernel swap without need for full reboot?
 
Quote:

Originally Posted by farmatito (Post 1187365)
This would be feasible only if all kernels support kexec but i doubt that
the original Nokia kernel has kexec enabled.

Nokia's Kernel PR1.3 has kexec support.


All times are GMT. The time now is 16:01.

vBulletin® Version 3.8.8