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)

mveplus 2011-01-26 03:03

Re: [Announce] USB hostmode beta release
 
Thanks Joerg_rw

I'm eager to see the new concept, and especially - for ability to use external power sources for the my power hungry N900 + add ons

You are right, will use udev, for my case :P), as you suggestion

Best regards

bastibasti 2011-01-26 08:57

Re: [Announce] USB hostmode beta release
 
Hi,

when I insert a USB/UART converter, it is recognized (dmesg) but ttyUSB0 is not created.

Any Idea?

mveplus 2011-01-27 02:57

Re: [Announce] USB hostmode beta release
 
1 Attachment(s)
Quote:

Originally Posted by bastibasti (Post 928798)
Hi,

when I insert a USB/UART converter, it is recognized (dmesg) but ttyUSB0 is not created.

Any Idea?

If your device do not use generic usb to serial driver , it will probably do not work, it's not h-e-n fault!
You do not have needed module for your device :)
For me ONLY FTDI chip is working.

For reference see attached file , commented # drivers are not included in present kernel-power 46.

For future problems with that post here, there is special place for that!
If you post there your dmesg log I can try to help.

Regards

bastibasti 2011-01-27 14:18

Re: [Announce] USB hostmode beta release
 
Is there a possibility to download the patched sources that were used for this power-kernel? In that case I can build the module myself.

joerg_rw 2011-01-27 14:34

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by bastibasti (Post 929930)
Is there a possibility to download the patched sources that were used for this power-kernel? In that case I can build the module myself.

t900:~# apt-cache policy kernel-power-source
kernel-power-source:
Installed: (none)
Candidate: 2.6.28-maemo46
Version table:
2.6.28-maemo46 0
500 http://repository.maemo.org fremantle/free Packages
2.6.28-maemo40 0
500 http://repository.maemo.org fremantle/free Packages

t900:~# apt-cache search '.*kernel-power.*'
kernel-power-settings - Tools for the customization of kernel settings
multiboot-kernel-power - Maemo 'kernel-power' configuration for multiboot
uboot-power - Installs u-boot to the kernel area, along with kernel-power-46. RISKY INSTALL. U-Boot boot loader for Maemo 5 PR1.3 w/ kernel-power v46. DO NOT USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING. RISK OF REBOOT LOOPS! MAY EAT YOUR BRAIN. To remove this again, apt-get install --reinstall kernel-power kernel-power-flasher and reboot.
linux-kernel-power-headers - Linux Kernel Headers for development
kernel-power-bootimg - Linux kernel boot image
kernel-power-headers - Linux kernel headers <<<*****
kernel-power - Flashable Linux kernel
kernel-power-flasher - Linux kernel updater for an enhanced Maemo 5 kernel 2.6.28.10
kernel-power-modules - Linux kernel modules
hostmode-gui - h-e-n, hostmode easy now
kernel-flasher-maemo - Please REMOVE this package.
kernel-power-source - Linux kernel-power sources for rx-51 product <<<*****

/j

MohammadAG 2011-01-27 15:44

Re: [Announce] USB hostmode beta release
 
For kernel-power's source use apt-get source kernel-power, kernel-power-source is just a modified package so other packages can depend on it when they're built.

bastibasti 2011-01-28 10:33

Re: [Announce] USB hostmode beta release
 
looks like i have to install the sdk on my pc first, i'm not going to compile this on the mobile phone :-))

Thanks

joerg_rw 2011-01-28 11:51

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by bastibasti (Post 930579)
looks like i have to install the sdk on my pc first, i'm not going to compile this on the mobile phone :-))

Thanks

Though I gave proof of my lack of detailed knowledge about kernel building above, I dare to suspect you don't need to build a whole kernel just to get an additional module compiled. Probably even the kernel-headers should suffice for this task

/j

MohammadAG 2011-01-28 13:14

Re: [Announce] USB hostmode beta release
 
No, it's not your fault actually.
kernel-power's source should build the kernel-power-source package, but doesn't (titan scrapped it for some reason), and that prevented me from sending apps that need compiled modules, so I had to fork the kernel-power-source package separately and update it with each update of kp.

So, yeah, it's not your fault ;)

jsouroufis 2011-01-30 22:37

Re: [Announce] USB hostmode beta release
 
1 Attachment(s)
Hello everyone!

when i first tried h-e-n i worked pretty good, but now since i reflashed my device it only works with a USB Mouse..USB HDDs make a weird sound and it seems like there isn't enought power to start them up..

