View Single Post
Old 09-09-2012, 12:36 PM   #507
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
2006q3 2007q3 CS TC I used from the Kek archives.

(Think that should be IS solid all that way up to 2007q3)

Included a kexec for your delectation.

readelf:
Spoiler:
Quote:
me@dev ~/GIT/buildroot $/opt/arm-2007q3/bin/arm-none-linux-gnueabi-readelf -d /home/you/GIT/buildroot/output/target/usr/sbin/kexec

There is no dynamic section in this file.

me@dev ~/GIT/buildroot $ /opt/arm-2007q3/bin/arm-none-linux-gnueabi-readelf -l /home/you/GIT/buildroot/output/target/usr/sbin/kexec

Elf file type is EXEC (Executable file)
Entry point 0x8120
There are 6 program headers, starting at offset 52

Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
EXIDX 0x092b78 0x0009ab78 0x0009ab78 0x00750 0x00750 R 0x4
LOAD 0x000000 0x00008000 0x00008000 0x93348 0x93348 R E 0x8000
LOAD 0x093348 0x000a3348 0x000a3348 0x008dc 0x063a8 RW 0x8000
NOTE 0x0000f4 0x000080f4 0x000080f4 0x00020 0x00020 R 0x4
TLS 0x093348 0x000a3348 0x000a3348 0x00010 0x00028 R 0x4
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4

Section to Segment mapping:
Segment Sections...
00 .ARM.exidx
01 .note.ABI-tag .init .text __libc_freeres_fn .fini .rodata __libc_subfreeres __libc_atexit .ARM.extab .ARM.exidx .eh_frame
02 .tdata .init_array .fini_array .jcr .data.rel.ro .got .data .bss __libc_freeres_ptrs
03 .note.ABI-tag
04 .tdata .tbss
05


kexec --help on the kindle
Spoiler:
Quote:
[root@kindle root]# kexec --help
kexec-tools 2.0.3 released 09 September 2012
Usage: kexec [OPTION]... [kernel]
Directly reboot into a new kernel

-h, --help Print this help.
-v, --version Print the version of kexec.
-f, --force Force an immediate kexec,
don't call shutdown.
-x, --no-ifdown Don't bring down network interfaces.
(if used, must be last option
specified)
-l, --load Load the new kernel into the
current kernel.
-p, --load-panic Load the new kernel for use on panic.
-u, --unload Unload the current kexec target kernel.
If capture kernel is being unloaded
specify -p with -u.
-e, --exec Execute a currently loaded kernel.
-t, --type=TYPE Specify the new kernel is of this type.
--mem-min=<addr> Specify the lowest memory address to
load code into.
--mem-max=<addr> Specify the highest memory address to
load code into.
--reuseinitrd Reuse initrd from first boot.
--load-preserve-context Load the new kernel and preserve
context of current kernel during kexec.
--load-jump-back-helper Load a helper image to jump back
to original kernel.

Supported kernel file types and options:
uImage
--command-line=STRING Set the kernel command line to STRING.
--append=STRING Set the kernel command line to STRING.
--initrd=FILE Use FILE as the kernel's initial ramdisk.
--ramdisk=FILE Use FILE as the kernel's initial ramdisk.
zImage
--command-line=STRING Set the kernel command line to STRING.
--append=STRING Set the kernel command line to STRING.
--initrd=FILE Use FILE as the kernel's initial ramdisk.
--ramdisk=FILE Use FILE as the kernel's initial ramdisk.
Architecture options:


As usual these are just the raw files. No effort has been made to enable these to be actually "installed" or "used" - they are provided AS-IS. (hint... these just pretty much run anywho)

@dpavlin The buildroot thread contains a list of tips for such an undertaking. HTH.
Attached Files
File Type: gz kexec-3.3-bundle.tar.gz (508.0 KB, 49 views)

Last edited by twobob; 09-09-2012 at 02:09 PM. Reason: it's 2007q3
twobob is offline   Reply With Quote