![]() |
#811 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
By copying parts of both includes and including neither of them, my code was able to support for 5.0.x and 5.1.x ioctl calls (and also K3, and K4 main and diags). More details can be seen at the "discovering" link provided by eureka above. I also made my code fall back to an eips call if the ioctl() calls fail, just in case the eink ioctl structures change again in some future firmware version. It adds a little robustness to the program, to postpone bit-rot awhile longer... Last edited by geekmaster; 12-09-2012 at 06:50 PM. |
|
![]() |
![]() |
![]() |
#812 | |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
I suggest to update include/mxcfb.h with the following addition (belonged to public domain): Code:
// Starting from firmware version 5.1.0, framebuffer update structure // (actual for Kindle Touch and then Kindle Paperwhite) was changed // and so appropriate update ioctl value. #define MXCFB_SEND_UPDATE51 _IOW('F', 0x2E, struct mxcfb_update_data51) (Related macros -- _IOW etc. -- could be found in include/asm-generic/ioctl.h from Kindle kernel source, or online. Two new __u32 members of update structure, i.e. 8 bytes, lead to change of 40 to 48). UPD: OK, now I understand why you are using raw value -- to avoid dependency on that ioctl.h from kernel source. Still, it would be useful at least add comment about how this raw value was calculated. Last edited by eureka; 12-09-2012 at 10:11 PM. Reason: add online view of include/asm-generic/ioctl.h |
|
![]() |
![]() |
![]() |
#813 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
I don't think it makes sense to support pre-5.1.0 KTs. To my knowledge there is no reason not to upgrade to 5.1.0+ and from a coding perspective all 5.1.x firmwares should be practically the same.
|
![]() |
![]() |
![]() |
#814 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
Quote:
![]() Quote:
But the real problem is the actual size of mxcfb_update_data51 is 0x4c here, not 0x48 (mxcfb_update_data is also 4 bytes larger). I double checked the definition of the structure, it is the same as the one in geekmaster's video player. Any thought? thanks, so HUR also only supports 5.1 firmware? Last edited by dave2008; 12-10-2012 at 06:50 PM. |
||
![]() |
![]() |
![]() |
#815 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Compiler version and/or flags affecting structure member alignment.
|
![]() |
![]() |
![]() |
#816 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
|
![]() |
![]() |
![]() |
#817 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Read the release notes and bug reports for arm on that compiler version. (If you built it yourself, you may have to write those notes. ![]() |
|
![]() |
![]() |
![]() |
#818 | ||
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
Quote:
It means, one 4-byte field is superfluous. Here is definition of mxcfb_alt_buffer_data from include/linux/mxcfb.h from 5.3.0 kernel source: Code:
struct mxcfb_alt_buffer_data { __u32 phys_addr; __u32 width; /* width of entire buffer */ __u32 height; /* height of entire buffer */ struct mxcfb_rect alt_update_region; /* region within buffer to update */ }; Last edited by eureka; 12-10-2012 at 08:05 PM. Reason: cosmetic fixes |
||
![]() |
![]() |
![]() |
#819 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
Thanks @eureka and @knc1, the eink module is done
![]() I will handle the touch coordinates now. It's wierd that it generates ranges from 0 to 4095 ![]() |
![]() |
![]() |
![]() |
#820 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
Ok, touch coordinates are handled now. Let me know if it works or not
![]() |
![]() |
![]() |
![]() |
#821 | |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
Code:
diff --git a/frontend/ui/inputevent.lua b/frontend/ui/inputevent.lua index daa21ec..4c5712d 100644 --- a/frontend/ui/inputevent.lua +++ b/frontend/ui/inputevent.lua @@ -272,11 +272,12 @@ function Input:init() --@TODO handle coordinates properly after --screen rotate. (houqp) if ev.code == ABS_MT_POSITION_X then - ev.code = math.round(ev.code * (600/4095)) + ev.value = math.round(ev.value * (600/4095)) elseif ev.code == ABS_MT_POSITION_Y then - ev.code = math.round(ev.code * (800/4095)) + ev.value = math.round(ev.value * (800/4095)) end end + return ev end print("Auto-detected Kindle Touch") elseif dev_mod == "Kindle4" then |
|
![]() |
![]() |
![]() |
#822 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
![]() Anyway, thanks a lot! Finally full kindle devices support ![]() |
![]() |
![]() |
![]() |
#823 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
HUR should also support 5.0.x but just because there were no high level changes in the firmware that would have made it incompatible with the older firmwares.
IIRC not even the GUI launcher extension in Java needed an update. But the GUI launcher itself did as with 5.1.0 the Java obfuscator was used more aggressively again. If there were issues I would have supported 2 different version only if it were feasible. Sometimes it's just not possible without much work to support different versions and Amazon doesn't make it easier with all the hurdles they've built. Also, let's face it, the KT was on the market for such a short time that the number of people with 5.0.x firmware is already negligible compared to the KPW numbers and maybe even the KT itself will be too if Amazon doesn't give out a 5.3.x firmware for it (what they easily could do as the hardware is almost identical besides the larger screen and the missing home button). |
![]() |
![]() |
![]() |
#825 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
lua config error: ./rendertext.lua:30: attempt to index local 'face' (a nil value)
think somehow my fonts it dont like? err or something? - nightly build, but the previous one had same error. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) | hawhill | Kindle Developer's Corner | 1289 | 04-07-2025 10:18 AM |
Librerator - multi-format e-reader, fork of KPV | Kai771 | Kindle Developer's Corner | 433 | 05-25-2024 03:34 AM |
Yet another PDF viewer (muPDF based) | melihron | PocketBook | 66 | 09-02-2014 03:03 AM |
Text-based PDF to Mobi, etc./Kindle 3 | kidblue | Calibre | 41 | 07-20-2012 03:19 PM |
muPDF on Kindle DX!! | DairyKnight | Kindle Developer's Corner | 8 | 03-21-2010 03:39 AM |