WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Kexec Support?  (Read 3629 times)

Offline dsmithmonroe

  • Newbie
  • *
  • Posts: 2
Kexec Support?
« on: August 31, 2016, 07: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
« Last Edit: August 31, 2016, 07:35:41 PM by dsmithmonroe »

Offline michael.ketchel

  • Newbie
  • *
  • Posts: 1
Re: Kexec Support?
« Reply #1 on: March 06, 2024, 01:04:16 PM »
Did you ever find a solution for this? I'm in the same boat, many years later.

Online patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 709
Re: Kexec Support?
« Reply #2 on: March 06, 2024, 02:40:21 PM »
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

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: Kexec Support?
« Reply #3 on: March 11, 2024, 08:15:39 PM »
it would be cool to be able to use tc as a bootloader ;)

Offline mocore

  • Hero Member
  • *****
  • Posts: 633
  • ~.~
Re: Kexec Support?
« Reply #4 on: March 15, 2024, 09: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 ...

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Kexec Support?
« Reply #5 on: March 15, 2024, 12:50:09 PM »
That was only about the kernel support, which is still enabled.
The only barriers that can stop you are the ones you create yourself.

Offline mocore

  • Hero Member
  • *****
  • Posts: 633
  • ~.~
Re: Kexec Support?
« Reply #6 on: March 21, 2024, 02:54:03 AM »
*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
« Last Edit: March 21, 2024, 08:40:47 AM by Rich »

Offline Dies Irae

  • Newbie
  • *
  • Posts: 21
Re: Kexec Support?
« Reply #7 on: April 07, 2024, 04:51:08 AM »
Why do you need this tool ??
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 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  :-[ ).