maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [Announce] USB hostmode beta release (https://talk.maemo.org/showthread.php?t=65232)

Sonny_Jim 2010-12-18 02:20

Re: [Announce] USB hostmode beta release
 
Could someone recompile sixpair to run on the N900? It would be cool if I could use h-e-n to pair up my PS3 controller.

EDIT: I just downloaded the Maemo SDK VMware and recompiled sixpair, works fine.

filmor 2010-12-18 17:31

Re: [Announce] USB hostmode beta release
 
how can i do this? i want to set up USB host on my N900

avidscavenger 2010-12-19 06:20

Re: [Announce] USB hostmode beta release
 
3 Attachment(s)
Hello again. I finally got around to trying to connect by Neo Freerunner to my N900 via USB with the N900 as host and it doesn't seem to work. Attached are syslog extracts from the N900, from the Neo, and from my Debian box when the same Neo is plugged into it.

Any expert interpretations are much appreciated. :)

joerg_rw 2010-12-19 12:43

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by avidscavenger (Post 899793)
Hello again. I finally got around to trying to connect by Neo Freerunner to my N900 via USB with the N900 as host and it doesn't seem to work. Attached are syslog extracts from the N900, from the Neo, and from my Debian box when the same Neo is plugged into it.

Any expert interpretations are much appreciated. :)

N900 can provide only 200mA, Neo FR probably takes 500mA happily on detecting VBUS.
though this
Dec 19 17:03:11 localhost vmunix: [74373.290000] pcf50633 0-0073: usb curlim to 100 mA
doesn't really support that assumption.
I noticed you selected lowspeed? Maybe fullspeed would be better?

I see a
Dec 19 17:04:20 Nokia-N900 BME: start
Dec 19 17:04:24 Nokia-N900 kernel: [20743.785217] WARNING: at /home/builder2/maemo-fremantle-armel-extras-devel/work/kernel-power-2.6.28/drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x94/0xcc()

OOPS alike thing, though I more wonder why bme started

HTH, will investigate further eventually
cheers
jOERG

samipower 2010-12-19 14:52

Re: [Announce] USB hostmode beta release
 
thanks for it information (N900 can provide only 200mA)

avidscavenger 2010-12-20 03:21

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by joerg_rw (Post 899931)
I noticed you selected lowspeed? Maybe fullspeed would be better?

I noticed that the debian log mentioned fullspeed, so I tried that too, but it appeared to give an identical result.

If I had two N900s I'd try connecting them together in this way. Maybe someone else does and can try it?

MohammadAG 2010-12-20 16:28

Re: [Announce] USB hostmode beta release
 
I flashed an N900 from another one, used high speed and a high speed hub.

suzuka 2010-12-21 17:13

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by deny_winarto (Post 898147)
This is probably a stupid question, but have you tested it with a standard USB flashdisk such as kingston, adata etc?

I've tested this with a few USB flash drives and they all appear to work fine. Tested so far and working:
Sandisk Cruzer Blade (16GB)
Corsair Flash Voyager (64GB)
Kingston Data Traveller mini10 (8GB)

Thanks for all the hard work guys!

FRuMMaGe 2010-12-21 17:45

Re: [Announce] USB hostmode beta release
 
This isn't a big problem but for some reason the mount button doesn't seem to work when I have the "open file browser when mounted" option enabled

slender 2010-12-21 22:11

Re: [Announce] USB hostmode beta release
 
This is just too awesome :)

Had already kernel power 46 from devel installed.
Installed H-e-n (Hostmode Gui ) 0.3 from devel.
Installed first extmou (1.0.5) but had problems with mouse cursor moving and buttons. Uninstalled it and installed Bt-hid-scripts2 (0.13-1fremantle1) and it worked properly.

Plugged in Kingston 2gb and it worked.
Plugged in Microsoft wireless mouse 3500 and it worked.
Next going to try some card readers and more stuff.

Thanks for giving huge grin on my face :)

Dark_Angel85 2010-12-22 08:18

Re: [Announce] USB hostmode beta release
 
just asking... really interested here..

I have titan's kernel installed, OC'ed to 250 1000Mhz LV.

I saw in one of the posts that no OC?

what are the requirements EXACTLY besides the kernel? thanks

joerg_rw 2010-12-22 08:42

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Dark_Angel85 (Post 901882)
just asking... really interested here..

I have titan's kernel installed, OC'ed to 250 1000Mhz LV.

