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 10-05-2012, 07:03 AM   #211
bhaak
Groupie
bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.
 
bhaak's Avatar
 
Posts: 161
Karma: 164959
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
Lightbulb New release 0.3.0!

New release 0.3.0!

https://github.com/bhaak/HackedUpReader/downloads

Changes:
  • Fix: re-enabled translation
  • partial German translation
  • Kindle Paperweight support (well, maybe)
  • Varnie's change: preliminary experimental dictionary support

As I don't have a Kindle PW, I couldn't really test if it works but I made HUR automatically adapt to the available screen size and I checked with ldd and the 5.2.0 firmware if all needed dynamic libraries can be found.

The partial German translation covers the top menu entries.

I'll write up later what you have to do to get a dictionary working in HUR (only dictd dictionaries are supported).
bhaak is offline   Reply With Quote
Old 10-06-2012, 02:26 PM   #212
ecksor
Enthusiast
ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'
 
Posts: 35
Karma: 10000
Join Date: Oct 2012
Location: NYC
Device: Kindle PW
Sorry, doesn't work for PW, the update option is not available. So far I've tried only the usbnetwork hack updated by NiLuJe, worked flawlessly.
ecksor is offline   Reply With Quote
Old 10-06-2012, 02:54 PM   #213
bhaak
Groupie
bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.
 
bhaak's Avatar
 
Posts: 161
Karma: 164959
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
Quote:
Originally Posted by ecksor View Post
Sorry, doesn't work for PW, the update option is not available. So far I've tried only the usbnetwork hack updated by NiLuJe, worked flawlessly.
Oh, I just read that the update bin files need to be told that they are also for the PW. So the PW doesn't recognize the bin as an update package that works on it.

You would have to extract the tar.gz file by hand (cd /mnt/us/ ; tar xzf hackedupreader-0.3.0.tar.gz) and also start it by hand (/mnt/us/hackedupreader/bin/cr3) as the GUI launcher isn't yet available for the PW (I think?).
bhaak is offline   Reply With Quote
Old 10-06-2012, 03:06 PM   #214
ecksor
Enthusiast
ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'
 
Posts: 35
Karma: 10000
Join Date: Oct 2012
Location: NYC
Device: Kindle PW
bhaak
OK, will try and report the outcome. Thanks!
ecksor is offline   Reply With Quote
Old 10-06-2012, 03:38 PM   #215
ecksor
Enthusiast
ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'
 
Posts: 35
Karma: 10000
Join Date: Oct 2012
Location: NYC
Device: Kindle PW
Nope.

Code:
[root@kindle us]# /mnt/us/hackedupreader/bin/cr3
2012/10/06 19:33:40.2092 ERROR Error opening file /mnt/us/hackedupreader/crlog.ini for reading
2012/10/06 19:33:40.2105 WARN Started logging. Level=INFO
49 fonts loaded.
Created image depth=8 bpp=8 stride=760
Created screen 758 x 1024, depth = 8
Segmentation fault
[root@kindle us]#
ecksor is offline   Reply With Quote
Old 10-06-2012, 04:49 PM   #216
knc1
Embedded Cheerleader
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: 6,198
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by ecksor View Post
Nope.

Code:
[root@kindle us]# /mnt/us/hackedupreader/bin/cr3
2012/10/06 19:33:40.2092 ERROR Error opening file /mnt/us/hackedupreader/crlog.ini for reading
2012/10/06 19:33:40.2105 WARN Started logging. Level=INFO
49 fonts loaded.
Created image depth=8 bpp=8 stride=760
Created screen 758 x 1024, depth = 8
Segmentation fault
[root@kindle us]#
Use strace on that and show us what is seg-faulting.
strace -fF /mnt/us/hackedupreader/bin/cr3
With a setup that will capture the text output for posting.
knc1 is offline   Reply With Quote
Old 10-06-2012, 05:23 PM   #217
ecksor
Enthusiast
ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'
 
Posts: 35
Karma: 10000
Join Date: Oct 2012
Location: NYC
Device: Kindle PW
Here you go.

