Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-18-2013, 07:41 PM   #1
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
[DEVs] Firmware Summary

Information taken from the archive names in the Amazon posted source file archives, as of 2013/02/16.

Viewable here:
http://drpbox.knetconnect.com/firm/

And attached here as a spreadsheet file.
BIG NOTE: The final extension (.gz) was added to keep the forum software happy.
Just rename the file without the (.gz) extension!

A post with a directory of sorts to the collection of initramfs and dot-config files is at:
https://www.mobileread.com/forums/sho...5&postcount=23

A post with the summary of kernel module versions, with links to the posts having the module tar-balls is at:
https://www.mobileread.com/forums/sho...3&postcount=36

Still lacking a K2 binary to fondle, but ....

Our little, "alpha preview" of a module set for all KUAL supported devices.
A ready to mount, cramfs image, to mount at: /mnt/us/extensions/system/lib/modules
(if you don't have that path - make it)
Access to current machines module tree is by the usual: lib/modules/`uname -r` path.
The module trees all have the usual depmod files.

  • K2: Untested
  • DX: Works
  • K3: Works
  • K4: Works
  • K5(both): Works

Your need to manually remove the trailing ".zip" from the cramfs file.
USE A RENAME FUNCTION - even if your zip utility thinks it can open it!!
The ".zip" is just to keep the forum software happy.
Attached Files
File Type: gz FirmSummary.ods.gz (14.6 KB, 301 views)
File Type: zip modules.cfs.zip (9.48 MB, 496 views)

Last edited by knc1; 02-27-2013 at 01:42 PM.
knc1 is offline   Reply With Quote
Old 02-18-2013, 09:02 PM   #2
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
It'd be nice to see version of libstdc++ in this list (where applicable).
eureka is offline   Reply With Quote
Old 02-18-2013, 09:10 PM   #3
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by eureka View Post
It'd be nice to see version of libstdc++ in this list (where applicable).
Anything else?

It has been a fairly long 3 days, it may take me a few before I can look at this file of 4 Million + records again without getting sick of it.
So anything that might be a basic, system's compatibility, item.

EDIT:
Would the version of u-boot be useful on that list?

Last edited by knc1; 02-18-2013 at 09:16 PM.
knc1 is offline   Reply With Quote
Old 02-19-2013, 09:28 AM   #4
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,586
Karma: 6299991
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
That is so awesome.

: )
twobob is offline   Reply With Quote
Old 02-19-2013, 09:46 AM   #5
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by twobob View Post
That is so awesome.

: )
Thank you.
You can see a definite trend to their 'release policy' there.

Speculation: Maybe they filled that 'Compliance Officer' position that was open with someone who knows what they are doing. (They never had to ship the sources of the GPL toolchain.)

OR
We (devs) know what the English translation of the Amazon policy statement: "Amazon does not support customized software." really is, maybe they are just getting very serious about that.

The '-lab126' was dropped from the kernel archive name because those contain an archive of the Amazon patches.
Nice of them to extract all of their changes for us.

The 'eglibc' bundle also contains an archive of Ubuntu patches to the original named version.

I also have a list, by firmware release, of every OSS archive named.
The one shown on the above page was only a few hundred records, the all-inclusive list is about 9,000.
I will have to script up something to translate that one into a table or tables. Expect a delay on that listing.
knc1 is offline   Reply With Quote
Old 02-19-2013, 09:49 AM   #6
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,586
Karma: 6299991
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
need time to digest this. all in awesomesauce.
twobob is offline   Reply With Quote
Old 02-19-2013, 10:03 AM   #7
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by eureka View Post
It'd be nice to see version of libstdc++ in this list (where applicable).
Yeah, this morning I can see some 'oops' (capitalization errors) and the lost of which firmwares are identical on different machine models.

Will fix all of that up when I add libstdc++ and klibc .

Three more columns isn't going to hurt that page any and might be useful.
knc1 is offline   Reply With Quote
Old 02-19-2013, 10:13 AM   #8
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 404
Karma: 2200000
Join Date: May 2012
Device: kt
Interesting summary. Thanks!