I saw in one of the posts that no OC?

what are the requirements EXACTLY besides the kernel? thanks

You need a kernel with h-e-n hostmode enabled. You need h-e-n GUI

You need a pile of spare N900, as OC will wear your CPU, no matter if hostmode or not.
Your CPU is like a car engine. It's designed to last 250.000km on normal driving. If you drive your car at limit all the time then european cars will only last 100.000km, US cars will explode after 100km :-P (here your N900 @ 600MHz(!) is like EU car). If you mix the fuel with nitromethane and go with RPM of engine way beyond what's been considered safe by manufacturer, then you may achieve exceptional speeds, but you know your car engine wears out and won't last very long. N900 CPU on OC will start to show sporadic errors, after weeks, or months of operation at actual CPU clock @OC, and it WILL NOT HEAL. A worn CPU is a worn CPU.

/j

Dark_Angel85 2010-12-22 08:50

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by joerg_rw (Post 901888)
You need a kernel with h-e-n hostmode enabled. You need h-e-n GUI

You need a pile of spare N900, as OC will wear your CPU, no matter if hostmode or not.
Your CPU is like a car engine. It's designed to last 250.000km on normal driving. If you drive your car at limit all the time then european cars will only last 100.000km, US cars will explode after 100km :-P (here your N900 @ 600MHz(!) is like EU car). If you mix the fuel with nitromethane and go with RPM of engine way beyond what's been considered safe by manufacturer, then you may achieve exceptional speeds, but you know your car engine wears out and won't last very long. N900 CPU on OC will start to show sporadic errors, after weeks, or months of operation at actual CPU clock @OC, and it WILL NOT HEAL. A worn CPU is a worn CPU.

/j

Thanks for the advice about OC.. really appreciate it..

I was thinking about just compatible kernels... so is titan's kernel one that has hen hostmode enabled? If so, then I just download the GUI right?

Mentalist Traceur 2010-12-22 09:16

Re: [Announce] USB hostmode beta release
 
Dark_Angel85: Instead of just saying thanks, press the "Thanks!" button under his post. Or do both. But the thanks system is here for a reason, to make people's helpfulness be at least somewhat vaguely apparent based on how many times they were thanked.

As for kernels - h-e-n GUI is in devel only, last I checked. The power kernel in devel is hostmode enabled. So the kernel you need for hostmode is in the same repo you have to have enabled to download h-e-n GUI in the first place. (The choices of kernel are basically stock or power. Stock doesn't have it enabled, power does. Be aware that the uboot packages in devel flash the entire kernel, so if you want uboot, install power kernel first [so you have it installed and apt-get doesn't complain about it being a missing dependency for kernel power settings], then MohammadAG's uboot for kernel power package.)

Joerg: You say that, yet many people have been overclocking for months, and I have seen no report on TMO of CPU degradation yet. If you know otherwise though, feel free to point me to the relevant threads/posts.

slender 2010-12-22 09:16

Re: [Announce] USB hostmode beta release
 
@Dark_Angel85
You should probably ask from titan who made that kernel. Not from devels of USB hostmode. App just checks if kernel has appropriate modules and if not then downloads and installs kernel power.

Dark_Angel85 2010-12-22 09:29

Re: [Announce] USB hostmode beta release
 
@Mentalist Traceur
Thanks for the advice (clicked thanks btw). Really informative. I might try it and see what happens.

@slender
I'll definitely ask.... thanks (clicked thanks too :))

Matan 2010-12-22 13:12

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Dark_Angel85 (Post 901891)
Thanks for the advice about OC.. really appreciate it..

You should not really appreciate it, since it is total nonsense, as the experience of thousands of user who overclock N900 (and many more who overclock similar devices with the same CPU shows).
Still, not even one device damaged by overclocking is known.

On the other hand, you should be very wary of USB host mode. The USB connector is known to be very problematic, so the extra connections and disconnections are sure to reduce you device's useful life span. And when you go to Nokia service with the broken USB connection, they will fix it (or not, as they please).

Venemo 2010-12-22 13:19

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Matan (Post 902020)
On the other hand, you should be very wary of USB host mode. The USB connector is known to be very problematic, so the extra connections and disconnections are sure to reduce you device's useful life span. And when you go to Nokia service with the broken USB connection, they will fix it (or not, as they please).

This is only applicable if the device in question suffers from the MicroUSB connector problem.

