Reply
Thread Tools
Posts: 18 | Thanked: 1 time | Joined on Feb 2007
#1
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,
 
Hedgecore's Avatar
Posts: 1,361 | Thanked: 115 times | Joined on Oct 2005 @ Toronto, Ontario, Canada
#2
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.
 
Posts: 18 | Thanked: 1 time | Joined on Feb 2007
#3
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?
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#4
Originally Posted by macken View Post
echo host > /sys/devices/platform/tahvo-usb/otg_mode
/etc/init.d/ke-recv restart
I never played with host mode but this seem to be not enough. You need lot of modules loaded for usb host to work, not sure if ke-recv loads them, probably not. Check /mnt/initfs/linuxrc file and see the USB_HOST_MODULES line on the beginning. You probably want most of them loaded. When host mode is set via flasher the are loaded automatically on boot. Insert them by hand via 'insmod /mnt/initfs/lib/modules/current/<module>.ko' before you do things above.
 
Posts: 437 | Thanked: 90 times | Joined on Nov 2006
#5
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! ), 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!
 
Hedgecore's Avatar
Posts: 1,361 | Thanked: 115 times | Joined on Oct 2005 @ Toronto, Ontario, Canada
#6
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.
 
Posts: 18 | Thanked: 1 time | Joined on Feb 2007
#7
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?
 
Posts: 18 | Thanked: 1 time | Joined on Feb 2007
#8
Originally Posted by Hedgecore View Post
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.

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.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#9
Originally Posted by macken View Post
So the conclusion is that I really have to use the flasher tool?
If you decide to ignore my suggestion above then yes :-)

You need to insert some kernel modules. This is what linuxrc script does when it detects host mode flasher flag on boot.
 
Posts: 18 | Thanked: 1 time | Joined on Feb 2007
#10
Originally Posted by fanoush View Post
If you decide to ignore my suggestion above then yes :-)

You need to insert some kernel modules. This is what linuxrc script does when it detects host mode flasher flag on boot.

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)
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:37.