Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-22-2012, 09:35 AM   #121
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
Holy War challenge accepted ::

K4&K5 == -mfpu=vfpv3-d16 -mfloat-abi=softfp (rather than: -mfpu=vfpv3 or -mfpu=neon)

Keep in mind that the neon instruction set treats denormals as zero.
Should not make a difference in typical uses, like finding the pixel bounds of a graphic item.
Will make a difference in fft and inverse fft code (big time).
Would probably not be recommended for building gcc with either - very likely to screw up the optimizer's tree coloring.

Hmm...
I wouldn't trust the neon instruction set for building Lua either (Lua's only (default) internal numeric type is double)

Note: Only messing with the K3 code at the moment here, not (yet) with K4&K5.

Last edited by knc1; 08-22-2012 at 09:39 AM.
knc1 is offline   Reply With Quote
Old 08-22-2012, 02:33 PM   #122
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@knc1: Thanks for the details .

Why vfpv3-d16, though? AFAIK, the K4/K5's cpu has the full 32 registers available, no?

(I omit the float-abi stuff because I default to softfp on my TCs, I think I mentioned it in the full post twobob quoted ).
NiLuJe is offline   Reply With Quote
Advert
Old 08-22-2012, 03:20 PM   #123
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
If the only things we are generating code for is the i.MX31, i.MX35, I.MX53 - -
Then I guess we don't need to be concerned about running the stuff on ARM arch's other than ARMv6 and ARMv7.

The (-d16) uses half-wide registers as pairs.
I still haven't found what that 'l' of the ARMv6l and ARMv7l arch is - the only hint is about the "(l)ight FPU silicon". (Takes more FPU cycles than the "full" silicon.)

On my "to do list" is some small diagnostic things that would tell us exactly which core variation that Freescale licensed. Just haven't had enough of a pressing need to know.

So for now - assuming 16bit register pairs should be the "safe course" .

(Plus it lets us borrow from the Ubuntu-Core project. )
knc1 is offline   Reply With Quote
Old 08-22-2012, 05:32 PM   #124
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
If the only things we are generating code for is the i.MX31, i.MX35, I.MX53 - -
Then I guess we don't need to be concerned about running the stuff on ARM arch's other than ARMv6 and ARMv7.
...
I see that you mentioned i.MX53 series instead of the i.MX508 that is used in K4/K5.

For anybody that questions differences between i.MX53x and i.MX508: They both use the Cortex A8 instruction set, but the SoC chips have other differences (such as no eink controller on the i.MX53x SoC chips).
geekmaster is offline   Reply With Quote
Old 08-22-2012, 06:49 PM   #125
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
Typo.
knc1 is offline   Reply With Quote
Advert
Old 09-13-2012, 01:29 PM   #126
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
Spoiler:


Here we show a head to head of the im35_luigi_defonfigs from the 3.3 and 3.4 Kernels.

As you can see they are identical.

So no changes there then.

http://minimodding.com/article10-com...g-head-to-head

This bodes well for us. no kernel tweaks required for 3.4 compliance. Happy days.

Looking at the Src bz2's they appear identical.

Any bets on updated headers???
twobob is offline   Reply With Quote
Old 09-14-2012, 01:52 AM   #127
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
Build this for me

Quote:
Originally Posted by twobob View Post
Spoiler:


Here we show a head to head of the im35_luigi_defonfigs from the 3.3 and 3.4 Kernels.

As you can see they are identical.

So no changes there then.

http://minimodding.com/article10-com...g-head-to-head

This bodes well for us. no kernel tweaks required for 3.4 compliance. Happy days.

Looking at the Src bz2's they appear identical.

Any bets on updated headers???
I just had to be the first one to use a cross-site, thoughtless, request title.

At this site:
http://www.daemonology.net/bsdiff/
Is described the (original) bsdiff / bspatch program, with sources:
http://www.daemonology.net/bsdiff/bsdiff-4.3.tar.gz

If you would please wire that into your build system?

If you want to practice building it (to find problems in the build), we could use an Intel, 32bit version also (in BR, jsut call both the 'target' and the 'host' builders).

Once some testing confirms that the above is the same bsdiff / bspatch being used by lab126 . . .

- - - speed bump - - - topic shift - - -

For the vendor (binary) tarballs released for Media Players, a file changes audit report generator already exists.

HowTo install binfmt_misc support for it (not required, and in supplement to what you have already written up here):
http://minimodding.com/LuaBinFmt

HowTo on building and installing LuaFileAudit:
http://minimodding.com/LuaFileAudit

HowTo use LFA and example reports generated:
http://minimodding.com/FW121NTSCcomp

The above example is on comparison of binary trees, but should work just the same on source trees.

- - - speed bump - - - topic return here - - -

For the "Describe this for Me" to-do list ::

  • Write-up for everyone how to use the update tool to unpack a Kindle update ;
  • Apply that update to a file image - using a "non-Kindle" machine ;
  • Generate a File Audit report of the changes to the image ;
  • Then on using the update tool to re-pack the updated "forensic" image.
It should all be a "piece of cake" for the crew at either of our cross-scripted web-sites:

  • Lua will build and run on anything that supports a standard "C" compiler ;
  • The LFA application is a Lua script ;
  • We already have the un-pack/re-pack tool in several versions, by several people.

