Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: dsmithmonroe on August 31, 2016, 04:29:07 PM

Title: Kexec Support?
Post by: dsmithmonroe on August 31, 2016, 04:29:07 PM
Hi all,
I'm using the latest beta 8.4 on a Model B2
I'm attempting to utilize kexec to load another kernel once tiny core has booted, but every command I run I simply receive an
"-sh: kexec: not found" error. I can see from another post in the changelog here:
http://forum.tinycorelinux.net/index.php?topic=12836.0
That kexec support should be enabled in the kernel. I know with Ubuntu you have to do an "apt-get install kexec-tools", but when doing a tce search for kexec, nothing is found. Is there something obvious I am missing here? Thanks for the help
Title: Re: Kexec Support?
Post by: michael.ketchel on March 06, 2024, 10:04:16 AM
Did you ever find a solution for this? I'm in the same boat, many years later.
Title: Re: Kexec Support?
Post by: patrikg on March 06, 2024, 11:40:21 AM
Why do you need this tool ??

Are you compiling lots of kernels so you don't want to reboot.
Or I missing something with your thoughts.
 
Why not try to compile it your self, and also first thinking of this is that you maybe also
need to compile your own kernel enable/support this feature.

https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git (https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git)
Title: Re: Kexec Support?
Post by: hiro on March 11, 2024, 05:15:39 PM
it would be cool to be able to use tc as a bootloader ;)
Title: Re: Kexec Support?
Post by: mocore on March 15, 2024, 06:13:25 AM

was the option removed  ?

https://forum.tinycorelinux.net/index.php/topic,12836.0.html

The major theme for Core v4.4 is kernel & modules update and improved extension searching via tags.

Changelog for 4.4:

* Minor kernel update to 3.0.21 to support the following:
...
** kexec
...

so it appears you could test with  > 4.4 ...
Title: Re: Kexec Support?
Post by: curaga on March 15, 2024, 09:50:09 AM
That was only about the kernel support, which is still enabled.
Title: Re: Kexec Support?
Post by: mocore on March 20, 2024, 11:54:03 PM
*double take* oh this is the arm board sub forum ( should read the whole thread ::) eh!)
the above quote was for x86  :-[

That was only about the kernel support, which is still enabled.

@curaga thanks for the clarification

also i read the rest of the topic now :p =s

so all that *should* be needed is to build the userland tools
as previously mentioned @ https://forum.tinycorelinux.net/index.php/topic,20283.msg173228.html#msg173228

    [Edit] Fixed link.  Rich
Title: Re: Kexec Support?
Post by: Dies Irae on April 07, 2024, 01:51:08 AM
Why do you need this tool ??
https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git (https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git)

I had wanted to compile it a couple of weeks ago, but then I read here (https://wiki.archlinux.org/title/kexec) that one must be able (among other things) to unload graphics driver
"The graphics driver needs to be unloaded before a kexec, or the next kernel will not be able to gain exclusive control of the device. This is difficult to achieve manually because any programs which need exclusive control over the GPU (Xorg, display managers) must not be running."

I had hoped I could reboot the ramdrive 'as is', so to not have to redownload all packages and more interestinglly, not have to figure out some way to store and retrieve some files, as they should just still be there using kexec.. Additionally this might have allowed to get rid of loaded extensions (which is a nightmare to attempt otherwise  :-[ ).