My device gets plugged in-out several times (>10) per day, and its connector has survived for months.

Matan 2010-12-22 13:30

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Venemo (Post 902027)
This is only applicable if the device in question suffers from the MicroUSB connector problem.

Do you have a way to tell if a device "suffers from the MicroUSB connector problem", other than one day disconnecting and having the USB socket coming out of the N900?

All we have is guesswork: perhaps it was a design problem that was fixed in some stage. Perhaps is was a manufacturing problem specific to some batches. Perhaps it is a random manufacturing problem. Perhaps all devices are identical and the problem happens due to force/angle used to connect/disconnect.

The only thing we do know is that this problem is very common, and that Nokia does not always fix this problem. And we also know that many devices come out of warranty about now.

joerg_rw 2010-12-22 13:42

Re: [Announce] USB hostmode beta release
 
do not hijack this thread!

Dark_Angel85 2010-12-22 17:06

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Matan (Post 902020)
You should not really appreciate it, since it is total nonsense, as the experience of thousands of user who overclock N900 (and many more who overclock similar devices with the same CPU shows).
Still, not even one device damaged by overclocking is known.

On the other hand, you should be very wary of USB host mode. The USB connector is known to be very problematic, so the extra connections and disconnections are sure to reduce you device's useful life span. And when you go to Nokia service with the broken USB connection, they will fix it (or not, as they please).

well, i said thanks not because I DEFINITELY will follow his advice but that his point of view was noted; no more, no less

I approach both the OC and this app with my own caution and risks and I make sure I understand each process thoroughly enough (maybe not like some pros here) and only do it.

:)

hansaka 2010-12-24 04:54

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by bzbnd (Post 883541)
try:
root
apt-get install multiboot-kernel-power
then you can see power kernel in multiboot options. it works for me!

i had a kernel problem what i have did wrong is first i installed u-boot and it turns out that it doesn't work well with kernel power so i had to reflash the device to the nokia kernel. then i installed Android with boot menu it worked well but i could't install kernel power to play with h-e-n. i searched regarding this topic for long time at last i installed kernel-power-bootmenu thanks to bzbnd. i love you man ...

Tiboric 2010-12-24 08:08

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by joerg_rw (Post 902038)
do not hijack this thread!

Put your hands up and give me all ya knowledge :D

well anyway thanks for keeping up the hard work guys and have a merry christmas.

obhishap 2010-12-25 16:24

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by slender (Post 901650)
This is just too awesome :)

Had already kernel power 46 from devel installed.
Installed H-e-n (Hostmode Gui ) 0.3 from devel.
Installed first extmou (1.0.5) but had problems with mouse cursor moving and buttons. Uninstalled it and installed Bt-hid-scripts2 (0.13-1fremantle1) and it worked properly.

Plugged in Kingston 2gb and it worked.
Plugged in Microsoft wireless mouse 3500 and it worked.
Next going to try some card readers and more stuff.

Thanks for giving huge grin on my face :)


I have also kernel power v46 and extmou which is working. Then i installed h-e-n gui but not working.

log is:

[ 4996.657897] /home/builder2/maemo-fremantle-armel-extras-devel/work/kernel-power-2.6.28/drivers/usb/core/inode.c: creating file '006'
[ 4996.658294] usb 1-1: New USB device found, idVendor=0a16, idProduct=1200
[ 4996.658325] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4996.658355] usb 1-1: Product: Store'n'Go Mini
[ 4996.658355] usb 1-1: Manufacturer: Verbatim
[ 4996.658386] usb 1-1: SerialNumber: 4af2aac589831b
[ 4996.658416] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 4996.658477] hub 1-0:1.0: port 1 enable change, status 00000503
[ 4996.729919] Initializing USB Mass Storage driver...
[ 4996.730163] usb-storage 1-1:1.0: usb_probe_interface
[ 4996.730194] usb-storage 1-1:1.0: usb_probe_interface - got id
[ 4996.730712] scsi0 : SCSI emulation for USB Mass Storage devices
[ 4996.738922] usbcore: registered new interface driver usb-storage
[ 4996.738983] USB Mass Storage support registered.
[ 4996.744720] usb-storage: device found at 6
[ 4996.744720] usb-storage: waiting for device to settle before scanning
[ 5001.746032] usb-storage: device scan complete
[ 5001.766723] scsi 0:0:0:0: Direct-Access Verbatim Store'n'Go Mini 1.30 PQ: 0 ANSI: 2
[ 5001.784881] sd 0:0:0:0: [sda] 3948544 512-byte hardware sectors: (2.02 GB/1.88 GiB)
[ 5001.785186] sd 0:0:0:0: [sda] Write Protect is off
[ 5001.785217] sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
[ 5001.785217] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 5001.789703] sd 0:0:0:0: [sda] 3948544 512-byte hardware sectors: (2.02 GB/1.88 GiB)
[ 5001.789978] sd 0:0:0:0: [sda] Write Protect is off
[ 5001.790008] sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
[ 5001.790039] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 5001.790039] sda:
[ 5002.109436] sd 0:0:0:0: [sda] Attached SCSI removable disk



