![]() |
#46 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Usually, hardware floating point is faster than doing it in software. - - - - No, not added to the ./configure step Sorry, didn't notice that you where using an autotools package. After the configure step, when you do the "make" you should be able to pass the extra compiler flags at the same time. OR Set them in the Makefile after it has been generated by ./configure. On the command line (may not be honored by the Makefile): If it is a C program: CFLAGS='the extra options' make If it is a C++ program: CCFLAGS='the extra options' make OR Just set the extra options in the Makefile wherever CFLAGS and CCFLAGS is first defined. Note: These are just general directions. A person would have to have the actual text of the Makefile in front of them to give specifics. - - - - If all of the above is a mystery - don't worry about it - someone else will check it out when they have time. |
|
![]() |
![]() |
![]() |
#47 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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: I think the 'l' refers to the endianness, LE, in our case, although it's a weird syntax, and I may be wrong, since the 'j' in armv6j was for the jazelle thingy... Where did you see that syntax?
|
![]() |
![]() |
![]() |
#48 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
The thread title is self-contradictory. There is not any Kindle 4 with a touchscreen, and there is not any Kindle 5 without a touchscreen, AFAIK.
![]() The thread owner should request that it be renamed by a site moderator (click the button to the right of the KARMA button on the first post)... |
![]() |
![]() |
![]() |
#49 |
Enthusiast
![]() Posts: 39
Karma: 10
Join Date: May 2012
Device: Kindle Touch
|
knc1, the executable works as a charm with the additional compiler flags.
|
![]() |
![]() |
![]() |
#50 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
When I get a chance, I'll browse the kernel sources and see what the comments have to say about what they think they are describing. |
|
![]() |
![]() |
![]() |
#51 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
It should have failed horribly if the hardware floating point and the fpu options did not match. What are you running it on? The Kindle Touch? (K5) That one has even more hardware help that you could option in (but then it wouldn't run on the earlier Kindles - would have to build two flavors). The Kindle Non-Touch? (K4) Not sure of that one. @GM: is that one a i.MX3* or a i.MX5* SoC? The Kindle Keyboard (K3)? The options I gave should let your build run on all, all with at least some hardware help. Edit: We should probably re-build Lua for the Kindles. Internally, the only number type it has is Double. Hardware floating point ("Double") makes a big difference to Lua. Last edited by knc1; 06-10-2012 at 10:26 PM. |
|
![]() |
![]() |
![]() |
#52 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Both have Thumb, the KT (ARMv7l) has VFPv3, Thumb-2 and NEON, but no java vm. You may have noticed that the kernel for the KT has video drivers and V4L modules. Seems like lab126 is thinking of giving us video. Too bad members here beat them to it, without the hardware help of the more powerful core. I am working on a "cheat sheet" of gcc-options vs Kindle model - But the ARM naming scheme - - - well, I am not sure even the ARM engineers understand it. ![]() Last edited by knc1; 06-10-2012 at 10:18 PM. |
|
![]() |
![]() |
![]() |
#53 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
The K4 mostly emulates the K3 when booted from main, but when booted from diags it is more like the K5 (different kernels and different drivers). But the K4 uses the same SoC as the K5. |
|
![]() |
![]() |
![]() |
#54 |
Enthusiast
![]() Posts: 39
Karma: 10
Join Date: May 2012
Device: Kindle Touch
|
knc1, Kindle Touch, latest firmware.
|
![]() |
![]() |
![]() |
#55 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
if elRicharD wanted to maintain two flavors of mpeg123 (K4 & K5; Others)... Then the K4&K5 build could use the gcc options to use VFPv3+Neon (which I would need to look up for gcc-4.6). That would get his media stream mostly crunched in hardware. ![]() Should make Lua move right along also (for our Kpdf application). Since I am asking, and you have one of everything ever built.... When you get a chance, would you do a: cat /proc/cpuinfo on a K2 and a DX(G) please? |
|
![]() |
![]() |
![]() |
#56 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
|
|
![]() |
![]() |
![]() |
#57 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#58 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
The K2 and the DX use the same CPU as the K3 (arm1136jf-s / vfp), with a slightly older Kernel (~2.6.22) (and half the RAM, if I remember correctly?).
EDIT: AFAIR, the cpuinfo is indentical (DX/DXG/K2/K3), but I may be wrong ![]() Keep in mind that I had some weird surprises when building lua/kpdf with a hardfloat TC (namely, a completely messed up lua interpreter). I never investigated much further than that, so it may be a stupid mistake on my part ![]() EDIT: On the other hand, it works flawlessly with my latest softfp TC, so, there's that ![]() (Check the kindle-x-compile-tc.tar.gz tarball for more details on my K2/K3 TC). Last edited by NiLuJe; 06-14-2012 at 10:28 PM. |
![]() |
![]() |
![]() |
#59 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
|
Quote:
Cross-compiled binaries have VFPv3+Neon support. Code:
[kindle]# readelf -A hello Attribute Section: aeabi File Attributes Tag_CPU_name: "7-A" Tag_CPU_arch: v7 Tag_CPU_arch_profile: Application Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-2 Tag_VFP_arch: VFPv3 Tag_NEON_arch: NEONv1 Tag_ABI_PCS_wchar_t: 4 Tag_ABI_FP_denormal: Needed Tag_ABI_FP_exceptions: Needed Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align8_needed: Yes Tag_ABI_align8_preserved: Yes, except leaf SP Tag_ABI_enum_size: int Tag_ABI_HardFP_use: SP and DP Tag_unknown_34: 1 (0x1) This is for K5. I don't know about the others. I use crosstool-ng/scratchbox chain. Last edited by baf; 06-12-2012 at 04:41 AM. |
|
![]() |
![]() |
![]() |
#60 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
If it doesn't fault on 'illegal instruction' (or some such obvious thing) - call it done. If those options test out, I will make them the defaults for K4&K5 in DIY-KeK That should do it for the K4 & K5 at least. Just don't forget to over-ride those defaults built into the compiler when building for the K1, K2, K3 and DX Last edited by knc1; 06-11-2012 at 06:39 PM. |
|
![]() |
![]() |
![]() |
Tags |
launcher add-ons |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
MPlayer for Kindle: AAC/FLAC/MP3/OGG/WAV/... support, local and streaming ! | Smarter | Kindle Developer's Corner | 143 | 08-25-2017 08:31 AM |
Problem with MPlayer volume on Kindle Touch | thuongquoc | Amazon Kindle | 0 | 03-26-2012 08:43 PM |
Troubleshooting Setting Radio Address in Mplayer for kindle3 | yueyingqishi | Amazon Kindle | 1 | 02-06-2012 11:09 AM |
Kindle MPlayer Control over SSH (WiFi) | antario | Amazon Kindle | 5 | 09-22-2011 02:23 PM |
Kindle 3, Nook Simple Touch, Kobo Touch and Libra Pro Touch | jbcohen | Which one should I buy? | 4 | 06-18-2011 07:58 PM |