Code:
......
munmap(0x4002d000, 4096)                = 0
munmap(0x414c0000, 221032)              = 0
munmap(0x410e0000, 2029628)             = 0
gettimeofday({1349558468, 936414}, NULL) = 0
open("/etc/localtime", O_RDONLY)        = -1 ENOENT (No such file or directory)
gettimeofday({1349558468, 936989}, NULL) = 0
open("/etc/localtime", O_RDONLY)        = -1 ENOENT (No such file or directory)
gettimeofday({1349558468, 938352}, NULL) = 0
open("/etc/localtime", O_RDONLY)        = -1 ENOENT (No such file or directory)
gettimeofday({1349558468, 938792}, NULL) = 0
open("/etc/localtime", O_RDONLY)        = -1 ENOENT (No such file or directory)
read(4, 0x2803bc, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
read(4, 0x2803bc, 4096)                 = -1 EAGAIN (Resource temporarily unavailable)
open("/sys/devices/platform/fsl-usb2-udc/charging", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 2618 detached
[root@kindle us]#
ecksor is offline   Reply With Quote
Old 10-06-2012, 05:27 PM   #218
knc1
Embedded Cheerleader
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: 6,198
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
A bit over snipped.
Could you post a bit more of that - enough so we can see what is open on fd=4?

And while your diddling with it, do a ls -l on those path/filenames to see if they are really missing or if this is a system library problem.
knc1 is offline   Reply With Quote
Old 10-06-2012, 05:41 PM   #219
ecksor
Enthusiast
ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'
 
Posts: 35
Karma: 10000
Join Date: Oct 2012
Location: NYC
Device: Kindle PW
Sorry, I had to figure out how to use strace.
Attached Files
File Type: txt hur_strace.txt (738.2 KB, 49 views)
ecksor is offline   Reply With Quote
Old 10-06-2012, 06:00 PM   #220
knc1
Embedded Cheerleader
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: 6,198
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
hmm...
Looks to be working earlier (it is the socket connection to X11):
Code:
socket(PF_FILE, SOCK_STREAM, 0)         = 4
connect(4, {sa_family=AF_FILE, path=@/tmp/.X11-unix/X0}, 20) = 0
getpeername(4, {sa_family=AF_FILE, path=@/tmp/.X11-unix/X0}, [20]) = 0
uname({sys="Linux", node="kindle", ...}) = 0
access("/tmp/root/.Xauthority", R_OK)   = -1 ENOENT (No such file or directory)
fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
poll([{fd=4, events=POLLIN|POLLOUT, revents=POLLOUT}], 1, -1) = 1
writev(4, [{"l\0\v\0\0\0\0\0\0\0\0\0", 12}, {"", 0}], 2) = 12
read(4, "\1\0\v\0\0\0]\0", 8)           = 8
So it is most likely that last call about: "/sys/devices/platform/fsl-usb2-udc/charging"

Try to list (ls -l) information about that system tree entry.
Backing up the tree until you find something that might be useful.
At least as far up the tree as: /sys/devices/platform

Then do the same (or ask someone with this working on a Kindle) to do the same.

- - - - -

You did not waste any time while learning to use strace -
It is a very useful bit of skill to have in mind.
knc1 is offline   Reply With Quote
Old 10-06-2012, 07:26 PM   #221
ecksor
Enthusiast
ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'ecksor knows the difference between 'who' and 'whom'
 
Posts: 35
Karma: 10000
Join Date: Oct 2012
Location: NYC
Device: Kindle PW
Looks like there is no 'charging' under /sys/devices/platform/fsl-usb2-usd/, instead it appears under '/sys/devices/platform/aplite_charger.0/'. Does it make any sense?

Code:
[root@kindle root]# cd /sys/devices/platform
[root@kindle platform]# ls -l
drwxr-xr-x    3 root     root             0 Oct  6 22:09 aplite_charger.0
drwxr-xr-x    3 root     root             0 Oct  6 22:05 busfreq.0
drwxr-xr-x    4 root     root             0 Oct  6 22:05 cyttsp.0
drwxr-xr-x    4 root     root             0 Oct  6 22:09 fsl-usb2-udc
drwxr-xr-x    4 root     root             0 Oct  6 22:05 mxc-pxp
drwxr-xr-x    3 root     root             0 Oct  6 22:05 mxc_dvfs_core.0
drwxr-xr-x    4 root     root             0 Oct  6 22:05 mxc_epdc_fb
drwxr-xr-x    3 root     root             0 Oct  6 22:05 mxc_i2c.0
drwxr-xr-x    3 root     root             0 Oct  6 22:05 mxc_i2c.1
drwxr-xr-x    3 root     root             0 Oct  6 22:05 mxc_i2c.2
drwxr-xr-x    3 root     root             0 Oct  6 22:05 mxc_pwm.0
drwxr-xr-x    4 root     root             0 Oct  6 22:05 mxc_rtc.0
drwxr-xr-x    3 root     root             0 Oct  6 22:05 mxc_sdma
drwxr-xr-x    4 root     root             0 Oct  6 22:05 mxc_spi.0
drwxr-xr-x    5 root     root             0 Oct  6 22:05 mxc_spi.1
drwxr-xr-x    5 root     root             0 Oct  6 22:05 mxc_spi.2
drwxr-xr-x    3 root     root             0 Oct  6 22:05 mxc_w1.0
drwxr-xr-x    3 root     root             0 Oct  6 22:05 mxc_wdt.0
drwxr-xr-x    3 root     root             0 Oct  6 22:05 mxc_zq_calib
drwxr-xr-x    4 root     root             0 Oct  6 22:05 mxcintuart.0
drwxr-xr-x    4 root     root             0 Oct  6 22:05 mxcintuart.1
drwxr-xr-x    4 root     root             0 Oct  6 22:05 mxcintuart.2
drwxr-xr-x    4 root     root             0 Oct  6 22:05 mxcintuart.3
drwxr-xr-x    4 root     root             0 Oct  6 22:05 mxsdhci.1
drwxr-xr-x    4 root     root             0 Oct  6 22:05 mxsdhci.2
drwxr-xr-x    3 root     root             0 Oct  6 22:05 pmic_adc.1
drwxr-xr-x    3 root     root             0 Oct  6 22:05 pmic_battery.1
drwxr-xr-x    4 root     root             0 Oct  6 22:05 pmic_leds.103
drwxr-xr-x    4 root     root             0 Oct  6 22:05 pmic_leds.114
drwxr-xr-x    4 root     root             0 Oct  6 22:05 pmic_leds.98
drwxr-xr-x    3 root     root             0 Oct  6 22:05 pmic_light.1
drwxr-xr-x    3 root     root             0 Oct  6 22:05 pmic_power.1
drwxr-xr-x    4 root     root             0 Oct  6 22:05 pmic_rtc.1
drwxr-xr-x    2 root     root             0 Oct  6 22:17 power
drwxr-xr-x    3 root     root             0 Oct  6 22:05 pxp-device
-rw-r--r--    1 root     root          4096 Oct  6 22:05 uevent
drwxr-xr-x    3 root     root             0 Oct  6 22:05 usb_wakeup.0
drwxr-xr-x    3 root     root             0 Oct  6 22:05 yoshime_fl
drwxr-xr-x    3 root     root             0 Oct  6 22:05 yoshime_hall
[root@kindle platform]# cd fsl-usb2-udc
[root@kindle fsl-usb2-udc]# ls -l
lrwxrwxrwx    1 root     root             0 Oct  6 22:11 driver -> ../../../bus/                                             platform/drivers/fsl-usb2-udc
drwxr-xr-x    4 root     root             0 Oct  6 22:09 gadget
-r--r--r--    1 root     root          4096 Oct  6 22:11 modalias
-r--r--r--    1 root     root          4096 Oct  6 22:11 pools
drwxr-xr-x    2 root     root             0 Oct  6 22:11 power
lrwxrwxrwx    1 root     root             0 Oct  6 22:09 subsystem -> ../../../b                                             us/platform
-rw-r--r--    1 root     root          4096 Oct  6 23:14 uevent
[root@kindle fsl-usb2-udc]# find / -name charging
/sys/devices/platform/aplite_charger.0/charging
[root@kindle fsl-usb2-udc]#
ecksor is offline   Reply With Quote
Old 10-06-2012, 07:44 PM   #222
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,048
Karma: 7096675
Join Date: Apr 2012
Device: Kindle 3.4
you wuld probably have to modify the code in some way to get it to look there instead of the K5 location
qlob is offline   Reply With Quote
Old 10-06-2012, 07:52 PM   #223
bhaak
Groupie
bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.
 
bhaak's Avatar
 
Posts: 161
Karma: 164959
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
Quote:
Originally Posted by ecksor View Post
Sorry, I had to figure out how to use strace.
Ah, that was helpful. The code tried to open the system files for battery state and current voltage, didn't find them but tried to use the NULL pointer anyway. There was some failsafe checking missing.

Download the cr3 binary from here:
http://bhaak.dyndns.org/kindle/cr3

Copy it to /mnt/us/hackedupreader/bin/cr3 and try again. This time it shouldn't crash anymore and print what files it didn't find. Hopefully there are no other surprises lurking.

If you do a
find /sys >/mnt/us/pw_sys.txt
and attach that file, we can probably find out quickly what the right file is called on the PW.
Oops, just saw that you already did this.

Last edited by bhaak; 10-06-2012 at 07:55 PM.
bhaak is offline   Reply With Quote
Old 10-06-2012, 08:04 PM   #224
knc1
Embedded Cheerleader
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: 6,198
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
That was pretty quick service, less that 1/2 day and on a weekend (time and a half rates).
knc1 is offline   Reply With Quote
Old 10-06-2012, 08:05 PM   #225
bhaak
Groupie
bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.bhaak can program the VCR without an owner's manual.
 
bhaak's Avatar
 
Posts: 161
Karma: 164959
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
Quote:
Originally Posted by knc1 View Post
That was pretty quick service, less that 1/2 day and on a weekend (time and a half rates).
It would have been quicker if I weren't been going to the movies in between posts.
bhaak is offline   Reply With Quote
Reply

Tags
epub, launcher add-ons

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Raccoon Reader - reads ePub, fb2, fb2.zip, txt on WP7 for free Andrei_Shvydryk Reading and Management 0 10-31-2011 03:17 PM
inserting blank lines into rtf/txt/html errata Ectaco jetBook 7 07-10-2010 09:16 PM
rtf -- > epub / fb2 conversion Brandobras Calibre 2 04-14-2010 01:24 AM
TXT, RTF, and HTML conversion issues daesdaemar Calibre 15 12-10-2008 09:05 PM
ereader pdb to rtf, txt, anything? Dave Berk Reading and Management 11 03-24-2007 07:45 PM


All times are GMT -4. The time now is 12:20 PM.


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