Quote:
Originally Posted by knc1 View Post
The '-lab126' was dropped from the kernel archive name because those contain an archive of the Amazon patches.
Nice of them to extract all of their changes for us.
By the way, Freescale kernel patches included in KT sources are also available here.
baf is offline   Reply With Quote
Old 02-19-2013, 10:16 AM   #9
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by baf View Post
Interesting summary. Thanks!



By the way, Freescale kernel patches included in KT sources are also available here.
Also linked to from the Prefix_Tools index page at MR.
knc1 is offline   Reply With Quote
Old 02-19-2013, 12:24 PM   #10
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
K4 Specifics (from the binaries)

K4(main-4.1.0. kernel):
Code:
Linux-2.6.31-rt11-lab126
armv7
vermagic=2.6.31-rt11-lab126 mod_unload ARMv7 
/home/jenkins-official/workspace/OFFICIAL-H2-Yoshi/os/linux/linux-2.6.31/drivers/usb/gadget/arcotg_udc.c
GCC: (Linaro GCC 4.5-2011.04-0) 4.5.3 20110406 (prerelease)
aeabi
MISSING: Cortex-A8

Check that one for gzip signatures:
Code:
core2quad main $ od -A d -t x1 kernel_main_4.1.0 | grep '1f 8b 08 00' | wc -l
47
47? 47!! - Unless those are a lot of "false positives", that kernel will be a lot of fun to take apart!
See: https://www.mobileread.com/forums/sho...8&postcount=14

K4(diags-4.0, kernel):
Code:
Linux-2.6.31-rt11-lab126
armv7
vermagic=2.6.31-rt11-lab126 mod_unload ARMv7 
/home/build/src/yoshi/diags/hera-DVT1/kernel/linux-2.6.31/dist/drivers/usb/gadget/arcotg_udc.c
GCC: (Linaro GCC 4.5-2011.05-0) 4.5.4 20110505 (prerelease)
aeabi
Cortex-A8
Translation: The kernel modules posted by baf should also work on the K4 (and have been run on both of the K5 devices).

Check that one for gzip signatures:
Code:
core2quad diags $ mv diags_kernel.img kernel_diags_4.0.img
core2quad diags $ od -A d -t x1 kernel_diags_4.0.img | grep '1f 8b 08 00' | wc -l
20
Durn, nearly as bad as the main kernel.
Continued at: https://www.mobileread.com/forums/sho...5&postcount=18

Last edited by knc1; 02-20-2013 at 12:43 PM.
knc1 is offline   Reply With Quote
Old 02-19-2013, 01:35 PM   #11
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
K3 specifics (from binaries)

The K3 kernel is compressed, which makes it a lot more fun - - -

Find the gzip magic number:
Code:
core2quad K3 $ od -A d -t x1 main_kernel-3.4.img | grep '1f 8b 08 00'
0013408 68 65 20 6b 65 72 6e 65 6c 2e 0a 00 1f 8b 08 00
Copy all after that magic number:
Code:
core2quad K3 $ dd if=main_kernel-3.4.img bs=1 skip=13420 of=main_kernel-3.4.gz
2154388+0 records in
2154388+0 records out
2154388 bytes (2.2 MB) copied, 8.9767 s, 240 kB/s
Notice that you have to count upto (including the first byte) the magic number.

Check that you got what you expected:
Code:
core2quad K3 $ od -A d -t x1 main_kernel-3.4.gz | grep '1f 8b 08 00'
0000000 1f 8b 08 00 fb 7d 42 50 02 03 9c bd 0d 7c 54 c5

core2quad K3 $ file main_kernel-3.4.gz
main_kernel-3.4.gz: gzip compressed data, from Unix, last modified: Sat Sep  1 16:28:27 2012, max compression
The magic number is now aligned at the start of the file, and 'file' recognizes it.

Uncompress the little sucker:
Code:
core2quad K3 $ gunzip main_kernel-3.4
gzip: main_kernel-3.4.gz: decompression OK, trailing garbage ignored
Well Phooey, how many times did they compress this thing?

