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 06-17-2015, 12:33 PM   #16
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I wa looking at post #1.

Last edited by eschwartz; 06-17-2015 at 12:35 PM.
eschwartz is offline   Reply With Quote
Old 06-17-2015, 10:42 PM   #17
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 457
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
Quote:
Originally Posted by knc1 View Post
Which is exactly what you want to do here.

Computer B (has USB device connected to it) - through a bunch of hoops, the kernel on B is faking a USB device with the storage area of /mnt/us (or, rather, its lowest level layer of /mnt/us).

Then, at the other end of the network connection - over any type of networking - is computer A ...

Which has to do the same as with any USB storage device connected to it - mount it into the file system.
So I was thinking about it even being possible to use USBIP over wireless. I don't see how, as I think that is not how this works. I could share a USB device connected to my host with the Kindle (assuming I could compile the needed modules). How could the Kindle get mounted? I'm just trying to wrap my brain around it... Any ideas?
brianinmaine is offline   Reply With Quote
Old 06-18-2015, 12:06 PM   #18
kocoman
Connoisseur
kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.
 
Posts: 97
Karma: 28464
Join Date: Dec 2006
You can try i.e.: OpenWRT TP-MR11U taped to the back of the unit, and run virtualhere (hard name to remember..) server there, then run virtualhere client at OS X, etc.

but virtualhere is not open source(and commericalware), I think it used some usbip...

If kindle and virtualhere was open source then it may be possible.. if not then no one will bother..

I needed it because my motherboard USB is all broken
kocoman is offline   Reply With Quote
Old 06-18-2015, 03:11 PM   #19
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 457
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
usbip works like nfs does for folders - it just shares attached devices to the network. On my kindle I should be able to do anything to a usb drive attached to a host - mount/partition/format, or use perhaps a keyboard or mouse or any usb device (with drivers of course).

wireless is not the issue - doesn't matter. The kindle is not attached to anything so can't be shared on the network.
brianinmaine is offline   Reply With Quote
Old 06-18-2015, 03:49 PM   #20
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
knc1 -- you indicated that /mnt/us/ is actually pretending to be a USB device. How do I see that for myself? Is this only when the device is connected via USB to a computer?

Details!
eschwartz is offline   Reply With Quote
Old 06-18-2015, 04:15 PM   #21
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
There's a huge mess implemented for USBMS handling.

AFAIR (feel free to correct me):

mmc0blk4: userstore partition at the lowest level. Has a DOS partition table, first actual partition is at an offset.
Said first partition is vfat, loop mounted to base-us.
On top of that, there's a fusy proxy FS mounted as us. The framework mostly interacts with this top layer, this allows relatively easily to unmount it without completely breaking the framework, since for something to be exported over USBMS, it needs to be unmounted by the host OS.
That, it turns, means that base-us and/or mmc0blk4 is effectively what's exported over USBMS.
NiLuJe is offline   Reply With Quote
Old 06-18-2015, 04:25 PM   #22
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
knc1 indicated it appears on the Kindle as a USB device? Hence being able to be exported over usbip?
Quote:
Originally Posted by knc1 View Post
Which is exactly what you want to do here.

Computer B (has USB device connected to it) - through a bunch of hoops, the kernel on B is faking a USB device with the storage area of /mnt/us (or, rather, its lowest level layer of /mnt/us).
I am familiar with the fuse-mounting aspect.




It would be useful if there was a way to send the userstore over usbip in order to appear on the other computer as a USB device, Amazon vendor id and all.
If not, might as well not bother and just use sshfs and connect-to-folder.
eschwartz is offline   Reply With Quote
Old 06-18-2015, 05:05 PM   #23
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 eschwartz View Post
knc1 -- you indicated that /mnt/us/ is actually pretending to be a USB device. How do I see that for myself? Is this only when the device is connected via USB to a computer?

Details!
Hmm...

