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 05-05-2012, 02:32 PM   #16
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 Conner View Post
So thers isn't a gui?. I could image you open this like a kindlet. Then browse for a file..
The usual procedure of Linux development forums is:
The first person who asks for a new feature gets to code it.

So glad to read that you just volunteered.
knc1 is offline   Reply With Quote
Old 05-05-2012, 02:54 PM   #17
Conner
Enthusiast
Conner began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2012
Device: Kindle 3 Wifi
I wouldnt know where to begin ¬_¬
Conner is offline   Reply With Quote
Old 05-05-2012, 03:28 PM   #18
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
I will try this through myts in my k3's diags.
qlob is offline   Reply With Quote
Old 05-05-2012, 04:44 PM   #19
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 qlob View Post
I will try this through myts in my k3's diags.
K3 diags? How do you launch myts from the diags menu on a K3?

By the way, for anybody interested, it takes about 5 minutes to raytrace a 600x800 image with a bunch of chrome spheres directly into /dev/fb0 on my K3, and compiling with tcc instead of "arm-linux-gcc -O3" does not slow it down.



Last edited by geekmaster; 05-05-2012 at 04:48 PM.
geekmaster is offline   Reply With Quote
Old 05-05-2012, 04:52 PM   #20
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
Quote:
Originally Posted by geekmaster View Post
K3 diags? How do you launch myts from the diags menu on a K3?
You don't. Launchpad starts up (at least for me) when i boot into diags. so theoretically (i hope i spelled that right) i could use cool reader and what not as well until i get the whole thing fixed... Did you know that placing ENABLE_DIAGS in / instead or /mnt/us works just as well to launch diags?

BTW: I don't see any options for ssh

Last edited by qlob; 05-05-2012 at 04:57 PM.
qlob is offline   Reply With Quote
Old 05-05-2012, 05:01 PM   #21
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 qlob View Post
You don't. Launchpad starts up (at least for me) when i boot into diags. so theoretically (i hope i spelled that right) i could use cool reader and what not as well until i get the whole thing fixed... Did you know that placing ENABLE_DIAGS in / instead or /mnt/us works just as well to launch diags?

BTW: I don't see any options for ssh
Cool... I am in K3 diags now, and yes, I now have a myts shell running. I rarely mess with K3 diags. Is that a potential debricking option for a K3 (you can boot diags even with main not booting)?
geekmaster is offline   Reply With Quote
Old 05-05-2012, 09:41 PM   #22
qlob
Official Lurker
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,050
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
Quote:
Originally Posted by geekmaster View Post
Cool... I am in K3 diags now, and yes, I now have a myts shell running. I rarely mess with K3 diags. Is that a potential debricking option for a K3 (you can boot diags even with main not booting)?
It does look like a potential debricking tool (but only if you have myts installed...). I can't boot main, but when it was cycling through, i just did
Code:
touch /mnt/us/ENABLE_DIAGS
or something to that effect. so now i just leave it in diags for now until i get everything back to original...
qlob is offline   Reply With Quote
Old 05-05-2012, 10:31 PM   #23
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 qlob View Post
It does look like a potential debricking tool (but only if you have myts installed...). I can't boot main, but when it was cycling through, i just did
Code:
touch /mnt/us/ENABLE_DIAGS
or something to that effect. so now i just leave it in diags for now until i get everything back to original...
Keep it plugged in though. Some kindle models COMPLETELY DRAIN the battery so it needs to charge quite awhile in fastboot mode before it will even boot back into diags again. I thought I had bricked both of my K4s when I left them "powered down" in diags...
geekmaster is offline   Reply With Quote
Old 05-05-2012, 10:39 PM   #24
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
Kindle firmware update 5.1.0 inserts two new (rarely used) fields into the eink update structure in front of critical fields that MUST be there. This completely breaks all existing programs that do eink updates using ioctl() calls, which is more important now that they removed the /proc for eink updates commonly used by programs and scripts in the past.

They created a major problem by relocating critical fields in this structure, because the 5.1.0 mxcfb.h uses the same filename and the same structure names as the 5.0.x header file, so you cannot include both of them.

Not only did lab126 break compatibility with other kindle models (i.e. K4diags), but they broke compatibility with the previous SUBVERSION of the K5 firmware, and "screwed the pooch" while they were getting busy in this new code...

It looks like I will have to keep using the old header file, and include renamed copies of the new severely flawed structure layout directly into my code. WTF were those guys smoking that day at lab126?
geekmaster is offline   Reply With Quote
Old 05-05-2012, 11:14 PM   #25
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
I have ioctl() eink udpates working in my gmplay program, but this broke compatibility with kindles running OTHER 5.x firmware versions.

It is interesting that stucture naming conflicts between different 5.x firmware versions makes kindle touch eink software incompatible with other 5.x firmware versions, but it is still compatible with K4main, K3, DX and DXG (due to different header filename and different structure names for the older kindles).

Although it is easy to support eink for all kindles except 5.1 firmware, adding that in while keeping compatibility with 5.0.x firmware and 4.x(diags) is going to get messy.

Those lab126 guys are going to get my negative attention when I have time...