Code:
core2quad K3 $ od -A d -t x1 main_kernel-3.4 | grep '1f 8b 08 00'
0098944 1f 8b 08 00 f7 7d 42 50 02 03 bc 5a 0f 6c 14 57
3001360 47 5f 53 54 1f 8b 08 00 f5 7d 42 50 02 03 94 3c
Two compressed files inside of a compressed file, oh what fun we have.

The first file:

Code:
core2quad K3 $ od -A d -t x1 main_kernel-3.4 | grep '1f 8b 08 00'
0098944 1f 8b 08 00 f7 7d 42 50 02 03 bc 5a 0f 6c 14 57

3001360 47 5f 53 54 1f 8b 08 00 f5 7d 42 50 02 03 94 3c
core2quad K3 $ dd if=main_kernel-3.4 bs=1 skip=98944 of=main_kernel-3.4.b.gz
3776904+0 records in
3776904+0 records out
3776904 bytes (3.8 MB) copied, 15.7225 s, 240 kB/s

core2quad K3 $ od -A d -t x1 main_kernel-3.4.b.gz | grep '1f 8b 08 00'
0000000 1f 8b 08 00 f7 7d 42 50 02 03 bc 5a 0f 6c 14 57
2902416 47 5f 53 54 1f 8b 08 00 f5 7d 42 50 02 03 94 3c

core2quad K3 $ file main_kernel-3.4.b.gz
main_kernel-3.4.b.gz: gzip compressed data, from Unix, last modified: Sat Sep  1 16:28:23 2012, max compression

core2quad K3 $ gunzip main_kernel-3.4.b.gz
gzip: main_kernel-3.4.b.gz: decompression OK, trailing garbage ignored

core2quad K3 $ file main_kernel-3.4.b
main_kernel-3.4.b: ASCII cpio archive (SVR4 with no CRC)
The first of the two compressed files statically linked to the kernel (making them GPL) is the initramFS.

So turn that into a file system tree again, just for the interested (keep in mind, this binary is staticly linked into a GPL binary).

Code:
core2quad K3 $ mkdir initramfs-3.4

core2quad K3 $ cd initramfs-3.4

core2quad initramfs-3.4 $ sudo su

