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
~ $


All times are GMT. The time now is 01:30.

vBulletin® Version 3.8.8