I really need your help!

joerg_rw 2011-01-30 23:08

Re: [Announce] USB hostmode beta release
 
a reflashing can't alter the power that N900 can provide. It always should be 5V@200mA - only charging battery may improve behaviour in some niche cases.
Plugging in the peripheral after starting VBUS boost sometimes helps.
Honestly, I doubt 200mA ever can be enough to start up any but the smallest HDD, I suggest using a Y-cable and USB PSU, or a selfpowered hub for this

/j

jsouroufis 2011-01-31 00:39

Re: [Announce] USB hostmode beta release
 
Thanks but i tried the same 2.5 HDD and the same USB Sticks with the exact same cables as before with no luck..Could it be Power Kernel's Voltage settings? Though I haven't change anything but the max. freq.

I also tried to connect after startung th VBUS but it keep saying "port 1 not enabled, trying reset again.... ... port 1 not reset yet, waiting 200ms" and it gives "port_wait_reset:err = -16"

Is there anything else i can try?

joerg_rw 2011-01-31 05:34

Re: [Announce] USB hostmode beta release
 
sorry but do I understand it right you OCd your device and now complain h-e-n doesn't work? Maybe even previously with a sane cpu clock and now massively OC'd?
Of course the chip internal interface from cpu to musb-core is susceptible to voltage and clock changes.

bastibasti 2011-01-31 10:00

Re: [Announce] USB hostmode beta release
 
If you had a HDD working before, you were lucky.

I work for an electronics company, and we deliver 500mA and still have problems with most usb drives. (its all up to power)
I have similar issues, sometimes I have to restart the n900 and then it works better.
also I noticed using a powered hub improves stability. I guess thats because the hub handles device speeds, or whatever.


@joerg_rw: regarding my other problem I never stated its anyones fault, just asked for support.

joerg_rw 2011-01-31 10:28

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by bastibasti (Post 932435)
@joerg_rw: regarding my other problem I never stated its anyones fault, just asked for support.

Err, yes. So what? What did I say? How's c&p of apt-cache results making you talk about fault? Or was it my next post that said "probably only headers needed"?

:confused:
/j

jsouroufis 2011-01-31 11:00

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by joerg_rw (Post 932312)
sorry but do I understand it right you OCd your device and now complain h-e-n doesn't work? Maybe even previously with a sane cpu clock and now massively OC'd?
Of course the chip internal interface from cpu to musb-core is susceptible to voltage and clock changes.

I didn't complain about anything, I was just saying that with the same settings as before (same max freq etc) flashing, everything worked pretty good!

And let's assume that with the USB HDD I was lucky..what about the USB sticks? They should be working..at least not giving me that "port" error..

bastibasti 2011-01-31 12:03

Re: [Announce] USB hostmode beta release
 
Sorry maybe I offended you. Didnt mean that.

One quick question: did the power kernel get installed with the h-e-n or did I do that and just cant remember that I did it?

rebelnoob 2011-01-31 19:13

Re: [Announce] USB hostmode beta release
 
any update coming to the beta?

istota 2011-02-02 01:22

Re: [Announce] USB hostmode beta release
 
hi please help
what's the problm? after connecting the dvd-rom I go into the kernel messages and no calculations on the sr0.
I have a kernel power in 45, and additions MohammadAG to handle cd-rom
my kernel

[ 5162.718414] USB Mass Storage support registered.
[ 5162.721343] usb-storage: device found at 3
[ 5162.721374] usb-storage: waiting for device to settle before scanning
[ 5167.715332] usb-storage: device scan complete
[ 5167.716674] scsi 0:0:0:0: CD-ROM TSSTcorp CDDVDW SE-T084M TD00 PQ: 0 ANSI: 0

Thank you

pavi.kant 2011-02-05 16:14

Re: [Announce] USB hostmode beta release
 
I am using PowerKernel v46 multibooted with Nitdroid Ginderbread and the omap pr1.3 Kernel i installed the h-e-n software and bought the female to female converter...i am trying to connect a transcend 4gb flash drive with fat32 file system.
I run the device at high speed. nothing happens. some times when i open file manager it says no filesystem found(this is a rarity... most of the times nothing happens at all).
could someone suggest what might be going wrong?... any help will be appreciated...

EDIT: i also tried different speeds... nothing happens

haffid 2011-02-06 20:40

Re: [Announce] USB hostmode beta release
 