core2quad initramfs-3.4 # cpio -i -d -m --no-absolute-filenames -I ../main_kernel-3.4.b
cpio: Removing leading `/' from member names
2073 blocks
You **MUST** be 'root' to preserve permissions and ownership (and create any special files).
So it is utmost importance that you include that: "--no-absolute-filenames" option unless you intend to trash your workstation.

What did that give us?
Code:
core2quad initramfs-3.4 # ls -l
total 28
drwxr-xr-x 2 1004 5000 4096 2013-02-19 13:53 bin
drwxr-xr-x 7 root root 4096 2013-02-19 13:53 dev
lrwxrwxrwx 1 root root   18 2013-02-19 13:53 init -> /bin/recovery-util
drwxr-xr-x 3 1004 5000 4096 2013-02-19 13:53 lib
drwxr-xr-x 2 root root 4096 2012-09-01 16:28 proc
drwx------ 2 root root 4096 2012-09-01 16:28 root
drwxr-xr-x 2 1004 5000 4096 2012-09-01 16:28 sbin
drwxr-xr-x 2 root root 4096 2012-09-01 16:28 sys
Since everything in that is (now) GPL because it was staticly linked into a GPL binary, will just tar-ball it and attach it here.
BIG NOTE: There is a way to build a kernel that uses an initramfs file that **DOES NOT** require it to be staticly linked into the kernel binary. Since Amazon chose to give this one away, we will just accept their offer here.

The second file:

Code:
core2quad K3 $ dd if=main_kernel-3.4 bs=1 skip=3001364 of=main_kernel-3.4.a.gz
874484+0 records in
874484+0 records out
874484 bytes (874 kB) copied, 3.37191 s, 259 kB/s
core2quad K3 $ od -A d -t x1 main_kernel-3.4.a.gz | grep '1f 8b 08 00'
0000000 1f 8b 08 00 f5 7d 42 50 02 03 94 3c db 72 db 36
Check what that yielded:
Code:
core2quad K3 $ file main_kernel-3.4.a.gz
main_kernel-3.4.a.gz: gzip compressed data, from Unix, last modified: Sat Sep  1 16:28:21 2012, max compression
Give that one a chance:
Code:
core2quad K3 $ gunzip main_kernel-3.4.a
gzip: main_kernel-3.4.a.gz: decompression OK, trailing garbage ignored
Ah, that file-in-a-file is the compressed kernel configuration file (at run-time, accessible in /proc).
That will do for this post.

K3(kernel-3.4):
Code:
Linux-2.6.26-rt-lab126
armv6
- - - - -
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.26-rt-lab126
# Sat Sep  1 14:28:21 2012
- - - - -
CONFIG_ARCH_MXC=y
CONFIG_ARCH_MX35=y
CONFIG_SDMA_IRAM_SIZE=0x1000
CONFIG_MX35_OPTIONS=y
CONFIG_MACH_MX35_LUIGI=y
CONFIG_MACH_LUIGI_LAB126=y
CONFIG_PROC_BOOTDATA=y
CONFIG_PROC_BOARDID=y
CONFIG_ARCH_HAS_RNGC=y
CONFIG_ARCH_HAS_EVTMON=y
CONFIG_DMA_ZONE_SIZE=24
CONFIG_UTMI_MXC=y
CONFIG_MXC_PWM=y
CONFIG_CPU_32=y
CONFIG_CPU_V6=y
CONFIG_CPU_32v6=y
CONFIG_CPU_ABRT_EV6=y
CONFIG_CPU_PABRT_NOIFAR=y
CONFIG_CPU_CACHE_V6=y
CONFIG_CPU_CACHE_VIPT=y
CONFIG_CPU_COPY_V6=y
CONFIG_CPU_TLB_V6=y
CONFIG_CPU_HAS_ASID=y
CONFIG_CPU_CP15=y
CONFIG_CPU_CP15_MMU=y
CONFIG_ARM_THUMB=y
CONFIG_OUTER_CACHE=y
CONFIG_CACHE_L2X0=y
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
CONFIG_PREEMPT_NONE=y
CONFIG_HZ=100
CONFIG_AEABI=y
CONFIG_OABI_COMPAT=y
- - - - plus a lot more of course - - - -
Will just save that .config file and attach it here.
Code:
core2quad K3 $ mv main_kernel-3.4.a dot-config-3.4
core2quad K3 $ gzip dot-config-3.4
Attached Files
File Type: gz dot-config-3.4.gz (8.8 KB, 241 views)
File Type: gz initramfs-3.4.tar.gz (508.3 KB, 259 views)

Last edited by knc1; 02-19-2013 at 03:37 PM.
knc1 is offline   Reply With Quote
Old 02-19-2013, 03:28 PM   #12
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,586
Karma: 6299991
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
Ces't magnifique.

Top job.

*set's aside time to digest*
twobob is offline   Reply With Quote
Old 02-19-2013, 03:54 PM   #13
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by twobob View Post
Ces't magnifique.

Top job.

*set's aside time to digest*
Since Amazon decided to make this stuff GPL - I guess I can make P.
(What part of "General Public" did lab126 not understand?)
knc1 is offline   Reply With Quote
Old 02-19-2013, 04:31 PM   #14
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Main, Kernel-4.1.0 summary

47? 47!! - Unless those are a lot of "false positives", that kernel will be a lot of fun to take apart!

Deep breath now and hope that is 45 "false positives".

Spoiler:

Code:
core2quad main $ od -A d -t x1 kernel_main_4.1.0 | grep '1f 8b 08 00' 
0242880 1f 8b 08 00 00 00 00 00 02 03 ed 92 3d 6f d3 50
0243328 07 4d c7 b8 e0 84 06 00 00 1f 8b 08 00 00 00 00
0420416 00 00 00 00 00 00 00 00 00 00 00 00 1f 8b 08 00
0421920 f3 e8 34 20 00 00 00 00 da 05 00 00 1f 8b 08 00
0422128 46 2f 00 00 ab d9 d3 43 f4 0e 00 00 1f 8b 08 00
0422304 00 00 1f 8b 08 00 00 00 00 00 02 03 5d 8e 31 0e
0422432 00 00 00 1f 8b 08 00 00 00 00 00 02 03 5d 8e b1
0422544 00 00 1f 8b 08 00 00 00 00 00 02 03 63 61 60 60
0422576 d9 f0 55 30 00 00 00 1f 8b 08 00 00 00 00 00 02
0422752 00 00 00 1f 8b 08 00 00 00 00 00 02 03 5d 8d bb
0422896 1f 8b 08 00 00 00 00 00 02 03 ed 95 3b 8e db 30
0424400 ce 02 00 00 ff ff ff ff 1f 8b 08 00 00 00 00 00
0426880 0b 0b 25 0d 29 e6 0b 02 00 1f 8b 08 00 00 00 00
0433840 0f 2f ca e0 49 7f 75 00 00 1f 8b 08 00 00 00 00
0435216 01 c3 bd e2 fe 00 18 00 00 1f 8b 08 00 00 00 00
0443808 fc 07 8b bd c5 ab f4 91 00 00 1f 8b 08 00 00 00
0445520 9c 4a 22 1d 00 00 1f 8b 08 00 00 00 00 00 02 03
0447216 ed 67 35 2d 22 1d 00 00 1f 8b 08 00 00 00 00 00
0453280 b1 d2 f0 0c ab b5 0c cd 10 6f 00 00 1f 8b 08 00
0454656 1d e5 bf 01 c3 bd e2 fe 00 18 00 00 1f 8b 08 00
0459920 e0 49 7f 75 00 00 1f 8b 08 00 00 00 00 00 02 03
0460720 e6 2f 41 5a b9 c2 24 1a 00 00 1f 8b 08 00 00 00
0461376 a6 06 00 00 1e 05 00 00 1f 8b 08 00 00 00 00 00
0462864 00 00 00 00 1f 8b 08 00 00 00 00 00 02 03 ed 97
0463632 1f 8b 08 00 00 00 00 00 02 03 ed 96 b1 72 d4 30
0464208 16 df 70 c4 3a 14 00 00 1f 8b 08 00 00 00 00 00
0470544 12 f6 b9 3f 6a 26 50 19 1c 81 00 00 1f 8b 08 00
0479344 ac c7 3f 90 00 00 1f 8b 08 00 00 00 00 00 02 03
0479904 07 00 00 1f 8b 08 00 00 00 00 00 02 03 cd 95 31
0480448 8e b2 41 86 07 00 00 1f 8b 08 00 00 00 00 00 02
0481712 2b 8d 65 62 3a 14 00 00 1f 8b 08 00 00 00 00 00
0495808 13 02 00 c9 1e 4b 01 38 07 00 00 1f 8b 08 00 00
0496016 1e 4b 01 38 07 00 00 1f 8b 08 00 00 00 00 00 02
0497200 00 00 1f 8b 08 00 00 00 00 00 02 03 ed 9b 31 73
0500448 90 42 00 00 1f 8b 08 00 00 00 00 00 02 03 ed 5c
0505808 ae 14 00 00 15 02 00 00 1f 8b 08 00 00 00 00 00
0763280 38 a5 01 00 5c a5 01 00 1f 8b 08 00 00 00 00 00
0767936 cc d4 01 00 2c 12 00 00 1f 8b 08 00 00 00 00 00
0771520 ca 3f 00 00 fc 0d 00 00 1f 8b 08 00 00 00 00 00
0774224 1f 8b 08 00 00 00 00 00 02 03 ed 9d bd 8f 23 49
0778416 bd cc d4 01 00 00 00 00 1f 8b 08 00 00 00 00 00
0782640 d4 01 00 00 1f 8b 08 00 00 00 00 00 02 03 ed 9d
0789024 1f 8b 08 00 00 00 00 00 02 03 ed 9d bf 8e dc d6
0792160 1f 8b 08 00 00 00 00 00 02 03 ed 9d 4d 8f dc e6
0800064 00 00 00 00 1f 8b 08 00 00 00 00 00 02 03 ed dc
0801536 a4 05 00 00 1f 8b 08 00 00 00 00 00 02 03 ed 9d
3723776 9b 7c 41 c0 49 4b 43 46 47 5f 53 54 1f 8b 08 00


Starting from with the last one:
Code:
core2quad main $ od -A d -t x1 kernel_main_4.1.0 | grep '1f 8b 08 00' 
3723776 9b 7c 41 c0 49 4b 43 46 47 5f 53 54 1f 8b 08 00

core2quad main $ dd if=kernel_main_4.1.0 bs=1 skip=3723788 of=km-4.1.0-99.gz
1125876+0 records in
1125876+0 records out
1125876 bytes (1.1 MB) copied, 4.28303 s, 263 kB/s

core2quad main $ od -A d -t x1 km-4.1.0-99.gz | grep '1f 8b 08 00' 
0000000 1f 8b 08 00 32 5c c0 4f 02 03 94 5c 59 6f e3 38

core2quad main $ gunzip km-4.1.0-99
gzip: km-4.1.0-99.gz: decompression OK, trailing garbage ignored

core2quad main $ file km-4.1.0-99
km-4.1.0-99: ASCII English text
core2quad main $ less km-4.1.0-99
Hmm...
The dot-config for main-4.1.0, thank you Amazon, we will keep it.

Code:
core2quad main $ cp km-4.1.0-99 dot-config-main-4.1.0
core2quad main $ gzip dot-config-main-4.1.0
Later - much, too much later:
As it occurs to dumb-dumb here to read the config file saved this afternoon:
Code:
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE="initramfs-tequila.list"
CONFIG_INITRAMFS_ROOT_UID=0
CONFIG_INITRAMFS_ROOT_GID=0
CONFIG_RD_GZIP=y
# CONFIG_RD_BZIP2 is not set
# CONFIG_RD_LZMA is not set
CONFIG_INITRAMFS_COMPRESSION_NONE=y
# CONFIG_INITRAMFS_COMPRESSION_GZIP is not set
# CONFIG_INITRAMFS_COMPRESSION_BZIP2 is not set
# CONFIG_INITRAMFS_COMPRESSION_LZMA is not set
That explains a lot.

Knowing from the dot-config file that the initramfs file isn't compressed, then we need to search for the cpio (-H newc mode) magic number.
Ref: https://www.kernel.org/doc/Documenta...-initramfs.txt

After correcting certain cockpit errors here, ready to continue:

Having confirmed the location of the compressed dot-config, trim the kernel image by that amount:
Code:
core2quad main $ dd if=main_kernel-4.1.0.img bs=1 count=3723788 of=km-4.1.0-trim.bin 
3723788+0 records in
3723788+0 records out
3723788 bytes (3.7 MB) copied, 16.38 s, 227 kB/s
Search what remains for the cpio -H newc mode, magic number:
Spoiler:

Every record header in the cpio format starts with this same magic number.
Code:
core2quad main $ od -A d -t x1 km-4.1.0-trim.bin | grep '30 37 30 37 30 31'
0100096 30 37 30 37 30 31 30 30 30 30 30 32 44 31 30 30
0100208 65 76 00 00 30 37 30 37 30 31 30 30 30 30 30 32
0100448 6f 6e 73 6f 6c 65 00 00 30 37 30 37 30 31 30 30
0100576 30 37 30 37 30 31 30 30 30 30 30 32 44 35 30 30
0100688 65 76 2f 7a 65 72 6f 00 30 37 30 37 30 31 30 30
0100816 6d 00 00 00 30 37 30 37 30 31 30 30 30 30 30 32
0101056 6d 69 63 00 30 37 30 37 30 31 30 30 30 30 30 32
0101296 61 74 63 68 64 6f 67 00 30 37 30 37 30 31 30 30
0101424 63 30 00 00 30 37 30 37 30 31 30 30 30 30 30 32
0101552 30 37 30 37 30 31 30 30 30 30 30 32 44 44 30 30
0101792 74 79 6d 78 63 33 00 00 30 37 30 37 30 31 30 30
0101920 63 34 00 00 30 37 30 37 30 31 30 30 30 30 30 32
0102160 62 2f 30 00 30 37 30 37 30 31 30 30 30 30 30 32
0102288 2f 66 62 2f 30 00 00 00 30 37 30 37 30 31 30 30
0102416 6b 30 00 00 30 37 30 37 30 31 30 30 30 30 30 32
0102544 00 00 00 00 30 37 30 37 30 31 30 30 30 30 30 32
0102672 00 00 00 00 30 37 30 37 30 31 30 30 30 30 30 32
0102800 00 00 00 00 30 37 30 37 30 31 30 30 30 30 30 32
0102928 00 00 00 00 30 37 30 37 30 31 30 30 30 30 30 32
0103056 30 37 30 37 30 31 30 30 30 30 30 32 45 39 30 30
0103184 30 37 30 37 30 31 30 30 30 30 30 32 45 41 30 30
0103312 30 37 30 37 30 31 30 30 30 30 30 32 45 42 30 30
0103440 30 37 30 37 30 31 30 30 30 30 30 32 45 43 30 30
0103568 30 37 30 37 30 31 30 30 30 30 30 32 45 44 30 30
0103680 65 76 2f 6d 74 64 00 00 30 37 30 37 30 31 30 30
0103808 00 00 00 00 30 37 30 37 30 31 30 30 30 30 30 32
0103936 30 37 30 37 30 31 30 30 30 30 30 32 46 30 30 30
0104176 74 64 2f 33 00 00 00 00 30 37 30 37 30 31 30 30
0104304 00 00 00 00 30 37 30 37 30 31 30 30 30 30 30 32
0104432 30 37 30 37 30 31 30 30 30 30 30 32 46 34 30 30
0105440 6f 6f 70 30 00 00 00 00 30 37 30 37 30 31 30 30
0105568 00 00 00 00 30 37 30 37 30 31 30 30 30 30 30 32
0105696 30 37 30 37 30 31 30 30 30 30 30 32 46 45 30 30
0105936 32 63 00 00 30 37 30 37 30 31 30 30 30 30 30 33
0106064 30 37 30 37 30 31 30 30 30 30 30 33 30 31 30 30
0106304 32 63 2f 32 00 00 00 00 30 37 30 37 30 31 30 30
0106432 00 00 00 00 30 37 30 37 30 31 30 30 30 30 30 33
0106560 6e 74 30 00 30 37 30 37 30 31 30 30 30 30 30 33
0106688 6e 74 31 00 30 37 30 37 30 31 30 30 30 30 30 33
0106800 30 30 2f 70 72 6f 63 00 30 37 30 37 30 31 30 30
0107056 69 6c 00 00 30 37 30 37 30 31 30 30 30 30 30 33
0107168 30 30 2f 72 6f 6f 74 00 30 37 30 37 30 31 30 30
0107408 6f 64 75 6c 65 73 00 00 30 37 30 37 30 31 30 30
0107648 66 6d 00 00 30 37 30 37 30 31 30 30 30 30 30 33
0190832 02 54 01 00 30 37 30 37 30 31 30 30 30 30 30 33
0263440 30 37 30 37 30 31 30 30 30 30 30 33 31 32 30 30
0335152 02 c3 02 00 30 37 30 37 30 31 30 30 30 30 30 33
0400304 30 37 30 37 30 31 30 30 30 30 30 33 31 35 30 30
0524528 30 37 30 37 30 31 30 30 30 30 30 33 31 37 30 30
0542656 02 80 00 00 30 37 30 37 30 31 30 30 30 30 30 33
0554064 02 42 00 00 30 37 30 37 30 31 30 30 30 30 30 33
0554176 30 30 2f 62 69 6e 00 00 30 37 30 37 30 31 30 30
0580512 30 37 30 37 30 31 30 30 30 30 30 33 31 42 30 30
0592752 00 00 00 00 30 37 30 37 30 31 30 30 30 30 30 33
0632160 30 37 30 37 30 31 30 30 30 30 30 33 31 44 30 30
0852464 00 00 00 00 30 37 30 37 30 31 30 30 30 30 30 33
0854736 01 00 00 00 00 00 00 00 30 37 30 37 30 31 30 30
0918400 30 37 30 37 30 31 30 30 30 30 30 33 32 31 30 30


So starting at the first one, is the correct place to start if wanting the entire cpio archive:
Code:
core2quad main $ od -A d -t x1 km-4.1.0-trim.bin | grep '30 37 30 37 30 31'
0100096 30 37 30 37 30 31 30 30 30 30 30 32 44 31 30 30

core2quad main $ dd if=km-4.1.0-trim.bin bs=1 skip=100096 of=km-4.1.0-trim.cpio 
3623692+0 records in
3623692+0 records out
3623692 bytes (3.6 MB) copied, 16.2501 s, 223 kB/s

core2quad main $ file km-4.1.0-trim.cpio
km-4.1.0-trim.cpio: ASCII cpio archive (SVR4 with no CRC)
Now you must become the administrative user to correctly un-archive permissions, ownership and special devices.
**BE CERTAIN** to use the: '--no-absolute-filenames' option.
Code:
core2quad main $ mkdir cpio
core2quad main $ cd cpio
core2quad cpio $ sudo su

core2quad cpio # cpio -i -d -m  --no-absolute-filenames -I ../km-4.1.0-trim.cpio
cpio: Removing leading `/' from member names
1914 blocks

