maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Thread for problems getting USB hostmode working. (https://talk.maemo.org/showthread.php?t=65570)

peterleinchen 2011-03-10 14:24

Re: Thread for problems getting USB hostmode working.
 
Enabling (read-only) ntfs driver?

sudo modprobe ntfs
or
sudo modprobe -a ntfs

M_Scofield 2011-03-10 14:40

Re: Thread for problems getting USB hostmode working.
 
Do I have to install a ntfs driver ? If yes from where can I download it ?
When I try your command It says:

Quote:

user is not in the sudoers file. This insident will be reported.
Thank you !

peterleinchen 2011-03-10 21:06

Re: Thread for problems getting USB hostmode working.
 
@m_scofield
Do not try to sudo as root.
Either as user with sudo or as root
modprobe -a ntfs

This is the ntfs driver, coming with the power kernel (v46), but it is not loaded automatically per default (as normally there is no need for ntfs on a linux device ;))

M_Scofield 2011-03-10 22:13

Re: Thread for problems getting USB hostmode working.
 
I did what you said, this time the error didn't appear but I still have no data in File manager :(

I don't know what to do anymore :(:confused:

peterleinchen 2011-03-10 22:35

Re: Thread for problems getting USB hostmode working.
 
Hmm, are You using standard Nokia file manager?
I do not think, that that this will work at all.

Did You enaple ntfs module prior to starting h-e-n?
You also need to mount as Mohammad said.

NiQ 2011-03-11 00:25

Re: Thread for problems getting USB hostmode working.
 
Hi,
Apparently USB CD-ROM's not working. Here's a dump of the dmesg log:
Code:

hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[  266.855407] usb 1-1: new high speed USB device using musb_hdrc and address 8
[  267.004730] usb 1-1: default language 0x0409
[  267.006408] usb 1-1: uevent
[  267.006622] usb 1-1: usb_probe_device
[  267.006652] usb 1-1: configuration #1 chosen from 1 choice
[  267.006805] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[  267.007080] usb 1-1:1.0: uevent
[  267.007324] libusual 1-1:1.0: usb_probe_interface
[  267.007385] libusual 1-1:1.0: usb_probe_interface - got id
[  267.028289] /home/builder2/maemo-fremantle-armel-extras-devel/work/kernel-power-2.6.28/drivers/usb/core/inode.c: creating file '008'
[  267.029022] usb 1-1: New USB device found, idVendor=13fd, idProduct=0842
[  267.029052] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  267.029083] usb 1-1: Product: USB Mass Storage Device
[  267.029113] usb 1-1: Manufacturer: TSSTcorp
[  267.029144] usb 1-1: SerialNumber: SATASLIM00000000000
[  267.029205] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[  267.029266] hub 1-0:1.0: port 1 enable change, status 00000503
[  267.117034] Initializing USB Mass Storage driver...
[  267.117431] usb-storage 1-1:1.0: usb_probe_interface
[  267.117523] usb-storage 1-1:1.0: usb_probe_interface - got id
[  267.120300] scsi0 : SCSI emulation for USB Mass Storage devices
[  267.122741] usbcore: registered new interface driver usb-storage
[  267.122802] USB Mass Storage support registered.
[  267.127136] usb-storage: device found at 8
[  267.127166] usb-storage: waiting for device to settle before scanning
[  272.122009] usb-storage: device scan complete
[  272.123260] scsi 0:0:0:0: CD-ROM            TSSTcorp USB Mass Storage 6.17 PQ: 0 ANSI: 0

The device is identified but no /dev/sr0 is created (possibly a kernel issue?)

Here's a dmesg log for comparison taken from a Debian machine when connecting the save drive to it:
Code:

