![]() |
Re: [Announce] USB hostmode beta release
I located the script "mount.sh"
The code is very clean and elegant. It works great. I found that what does not is to run the script when you press the button to "Hen" to mount unit. Any suggestions? |
Re: [Announce] USB hostmode beta release
Quote:
cheers jOERG |
Re: [Announce] USB hostmode beta release
Things turned out just as I indicastes.
Thank you. Try to see if I can modify the script to run it to open the file browser to mount the partition. |
Re: [Announce] USB hostmode beta release
This was posted in the n9 thread by jalyst, and I thought you guys should see it too. Look at what they've managed to do with USB hostmode!
http://www.newscientist.com/article/...nner.html?=mnb Absolutely amazing, and impossible without your work! :) |
Re: [Announce] USB hostmode beta release
By the way, since I started to use (properly) new, improved joerg_rw's booston, I have yet to see *any* (well, in fact, I hope to *not* see it ;P ) problem with enabling hostmode. It just work all the time, at first attempt, no matter what I connect.
I don't know if it's due to booston, or I just become skilled at timing while connecting - or both ;) - but I think it's worth reporting, anyway. |
Re: [Announce] USB hostmode beta release
i'm suspecting booston, because i have the same situation: all works fine without any effort.
|
Re: [Announce] USB hostmode beta release
Quote:
|
Re: [Announce] USB hostmode beta release
Quote:
|
Re: [Announce] USB hostmode beta release
some pointer to current activity/debate about jrbme
see [edit2] in post #806 http://talk.maemo.org/showthread.php...16#post1006716 just to let you know /j |
Re: [Announce] USB hostmode beta release
Thanks joerg, I'm keeping my thumbs for this. As side note, I would encourage you to re-consider Your opinion about BFS kernel - it is not some "new" project, popped out yesterday, but respected, long-term effort. You know I'm not coder, but I'm sure iDont got serious reasons for keeping it as separate project (while many BFS patches were already implemented in kernel-power, in meantime). You can check it here (pre-official-release discussion):
http://talk.maemo.org/showthread.php?t=58780 // Edit ...and here (announcement, brilliantly written by iDont): http://talk.maemo.org/showthread.php?t=78110 |
Re: [Announce] USB hostmode beta release
@joerg_rw
Some questions about jrbme in kernel: * Should be jrbme written against upstream kernel or maemo? Or both? * Should be jrbme upstreamed? * If it should go to upstream, what about split code into more separated modules and use standard linux interfaces (instead all in one sysfs entry)? One for watchdog which use standard linux watchdog interface, one for bq27200 chip which use power_supply interface (that already exists), one for bq bq24150 chip (use power_supply to?), maybe one for twl-madc (BSI) and last for usb host mode + glue to work all together... * How is usb host mode working on old Nokia N8x0 tablets? Is for swithing between host mode and pheripheral mode any standard linux sysfs interface? * Full jrbme should be BME replecament. Do somebody know what all is BME doing and what from BME can we implement? I think that kernel module(s) should be written for upstreaming, but backported into maemo kernel too. And I think module(s) should use standard linux interface (watchog, power_supply, ...) if it is possible. |
Re: [Announce] USB hostmode beta release
Quote:
Quote:
The watchdog is in no way a watchdog like the ones known from standard linux and also found on maemo, I.E. it won't trigger a reboot of system. So I don't think it should get implemented with a similar semantics to those, rather my idea was to mostly hide away the wd details and let kernel handle the wd-tickling usually (set wd to "auto", after config of the other parameters been done). Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Many thanks for picking this topic up and caring about it. cheers jOERG |
Re: [Announce] USB hostmode beta release
1 Attachment(s)
Quote:
don't be so proud ,, if u have some information about something, that doesn't mean u are the best or u are better than others who don't know those information. the good man and who have real knowledge always serve others and provide them his knowledge with no proud , so if u really know something about this issue and h-e-n come and brighten us , or just shut up and watch like others .. sorry but i had to say that cause I really felt angry ....:o and I actually have the same problem and I cannot solve it ..:D:D |
Re: [Announce] USB hostmode beta release
Quote:
EDIT: post number ONE in this very thread: Quote:
Quote:
|
Re: [Announce] USB hostmode beta release
Quote:
|
Re: [Announce] USB hostmode beta release
Quote:
writing that is like howl to steve jobs because you are unable to search and understand how to install an iphone application. joerg is h-e-n admin and spent a lot of his time pushing this project to a final solution and he is tired and saturated saying " search first " ban yourself. |
Re: [Announce] USB hostmode beta release
Sorry juys if my words were rough and impolite .. I just was in a bad situation and by chance I saw the reply of mr Joerg , so I just posted my reply .. I really feel sorry and I hope that mr Joerg and all juys accept my apologies ..I'm a new member here , so I don't want to start with fighting .
:) |
Re: [Announce] USB hostmode beta release
There was a way to feed a USB device without consuming battery N900. Can you tell me how or a link to the explanation?
Thank you. |
Re: [Announce] USB hostmode beta release
Quote:
btw I hope I've not missed to link to it in post #9 :-) ultra-terse howto: get charge.sh from ShadowJK, install so you can execute it. do: start H_E_N, select speed only *now* apply external VBUS *now* immediately click vboost in H_E_N enum, mount, etc now do boostoff; charge.sh to end: kill charge.sh, then close H_E_N cheers /j |
Re: [Announce] USB hostmode beta release
work in progress: hostmode script "click and use" with :
-no gui -automatic speed -status area icon -automatic mount for removable media( hdd, sticks, cdrom ) -a lot of transition notifications to do automatic host-charging mode bug when active flashlight don't work stay tuned ! |
Re: [Announce] USB hostmode beta release
@blue_led, joerg_rw and other h-e-n developers -
could you please take a look at usbhostmode.diff and confirm (or not) that Code:
+ if (machine_is_nokia_rx51()) { |
Re: [Announce] USB hostmode beta release
Quote:
I'm just using an external power supply and the battery continues to fall alarmingly. Thank you again. |
Re: [Announce] USB hostmode beta release
Quote:
|
Re: [Announce] USB hostmode beta release
Quote:
|
Re: [Announce] USB hostmode beta release
Quote:
I still grin about musb_set_vbus(musb, 0); as it's a completely empty function - alas |
Re: [Announce] USB hostmode beta release
Quote:
I've already sent a patch to Pali for inclusion in next KP as it seems like correct fix for the above bugs. But don't expect me to be able to grok in a day or two a patch that was produced in 6 months as a result of combined work of 6-7 developers. That is why I need someone who is familiar with code to confirm. Quote:
|
Re: [Announce] USB hostmode beta release
Quote:
|
Re: [Announce] USB hostmode beta release
Quote:
|
Re: [Announce] USB hostmode beta release
Now I started writing kernel driver for battery charging (kernel module for chip bq2415x).
|
Re: [Announce] USB hostmode beta release
Quote:
- when using Kernel-Power. |
Re: [Announce] USB hostmode beta release
Where can i download charger.sh, the download link seems dead.
|
Re: [Announce] USB hostmode beta release
|
Re: [Announce] USB hostmode beta release
I've been trying the charger.sh script, however whenever I execute it, the mounted media is unmounted, and cannot be accessed unless I close h-e-n/xterm and start again.
Steps:
After charger.sh is executed, the media is unmounted. Any ideas? |
Re: [Announce] USB hostmode beta release
Quote:
When charger.sh runs and no charger is providing power - where is power from then? -> hostmode terminated /j |
Re: [Announce] USB hostmode beta release
Ahh - I misinterpreted when to plug in the ac adaptor. Cheers joerg_rw.
Edit: just confirming that this now works.
|
Re: [Announce] USB hostmode beta release
Not mean to be "picky", but boostoff (before executing charge.sh) would be also useful ;) Sure, it (probably) also works without doing so, but there is no point in keeping it, if You want power-saving, or charging as quickly as possible.
|
Re: [Announce] USB hostmode beta release
Managed to mount a 500Gb passport HDD today, that formerly wouldn't mount (insufficient power from the N900). Rather than use a powered hub to power the drive, and then a separate AC adaptor to charge my N900, I modified the AC adaptor to have three USB ports: original port, that will charge my N900 over the Y cable, and a pair of ports that act like a female-female adaptor for joining two male ends together. These pair of ports take +ve/-ve from the AC adaptor, so in one port you plug your media/peripheral to be powered, and the other port takes the data cable that goes to your N900 (the other part of the Y cable). See picture. Probably not the safest thing going, but I will be tidying it up.
http://i234.photobucket.com/albums/e...PoweredHub.jpg |
Re: [Announce] USB hostmode beta release
|
@ hostmode script ( worklog )
until now ...
status area icon - ok . it is a stock icon, blue. it is activated when an valid device is connected. tap on status area will show an text saying "Host mode active". More informations and actions will be added later after the moment when the script is stable switching ( guessing ) speed work almost well. it is based on dmesg output there is multiple ways doing this but not all are reliable. after 300 tests... first method first starting as high speed then low then full. reason : most connected devices are usb sticks, on second place mouses or keyboards for this method there is a problem for sensing low speed devices in high speed mode. khubd daemon interfere with driver and is hard to put whole system in a stable state. second method started as full speed and watching dmesg messages switch the speed accordingly. the fastest method, only 2 steps reason : if an full speed device is connected it will work "instantly". high speed devices are detected also in full speed mode and dmesg output is useful but there is a problem with low speed device in full speed mode and khubd go crazy. this will add 20 s for a stable state. more tests are needed in this mode third method start as low speed then full then high. the most stable method reason: low speed devices are detected "instantly" high or full speed devices are detected well. so continuing as full speed, the "full"devices will work and "high" devices are properly signalized khubd and g_file_storage make a lot of problems. for khubd there is an workaround flushing all configs but add 20 s for each khubd error. g_file_storage need a patch because in high speed mode when a low speed device is attached it will trigger "mass storage" "Pc suite" selection. this can be ignored but is annoying. a preference can be set in the script for first tested speed later or tomorrow an alpha variant will be posted |
Re: [Announce] USB hostmode beta release
@blue_led:
why is problem with autodetection usb speed? and it is possible to check if host usb device or charger is connected? |
| All times are GMT. The time now is 15:34. |
vBulletin® Version 3.8.8