Active Topics

 


Reply
Thread Tools
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#1
USB hostmode status: beta.

Thanks to everyone part of the h-e-n team, and most importantly, thanks to Joerg Reisenweber for starting the project and leading it, and thanks to Paul Fertser for the new kernel patches, written from scratch.

This release has been tested by a few of us, but it has worked perfectly on all devices.

You will need to a female to female USB adapter, and the stock USB cable.
(You can also use a Nokia CA-101D, a shorter version of the stock cable, a classmate gave it to me, and I found it perfect for hostmode, pic below)

I highly recommend you DO NOT! use direct adapters (microUSB to full size in one adapter || directly plugged into port), using those adapter will put a lot of stress on the USB port and may cause to be torn out! I suggest using at least a small cable like the Nokia CA-101D below with a female to female adapter, or a cable that is microUSB to full, but it should not be a direct adapter!



Paul has found out that it is impossible (at least at the time of writing) to detect speed changes while VBUS is running, so for now, you have to select speeds manually.
Use common sense in doing so, high speed is for devices that require a lot of writing and are fairly new (flash drives/HDDs/CD-drives, new hubs).
Full speed devices are devices that do not require a lot of USB activity, such as BT/2.4GHz mouse transceivers.
Low speed devices are normal mice and keyboards.

A help window is available and will guide you through the steps needed.
The mount button is currently hardcoded to mount /dev/sd*, default for most USB flash drives and HDDs.
For NTFS support, do modprobe ntfs as root
For ISO (CDs/DVDs - most of them), do modprobe isofs (also as root).
CDs will have the dev node /dev/sr0, so you'll need to do mount /dev/sr0 /mnt etc...
Disabling tracker by adding /media/flash to tracker-cfg's non watch configuration is recomended, use tracker-cfg UI.






(note, full speed devices are 1.1, the screenshot is old, fixed in release)

Demo of DVD player on N900:
http://www.youtube.com/watch?v=zDzUG-bno6Q

To install:
Install hostmode-gui from -devel, the package depends on kernel-feature-usbhost, so it should be compatible with any kernel that provides this (in debian/control), kernel-power provides this, and therefore, if no other kernel that does provide it is supported, it will be installed.

The GUI now checks for API version instead of kernel version, with the latest API being 20101110, also in kernel-power.