[  39.996064] usb 1-3: new high speed USB device using ehci_hcd and address 4
[  40.129005] usb 1-3: New USB device found, idVendor=13fd, idProduct=0842
[  40.129008] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  40.129010] usb 1-3: Product: USB Mass Storage Device
[  40.129012] usb 1-3: Manufacturer: TSSTcorp
[  40.129014] usb 1-3: SerialNumber: SATASLIM00000000000
[  40.129111] usb 1-3: configuration #1 chosen from 1 choice
[  40.213776] Initializing USB Mass Storage driver...
[  40.213878] scsi4 : SCSI emulation for USB Mass Storage devices
[  40.214014] usbcore: registered new interface driver usb-storage
[  40.214017] USB Mass Storage support registered.
[  40.214096] usb-storage: device found at 4
[  40.214097] usb-storage: waiting for device to settle before scanning
[  45.212158] usb-storage: device scan complete
[  45.212655] scsi 4:0:0:0: CD-ROM            TSSTcorp CDDVDW SE-S084C  TS01 PQ: 0 ANSI: 0
[  45.221146] sr1: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[  45.221765] sr 4:0:0:0: Attached scsi CD-ROM sr1
[  45.223166] sr 4:0:0:0: Attached scsi generic sg2 type 5

Note the last 3 lines (marked as bold) that assign the block device to the drive - They don't exist in the N900 log (even after 5 mins of waiting).
Oh, and yes, the drive is fully powered from an external source.

Thanks!

M_Scofield 2011-03-11 08:58

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by peterleinchen (Post 965325)
Hmm, are You using standard Nokia file manager?
I do not think, that that this will work at all.

Did You enaple ntfs module prior to starting h-e-n?
You also need to mount as Mohammad said.

Yes I am sure, I'm using the default Nokia file manager.

I haven't enabled any ntfs module.:confused: I am so newbie. :mad:
All I did is that I installed the power Kernel (v46), installed h-e-n and typed that you have said (modprobe -a ntfs)

NiQ 2011-03-11 14:07

Re: Thread for problems getting USB hostmode working.
 
OK, apparently the problem of not being able to mount CD-ROMs is due to the modules cdrom.ko, sr_mod.ko and sg.ko being missing from the kernel-power-modules package. I'll try to compile them from source and ask titan to include them in the official package.

peterleinchen 2011-03-11 21:36

Re: Thread for problems getting USB hostmode working.
 
@m_scofield

Okay, let's try one more time.
Power kernel comes with ntfs module, but it needs to be loaded via
modprobe -a ntfs
h-e-n will give You ability to enumerate Your external HDD via USB
start h-e-n, choose speed (most probably full), press VBUS (hopefully Your HDD has external or Y-cable power supply), press enumerate
create a mount point with
mkdir /media/ntfs
now mount the enumerated sda1 manually via
mount -t ntfs /dev/sda1 /media/ntfs -o uid=29999,gid=29999,utf8,dmask=027,fmask=137
You should now be able to browse your ntfs files from within /media/ntfs folder using xterm and ls command
You may also CuteExplorer or FileBox, but not nokia file manager

Hope. this helps and was understandable enough :)

iscio 2011-03-12 09:14

Re: Thread for problems getting USB hostmode working.
 