Last edited by knc1; 09-14-2012 at 02:16 AM.
knc1 is offline   Reply With Quote
Old 09-14-2012, 09:13 AM   #128
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
Let me check the version on this... Might be the wrong one.
EDIT: Yep - version is correct. 4.3 bsdiff

bsdiif - bspatch (built for a Kindle 3.x)

[root@kindle root]# /mnt/us/usr/bin/bsdiff
Quote:
bsdiff: usage: /mnt/us/usr/bin/bsdiff oldfile newfile patchfile
[root@kindle root]# /mnt/us/usr/bin/bspatch
Quote:
bspatch: usage: /mnt/us/usr/bin/bspatch oldfile newfile patchfile
(Built static static)

[root@kindle root]# readelf -d /mnt/us/usr/bin/bsdiff
Quote:
There is no dynamic section in this file.
[root@kindle root]# readelf -d /mnt/us/usr/bin/bspatch
Quote:
There is no dynamic section in this file.
I'll have a look at the others now

Will build a 32 bit Intel Linux build too then : )
Attached Files
File Type: gz bsdiff_bspatch_3.x.tar.gz (493.9 KB, 204 views)

Last edited by twobob; 09-14-2012 at 09:23 AM.
twobob is offline   Reply With Quote
Old 09-14-2012, 09:20 AM   #129
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
Thanks a lot!

I am carving out a new chamber in the Nerd Cave this morning.

After making my post, I noticed that LFA processes the output of sha1deep
So we will have to build that little collection of *deep tools also.
knc1 is offline   Reply With Quote
Old 09-14-2012, 10:01 AM   #130
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
okay. np. Today I am attempting to grab the guts from this DX, however that just needs "setting running" AFAIK.

Also I FINALLY managed to get the entire "examples" catalogue of QT 4.8.3 cross-compiled for a kindle (Got it down to a 2Gb size )

Also managed to get BR to swallow hawhills qt patch on-the-fly : )
so testing the impact of that.

Err. what else. yeah the 32 bit version of bsdiff /patch (I have them already somewhere - need to dig em out)

I looked at that Lua audit thingy Have to take some time to figure out howto install /use that too (I once-over-ed the docs)

etc... TBC

Last edited by twobob; 09-14-2012 at 10:11 AM. Reason: Lua
twobob is offline   Reply With Quote
Old 09-14-2012, 10:51 AM   #131
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
You may have to "tweek" K3Flasher - the KDX is a different processor and the setup command file sequence is probably different.
You may have to check the ATK sources (on our kloud) for the details.

The "RAM kernel" is different, but you can pull that out of the ATK binary.
knc1 is offline   Reply With Quote
Old 09-14-2012, 10:57 AM   #132
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
I was just looking to export the files...

I vaugely recall a dd command would do the job??? (the Dx is fine right now, simply backing up to FAT and pulling off over USB would be far easier I posited?)

Clues gratefully accepted. In essence I am looking to create the image that will be required by another poor soul who will be running this in via serial.

: )

EDIT: And yes I reading through the tens of thousands of posts, unhelpful google results, far too many bookmarks, far too much mail in an effort to find out for myself.

dd was always a bit of a mystery. "copy stuff bit for bit" from here to there I guess, just want to get the swtches bang on is all.
twobob is offline   Reply With Quote
Old 09-14-2012, 11:08 AM   #133
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
I was just looking to export the files...
Yeah, dd will do that.

I thought you wanted a "complete - user storage" set of files like Hawhill's dump script does.

PM me if you need some help with that - I am only digging the "diaper residue" out of the Nerd Cave this morning.
knc1 is offline   Reply With Quote
Old 09-14-2012, 03:25 PM   #134
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
Quote:
Originally Posted by twobob View Post
I was just looking to export the files...

I vaugely recall a dd command would do the job??? (the Dx is fine right now, simply backing up to FAT and pulling off over USB would be far easier I posited?)

dd was always a bit of a mystery. "copy stuff bit for bit" from here to there I guess, just want to get the swtches bang on is all.
And here I am, many hours later DX FINALLY !!!! READY to run backups...

Sigh. There are quite a few quirks in our documentation. should really get a "unified" effort rolled onto the wiki one day I suppose. *gasp* more work.

anways, here I am, made it.

now - those pesky dd commands for a DX... resumes wandering through the annals.
twobob is offline   Reply With Quote
Old 09-14-2012, 03:51 PM   #135
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
Keep notes.
If interested, keep them on a new wiki page at mmg.

Note: The new page does not have to be "linked in" anywhere, you can always find every page you ever created in your MyTiki section (if turned on in MyTiki:preferences).
knc1 is offline   Reply With Quote
Reply

Tags
buildroot, compile, howto, kernal, kindle 3.3


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Titus enTourage Archive 6 09-07-2010 11:23 AM
So as a Linux..... tajreed General Discussions 13 04-05-2010 12:51 PM
Linux? Ron46 Ectaco jetBook 8 12-24-2009 08:07 AM
Linux coredump Sony Reader 12 11-17-2009 05:07 AM
Linux Help clewley Bookeen 3 04-04-2008 08:40 AM


All times are GMT -4. The time now is 04:06 PM.


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