Known problems/bugs:
lsusb sometimes needs to be executed to return statemachine to original state.
Battery meter is not updated, thanks for the closed bme Nokia
Bugs not related to host mode, but kernel-power (see relevant threads, we don't have to do with these issues):
fcam-drivers doesn't work on certain devices for some reason, please see kernel-power's thread, quick fix: uninstall fcam-drivers.

Support thread: http://talk.maemo.org/showthread.php?t=65570


Please note that donations go to the team, and not one specific person. Details here

Hostmode development team:
Project Admins:
Joerg Reisenweber
Paul Fertser

Developers:
Chitrang Srivastava
Dave na
Hagen Meyer
Ian Stirling
Jacek Milewicz
Klaus Kurzmann
Mohammad Abu-Garbeyyeh
Mugur Enache
Sarah Newman
Sonny Jim
Tom Tanner

Last edited by MohammadAG; 2010-12-26 at 14:39.
 

The Following 583 Users Say Thank You to MohammadAG For This Useful Post:
*Sonic*, 222, 5spdvl, aathava, acou, acvetkov, adhrie, adrianmilev, afaq, afrimi, ahmadamaj, ahmoda, ajack, akatzbreaker, alexff, alextootchie, aligatro, AlMehdi, amin007110, amjadk, amk332, ammuvi, ammyt, anagarika, anapospastos, AndiThebest, Andre Klapper, andreas.k, andree, AndrewX192, Andy1210, angrycore, ankit255, antezz, anwar71839, anyg, Ariadeno, arifkhan123, arnoldux, arora.rohan, Atarii, atilla, attila77, azstunt, b-man, Bahador, bakuur, balorbule, bandora, banong, bastler, bblue, bchliu, BCMM, Bec, beli, Benson, berlinermaxe, bharathkumarst, bigears5000, bingomion, biobobby89, bipinbn, blah, Blaizzen, blipnl, BLIZZARD, BluesLee, BN900, bobbydoedoe, bocephus, Boemien, boldap, borghal, brad112358, Brock, BruceL, bunanson, butler, bzbnd, bzhnjm, c4rl05, Camaron, casper27, ceevee, cfh11, chainsawbike, Char, cheve, ChiefRA, chivar, choubbi, christexaport, christoph, Chrome, cincibluer6, cipper, clasificado, clovis86, cm6, cobble, colin.stephane, convulted, craftyguy, Crashdamage, Crogge, cube48, Cue, CutterSlade, Cybergr, D4rKlar, dana.s, danielpublic, dannym, Dante, Dany-69, DaReaper, Dariu5, Dark_Angel85, dashti, DaSilva, datjomp, dave1010, Dave999, DaveR53, davide, dazzakoh, Deafboy, debernardis, deegore, Deltree, demolition, deny_winarto, dirscreter, donaggio, Dousan, dov, Dr.SAHA, Dragoss91, dtergens, dvergin, dwaradzyn, dynomot, ear0wax, ed00, edgar2, eefo, efekt, eggtimer, ejasmudar, El Amir, Ele-Mental, electrolind, eme, emotion, ericsson, erniadeldesktop, esiravegna, Estel, esthreel, evan, Evilson, exuvo, F2thaK, famdango, Farooq, fatcobrah, faximan, feighery, fffffred, ffha, fh37, Figa, fixie, fLegmatik, flocke000, foobar, forcer, FreeThinker, frostbyte, FRuMMaGe, fuel__2001, futtawuh, fw190, gabby131, Gamgigo, gandotratushar, gazza_d, geckon, geohsia, gerdich, ghostBuster, ghzroy, giannoug, gixx, Glasswalker, gordonshowers, gryedouge, gs1, gunni, GuruX, Gusse, G_Gus, haffid, handaxe, hansaka, hardkorek, hasmael, Haus3r, Hellmur, hellnick, hellsing, Helmuth, hesham, Hmoobwarrior, Honza., hordeman, Hoshiro, Hotshot, hottex, humble, icebox, IdiotOnABicycle, ifraaz, ikirk, ILikeMaemo, illo1977, imperiallight, inkirby, int_ua, ioan, ioncelmare, ivgalvez, ivyking, IzzehO, Jack6428, jaeezzy, jakiman, jase21, jaskin71, JayBEE, jbw89, jedi, jessi3k3, jeweladdict, jgbreezer, jhwan, jjx, jkq, joerg_rw, John McClane, johnel, Joseph9560, judibet, K.Singh, K9999, kamil365, Kangal, karimko, Kee, kent_autistic, kevloral, kimitake, kitwalker, klinglerware, kmare, kolos, kopele, koukasio, kownas, krutznikov, kwurk, laasonen, lardman, Larswad, lattenwald, Leachim, leetut, Lehto, lemmyslender, LippiVan, littlebadger, littleSev, lkravovicz, lolloo, LondonBenji, lorenzo, lostinmirkwood, LucianoBraga, m0da, m750, maartenmk, Macros, maddog900, MaddogG, maemoiv, maemusr, Magik, magnunor, magog, Maj3stic, MaltedVomit, maluka, mamad CJ, mani, manojkumaru, Mara, Marklar, marmistrz, Marshall Banana, Mart5.1, MartinK, Maruzko, matristain, mauron85, maxximuscool, max_power, md92h, mece, Megaltariak, mehulrajput, Mentalist Traceur, MetalGearSolid, mikec, mikecomputing, mikemx, mikki-kun, Minhaz, Mitrigol, mivoligo, mkhib, mmurfin87, mno@8, mobiledivide, Modell900, moepda, morusaka, mosk33toe, mpi, mr id, mrbiggzz79, mrexcess, mrmoosehead, mrsellout, musculus, mveplus, MyNokiaN900, m_dk29, narcisgarcia, nashith, Natan_xy, naturegodtm, neboja, Netweaver, nicholes, Nightmae, Nikem, nishkarsh, nkirk, No!No!No!Yes!, Nobless, Nokia 5700, NokTokDaddy, nology, norwat, nubsis, number41, obhishap, Oblomow, Olvi, optimaxxx, OptX, OranAgra, osama, Osilayer, ossipena, OVK, P@t, paddyc1988, pali, panjgoori, pantera1989, park, PathFinder@9GS, Patola, pedrolucasbp, peterleinchen, petibub, phap, phedders, phil4444, philh, PhonoN900, phyguy, pichlo, pigeond, pillar, pisthpeeps, PrisonPlanet, Psycho, Pyro1099, qole, qosmio, quanttrom, Quasar, quingu, qwenjis, rabarkar, RafaLL92, raily, Raimu, Random_Nokia_Hero, rasheddawabsheh, ravas, raven, rawutt, RAZOR, rcolistete, rdwrig0ceo, Red_Fox, Reffyyyy, retsaw, rfranz, RFS-81, Richrd, rnb89, rob42, RobbieThe1st, roger_27, Roth, rotoflex, Russe89, RWFarley, S0urcerr0r, SAABoy, saadgadit, sachin007, sajjji, sake, saned, SavageD, sbock, Schturman, Scottlfa, scyzor, sEKI, sensortk, sethkha, sethstorm, sgcip, shaddam, sicelo, sifo, Silvarum, sjgadsby, skalogre, skidrock, skykooler, skzo, slappy, slender, Snoshrk, soeiro, Sologeoff, somekeystrokes, Sonny_Jim, Soppa, soravhoney, spanner, SR90, SSLMM, stayloa, stlpaul, stone17, Stonik, strange1712, SubCore, sula, sunny2nisha, supergaban, Surreptitious, suzuka, Switch_, taaheel, tameraid, tanpoaran, teamer, tecs, TeHeR, tele, temp, Tensuke, teroyk, testmatchspecial, tetris11_, The Wizard of Huz, thecursedfly, theonelaw, TheOneWolf, TheToimelias, ThomasAH, thorbo, thp, Tiboric, Tiran, titi974, toastncoffeh, ToJa92, totalentropy, Tovalisa, Transcend, travik, travla, traysh, treofant, Trestry, trurl, trx, Tsippaduida, tswindell, tuliobaars, tullamulla, tusharmax, tutul, tuxsavvy, tvogel, twaelti, udaychaitanya16, uppercase, ut0p14n, vabgeo, varunshaji, vdx29, Veleno, Venemo, vetsin, vijayv, vkthor, vkv.raju, vvaz, weijie88, werebug, whayong, WhereIstheBeer, wicket, Wikiwide, wimmme, wolverine, woody14619, Xagoln, XNT, xprism, Xquiste, xtian, xtreemneo, yamakasi, yauchildchew, YoDude, yogi900, yorkey, ysss, yurka, zappa, Zentenario, zikmir, zillertal, zlatko, zod, ZogG, zvogt, zwer
Posts: 662 | Thanked: 653 times | Joined on Feb 2010
#2
Awesome work. I'm sure a LOT of people have desired this since the beginning.
 
Posts: 175 | Thanked: 41 times | Joined on Mar 2010
#3
Wow good work, wiill the phone auto detect devices like USB storage devices or other things?
 
mrbiggzz79's Avatar
Posts: 67 | Thanked: 7 times | Joined on Mar 2010 @ Bahamas
#4
thank u guys for all your hard work
__________________
In The Bahamas
 

The Following User Says Thank You to mrbiggzz79 For This Useful Post:
Posts: 317 | Thanked: 787 times | Joined on Oct 2009 @ Krakow, Poland
#5
One question: is h-e-n kernel based on power-kernel? I would love to have it installed but cannot live without overclocking
 
Posts: 175 | Thanked: 41 times | Joined on Mar 2010
#6
Sorry for anther post, after reading, the kernel will be replaced, does this mean no overclocking?
 
Posts: 842 | Thanked: 1,197 times | Joined on May 2010
#7
Looks to me like we need a version of kernel_power+pr1.3 patches+usb-hostmode, but I'm not entirely sure how to make my own kernel version.
__________________
My projects: BackupMenu - OS Backup & restore | Video: Flashing your n900(LiveCD)
My devices: N770 + 8GB SD card soldered internally, N900 with 8GB SD card + Custom OC(125-950 typically).
OC freqs: 0:22,90 125:22,90 250:28,180 500:30,360 550:32,400 600:34,430 700:39,430 750:41,430 805:45,430 850:47,500 900:50,500 950:54,500 1000:58,500 1100:67,520 1150:71,520
 

The Following User Says Thank You to RobbieThe1st For This Useful Post:
laasonen's Avatar
Posts: 565 | Thanked: 618 times | Joined on Jun 2010 @ Finland
#8
Originally Posted by CraigRobbo View Post
Sorry for anther post, after reading, the kernel will be replaced, does this mean no overclocking?
Unfortunately yes
 
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#9
HS=USB2.0, FS=USB1.1, LS=USB1.0
USB2.0/HS-peripherals will also work in USB1.1/FS mode, though much slower.

Switching speeds "on the fly" is not possible for now (to elaborate on Mohammad's introduction: We need VBUS to detect the speed of device attached, but we can't switch speed accordingly as long as VBUS applied - musb-core doesn't allow that). You have to stop hostmode and start over from beginning. Also the much requested hostmode while charging (N900 works as USB host but does not supply VBUS 5V - this will be done by a modified hub or a Y-cable: http://wiki.openmoko.org/wiki/Specia...aka_Y-Cable.29) is not yet supported (however see http://talk.maemo.org/showthread.php...203#post921203 ). Well folks, this is a BETA :-), though Mohammad once again managed to pack a shiny package that looks better than some products tagged "final gold", thanks for that Mohammad :-)

Special thanks to Paul who did a brilliant job, like always. Also a special thanks to Sarah Newman without her patches we probably wouldn't be anywhere today. And a special thanks to all the people who shared their knowledge with me in endless private chats but preferred to stay in the background for different reasons.

Enjoy hostmode Beta, cheers
jOERG


ps.: As it seems it always somehow vanishes: N900 can deliver 200mA VBUS power (actually current, that's a hardware limitation of bq24150 chip), as compared to a standard 500mA of a PC host, this means power greedy peripherals like e.g HDD, UMTS sticks, mug warmers, etc, will cause hostmode to fail. An easy tested way to deal with this problem is to use a powered hub.
If you want to try with externally powered things, then you should plug in the peripheral same moment you push the VBUS button in hostmode GUI

ps2: Until Mohammad updates the info in #1: We are not shipping a dedicated hostmode kernel anymore with h-e-n GUI. You are supposed to install kernel-power v45 (or newer), which has hostmode patches integrated. Installing h-e-n won't do that for you. Please refer to kernel-power howto and readme and FAQ, for details on how to install and how to remove this non-stock kernel. There are known issues in multiboot with kernel-power, as well as in fcam drivers, which don't work for v45 kernel-power at date of this writing (unrelated to h-e-n!). Kernel-power v45 comes with uBoot, which should replace multiboot. It also should come with a fix (actually a revert of a patch) for the locked@500 bug Mohammad mentions in next post.
The 'mount' button and function of h-e-n is a beta-test convenience thing, and is known to not work under all arbitrary circumstances. It will vanish in final version of h-e-n anyway, and any problems are WONTFIX

As a rule of thumb, this thread is about problems (and unexpected success) to provide 5V VBUS and to enable hostmode. As soon as your device is showing up in dmesg as "usb 1-1: New USB device found, idVendor=xxxx, idProduct=yyyy...", h-e-n considers this as mission accomplished.
Everything beyond are derived issues not directly related to h-e-n, so please report them either in the problems-thread, or on the forum of the involved subsystems which actually throw the error. Esp mounting, though still supported by a button in h-e-n, is NO topic for this thread


recommended links: http://talk.maemo.org/showthread.php...esg#post875006
http://talk.maemo.org/showthread.php...032#post895032
http://www.youtube.com/watch?v=fkCDyUO0sKQ&NR=1

LATEST NEWS:
there are missing modules in powerkernel46. See http://talk.maemo.org/showthread.php...219#post971219 - we're aware now and working on it. Shall be fixed in recent PK48 (which is said to work http://talk.maemo.org/showpost.php?p...&postcount=861 ). For PK47 see http://talk.maemo.org/showthread.php...91#post1116491 - thanks blue_led :-)

see http://talk.maemo.org/showpost.php?p...&postcount=857 for latest devel-version of parts of h-e-n, with augmented error-reporting (notifies on overload [huge HDD], runs a notification LED pattern to let you know your battery is draining) [edit 2012-02-27: fixed link]

cheers
jOERG
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2012-02-27 at 06:21. Reason: added deatils about what's on topic here and what's for problem thread
 

The Following 85 Users Say Thank You to joerg_rw For This Useful Post:
adhrie, AlMehdi, amjadk, anapospastos, antezz, anyg, arnoldux, bigears5000, brad112358, cfh11, cheve, clasificado, Crashdamage, Cue, Dany-69, Dave999, debernardis, demolition, didik.wahyono, ed00, esthreel, Figa, FreeThinker, fw190, gionni88, gordonshowers, gryedouge, handaxe, Hellmur, Helmuth, Hmoobwarrior, ikirk, int_ua, ioan, ivyking, jah25, Jenason, johnel, joshv06, kamil365, kevloral, LippiVan, littlebadger, maemoiv, magnunor, manvik60, Marklar, maxximuscool, mece, mivoligo, MohammadAG, mr id, mveplus, Netweaver, Nikem, NokiaRocks, nology, OVK, PaulFertser, peterleinchen, qole, Richrd, S0urcerr0r, samipower, Silvarum, sjgadsby, slender, Snoshrk, stlpaul, strange1712, SubCore, suzuka, taaheel, techno2001, ThomasAH, Tovalisa, travla, tswindell, vetsin, vkv.raju, vvaz, Wikiwide, woody14619, wumpwoast, zod
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#10
Well, most of you don't know this, but, PR1.3 introduced two things:
Backports of new kernel patches to musb, which really helped with hostmode.
And.. a new bug, if you connect the wall charger to the device, 100% of the time it will stay on 500 (sometimes 550?) MHz, we do not know the behavior of an overclocked device when this bug is triggered on it, if it stays clocked @ 900 (for example), then we're going to see some dead devices pretty soon.
Anyways, hostmode's patches require 1.3's patches to musb, so until titan updates his kernel, it's a no go, feel free to contact his email address (see http://maemo.org/packages/view/kernel-power-flasher and click his name) and request an update.

Last edited by MohammadAG; 2010-11-09 at 15:52.
 

The Following 33 Users Say Thank You to MohammadAG For This Useful Post:
Reply

Tags
bada rox, detection, h-e-n, hostmode, speed, usb host


 
Forum Jump


All times are GMT. The time now is 22:16.