please help me, I am not able to see a key :-(

Quote:

m [<c01cec9c>] (unlink1+0x108/0x114)
[46999.140167] [<c01ceb94>] (unlink1+0x0/0x114) from [<c01cfc38>] (usb_hcd_unlink_urb+0x9c/0xf8)
[46999.140258] [<c01cfb9c>] (usb_hcd_unlink_urb+0x0/0xf8) from [<c01d0af4>] (usb_kill_urb+0x84/0x14c)
[46999.140319] r7:cfc11d80 r6:cfc11d80 r5:cf0a6000 r4:00000000
[46999.140380] [<c01d0a70>] (usb_kill_urb+0x0/0x14c) from [<c01d1d78>] (usb_start_wait_urb+0x80/0x120)
[46999.140441] r6:00001388 r5:cf0a7e50 r4:00000000
[46999.140502] [<c01d1cf8>] (usb_start_wait_urb+0x0/0x120) from [<c01d1ff8>] (usb_control_msg+0xc4/0xe8)
[46999.140563] [<c01d1f34>] (usb_control_msg+0x0/0xe8) from [<c01cacec>] (hub_port_init+0x3d8/0x634)
[46999.140655] [<c01ca914>] (hub_port_init+0x0/0x634) from [<c01cc3e4>] (hub_events+0x86c/0xe64)
[46999.140716] [<c01cbb78>] (hub_events+0x0/0xe64) from [<c01ce034>] (hub_thread+0x30/0x19c)
[46999.140777] [<c01ce004>] (hub_thread+0x0/0x19c) from [<c006da90>] (kthread+0x54/0x80)
[46999.140838] r6:00000000 r5:c01ce004 r4:00000000
[46999.140899] [<c006da3c>] (kthread+0x0/0x80) from [<c005a950>] (do_exit+0x0/0x7bc)
[46999.140960] r5:00000000 r4:00000000
[46999.140991] ---[ end trace 24f0a7c3bb577e01 ]---
[46999.142608] usb 1-1: khubd timed out on ep0out len=0/0
[46999.349212] usb 1-1: device not accepting address 113, error -110
[46999.349304] hub 1-0:1.0: unable to enumerate USB device on port 1
[46999.349334] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[46999.349365] hub 1-0:1.0: port 1 enable change, status 00000501
[47001.349365] hub 1-0:1.0: hub_suspend
[47001.349456] usb usb1: bus auto-suspend
[47001.349487] musb_bus_suspend 2266: trying to suspend as a_host is_active=1
[47001.349548] usb usb1: bus suspend fail, err -16
[47001.349578] hub 1-0:1.0: hub_resume
[47001.349639] hub 1-0:1.0: port 1: status 0501 change 0000
[47001.349731] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[47001.349792] hub 1-0:1.0: port 1, status 0501, change 0000, 480 Mb/s
[47001.474426] usb 1-1: new high speed USB device using musb_hdrc and address 114
[47006.474365] usb 1-1: khubd timed out on ep0in len=0/64
[47011.474304] usb 1-1: khubd timed out on ep0in len=0/64
[47016.474365] usb 1-1: khubd timed out on ep0in len=0/64
[47016.599426] usb 1-1: device descriptor read/64, error -110
[47021.708526] usb 1-1: khubd timed out on ep0in len=0/64
[47025.622589] twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1
[47026.708557] usb 1-1: khubd timed out on ep0in len=0/64
[47026.833557] usb 1-1: device descriptor read/64, error -71
[47027.067962] usb 1-1: new high speed USB device using musb_hdrc and address 115
[47027.157104] twl4030_usb twl4030_usb: HW_CONDITIONS 0xd0/208; link 2
[47027.193359] usb 1-1: device descriptor read/64, error -71
[47027.427581] usb 1-1: device descriptor read/64, error -71
[47027.661651] usb 1-1: new high speed USB device using musb_hdrc and address 116
[47028.015533] Forced hostmode error: no device attached
[47028.083587] usb 1-1: device not accepting address 116, error -71
[47028.146087] hub 1-0:1.0: unable to enumerate USB device on port 1
[47028.146118] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[47028.146148] hub 1-0:1.0: port 1, status 0501, change 0003, 480 Mb/s
[47028.302459] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501
[47028.427551] usb 1-1: new high speed USB device using musb_hdrc and address 118
[47028.552337] usb 1-1: device descriptor read/64, error -71
[47028.786682] usb 1-1: device descriptor read/64, error -71
[47029.021057] usb 1-1: new high speed USB device using musb_hdrc and address 119
[47029.146057] usb 1-1: device descriptor read/64, error -71
[47029.380706] usb 1-1: device descriptor read/64, error -71
[47029.615051] usb 1-1: new high speed USB device using musb_hdrc and address 120
[47030.036682] usb 1-1: device not accepting address 120, error -71
[47030.161773] usb 1-1: new high speed USB device using musb_hdrc and address 121
[47030.583557] usb 1-1: device not accepting address 121, error -71
[47030.583648] hub 1-0:1.0: unable to enumerate USB device on port 1
[47030.583679] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[47030.583709] hub 1-0:1.0: port 1 enable change, status 00000501
[47033.216430] hub 1-0:1.0: hub_suspend
[47033.216491] usb usb1: bus auto-suspend
[47033.216522] musb_bus_suspend 2266: trying to suspend as a_host is_active=1
[47033.216583] usb usb1: bus suspend fail, err -16
[47033.216613] hub 1-0:1.0: hub_resume
[47033.216674] hub 1-0:1.0: port 1: status 0501 change 0000
[47033.216827] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[47033.216888] hub 1-0:1.0: port 1, status 0501, change 0000, 480 Mb/s
[47033.341339] usb 1-1: new high speed USB device using musb_hdrc and address 122
[47033.466430] usb 1-1: device descriptor read/64, error -71
[47033.700714] usb 1-1: device descriptor read/64, error -71
[47033.935089] usb 1-1: new high speed USB device using musb_hdrc and address 123
[47034.060089] usb 1-1: device descriptor read/64, error -71
[47034.294494] usb 1-1: device descriptor read/64, error -71
[47034.528869] usb 1-1: new high speed USB device using musb_hdrc and address 124
[47034.950714] usb 1-1: device not accepting address 124, error -71
[47035.076324] usb 1-1: new high speed USB device using musb_hdrc and address 125
[47035.497558] usb 1-1: device not accepting address 125, error -71
[47035.497650] hub 1-0:1.0: unable to enumerate USB device on port 1
[47035.497680] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[47035.497711] hub 1-0:1.0: port 1 enable change, status 00000501
[47038.216430] hub 1-0:1.0: hub_suspend
[47038.216522] usb usb1: bus auto-suspend
[47038.216552] musb_bus_suspend 2266: trying to suspend as a_host is_active=1
[47038.216583] usb usb1: bus suspend fail, err -16
[47038.216613] hub 1-0:1.0: hub_resume
[47038.216705] hub 1-0:1.0: port 1: status 0501 change 0000
[47038.216796] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[47038.216857] hub 1-0:1.0: port 1, status 0501, change 0000, 480 Mb/s
[47038.341552] usb 1-1: new high speed USB device using musb_hdrc and address 126
[47038.466461] usb 1-1: device descriptor read/64, error -71
[47038.701019] usb 1-1: device descriptor read/64, error -71
[47038.935363] usb 1-1: new high speed USB device using musb_hdrc and address 127
[47039.060302] usb 1-1: device descriptor read/64, error -71
[47039.294616] usb 1-1: device descriptor read/64, error -71
[47039.528991] usb 1-1: new high speed USB device using musb_hdrc and address 2
[47039.950775] usb 1-1: device not accepting address 2, error -71
[47040.076232] usb 1-1: new high speed USB device using musb_hdrc and address 3
[47040.497711] usb 1-1: device not accepting address 3, error -71
[47040.497802] hub 1-0:1.0: unable to enumerate USB device on port 1
[47040.497833] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[47040.497863] hub 1-0:1.0: port 1 enable change, status 00000501
[47043.218170] hub 1-0:1.0: hub_suspend
[47043.218200] usb usb1: bus auto-suspend
[47043.218231] musb_bus_suspend 2266: trying to suspend as a_host is_active=1
[47043.218261] usb usb1: bus suspend fail, err -16
[47043.218261] hub 1-0:1.0: hub_resume
[47043.218322] hub 1-0:1.0: port 1: status 0501 change 0000
[47043.218353] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[47043.218414] hub 1-0:1.0: port 1, status 0501, change 0000, 480 Mb/s
[47043.341339] usb 1-1: new high speed USB device using musb_hdrc and address 4
[47043.466400] usb 1-1: device descriptor read/64, error -71
[47043.700927] usb 1-1: device descriptor read/64, error -71
[47043.935211] usb 1-1: new high speed USB device using musb_hdrc and address 5
[47044.060211] usb 1-1: device descriptor read/64, error -71
[47044.294616] usb 1-1: device descriptor read/64, error -71
[47044.528961] usb 1-1: new high speed USB device using musb_hdrc and address 6
[47044.950714] usb 1-1: device not accepting address 6, error -71
[47045.075714] usb 1-1: new high speed USB device using musb_hdrc and address 7
[47045.497650] usb 1-1: device not accepting address 7, error -71
[47045.497772] hub 1-0:1.0: unable to enumerate USB device on port 1
[47045.497863] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[47045.497924] hub 1-0:1.0: port 1 enable change, status 00000501
~ $

M_Scofield 2011-03-12 20:54

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by peterleinchen (Post 966045)

I did each step precisely as you told me.

1) modprobe -a ntfs
2) Started h-e-n (my hdd doesn't have external power cable)
3) mount -t ntfs /dev/sda1 /media/ntfs -o uid=29999,gid=29999,utf8,dmask=027,fmask=137

