05-03-2011, 02:00 PM | #121 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@kindle-hopes: Sigh. >_<". Fixed the whitelist in the JB, thanks for pointing that out .
|
05-03-2011, 03:02 PM | #122 |
Member
Posts: 12
Karma: 10
Join Date: Apr 2011
Device: Kindle DXG
|
After another couple of hours of testing and trying, the process still fails for me during the last stage. I tried all kinds of combinations of the two jailbreaks, with and without NO_TTS option, with and without enlarged rootfs.img etc. Some observations:
- my final update bin seems to be quite small (320M). Is that normal? Or might the process of creating it be flawed invisibly (the log seems fine)? - the tts-files.tar is always empty. any clues? (should, as far as I understood the process, not be a problem however) - when I try to manually compile the create_updater bin (to include the trick used by qinbill), the create_packages.sh fails with "[: 80: txt: unexpected operator" and "./create_packages.sh: 80: Bad substitution" - any clues? - I wonder if the whole problem might be that the root fs of the DXG is too small for the whole of K3, is that possible? Since the update seems to fail at about 60% (after two or three restarts of the progress bar, did not count precisely), I wonder if it might be some version of "disk full"... - finally, I found out that sbin/setup.sh in extra.tar.gz in the create_updater calls "mntroot_rw" instead of "mntroot rw" towards the end. Might that cause the error? I very much hope these reports are of any use to Yifan Lu, who did such a brilliant job so far - and I would love to see proper PDF on my DXG... |
05-03-2011, 03:53 PM | #123 |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Sorry about all the problems. I'm really busy this few weeks, so I cannot do much.
|
05-04-2011, 01:09 AM | #124 |
Member
Posts: 12
Karma: 10
Join Date: Apr 2011
Device: Kindle DXG
|
Thats perfectly understandable - you did a lot already. I would love to hear from the other testers, though (here or in PM) - in particular how large the files in each step grew (to track down disk full / files omitted)...
|
05-04-2011, 08:33 AM | #125 |
Enthusiast
Posts: 43
Karma: 4733
Join Date: Apr 2011
Device: Kindle 3Wifi+3G and DX
|
Kindle-hopes, thanks for keeping the thread alive until Yifanlu gets time to concentrate on this again.
My file sizes were: rootfs.img: 400MB (409 624 kB, 419 454 976 bytes) update_restore-os.bin: 280MB (287 134 kB, 294 024 336 bytes) update_dxg-update-os.bin: 252MB (258 430 kB, 264 632 122 bytes) Last edited by DickeFix; 05-04-2011 at 08:41 AM. |
05-05-2011, 04:07 AM | #126 | |
Member
Posts: 12
Karma: 10
Join Date: Apr 2011
Device: Kindle DXG
|
Another update: it partly works now! Silly mistake on my side: to recompile the updater-bin (including qinbill's changes to make-package.ffs), I have to use bash and not any other shell, of course...
Anyway, using qinbills method (move the tts-data on /mnt/us and comment the tts stuff out in make-mackage.ffs) it works now. Or should I say: the generate updater-bin installs flawlessly on the DXG, and the DXG has decent PDF!! What does annoyingly NOT work, however (as reported by qinbill, too) is access to the USB drive from my computer. If I plug the kindle in, Linux detects an external storage, but no partitions on it. I can - as a workaround - access the userstore from recovery mode (hold down Enter during reboot and then press E), so I can put files on the kindle etc. What I can't do that way is put update pacakges, however, since the kindle would then try to install them during boot, which fails. I had a look at the dumped messages (`dumpMessages), which show no obvious error - the partitions are clearly intact (otherwise I could not read my files), but they are for whatever reason not exported. lipc-props says: Quote:
Anyway, my next step is to compile another update package, this time with usbnetwork installed on the K3W (and usbnet folder transferred to the dxg) to check if I could then get root access on the updated DXG to further explore what happened to the USB partition... In the meantime, any thoughts about the problem are appreciated... |
|
05-05-2011, 04:09 AM | #127 |
Member
Posts: 12
Karma: 10
Join Date: Apr 2011
Device: Kindle DXG
|
Also: does anybody with more experience of the recovery menu know what "initialize partitions" does? I would not want to give it a try without a clear idea of how it works - not that I totally brick the thing...
|
05-05-2011, 06:03 AM | #128 |
Member
Posts: 12
Karma: 10
Join Date: Apr 2011
Device: Kindle DXG
|
Update: when usbnet hack was installed on K3W when creating the update bin for the DXG, and when one manually transfers the usbnet directory in userstore to DXG, usbnet on DXG works. That way I was able to install hacks (putting them somewhere else in userstore during recovery menu, then rebooting, then telnetting in and moving the update file, then updating). I was unsuccessful, however, to figure out why the userstore is not being exported in the first place - any input very welcome. I will continue to explore what happens...
|
05-05-2011, 07:20 AM | #129 |
Member
Posts: 12
Karma: 10
Join Date: Apr 2011
Device: Kindle DXG
|
Update: the problem seems to be that the g_file_storage module gets loaded, but somehow does not get the info which directory to export to the USB gadget. Thus the computer sees a storage device, but no actual partition.
Apparently, the parameter is not added on module load, but sometime later by the framework via sysfs, and defining it manually in /etc/modules does not work. I assume that DXG and K3W handle this process (of exporting userstore to USB) differently, and that it got screwed somewhere on the way. Maybe Yifan Lu can sort it out once he finds more time for it - for the time being, I at least will have to go through the recovery mode each time I want to upload or download files to my Kindle... This nuisance apart: it is GREAT GREAT GREAT work you have don, Yifan Lu - now I can actually annotate and highlight PDFs on my Kindle DX, i.e. make proper use of it as an academic. Many many thanks! |
05-05-2011, 10:58 PM | #130 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@kindle-hopes: Yeah, there's a weird interaction with the volumd daemon on FW 3.x that makes userstore exports wonky when we're touching the USB gadgets modules.... I'm not sure anymore how I worked around that in the usbnet hack (mostly by starting *after* volumd, I think). Can't remember if always passing the extra args needed to specify which part to export when loading g_file_storage was enough.
|
05-06-2011, 03:35 AM | #131 |
Member
Posts: 12
Karma: 10
Join Date: Apr 2011
Device: Kindle DXG
|
@NiLuJe, thanks for pointing that out - it does not work with usbnet installed either, however (and currently the k3w-usbnet is still installed)
|
05-08-2011, 10:40 AM | #132 | |
Zealot
Posts: 121
Karma: 82565
Join Date: Aug 2010
Location: Maryland, USA
Device: dxg, k3w,k4nt,kpw
|
Quote:
Code:
echo /dev/mmcblk0p4 > /sys/devices/platform/arc_udc/gadget/gadget-lun0/file |
|
05-08-2011, 12:07 PM | #133 | |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Quote:
EDIT: A temporary fix I think would be placing "/sys/devices/platform/arc_udc/gadget/gadget-lun0/file" into /var/local/system/drivemode_online. A more permanent fix would be placing it into /etc/kdb.src/mario/system/driver/usb/gadget/SYS_GADGET_ONLINE before installing. If someone can find the values for ALL the paramaters listed in the gadget folder, that would be awesome, though. EDIT: Nvm, found them. The problem was I was searching with usbnetwork ssh. That disabled the filesystem gadget, so I didn't see anything. EDIT 2: If you have USB problems, these are the values (in /etc/kdb.src/mario/system/driver/usb/gadget/ open the file and paste it after "<DATA>" make sure you do not have ANYTHING else after, including whitespace or invisible characters inserted by*most text editors. Use a hex editor): SYS_GADGET_CONNECTED: /sys/bus/platform/devices/arc_udc/connected SYS_GADGET_FILE: /sys/devices/platform/arc_udc/gadget/gadget-lun0/file SYS_GADGET_ONLINE: /sys/devices/platform/arc_udc/gadget/gadget-lun0/online SYS_GADGET_ONLINE_BUS: /sys/bus/platform/devices/arc_udc/gadget/gadget-lun0/online SYS_GADGET_RO: /sys/devices/platform/arc_udc/gadget/gadget-lun0/ro Also see if this fixes any sound problems. EDIT 3: While I'm here, I might as well try to fix 3G. Here's a possible fix, I can't try because my Kindle's 3G modem is broken. 1) Delete the folder /etc/kdb/system/daemon/pmond/wifid (this stops wifid from try to init every 20 seconds eating up battery & also removes wifi settings from the settings page) 2) Edit /etc/kdb/system/daemon/cmd/interfaces/interface1/priority and under <DATA> change the "2" to "1". (I think the problem was that wifi was first priority, so you can see the 3G icon, but the framework tried to use Wifi) Last edited by yifanlu; 05-10-2011 at 07:39 PM. |
|
05-08-2011, 07:34 PM | #134 |
Zealot
Posts: 121
Karma: 82565
Join Date: Aug 2010
Location: Maryland, USA
Device: dxg, k3w,k4nt,kpw
|
unfortunately, the EDIT 2: didn't work for me (DXG).
Now when the USB is connected it just hides the list of user documents, but doesn't show the "USB connected" screen. Drive letter gets created on the host, but the drive is not accessible. Writing to /sys/devices/platform/arc_udc/gadget/gadget-lun0/file still helps... |
05-08-2011, 08:05 PM | #135 | |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Quote:
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
images for Kindle & ipad Kindle (or tablets) | hapax legomenon | Kindle Formats | 0 | 03-10-2011 10:54 PM |
Kindle & Tech formatted kindle books? | Ncage1974 | Amazon Kindle | 7 | 02-09-2011 10:03 AM |
Possible Kindle for PC & Kindle for iPhone Issue(s) | Nyssa | Amazon Kindle | 6 | 12-31-2010 03:58 PM |
Kindle vs Kindle for PC vs print books & old lady eyes | bert501 | Amazon Kindle | 30 | 11-19-2010 08:59 PM |
did kindle 2 get updated with kindle 3 zoom and contrast adjustment software? | med007 | Amazon Kindle | 1 | 10-15-2010 10:08 AM |