Oh... and they even broke eink update compatibilty between 5.1.0 main and 5.1.0 diags. I decided to try a hack here, where I use the new header file with the extra fields, and mirror the old values into their new locations AND into the new fields. That might actually work. NO! putting a non-zero value into the new fields to be compatible with OLD fields that were in those locations makes the eink updates NOT WORK! They screwed up so that even a simple hack like I wanted to do cannot work.

All I am trying to do is eink updates WITHOUT calling eips, that work on 5.1.0 main AND on 5.1.0 diags. Is that too much to ask? I need ioctl calls to work so I can to fast text with small area updates (which are much faster than full screen updates).


Last edited by geekmaster; 05-05-2012 at 11:35 PM.
geekmaster is offline   Reply With Quote
Old 05-06-2012, 12:15 AM   #26
jmseight
Zealot
jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'
 
Posts: 130
Karma: 10000
Join Date: Mar 2012
Device: Kindle 3G, Kindle Touch 3G, iRiver Story HD, Sony Reader
Hi geekmaster,

This demo is great! Great work!

I think being able to stream video will be excellent. Especially if you can integrate with the browser...

BTW, I still cannot compile in tcc. Would you please provide the tcc header einkfb.h and other that may be needed.

Thanks,
James
jmseight is offline   Reply With Quote
Old 05-06-2012, 12:26 AM   #27
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 jmseight View Post
Hi geekmaster,

This demo is great! Great work!

I think being able to stream video will be excellent. Especially if you can integrate with the browser...

BTW, I still cannot compile in tcc. Would you please provide the tcc header einkfb.h and other that may be needed.

Thanks,
James
eink_fb.h is for the K3 and earlier, and K4main. mxcfb.h is for k4diags and k5(touch).

But there is a serious problem with firmware version 5.1.0: they changed the mxcfb.h header file for 5.1.0 so that it is NOT compatible with the 5.0.4 mxcfb.h header file. They changed the layout of a structure critical to doing eink display updates, in a way that is totally incompatible between 5.0.x and 5.1.x firmware. This is a huge violation of the ioctl() standards.

And the new fields they put in the old position will not work with the old values, so there is not even a simple hack to make them both work. Not fun.

The headers are in the GPL source, but it looks like we cannot use them if we want code that works on the new kindles with their new broken header file.

I want to fix the compatibility problem before I post header files. In fact, I am considering NOT using the eink header files at all.
geekmaster is offline   Reply With Quote
Old 05-06-2012, 01:06 AM   #28
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
Ok... During the init, I attempt an eink update using one structure layout, then if that fails I use the other structure layout for all future calls. There is no reason to use the eink include files if I need to define renamed structures anyway.

Yes! It now works in both 5.1.0 main and 5.1.0 diags, so it should work anywhere.

The problem is that I already had 7 different eink configurations to test, and now I need to test different eink driver STRUCTURE layout versions too.

The information returned by ioctl calls is identical for both structure layouts, so the only way to tell them apart is to try both and use the one that does not return an error code. Yuck. But at least I got it working now. Goodbye eink header files!

And by the way, besides replacing the structure layout, I have to xor the eink update code with 0x80000, which I found by using strace on both versions of eips. Both update code values have the same #define name though, just like the structure layouts -- one more reason to trash the eink header files...

I suspect my eink 5.x compatibility hack will break again on the next firmware update. What were those guys thinking?



Last edited by geekmaster; 05-06-2012 at 01:09 AM.
geekmaster is offline   Reply With Quote
Old 05-06-2012, 02:44 AM   #29
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 jmseight View Post
Would you please provide the tcc header einkfb.h and other that may be needed.
gmplay version 1.5 does not use eink header files. It also fixes the 5.1.0 firmware dastardly breakage of ioctl() update call compatibility.
geekmaster is offline   Reply With Quote
Old 05-06-2012, 10:32 PM   #30
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
I have a new geekmaster video for gmplay. It is called fpv2.gmv.gz. It is 31MB, which is too large to upload to mobileread, so you can download it from mediafire.com using the link in the first post of this thread.

It was optimized for playing on the K3. For the K4 and K5 we can use a lot more frames per second for even smoother video playback, but I intend to keep my geekmaster productions in a K3-compatible format due to the continuing popularity of that device.

Enjoy!

EDIT: This is playing on my DXG now. Even with all the dropped frames due to the lower refresh rate on the DX and DXG, it is still surprisingly watchable. In fact, the slower framerate on the DXG makes the images much sharper than you see at a higher framerate on the K3 and newer. I could see this as a useful monitor for a security camera. It has much better direct sunlight visibility than any other affordable display device of this size and portability.


Last edited by geekmaster; 06-02-2012 at 06:55 PM.
geekmaster 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
Hacks free kindle video player geekmaster Amazon Kindle 0 05-07-2012 12:17 AM
Video Player wilbrich Kobo Tablets 1 11-24-2011 02:40 PM
Video player, Video streaming,Remote mint121 enTourage eDGe 1 11-18-2011 03:31 PM
Frustrated with the video player TonyToews Kobo Tablets 10 11-01-2011 01:15 PM


All times are GMT -4. The time now is 10:00 AM.


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