and the following error appeared :mad:

Quote:

Mount: mounting /dev/sda1 on /media/ntfs failed: No such a file or directory
OK I went to /media there was the ntfs and moved to the another directory /dev but there were no "sda1" in it :confused::confused:

peterleinchen 2011-03-12 22:38

Re: Thread for problems getting USB hostmode working.
 
OK, so we have to stop here.
The N900 can deliver only 200 mA and this will never be enough for an external HDD. Without additional power supply You will never see files, respectively a /dev/sda1 device (after enumerating) ....

I was successful with a standard Y cable providing the current with the second USB connector from my laptop (or USB charger).
Or You my try with a powered hub.

NiQ 2011-03-16 14:49

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by NiQ (Post 965763)
OK, apparently the problem of not being able to mount CD-ROMs is due to the modules cdrom.ko, sr_mod.ko and sg.ko being missing from the kernel-power-modules package. I'll try to compile them from source and ask titan to include them in the official package.

Regarding that earlier post I made - confirmed this is due to missing modules. These modules are included in the original h-e-n hostmode kernel (that's how there are a few videos out there showing the N900 play DVD's etc) but they are not included in kernel-power.
The bad news: You cannot transfer the modules from the old hostmode kernel to kernel-power because of symbol differences.
If you try compiling them against kernel-power-headers you will be able to get cdrom.ko and sg.ko to load but not sr_mod.ko, which means that it's as good as nothing.

