Author Topic: Kexec For 2.4.x/arm  (Read 11141 times)

caritas

  • Newbie
  • *
  • Posts: 4
    • View Profile
Kexec For 2.4.x/arm
« on: March 08, 2006, 12:28:08 am »
Hi! everyboy.

I implemented the kexec for Linux 2.4.x/arm based on the bootloader of OpenBSD.

It can be used to boot another kernel(such as 2.6.x) within the 2.4.x kernel, and it is useful for somebody who want to test the 2.6.x kernel without flush the flash.

Caution:
  Not very security. I have ever corrupted my jffs2 root file system on nand flash with this. Turn off the MTD support on booted kernel.

Usage:
 make KERNEL_SRC=<some place>
  copy vmlinux to the directory of kexec.
 modify bootlinux
 ./bootlinux

Hope helpful for somebody.

Best Regards.

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Kexec For 2.4.x/arm
« Reply #1 on: March 08, 2006, 01:48:20 am »
Quote
I implemented the kexec for Linux 2.4.x/arm based on the bootloader of OpenBSD.

It can be used to boot another kernel(such as 2.6.x) within the 2.4.x kernel, and it is useful for somebody who want to test the 2.6.x kernel without flush the flash.

OpenZaurus devels use 2.6 with kexec to boot 2.6/2.4 kernels - you did same in reverse direction :)

Quote
I have ever corrupted my jffs2 root file system on nand flash with this. Turn off the MTD support on booted kernel.

If you used this to boot 2.6 on akita/borzoi (c1000/c3100) then yes - it will destroy flash content and we can blame Sharp for their ugly NAND driver in 2.4 kernel.

Thing is nice - maybe worth adding to OE so people will get it as package ;)
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

SamuelFeng

  • Newbie
  • *
  • Posts: 4
    • View Profile
Kexec For 2.4.x/arm
« Reply #2 on: April 07, 2006, 08:07:47 am »
It need the kernel source you are running (mostly 2.4.20).
It work well in my spitz

matthis

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://badaboum.bidibom.free.fr/mat/
Kexec For 2.4.x/arm
« Reply #3 on: March 29, 2008, 07:17:12 pm »
I compiled and tried this on sharprom / sl-c3200 but nothing happens with bootlinux, no errors either...

lumag

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • http://tosa.lumag.spb.ru
Kexec For 2.4.x/arm
« Reply #4 on: April 04, 2011, 09:54:38 am »
Thank you!

I'll give it a try on my collie very soon.