hi anyone can help me im using PowerKernel v46 and the omap pr1.3 Kernel i installed the h-e-n software and bought the female to female converter...i am trying to connect a kingston data traveler 2gb flash drive with fat32 file system.
I run the device at high speed. nothing happens. some times when i open file manager it says no filesystem found(this is a rarity... most of the times nothing happens at all).
can you suggest what might be going wrong?... any help will be appreciated...

NOMIOMI 2011-02-07 13:15

Re: [Announce] USB hostmode beta release
 
can i connect mouse keyboard printer scanner imean every usb port device to my n900?????????

joerg_rw 2011-02-07 13:48

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by NOMIOMI (Post 938100)
can i connect mouse keyboard printer scanner imean every usb port device to my n900?????????

Yes you can!!!!!!!!!!!!!!!

Nnet 2011-02-07 14:28

Re: [Announce] USB hostmode beta release
 
Hello I have problem with one flash drive. I dont know why...
One flash drive with FAT16 work well. External HDD with NTFS work well but This 4GB flash with FAT32 do not.

I dont know why but kernel do not mount this drive like sda1 :confused:

Here is Kernel export:

[ 9356.581268] usb 1-1: New USB device found, idVendor=058f, idProduct=6387
[ 9356.581329] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9356.581359] usb 1-1: Product: Mass Storage
[ 9356.581390] usb 1-1: Manufacturer: USB
[ 9356.581420] usb 1-1: SerialNumber: 1F62ABCB
[ 9356.581451] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 9356.581542] hub 1-0:1.0: port 1 enable change, status 00000503
[ 9356.720764] Initializing USB Mass Storage driver...
[ 9356.721160] usb-storage 1-1:1.0: usb_probe_interface
[ 9356.721252] usb-storage 1-1:1.0: usb_probe_interface - got id
[ 9356.724273] scsi0 : SCSI emulation for USB Mass Storage devices
[ 9356.739410] usbcore: registered new interface driver usb-storage
[ 9356.739532] USB Mass Storage support registered.
[ 9356.751098] usb-storage: device found at 2
[ 9356.751129] usb-storage: waiting for device to settle before scanning
[ 9361.752319] usb-storage: device scan complete
[ 9361.753753] scsi 0:0:0:0: Direct-Access USB USB 2.0 Flash 8.07 PQ: 0 ANSI: 2
[ 9361.766571] sd 0:0:0:0: [sda] 7946240 512-byte hardware sectors: (4.06 GB/3.78 GiB)
[ 9361.766876] sd 0:0:0:0: [sda] Write Protect is off
[ 9361.766876] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 9361.766906] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 9361.771240] sd 0:0:0:0: [sda] 7946240 512-byte hardware sectors: (4.06 GB/3.78 GiB)
[ 9361.771514] sd 0:0:0:0: [sda] Write Protect is off
[ 9361.771545] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 9361.771575] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 9361.771606] sda:
[ 9362.093078] sd 0:0:0:0: [sda] Attached SCSI removable disk

joerg_rw 2011-02-07 15:08

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Nnet (Post 938154)
Hello I have problem with one flash drive. I dont know why...
One flash drive with FAT16 work well. External HDD with NTFS work well but This 4GB flash with FAT32 do not.

I dont know why but kernel do not mount this drive like sda1 :confused:

Here is Kernel export:

[ 9356.581268] usb 1-1: New USB device found, idVendor=058f, idProduct=6387
[ 9356.581329] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9356.581359] usb 1-1: Product: Mass Storage
[ 9356.581390] usb 1-1: Manufacturer: USB
...
[ 9362.093078] sd 0:0:0:0: [sda] Attached SCSI removable disk