Only solutions to that problem:
1. Revert back to the original hostmode kernel (and lose all the other unrelated improvements that kernel-power features).
2. Recompile kernel-power and add support for necessary modules (such as CD-ROM). I've written a very thorough guide on how to do that.
3. Since I've already done method 2, I now have a kernel image based on kernel-power 46 with support for CD-ROM drives and DVB dongles. I may upload it and post a download link once I've tested it and am more-or-less confident there are no problems or regressions. If you want it earlier, please send me a PM.

sunny2nisha 2011-03-19 09:41

Re: Thread for problems getting USB hostmode working.
 
plz help me conntecting usb mouse in N900

HEN Application was successfully installed in my phone but when we connect flash drives and keyboard through USB mouse it works but i cannot use mouse its not working plz suggest..............
i am using logitech cordless desktop mk250

Asbahl 2011-03-19 12:52

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by NiQ (Post 968973)
Regarding that earlier post I made - confirmed this is due to missing modules. These modules are included in the original h-e-n hostmode kernel (that's how there are a few videos out there showing the N900 play DVD's etc) but they are not included in kernel-power.
The bad news: You cannot transfer the modules from the old hostmode kernel to kernel-power because of symbol differences.
If you try compiling them against kernel-power-headers you will be able to get cdrom.ko and sg.ko to load but not sr_mod.ko, which means that it's as good as nothing.

Only solutions to that problem:
1. Revert back to the original hostmode kernel (and lose all the other unrelated improvements that kernel-power features).
2. Recompile kernel-power and add support for necessary modules (such as CD-ROM). I've written a very thorough guide on how to do that.
3. Since I've already done method 2, I now have a kernel image based on kernel-power 46 with support for CD-ROM drives and DVB dongles. I may upload it and post a download link once I've tested it and am more-or-less confident there are no problems or regressions. If you want it earlier, please send me a PM.

Guy,

a) I'm using the kernel-power 46-wl1 that has the bleeding-edge WLAN driver for packet injections. It's important remember the source code is shared;

b) I live in Brazil and the digital tv standard here is ISDB not DVB.

There would be some way to add this drive in a kernel-power 46-wl1?

joerg_rw 2011-03-19 21:02

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by NiQ (Post 968973)
Regarding that earlier post I made - confirmed this is due to missing modules. These modules are included in the original h-e-n hostmode kernel (that's how there are a few videos out there showing the N900 play DVD's etc) but they are not included in kernel-power.

Thank you so much for straightening that. I'll go to push PK maintainer to fix this extremely annoying flaw. In the meantime we might consider to host the fixed PK on h-e-n garage.

thanks
jOERG

NiQ 2011-03-21 10:42

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Asbahl (Post 970915)
Guy,

a) I'm using the kernel-power 46-wl1 that has the bleeding-edge WLAN driver for packet injections. It's important remember the source code is shared;

b) I live in Brazil and the digital tv standard here is ISDB not DVB.

There would be some way to add this drive in a kernel-power 46-wl1?

