![]() |
n770 host mode question!!!
Hello all,
I have some problems here to have my n770 work in host mode. I have been reading threads and bought the cables and devices supposed to work with n770 in host mode but ran into the same problem brought in the thread: http://www.internettablettalk.com/fo...ight=host+mode b4 I post the dmesg I had, let me give you some information what I had in my hand. I have the n770 (for sure) , a USB Y cable (which is supposed to provide power upsteam), a powered USB hub (does it matter which one I have? I got a nEXXTECH one in TheSource Canada . And I have a digital camera. I dont have the driver for the camera yet but I assume even I dont connect the camera to the usb hub, the n770 should detect the usb hub in host mode. However, I use the "becomeroot" tool to gainroot and do the following: echo host > /sys/devices/platform/tahvo-usb/otg_mode /etc/init.d/ke-recv restart I got the following for the dmesg: (last line states "Selected HOST mode: no host controller, powering off.", does it also mean that it cannot detect the hub?). I wonder if it is normal for me not having a device connect to the hub and not having the driver for that device on n770. 00-0x00080000 : "config" [ 3.039978] 0x00080000-0x00280000 : "kernel" [ 3.041473] 0x00280000-0x00480000 : "initfs" [ 3.042907] 0x00480000-0x08000000 : "root" [ 3.044372] udc: OMAP UDC driver, version: 4 October 2004 [ 3.045135] udc: OMAP UDC rev 6.1, Mini-AB [ 3.045257] udc: hmc mode 16, tahvo-usb transceiver [ 3.045410] udc: fifo mode 0, 1832 bytes not used [ 3.046173] mice: PS/2 mouse device common for all mice [ 3.046783] OMAP Keypad Driver [ 3.048034] input: omap-keypad as /class/input/input1 [ 3.049255] ads7846 spi2.0: touchscreen, irq 175 [ 3.050689] input: ADS784x Touchscreen as /class/input/input2 [ 3.055175] Advanced Linux Sound Architecture Driver Version 1.0.11rc2 (Wed Jan 04 08:57:20 2006 UTC). [ 3.056427] ALSA device list: [ 3.056549] No soundcards found. [ 3.056610] Netfilter messages via NETLINK v0.30. [ 3.057220] NET: Registered protocol family 2 [ 3.123504] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 3.124847] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 3.125213] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 3.125549] TCP: Hash tables configured (established 4096 bind 4096) [ 3.125640] TCP reno registered [ 3.125885] ip_tables: (C) 2000-2006 Netfilter Core Team [ 3.200653] TCP bic registered [ 3.200897] NET: Registered protocol family 1 [ 3.201049] NET: Registered protocol family 17 [ 3.201202] Bluetooth: L2CAP ver 2.8 [ 3.201293] Bluetooth: L2CAP socket layer initialized [ 3.201477] Bluetooth: RFCOMM socket layer initialized [ 3.201629] Bluetooth: RFCOMM TTY layer initialized [ 3.201721] Bluetooth: RFCOMM ver 1.7 [ 3.201812] Bluetooth: HIDP (Human Interface Emulation) ver 1.1 [ 3.201934] Disabling unused clock "uart3_ck"... done [ 3.202026] Disabling unused clock "uart1_ck"... done [ 3.202117] FIXME: Clock "tc2_ck" seems unused [ 3.202209] Skipping reset check for DSP domain clock "dsptim_ck" [ 3.202331] Skipping reset check for DSP domain clock "dspxor_ck" [ 3.202423] Skipping reset check for DSP domain clock "dspper_ck" [ 3.202545] FIXME: Clock "ck_dpll1out" seems unused [ 3.203338] Bootup reason: pwr_key [ 3.203491] OMAP GPIO switch handler initializing [ 3.206817] headphone (GPIO 14) is now disconnected [ 3.206939] speaker (GPIO 58) is now disconnected [ 3.207061] prot_shell (GPIO 5) is now open [ 3.207122] bat_cover (GPIO 12) is now closed [ 3.207397] OMAP Random Number Generator ver. 40 [ 3.207885] 128 words of entropy generated [ 3.261627] mmcblk0: mmc0:0001 000000 62720KiB [ 3.262268] mmcblk0: p1 [ 3.267272] mmci-omap mmci-omap.2: cover is now closed [ 3.491973] Empty flash at 0x001cf0c8 ends at 0x001cf800 [ 3.510955] VFS: Mounted root (jffs2 filesystem). [ 3.511444] Freeing init memory: 92K [ 4.897735] tahvo: Registering interrupt 7 for device [ 4.898529] retu: Registering interrupt 8 for device [ 4.900817] retu: Registering interrupt 1 for device [ 4.901275] tahvo: Registering interrupt 1 for device [ 5.002685] Selected PERIPHERAL mode: no gadget driver, powering off. [ 5.424133] umac: module license 'Proprietary' taints kernel. [ 5.654876] CX3110x chip variant: STLC4370 [ 5.780822] CX3110x: firmware version: 2.13.0.0.a.13.14 [ 5.781036] Loaded CX3110x driver, version 0.8 [ 14.102844] Argh. No free space left for GC. nr_erasing_blocks is 0. nr_free_blocks is 0. (erasableempty: yes, erasingempty: yes, erasependingempty: yes) [ 14.103088] No space for garbage collection. Aborting GC thread [ 23.847869] omapdsp: mapping in ARM MMU, v=0xe0fff000, p=0x13c00000, sz=0x1000 [ 23.896148] omapdsp: mapping in ARM MMU, v=0xe0100000, p=0x12b00000, sz=0x100000 [ 23.896514] omapdsp: mapping in ARM MMU, v=0xe0200000, p=0x12a00000, sz=0x100000 [ 23.896881] omapdsp: mapping in ARM MMU, v=0xe0028000, p=0x1336a000, sz=0x1000 [ 23.897033] omapdsp: frame buffer export [ 23.897064] omapdsp: mapping in ARM MMU, v=0xe0300000, p=0x13d00000, sz=0x100000 [ 23.897247] omapfb_notifier_cb(): event = READY [ 23.897338] omapfb_register_client(): success [ 23.897583] omapdsp: mapping in ARM MMU, v=0xe0400000, p=0x12900000, sz=0x100000 [ 23.897796] omapdsp: mapping in ARM MMU, v=0xe0500000, p=0x12420000, sz=0x10000 [ 23.897888] omapdsp: mapping in ARM MMU, v=0xe0510000, p=0x12410000, sz=0x10000 [ 23.897979] omapdsp: mapping in ARM MMU, v=0xe0520000, p=0x12400000, sz=0x10000 [ 23.898071] omapdsp: mapping in ARM MMU, v=0xe0530000, p=0x128f0000, sz=0x10000 [ 23.898132] omapdsp: mapping in ARM MMU, v=0xe0540000, p=0x128e0000, sz=0x10000 [ 23.898223] omapdsp: mapping in ARM MMU, v=0xe0550000, p=0x128d0000, sz=0x10000 [ 23.898315] omapdsp: mapping in ARM MMU, v=0xe0560000, p=0x12440000, sz=0x10000 [ 23.898406] omapdsp: mapping in ARM MMU, v=0xe0570000, p=0x12450000, sz=0x10000 [ 24.310882] omapdsp: IPBUF configuration [ 24.310913] 512 words * 16 lines at 0xe0200000. [ 24.311157] omapdsp: found 4 task(s) [ 24.311431] omapdsp: task 0: name pcm0 [ 24.312042] omapdsp: taskdev pcm0 enabled. [ 24.320739] omapdsp: task 1: name pcm1 [ 24.321258] omapdsp: taskdev pcm1 enabled. [ 24.330474] omapdsp: task 2: name avsync [ 24.330993] omapdsp: taskdev avsync enabled. [ 24.340026] omapdsp: task 3: name audiopp [ 24.340545] omapdsp: taskdev audiopp enabled. [ 24.920013] hci_cmd_task: hci0 command tx timeout [ 24.920135] brf6150: Frame for non-running device [ 25.460632] aic23 powering up [ 25.465362] aic23_init_power() done [ 25.851348] omapdsp: mmap info: vmadr = 40016000, padr = 12930000, len = 2000 [ 28.232452] aic23 powering down [ 38.117523] aic23 powering up [ 38.122070] aic23_init_power() done [ 44.677703] aic23 powering down [ 51.075134] aic23 powering up [ 51.079925] aic23_init_power() done [ 51.084350] omapdsp: mmap info: vmadr = 40016000, padr = 12910000, len = 2000 [ 53.474639] aic23 powering down [ 71.352020] JFFS2 notice: (331) read_dnode: header CRC failed on node at 0x6e067c0: read 0xffffffff, calculated 0x8d861479 [ 81.032165] JFFS2 notice: (331) check_node_data: wrong data CRC in data node at 0x077e8800: read 0x56c180cd, calculated 0x97653181. [ 159.481597] hwa742: setting update mode to disabled [ 159.481628] omapfb_notifier_cb(): event = DISABLED [ 250.454437] hwa742: setting update mode to manual [ 250.454498] omapfb_notifier_cb(): event = READY [ 250.520538] aic23 powering up [ 250.525054] aic23_init_power() done [ 254.466796] aic23 powering down [ 255.016479] Loading 3825.arm firmware [ 255.203552] (c)opyright 2004 Conexant [ 255.203613] [ 255.203643] build info: PRISM SoftMAC [ 255.203674] creator: [kvalo] [ 255.203704] date: [06/09/18-20:01] [ 255.203704] [ 255.217742] CX3110x: MAC address 00:14:a7:fa:2b:0b [ 255.253021] No power saving [ 259.201507] Scan complete, scanned 11 channels [ 259.264526] Full PSM [ 259.328155] No power saving [ 260.850463] Scan complete, scanned 11 channels [ 260.893127] Full PSM [ 260.920623] No power saving [ 263.039031] Dynamic PSM [ 263.039123] PSM timeout 1000 ms [ 372.224670] hwa742: setting update mode to disabled [ 372.224700] omapfb_notifier_cb(): event = DISABLED [ 394.788696] USB cable connected [ 394.823272] hwa742: setting update mode to manual [ 394.823364] omapfb_notifier_cb(): event = READY [ 395.604064] g_file_storage gadget: File-backed Storage Gadget, version: 20 October 2004 [ 395.604187] g_file_storage gadget: Number of LUNs=1 [ 395.604278] g_file_storage gadget-lun0: ro=0, file: /dev/mmcblk0 [ 395.604705] USB cable connected [ 426.703460] Selected HOST mode: no host controller, powering off. Thank you so much. Regards, |
Re: n770 host mode question!!!
I'm not 100%, but if it can't see the host controller, me thinks there's no power going to the device. Have you got a multimeter you can check the leads with to see if you've got the 5 volts required?
I've gotten hostmode to work but did something different. I toggled one of the R&D flags (I *think* it was --usbhostmodeenable or something) and built a USB hub. You can make one for about $12CDN from The Source (aka Radio Shack). I got a small project kit case which came with a breadboard and bought a voltage converter. Not very efficient but it works great. |
Re: n770 host mode question!!!
I think I have power to go to the n770.
I tried to connect the mini head of the Y cable to a mp3 player instead of the n770, the player turns into usb mode, so I assume there are enough power to go to the mini head. (btw, I dont have proper tools at house to test it). So any other hints? |
Re: n770 host mode question!!!
Quote:
|
Re: n770 host mode question!!!
I had the same problem. The only solution, as far as I can tell, is to use Flasher with the --enable-rd-mode and --enable-usb-host-mode switches. Then everything will work as it is supposed to (I promise! :D), including on-the-fly switching between modes.
Somewhere on these forums there is the underlying cause for this: the USB controller has to be switched to host/peripheral mode on system startup, something that can only be done via the method I mentioned above. If you do not have a Linux box, I suggest booting Damn Small Linux off a CD--worked very well for me. For more information on Flasher: http://maemo.org/maemowiki/Flasher_t...1c3b8c3a755f78 Hope this helps! |
Re: n770 host mode question!!!
One other note; Your mp3 player is going into USB slavemode because it's having 5v supplied to it... the non-standard part of the equation is the 5v that has to go to the 770 as a host. Normally the USB host supplies the 5V itself, not so with the 770.
|
Re: n770 host mode question!!!
I read that most ppl successfully work in host mode using the Flasher tool, but I am just concerning if it is safe to do so. I read some threads saying that someppl kill their n770 while going to the R&D mode.
Also it seems like it would be easier if i can do the echo command rather than using the flasher tools. So the conclusion is that I really have to use the flasher tool? |
Re: n770 host mode question!!!
Quote:
I am not too sure of it. Waht I did is, with the usb Y cable, one AM head connects to the upstream port of the usb hub (for data transfer?), one AM head connects to the downstream port (for power?), and the mini head connect to the mp3 player. By doing this the mp3 player turns to the USB mode, this is the reason I am thinking there are enough power to go upsteam to the mp3 player. So if I connect the n770 instead of the mp3 player to the mini head, I suppose there are power going to it. Again, I dont have the proper tools to test the voltage on the mini head. |
Re: n770 host mode question!!!
Quote:
You need to insert some kernel modules. This is what linuxrc script does when it detects host mode flasher flag on boot. |
Re: n770 host mode question!!!
Quote:
Sorry, I dont mean to ignore your suggestion. I am pretty new to Linux system and I dont have any idea how to check those things and set them up in 770 without detail instruction :( (yes I know I should learn more linux skill) |
Re: n770 host mode question!!!
Heh, everyone's new at some point. You should've seen the colossal screwups I'd make when I was playing with Slackware Linux years ago. Personally I didn't have a problem enabling R&D mode or USBHostMode... but I'm not everyone. I'd still say odds are better that you won't brick your 770. Also, once in hostmode, you have to flash back to slavemode which is a major pain... but if you install the CIFS module, you can just xfer files over wireless from your network.
There's lots of pros and cons for each way, but about the only method I could really help you with is with building your own USB power injector. Also, once you finally *do* get hostmode working, mounting external storage, memory cards, etc is a bit too much of a pain to do it all the time. My injector's been sitting unused for a while now. |
Re: n770 host mode question!!!
fanoush: Interesting! Was this said anywhere else? I must have missed it completely :)
In my case, I prefer having host mode enabled as default, but that's just me I guess. |
Re: n770 host mode question!!!
Quote:
Code:
FS_MODULES="ext2 jbd mbcache ext3"Code:
load_usb_host_modules()Code:
usb_host_mode=$(cal-tool --get-usb-host-mode 2> /dev/null)Code:
insmod /mnt/initfs/lib/modules/current/ohci-hcd.koAnd then enabling the host mode via echo command. But as you said you want to attach camera and don't have driver, it may be a bit pointless anyway :-) |
Re: n770 host mode question!!!
I do something just like this. On script to mount and one to unmount
|
Re: n770 host mode question!!!
Quote:
Thank you so much, its very kind of you giving me this information. Currently I really dont have the camera driver yet but I will have one soon. At the moment I only want the n770 detect the usb hub first. |
Re: n770 host mode question!!!
Quote:
Quote:
Code:
[426.703460] Selected HOST mode: no host controller, powering off. |
Re: n770 host mode question!!!
One other thing. I am not an expert in any IT or electronics related field, but from my own post-mortem of the WSOD I suffered I have come to the following conclusion: Windows XP + vmWare workstation 5 + Ubuntu + Flasher = bad idea. For some reason vmWare throws a blue screen of death (heh) on XP whenever Flasher is used. This may cause the Windows PC to send some sort of signal on the USB lines, interrupting the rebooting of the 770 and causing a WSOD. This info does not really belong here I guess, but I just wanted to warn others so that they may not go through the same experience...
|
Re: n770 host mode question!!!
Quote:
|
Re: n770 host mode question!!!
That was close :-)
Try using Damn Small Linux (~50 Mb download) as I said earlier. I have had some trouble getting it to read my USB stick, but if I start it up with the stick inside the USB port it seems to read it without any problems. OTOH, some people used vmWare without any problems. Maybe it's version 5 that was the problem. I would not risk it though! |
Re: n770 host mode question!!!
to all-
I tried the method "fanoush" suggested and load those drivers b4 using the echo commands and looks like it worked. I can detect the usb hub now!!! Thanks so much. btw, do anybody has a driver file (.ko) for logitech quickcam express? (http://qce-ga.sourceforge.net/#download) I dont know why in my VMware Ubuntu I dont have the necessary tools to "make" the driver. I tried updating and it seems like there is no "gcc-3.4" command there (but my gcc should be version 3.4, so I am not too sure how to fix it). All in all, thank you so much for all your supports. |
Re: n770 host mode question!!!
hmm, I finally made the driver on Ubuntu (.ko and .o) file, but its not running on n770 and throws error. Do I need to make the driver on n770 directly???
|
Re: n770 host mode question!!!
Quote:
|
Re: n770 host mode question!!!
I think I did install the scratchbox thing before, but then I decide to do some fast coding thru ssh, thus I left the maemo dev enironment untouched.
So, can I have some hint, is it true that I only need to go to: [sbox-SDK_ARMEL: ~] > and make the driver (eg. make all) and that's all? Or I have to notice something else? Thanks. |
Re: n770 host mode question!!!
*perks up* Sorry, webcams on the 770? I've got an old Logitech webcam (the drivers for the express should work)... what app are you going to use with this?
*Hedge is interested* |
Re: n770 host mode question!!!
opps, I didnt really think about it.
I was just thinking to have a driver set up and then see if the n770 can recognize the webcam or not. (on premise that I think now the host mode works). I am also thinking to follow http://maemo.org/platform/docs/howto..._api_bora.html maybe modify it a bit, just want to see if the webcam works or not. If u have the driver that works on n770 can you give it to me then I dont need to spend time to figure out the scratchbox thing. :p Thanks. |
Re: n770 host mode question!!!
Alrite, I guess I need some help here.
I have been trying the whole night following the instruction to setup the ARMEL env for scratchbox, seems like the doc is not updated (might be I just read the wrong thing) and I have trouble to setup the "Available CPU-transparency methods", finally I even mess up the scratchbox and now it cannot start up...:( Feeling so frustrated and wonder if any of your highness can be nice enough to make me a driver file for the quickcam express ? (http://qce-ga.sourceforge.net/#download) that can allow me to do some testing on the host mode and further development? :D I will be really happy if I can let the webcam run as it would be really helpful for my project the coming year of study. Regards, |
Re: n770 host mode question!!!
Out of curiosity I tried to recompile it and it worked. Took me few minutes. Sorry for not making it easy for you but I won't publish the result. If you want to make any progress yourself you simply need scratchbox running and then compile kernel yourself. For n770 you also need to enable v4l (video for linux) module as it is not in default kernel. For kernel compiling guide search maemo site/wiki/mailinglists. For the webcam driver it was enough to set LINUX_DIR to kernel source directory and type make all.
Also next problem may be that n770 X server doesn't support video extension so you won't see output on the screen (at least not in any good framerate). But still it could work over network which may be useful too. |
Re: n770 host mode question!!!
Thanks fanoush, I will give the scratchbox another try tonight.
|
Re: n770 host mode question!!!
It may be a bit late but I wrote a couple of scripts that switch to USB host or client mode, mount (and unmount) any USB drive, etc, complete with entries in the application launcher thingy (what is its official name?) on the left of the screen and an installer. Any takers?
I still need to design/add some icons, but am hampered by the fact that I don't know in which directory I should put them to refer to them from the .desktop file. Cheers, Dre |
Re: n770 host mode question!!!
Quote:
Can audio/video files be played on the 770 from a USB device? Last time I tried to play a MP3 via bluetooth (to my Treo 700) with the built-in Nokia audio player, I was unable to. |
Re: n770 host mode question!!!
Quote:
If you know some bash scripting and/or want to play around with the scripts drop me a line at: convulted <at> gmail <dot> <com>. HTH, Dre |
| All times are GMT. The time now is 03:37. |
vBulletin® Version 3.8.8