core2quad cpio # ls -l
total 28
drwxr-xr-x 2 root root 4096 2013-02-20 16:59 bin
drwxr-xr-x 7 root root 4096 2013-02-20 16:59 dev
lrwxrwxrwx 1 root root   18 2013-02-20 16:59 init -> /bin/recovery-util
drwxr-xr-x 3 root root 4096 2013-02-20 16:59 lib
drwxr-xr-x 3 root root 4096 2013-02-20 16:59 mnt
drwxr-xr-x 2 root root 4096 2012-05-25 23:29 proc
drwx------ 2 root root 4096 2012-05-25 23:29 root
drwxr-xr-x 2 root root 4096 2012-05-25 23:29 sys

core2quad cpio # cd ..
core2quad main # tar --create --gzip --file=cpio-main-4.1.0.tar.gz cpio
Thank you Amazon, we will keep that one also.
Attached Files
File Type: gz dot-config-main-4.1.0.gz (9.7 KB, 208 views)
File Type: gz main-4.1.0-irfs.tar.gz (491.0 KB, 225 views)

Last edited by knc1; 02-21-2013 at 07:02 PM.
knc1 is offline   Reply With Quote
Old 02-20-2013, 01:10 AM   #15
kaznelson
Old Kaz
kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.
 
kaznelson's Avatar
 
Posts: 201
Karma: 1013725
Join Date: May 2010
Device: PocketBook Era
knc1

K5(PW) 5.3.3: 1812030015
kaznelson is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unbearable Oversight of the [Original] Nook Tablet Devs! sarahmelissa Nook Color & Nook Tablet 9 08-28-2012 06:51 PM
Why don't we just signup as Active Content Devs? nathansuchy Kindle Developer's Corner 4 06-16-2012 09:31 PM
Touch [Question devs] Will we ever get Custom library? danskmacabre Kobo Reader 4 04-02-2012 06:29 PM
Suggestions for Kindle Devs jxh11215 Kindle Developer's Corner 5 03-28-2010 07:35 AM


All times are GMT -4. The time now is 08:04 AM.


MobileRead.com is a privately owned, operated and funded community.