Sure, my custom kernel does not actually include any source changes, only configuration changes (i.e. include the drivers that were missing). It should be possible to recompile kernel-power-wl1 and add these drivers to the configuration as well.

About TV/DVB/ISDB - I have to admit that I've yet to succeed in watching TV through the N900. The driver loads but still doesn't really work with the DVB dongle that I have and there's also the issue of userspace software which may have to be patched and/or recompiled from source. Anyway, the whole watching TV issue is still in its infancy and should not be considered as working by anyone. Adding the kernel drivers for DVB is just a first step in the right direction, therefore I think that your concern is a bit premature. CD/DVD drive / CD writing support is confirmed working, though.
On the second hand, you do have a point here - ISDB support is very new in Linux and AFAIK preliminary support was added to the Linux kernel in version 2.6.32 - which is newer than the version used by N900 (2.6.28). If we want this to happen, we may have to upgrade the N900 to a newer kernel - which is a big project.

Quote:

Originally Posted by joerg_rw (Post 971219)
Thank you so much for straightening that. I'll go to push PK maintainer to fix this extremely annoying flaw. In the meantime we might consider to host the fixed PK on h-e-n garage.

thanks
jOERG

Would really like to see that happening. I'm gonna send cheve my custom kernel for testing today and if he reports no problems I'll send you the binary (no need for sources as the only changes are configuration).

Asbahl 2011-03-21 19:44

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by NiQ (Post 972283)
Sure, my custom kernel does not actually include any source changes, only configuration changes (i.e. include the drivers that were missing). It should be possible to recompile kernel-power-wl1 and add these drivers to the configuration as well.

About TV/DVB/ISDB - I have to admit that I've yet to succeed in watching TV through the N900. The driver loads but still doesn't really work with the DVB dongle that I have and there's also the issue of userspace software which may have to be patched and/or recompiled from source. Anyway, the whole watching TV issue is still in its infancy and should not be considered as working by anyone. Adding the kernel drivers for DVB is just a first step in the right direction, therefore I think that your concern is a bit premature. CD/DVD drive / CD writing support is confirmed working, though.
On the second hand, you do have a point here - ISDB support is very new in Linux and AFAIK preliminary support was added to the Linux kernel in version 2.6.32 - which is newer than the version used by N900 (2.6.28). If we want this to happen, we may have to upgrade the N900 to a newer kernel - which is a big project.


Would really like to see that happening. I'm gonna send cheve my custom kernel for testing today and if he reports no problems I'll send you the binary (no need for sources as the only changes are configuration).

NiQ,

Could you PM with your contact, I have PM do not available to me!

ahbarnasha 2011-03-21 23:31

Re: Thread for problems getting USB hostmode working.
 
hostmode doesn't work for me,