Please take it to problems thread. h-e-n obviously works flawlessly.
See post #9
((nevertheless a hint: it seems it's detecting a superfloppy (sda) instead of proper partition (sda1) ))

thanks
/j

NOMIOMI 2011-02-07 16:18

Re: [Announce] USB hostmode beta release
 
when i connect the wireless 2.4 ghz mouse ((((not bluetooht mouse))) with n900 after few moments its says that unable to connect no file system available any solution plz???

joerg_rw 2011-02-07 16:41

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by NOMIOMI (Post 938216)
when i connect the wireless 2.4 ghz mouse ((((not bluetooht mouse))) with n900 after few moments its says that unable to connect no file system available any solution plz???

Please take it to problems thread. h-e-n seems to work flawlessly (though without any better data from your side... :-/ ).
See post #9
((nevertheless a hint: it seems a mouse HAS NO filesystem))

thanks
/j

PS: PLZ = PostLeitZahl, and ??? is not a valid regex. I.E. it's much appreciated if you try to not sound like a luser (see http://www.catb.org/~esr/faqs/smart-questions.html)

pavi.kant 2011-02-07 18:23

Re: [Announce] USB hostmode beta release
 
1 Attachment(s)
I am using PowerKernel v46 multibooted with Nitdroid Ginderbread and the omap pr1.3 Kernel i installed the h-e-n software and bought the female to female converter...i am trying to connect a transcend 4gb flash drive with fat32 file system.
I run the device at high speed. nothing happens. some times when i open file manager it says no filesystem found(this is a rarity... most of the times nothing happens at all).
could someone suggest what might be going wrong?... any help will be appreciated...

EDIT: i also tried different speeds... nothing happens

EDIT: Find my Kernel messages attached

@joerg: u asked me to move the post from that problems thread... here it is :) please help

joerg_rw 2011-02-07 18:59

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by pavi.kant (Post 938314)
...

EDIT: Find my Kernel messages attached

@joerg: u asked me to move the post from that problems thread... here it is :) please help

Sorry this log has truncated head so is mostly useless to analyze what's going on. Please provide full syslog file, at very least starting from before starting h-e-n GUI

I'm about to look into the issue, but so far suggestions from other team members were like "he should use a proper cable - it worked for everybody else". So without full log that shows where problem *starts* not where it finally aborts, it's hard to open up a decent effort for fixing anything there.

many thanks for reporting
/j

pavi.kant 2011-02-07 19:16

Re: [Announce] USB hostmode beta release
 
1 Attachment(s)
Quote:

Originally Posted by joerg_rw (Post 938331)
Sorry this log has truncated head so is mostly useless to analyze what's going on. Please provide full syslog file, at very least starting from before starting h-e-n GUI
/j

i dont have my usb female to female converter with me at the moment.. however i opened up h-e-n and am attaching the kernel messages that came up... hope this gives u all the req. headers.

Quote:

Originally Posted by joerg_rw (Post 938331)
I'm about to look into the issue, but so fa r suggestions from other team members were like "he should use a proper cable - it worked for everybody else".
/j

I am using the stock nokia cable for micro usb to USB(male) conversion.

Quote:

Originally Posted by joerg_rw (Post 938331)
i So without full log that shows where problem *starts* not where it finally aborts, it's hard to open up a decent effort for fixing anything there.

many thanks for reporting
/j

thank you man for helping me make this work :)

joerg_rw 2011-02-07 21:37

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by pavi.kant (Post 938344)
i dont have my usb female to female converter with me at the moment.. however i opened up h-e-n and am attaching the kernel messages that came up... hope this gives u all the req. headers.

No, sorry, this is absolutely useless, it has everything until the point where it starts getting interesting. The part missing is what follows in log starting from end of this log when the actual problem with h-e-n connecting happens, until - and including - the trailing part you posted before.

Honestly we can't debug a problem from a log taken when the problem doesn't happen. What's needed is a full log of an example of the problem, not an arbitrary log of system startup until the point where we would start to get into trouble and then stopping there.

/j

pavi.kant 2011-02-07 22:04

Re: [Announce] USB hostmode beta release
 
3 Attachment(s)
Quote:

Originally Posted by joerg_rw (Post 938427)
No, sorry, this is absolutely useless, it has everything until the point where it starts getting interesting. The part missing is what follows in log starting from end of this log when the actual problem with h-e-n connecting happens, until - and including - the trailing part you posted before.

Honestly we can't debug a problem from a log taken when the problem doesn't happen. What's needed is a full log of an example of the problem, not an arbitrary log of system startup until the point where we would start to get into trouble and then stopping there.

/j

sorry for the patchy posts. please find attached the complete log in the attachments
hope you can help
thanks

freemangordon 2011-02-07 22:19

Re: [Announce] USB hostmode beta release
 
Sorry for OT but message "HWRecoveryResetSGX: SGX Hardware Recovery triggered" seen in your logs should remind you to
1. Lower your max CPU/DSP overclock (if your n900 is overclocked) or raise voltages
2. Power cycle it (with removing battery before power-up just in case)

and the message "Maybe the USB cable is bad?" probably means something. What is your F/F USB adapter?

joerg_rw 2011-02-07 22:44

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by pavi.kant (Post 938445)
sorry for the patchy posts. please find attached the complete log in the attachments
hope you can help
thanks

I see it's hard to get a complete log from dmesg. Sorry my fault.

Please
install sysklogd, [ apt-get install sysklogd ]
reboot,
check if you got a proper /var/log/syslog file [ tail /var/log/syslog ]
start h-e-n,
if you bother, insert a note about the fact to syslog [ logger '###########h-e-n gui started#######' ]
plug in your problematic device,
click speed, vbus in h-e-n GUI
if you bother, insert a note about the fact to syslog [ logger '###########h-e-n vbus clicked#######' ]
wait 15 seconds
click enumerate in h-e-n GUI
wait another 15 sec
close h-e-n
send the file here [ cp /var/log/syslog someplace/h-e-n_syslog.txt; attach someplace/h-e-n_syslog.txt to a post here ]

don't forget to reset the syslog file every now and then ( once a week? [ echo >/var/log/syslog ]), or uninstall sysklogd pkg eventually. If you don't either, your rootfs will fill up eventually, that's not a good thing long term.

Thanks again for helping with this, and sorry for my lack to notice what's the problem with those logs.

cheers
jOERG

F2thaK 2011-02-08 12:08

Re: [Announce] USB hostmode beta release
 
want to know if anyones got a wireless mouse or keyboard working. ive tried it with no luck..

joerg_rw 2011-02-08 12:17

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by f2thak (Post 938870)
want to know if anyones got a wireless mouse or keyboard working. ive tried it with no luck..

Please read complete problems thread, there are reports about success.
please read post #9 http://talk.maemo.org/showthread.php...309#post866309

((hint: a wireless mouse and kbd usually isn't much different to a cable variant))

Thanks
/j

5spdvl 2011-02-08 12:30

Re: [Announce] USB hostmode beta release
 
Sorry to see the thread getting OT with h-e-n "problems", joerg_rw.

I'm curious to know how progress is going on jrbme? :)

F2thaK 2011-02-08 12:51

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by joerg_rw (Post 938879)
Please read complete problems thread, there are reports about success.
please read post #9

((hint: a wireless mouse and kbd usually isn't much different to a cable variant))

Thanks
/j


ummm??? here?
http://talk.maemo.org/showpost.php?p=872646&postcount=9

istota 2011-02-09 16:14

Re: [Announce] USB hostmode beta release
 
GREETS AGAIN.
I have a question for which no one anywhere I can not answer.
As you can see it is possible (http://www.youtube.com/watch?v=zDzUG-bno6Q ) I have the same dvd-rom.
I have a kernel-power in 45, and additions to handle MohammadAG cd-rom.
information to the kernel.

[5162.718414] USB Mass Storage support registered.
[5162.721343] usb-storage: device found at 3
[5162.721374] usb-storage: waiting for device to settle before scanning
[5167.715332] usb-storage: device scan complete
[5167.716674] scsi 0:0:0:0: CD-ROM TSSTcorp CDDVDW SE-T084M TD00 PQ: 0 ANSI: 0
NO dev/sr0
Where should I look for and ask nowhere and interest solution to this issue.

THANK YOU GREETS

pavi.kant 2011-02-10 15:25

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by joerg_rw (Post 938470)
I see it's hard to get a complete log from dmesg. Sorry my fault.

Please
install sysklogd, [ apt-get install sysklogd ]
reboot,
check if you got a proper /var/log/syslog file [ tail /var/log/syslog ]
start h-e-n,
if you bother, insert a note about the fact to syslog [ logger '###########h-e-n gui started#######' ]
plug in your problematic device,
click speed, vbus in h-e-n GUI
if you bother, insert a note about the fact to syslog [ logger '###########h-e-n vbus clicked#######' ]
wait 15 seconds
click enumerate in h-e-n GUI
wait another 15 sec
close h-e-n
send the file here [ cp /var/log/syslog someplace/h-e-n_syslog.txt; attach someplace/h-e-n_syslog.txt to a post here ]

don't forget to reset the syslog file every now and then ( once a week? [ echo >/var/log/syslog ]), or uninstall sysklogd pkg eventually. If you don't either, your rootfs will fill up eventually, that's not a good thing long term.

Thanks again for helping with this, and sorry for my lack to notice what's the problem with those logs.

cheers
jOERG


Hey! sorry for my long absence... i got a new usb hub... it WORKED :)... still need some help though... i tried a USB Flash drive.. the kernel messages show the device with correct volume and everythig :) but its not mounting the device on my file manager or even on cuteexplorer...
Thanks so much for all your help!


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

vBulletin® Version 3.8.8