(I'll call the electronics a "chip" even if it is something built into the SoC).

On the external (world accessible) side of the chip is the USB connector on the case.
I don't think there is any software connection to that side of the chip from the Kindle.

On the internal side of the chip is Kernel USB storage module.
That (**should be**) controlling the USB functions of the chip AND providing the storage area (physically using partition 4) so that the combination looks like a USB storage device.

I haven't looked at the code (for ages), but that seems to be a reasonable description.

I __imagine__ that the usbip demon expects a **physical** USB device (not some virtual thingy, the wet dream of the kernel driver ).

I don't know if, on the Kindle side of the kernel driver, the *faked* USB storage device ever gets added to the USB device enumeration.
It would be simpler if it did - but I don't expect our life to be that easy.

So having given the situation the above, additional thought - -
I think we would have to modify the usbipd daemon to connect to the Kernel USB storage driver.

And modify the Kernel USB storage driver to have places for usbipd to hook into.

Not as easy as I thought it would be. Sorry.
knc1 is offline   Reply With Quote
Old 06-18-2015, 09:40 PM   #24
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 457
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
Quote:
Originally Posted by kocoman View Post
You can try i.e.: OpenWRT TP-MR11U taped to the back of the unit, and run virtualhere (hard name to remember..) server there, then run virtualhere client at OS X, etc.

but virtualhere is not open source(and commericalware), I think it used some usbip...

If kindle and virtualhere was open source then it may be possible.. if not then no one will bother..

I needed it because my motherboard USB is all broken
OK, this would be an option - using a small router to plug the kindle into, then have openwrt as the usbip server and connect it wirelessly to your host pc running calibre. Shouldn't be to difficult - I don't own the hardware or I might try it, but you should set it up and let us know how it goes. Openwrt is pretty easy to build and you can customize the kernel to make additional modules.

http://www.madox.net/blog/2013/01/04...-wireless-usb/
instead of usb printer, attach Kindle. Shouldn't even need to do anything to the kindle.

Last edited by brianinmaine; 06-18-2015 at 09:42 PM.
brianinmaine is offline   Reply With Quote
Old 06-19-2015, 01:09 AM   #25
kocoman
Connoisseur
kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.kocoman solves Fermat’s last theorem while doing the crossword.
 
Posts: 97
Karma: 28464
Join Date: Dec 2006
some ideas..

would usb_gadget help?
what does the console log show when the hotplug script is run? (when plugged into usb)
(I haven't find 1.8v or 3.3v adapter to make console yet.. will try someday)
kocoman is offline   Reply With Quote
Old 06-19-2015, 01:27 AM   #26
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 457
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
are you thinking of using OTG?
https://wiki.mobileread.com/wiki/Kindle_USB_OTG

good luck - It is a nice dream...
brianinmaine is offline   Reply With Quote
Old 06-19-2015, 07:06 AM   #27
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 kocoman View Post
some ideas..

would usb_gadget help?
what does the console log show when the hotplug script is run? (when plugged into usb)
(I haven't find 1.8v or 3.3v adapter to make console yet.. will try someday)
Ah, one of the very first KUAL extensions: dmesg ->> document button.

- - - -

Ah, a Kindle **is** a usb_gadget.
knc1 is offline   Reply With Quote
Old 06-19-2015, 07:12 AM   #28
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 brianinmaine View Post
OK, this would be an option - using a small router to plug the kindle into,
- - - - -
Nice idea.

I do have a small (netgear) router that can export the file system of a USB storage device plugged into it.
(Sort of a poor-man's, NAS thing)

This router is physically close to one of the small piles of Kindles on my desk.
I'll connect the two together, set the router option, see what happens. (It should put the Kindle's USB mass storage on the network where it can be accessed by anything on my LAN).

If everyone can hold their breath for about 9 hours, while I run some errands first ....

Note: NetGear because they take the GPL seriously - the source they ship is ship'd in "ready to re-build" state (with build scripting and directions). But the above (NAS) feature is already built-in.
OH, and this model also has built-in Wifi (two of them) and built-in ADSL modem.

Last edited by knc1; 06-19-2015 at 07:23 AM.
knc1 is offline   Reply With Quote
Old 06-19-2015, 02:05 PM   #29
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
knc1 -- thanks for clarifying. Too good to be true, it seems.

Using a router could be an option. Not quite as nice as wirelessly connecting...


I suppose if I really was going to a ton of effort I would just override the connect to folder driver in calibre, and copy-paste the Kindle code over. After all, I run from source anyway! That would be one was to get sshfs working as well as a USB connection.

Really, usbip only has the one advantage that I can see (interfacing with software via USB vendor-ids).
eschwartz is offline   Reply With Quote
Old 06-19-2015, 04:41 PM   #30
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
Yup - I agree with you - keep it simple.
sshfs over wireless to pc hosting Calibre and use the "connect to folder" option.

This thread has turned into a discussion of:

- - - -

Reference 1: https://www.digitalocean.com/communi...stems-over-ssh
Specifically note the:
Quote:
Code:
sudo sshfs root@xxx.xxx.xxx.xxx:/ /mnt/droplet
If your droplet is configured for login via ssh key authorization, you will need to tell sshfs to use your public keys with the following command. You will be asked to enter the passphrase you used during the creation of your keys with ssh-keygen.
Code:
sudo sshfs -o IdentityFile=~/.ssh/id_rsa root@xxx.xxx.xxx.xxx:/ /mnt/droplet
Reference 2:
The readme and other USBnetworking add-in documentation, that recommends using public key (pair) authentication with ssh (sshfs) over wifi.
Note that the same also works over the USB cable.

Reference 3:
Whatever documentation Calibre provides for the "connect to folder (/mnt/droplet)" case.

You have me on that one, I don't use Calibre.

Last edited by knc1; 06-19-2015 at 04:56 PM.
knc1 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
Calibre Companion and wireless connection taratears Calibre Companion 13 03-28-2015 05:32 PM
Headless Calibre-Server enable "Wireless device connection" mohataj Devices 11 10-11-2012 05:39 AM
Nook Touch/Calibre wireless connection? tigersfan Devices 8 01-10-2012 02:51 PM
Wireless Connection Insalata Devices 2 10-13-2011 06:30 AM
Wireless internet connection frustrating IDS connection Socrates iRex 8 10-21-2009 12:46 PM


All times are GMT -4. The time now is 04:33 PM.


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