Can you point me where I am wrong. Thanks.

Frappacino 2010-12-25 16:42

Re: [Announce] USB hostmode beta release
 
hi guys - been skiming through the thread - is there a schedule for this to be moved out of beta ? not hassling just wondering

also plz setup a donation link so we can at least pay for pizza n coke n coffee

happy xmas all - u guys are a bunch of santas!

joerg_rw 2010-12-26 13:26

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Frappacino (Post 904098)
hi guys - been skiming through the thread - is there a schedule for this to be moved out of beta ? not hassling just wondering

also plz setup a donation link so we can at least pay for pizza n coke n coffee

happy xmas all - u guys are a bunch of santas!

We're going to publish a beta2 - probably this year.

While sitting here and pondering it... Some of us are in a pinch sometimes, with broken N900, or pizza stash running out. So here it is, the extra huge >thanks< button:
[project finished, donations button removed. Thanks to all donors]
Strictly voluntary donation for Coke, Pizza, and hostmode hardware. Doesn't create an obligation on either side. Won't entitle you to request support of any kind. Donations are shared among the h-e-n team on h-e-n project leader's discretion.

:) xmas and
cheers
jOERG

joerg_rw 2010-12-26 13:31

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by obhishap (Post 904086)
I have also kernel power v46 and extmou which is working. Then i installed h-e-n gui but not working.

log is:
[ 4996.658294] usb 1-1: New USB device found, idVendor=0a16, idProduct=1200
[ 4996.658325] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4996.658355] usb 1-1: Product: Store'n'Go Mini
[ 4996.658355] usb 1-1: Manufacturer: Verbatim
...
[ 5001.766723] scsi 0:0:0:0: Direct-Access Verbatim Store'n'Go Mini 1.30 PQ: 0 ANSI: 2
[ 5001.784881] sd 0:0:0:0: [sda] 3948544 512-byte hardware sectors: (2.02 GB/1.88 GiB)
...
[ 5001.790039] sda:
[ 5002.109436] sd 0:0:0:0: [sda] Attached SCSI removable disk



Can you point me where I am wrong. Thanks.

Hi obhishap
This all looks good to me. You attached a Verbatim Store'n'Go 2GB scsii mass storage.
Should just work. Please check in http://talk.maemo.org/showthread.php?t=65570 about possible problems with mounting it.

cheers
jOERG

obhishap 2010-12-26 14:06

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by lifenexus (Post 871697)
Ok try this. Get another flash first
1- open h-e-n
2- Connect ur cables and flash
3- select high speed mode
4- wait for a few seconds then click vBus boost on
5- Wat for some more time
6- click enumerate and wait for some time before u mount. Check ur kernel messages for the model of the flash to show up. if it does, then do the following

Check if /dev/sda1 exists or not

Code:

cd /dev/

ls

Then check if media/flash exists or not
Code:

cd /media

ls

Then if both exists, do this
Code:

mount /dev/sda1 /media/flash


In my case, sda1 doesn't exist. I created a sda1 directory but then it also doesn't show up. What to do ? thanks

obhishap 2010-12-26 14:53

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by joerg_rw (Post 904561)
Hi obhishap
This all looks good to me. You attached a Verbatim Store'n'Go 2GB scsii mass storage.
Should just work. Please check in http://talk.maemo.org/showthread.php?t=65570 about possible problems with mounting it.

cheers
jOERG

Hi Joerg.
Thanks for the reply. I tried every possible things I could do but no luck. You suggest to go to the problem thread but I did already as you can check even the last post is mine. I am waiting for last three days but no body came there. I figured that i am missing of the sda1 thingy and couldn't figure it out. I tried to mount the drive manually but returned with no such file or directory. Now I am losted and need your hand to come out from the dark.Thanks