when I try to connect a usb mouse or flash drive sometimes nothing happens and sometimes it says:
"can't mount filesystem" (or something like that, it's translated)

dmesg shows:
... new full speed USB device using musb_hdrc ...

and after that a couple of lines like these:
usb 1-1: khubd timed out on ep0out len=0/0
usb 1-1: khubd timed out on ep0out len=0/64

I've tried different speeds, does anybody know what's wrong here?

Thanks in advance,
AhBarnasha

Schturman 2011-03-22 00:37

Re: Thread for problems getting USB hostmode working.
 
Please Help !
It's my first time for using USB host mode...
After connecting I can see and play files on my SD card by card reader - no problem..
But when I tried to transfer this files to the phone - it's failed all the time... it's procure 10-20% and stops, card reader shuts down.. something like auto unmount.. I tried with another card reader - the same result. Restart the phone did not help...
After that I tried to transfer from SD card to memory card on the phone (it's the first time I put memory card in my phone..), transfer succeeded. Here reveals a new problem..
When I tried to move the file from a memory card in to the phone to one of the folders in MyDocs - I got a message that "you don't have permission, the file system read-only!"..
I was in shock.. I tried to transfer files in MyDocs from one folder to another and I got the same message... and again, restart the phone did not help...
All this stuff I tried with default file manager and with FileBox...
Now I can not do anything with the files - not copy, not move... only running..
What can I do? How I can change this permission ?
Thanks

stlpaul 2011-03-22 01:28

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Schturman (Post 972785)
Please Help !
It's my first time for using USB host mode...
After connecting I can see and play files on my SD card by card reader - no problem..
But when I tried to transfer this files to the phone - it's failed all the time... it's procure 10-20% and stops, card reader shuts down.. something like auto unmount.. I tried with another card reader - the same result. Restart the phone did not help...
After that I tried to transfer from SD card to memory card on the phone (it's the first time I put memory card in my phone..), transfer succeeded. Here reveals a new problem..
When I tried to move the file from a memory card in to the phone to one of the folders in MyDocs - I got a message that "you don't have permission, the file system read-only!"..
I was in shock.. I tried to transfer files in MyDocs from one folder to another and I got the same message... and again, restart the phone did not help...
All this stuff I tried with default file manager and with FileBox...
Now I can not do anything with the files - not copy, not move... only running..
What can I do? How I can change this permission ?
Thanks

Unmount MyDocs partition and fsck it. Or remount it read-write like:

mount -o remount,rw /home/user/MyDocs

Schturman 2011-03-22 12:55

Re: Thread for problems getting USB hostmode working.
 
1 Attachment(s)
Thanks, it's helped..
But when I again tried to transfer file by FileBox, the filebox is stoped and freezed, after restart I got a new look of FileBox (see pic)
After this I tried to transfer with default file manager and it's worked fine. Movie 1.4GB - 3 min, 2.5GB - 4-5 min...
I tried to uninstall and reinstall the FileBox, but it's still with this bad look...
I tried again to transfer by FileBox and again it's stoped work and freezed... I think the problem in FileBox..
Any ideas to fix this ?
Thanks

Schturman 2011-03-23 13:21

Re: Thread for problems getting USB hostmode working.
 
ok.. after "big" reboot, the filebox is loaded correctly..
I think about two things why the filebox not worked:
1) The filebox not like and can't work with usb host mode..
2) The filebox work with root access, and this not compatible to work with usb host mode..

Someone, any ideas ? or why filebox crashed when his work with usb host mode..
Thanks

joerg_rw 2011-03-23 15:06

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Schturman (Post 973867)
ok.. after "big" reboot, the filebox is loaded correctly..
I think about two things why the filebox not worked:
1) The filebox not like and can't work with usb host mode..
2) The filebox work with root access, and this not compatible to work with usb host mode..

Someone, any ideas ? or why filebox crashed when his work with usb host mode..
Thanks

filebox shouldn't even notice it's USB hostmode. That's some other problem unrelated to hostmode, rather it's maybe the filesystem on your memstick that is confusing filebox, or whatever.

/j

Schturman 2011-03-23 15:23

Re: Thread for problems getting USB hostmode working.
 
Thanks..
Today I tried again to transfer the movie from my disk on key to the phone with default file manager and again it's crashed...
Don't know why...

andyt12 2011-03-24 10:13

Re: Thread for problems getting USB hostmode working.
 
From reading the last 19 pages it seems hostmode is working rather well, It looks like most of the issues are user error and not understanding how linux works.

ahbarnasha 2011-03-25 18:27

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by andyt12 (Post 974545)
From reading the last 19 pages it seems hostmode is working rather well, It looks like most of the issues are user error and not understanding how linux works.

do you know what error I'm making?

Quote:

when I try to connect a usb mouse or flash drive sometimes nothing happens and sometimes it says:
"can't mount filesystem" (or something like that, it's translated)

dmesg shows:
... new full speed USB device using musb_hdrc ...

and after that a couple of lines like these:
usb 1-1: khubd timed out on ep0out len=0/0
usb 1-1: khubd timed out on ep0out len=0/64

I've tried different speeds, does anybody know what's wrong here?
ps:
the lights on my flash disk and mouse don't light up

cheve 2011-03-26 02:51

Re: Thread for problems getting USB hostmode working.
 
@ahbarnasha: for USB drive, sometime I have to select umount and then mount again to make it work. Also please note that it was said that you may need to wait for sometime(may be upto 1min.; I don't remember the recommended time) for the system to sort out everything.

In any case, did the log report the name of the manufacturer and product for your USB drive or mouse, if it does then the good news is that h.e.n. is most likely working as design; and the bad news is that there are issue with drivers or other thing in play that is causing you the problem.

good luck,
cheers,

sudarsan_avs 2011-03-26 17:17

Re: Thread for problems getting USB hostmode working.
 
when I try to connect a usb mouse or flash drive sometimes nothing happens and sometimes it says:
"can't connect, no filesystem"

dmesg shows:
... new full speed USB device using musb_hdrc ...

Kernel Message:
usb 1-1: khubd timed out on ep0out len=0/0

I cannot see the pen drive listed on the file manager, but shown in Xarchiver - however while I try to open the pen drive - error: Failed to execute child process "gnome-mount" (no such file or dir)

pls help..

ahbarnasha 2011-03-27 21:45

Re: Thread for problems getting USB hostmode working.
 
1 Attachment(s)
Quote:

Originally Posted by cheve (Post 975909)
@ahbarnasha: for USB drive, sometime I have to select umount and then mount again to make it work. Also please note that it was said that you may need to wait for sometime(may be upto 1min.; I don't remember the recommended time) for the system to sort out everything.

In any case, did the log report the name of the manufacturer and product for your USB drive or mouse, if it does then the good news is that h.e.n. is most likely working as design; and the bad news is that there are issue with drivers or other thing in play that is causing you the problem.

good luck,
cheers,

Hi,

I tried again with my mouse, the manufacurer doesn't show.
when I wait a while it fails to connect and tries again and again.
dmesg shows:
[41385.422760] usb 1-1: device descriptor read/64, error -110

and sometimes a warning with a large trace (I attached one)
then it starts over..

I hope you can help, thanks anyway.

sunny2nisha 2011-03-28 09:48

Re: Thread for problems getting USB hostmode working.
 
OMG it works

biketool 2011-03-29 07:29

Re: Thread for problems getting USB hostmode working.
 
This is a great thread, my USB key loads and mounts out of the box. I am still working on getting my MP3 player to mount properly and USB Ethernet dongle to show as a /dev/eth* net interface both kernel modules load and it appears they just need one or two more things to work. I just need to work my way up the thread a bit.
It would really help if those with successful fixes were posted or linked on the wiki. http://wiki.maemo.org/N900_Hardware_USB_Host

bentech4u 2011-04-03 20:19

Re: Thread for problems getting USB hostmode working.
 
now my problem is with NTFS mounting..

the drive is detected as /dev/sda1.and i mounted with a command

Code:

mount -t ntfs /dev/sda1 /media/ntfs -o uid=29999,gid=29999,utf8,dmask=027,fmask=137
also showing in the file manager

IF i try to paste anything to this drive, then i got an error message like " mounted as read-only" something like that..

please help me friends

Thanks

Bratag 2011-04-04 20:32

Re: Thread for problems getting USB hostmode working.
 
I just connected my nook to my phone. Nook is recognised as a Nook and can be mounted as storage ... freaking sweet.

peterleinchen 2011-04-04 20:37

Re: Thread for problems getting USB hostmode working.
 
Hi bentech4u.
Nothing wrong. You did it right.
This driver is a read-only driver. No chance to get it read-writeable.
Maybe next version of power kernel?

mehdi.gl 2011-04-12 10:28

Re: Thread for problems getting USB hostmode working.
 
Hi everybody.
Please I need help !!!!!!
I installed the kernel power
I installed HEN
I installed extmou


I followed the steps described on the net
BUT
Nothing is working
I tested flash drives, mouse, keyboards etc.....


Please Help me, I'm excited to test the USB HOST MODE feature on my n900

:''(((

mehdi.gl 2011-04-12 10:43

Re: Thread for problems getting USB hostmode working.
 
When I connect a mouse it lights but no cursor
When I connect a keyboard it's as it is not connected
When I connect a flash drive it's as it is not connected

mehdi.gl 2011-04-12 14:42

Re: Thread for problems getting USB hostmode working.
 
Please help me !!

mehdi.gl 2011-04-12 14:48

Re: Thread for problems getting USB hostmode working.
 
This is the message error shown when connecting a mouse for example
Quote:

"Unable to connect, no file system available"

yorkey 2011-04-12 18:38

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by mehdi.gl (Post 986515)
This is the message error shown when connecting a mouse for example

Why would a mouse have a filesystem? You cant store files on your mouse!

MIce and keyboards do not need mounting.


All times are GMT. The time now is 08:11.

vBulletin® Version 3.8.8