Joorin 2010-12-26 15:19

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by obhishap (Post 904601)
...
I tried to mount the drive manually but returned with no such file or directory.
...

As the log states, you get a /dev/sda device node. Not /dev/sda1 .

So, try
Code:

mount /dev/sda /mnt/whatever
and see what happens.

jurop88 2010-12-26 15:22

Re: [Announce] USB hostmode beta release
 
Hi Obhishap,

let's try to keep this thread unpolluted, I put a suggestion in the problems thread, please go on there because from the logs it looks like h-e-n works and enumerates well, then it works and it is definitively something that has to go on there.
Rgds

obhishap 2010-12-26 16:20

Re: [Announce] USB hostmode beta release
 
First of all thanks to all of you and sorry to discuss problems here.@joorin, I found there is sda present and I did mount /dev/sda /media/flash and it worked. Thanks

5spdvl 2010-12-27 13:59

Re: [Announce] USB hostmode beta release
 
This is why I love the N900, why I clicked "Thanks!", and why I just donated.

I built a USB powered Super Nintendo controller using a Teensy 2.0 microcontroller to act as a HID keyboard, connected via a non-powered hub, and also running a 4Gb flash drive with all 763 SNES games released loaded on it. This morning, I connected it to my N900 and managed to mount both (literally by pushing "Mount" twice on Full Speed Mode) the flash drive and the HID keyboard without an externally powered hub.

I was playing SNES via DrNokSnes with the proper controller with access to ever single game, basically. :D I didn't catch the kernel log, but it was exactly what you would expect for two perfects mounts.

http://i234.photobucket.com/albums/e...101221_001.jpg
http://i234.photobucket.com/albums/e...101221_002.jpg
http://i234.photobucket.com/albums/e...101223_001.jpg

Now all I need is to be able to charge at the same time while using H-E-N and I'll be set!

joerg_rw 2010-12-27 14:08

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by 5spdvl (Post 905308)
Now all I need is to be able to charge at the same time while using H-E-N and I'll be set!

I'm working on that. Thanks for report and donation :-)

cheers
jOERG

MaddogG 2010-12-27 15:02

Re: [Announce] USB hostmode beta release
 
@5spdvl

:eek:

You have my respect, man!

clasificado 2010-12-27 16:50

Re: [Announce] USB hostmode beta release
 
@5spdvl i may be wrong, but i think that your HID device doesnt need to be "mounted", only need to be enumerated :P.

Conglats for your report mate!

fareed_xtreme 2010-12-28 08:55

Re: [Announce] USB hostmode beta release
 
I have a question to ask. I came accross a USB Host Adapter on ebay which i thought of purchasing.

http://cgi.ebay.com/USB-2-0-A-F-fema...item19c1672bd4

However the person just said it does not support OTG. Can someone update me if the OTG support is required for it to function?

joerg_rw 2010-12-28 10:01

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by fareed_xtreme (Post 905854)
Can someone update me if the OTG support is required for it to function?

OTG is neither used nor required for h-e-n. Actually no hub supports OTG. OTG means 2 devices can swap host and peripheral role, with a hub in between that's obviously hard to get done. N900 probably can not do OTG either. Actually we had to remove an explicit blocker from OTG heritage in kernel driver, which forbid USB-hubs to work with N900 (this also means your true OTG devices - like N8 - probably won't work with any hub) :-)

This is a absolutely simple hostmode like found on your laptop.

cheers
jOERG

Temporal 2010-12-29 16:34

Re: [Announce] USB hostmode beta release
 
Hi,

May I ask which of these two "configurations", if any of them is correct, should I adopt when charging while in host mode and bme_jr be ready?

http://img641.imageshack.us/img641/8...7220039800.png
http://img34.imageshack.us/img34/902...2200392800.png

Or any would do?
Thanks.

joerg_rw 2010-12-29 21:31

Re: [Announce] USB hostmode beta release
 
Hi Temporal!
Nice drawings :-D actually you're fine with first setup. (the "battery" should read "5V, >500mA" though).
The wire colors are usually
black=minus
red=plus
green/white=D+/-
(see http://en.wikipedia.org/wiki/Usb#Physical_appearance)

cheers
jOERG


All times are GMT. The time now is 15:34.

vBulletin® Version 3.8.8