Reply
Thread Tools
Posts: 18 | Thanked: 1 time | Joined on Aug 2011
#311
Another try, see attachment
Attached Files
File Type: txt hostmode.txt (15.3 KB, 130 views)
 
blipnl's Avatar
Posts: 279 | Thanked: 231 times | Joined on Apr 2010 @ Holland
#312
Is it possible my kbd is not working because of the 200mA required (as listed on back of kbd)? I have read on the wiki page only devices up to 100mA are 'supported' without an extra power supply..
__________________
Is that a N900 in your pants or are you just happy to see me?
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#313
rooz - it seems for me as generic error. I see it sometimes, when I try to connect my HUB. Just need to practice timing of enabling vBUS and connecting device afterwards.

blipni - N900 can provide 200 mA without problems. 100 mA is theoretical limit of that a *hub* connected to N900 can deliver, if it's not powered externally. That what standards tell us - ho ever, it's not always true - my HUB provide as much as it can, even when powered via bus.
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following User Says Thank You to Estel For This Useful Post:
Posts: 8 | Thanked: 0 times | Joined on Jun 2011
#314
this may help rooz, who knows...

I just tried for the first time a setup like you describe (cheap imation keyboard), and did pretty much what you did... initially it only recognised keys that mapped to the n900 keyboard and maybe tab & escape (although I once accidentally triggered a special character I couldn't work out how to get at them either - anyone: what's the equivalent of the blue arrow button?)

I already had extkbd installed in preparation... I opened it (External Keyboard in the n900's Settings), chose a slightly different likely generic keyboard layout (ended up typing in arabic... when back and found "USA" option...) and after that it worked like a normal keyboard.

[I am very pleased about this, by the way. Thanks!]

Only tried it the once... not sure if you have to wake up extkbd every time.

Also, it did seem to chew through the battery a bit, so I will get a powered hub if I want to play with it for any length of time.

Thanks again. I just love that you guys made this phone better than the manufacturer said it could be.
 
Posts: 1,418 | Thanked: 2,619 times | Joined on Jan 2011 @ Touring
#315
The mystery deepens, I found an old USB keyboard(full speed) and it was able to load on HEN, it includes a hub chip and one port. While I cant load my USB keychain directly with an adapter cable to my N900 on HEN I can load it when plugged into the keyboard.
Both can be used together, no caps though. If it matters it is a Chinese BTC mini keyboard I think I bough around 2002-2003.

Aside from that I also have to reboot my phone every time after I use H-E-N after I dismount a disk if I want to use it again, this has been an issue in the past when everything was fine.
[update]
I wiped the USB flash drive and formatted it with Ubuntu, no change, mounts plugged into full speed keyboard, but not direct.

Last edited by biketool; 2011-09-14 at 10:04.
 
Posts: 9 | Thanked: 3 times | Joined on May 2011
#316
I bet person in charge here testing his new tegra phone.. or exynos..
 
Posts: 18 | Thanked: 1 time | Joined on Aug 2011
#317
Trying it with an external usb hub.

Connect keybd to hub, connect hub to n900.

I get the message
'could not connect, no filesystem available'
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#318
Message about filesystem appear randomly for me, ho ever, it does not cause any harm (i.e. everything is working fine). No matter what I connect - for example, it may appear after connecting keyboard. As I've said, just ignore it.

BTW, I must write something here, even if it is off-topic. I'm currently traveling, and at this very moment, I'm sitting with USB mini keyboard on my knees, visa vi 32 '' LCD screen with my N900 connected to it - alongside USB HUB, where plugs of my keyboard and mice docked. I'm writing this post via my Desktop PC miles away (ssh and vnc), so basically, I'm enjoying full hourse power on Desktop PC, via "pocket" N900.

Really, really thanks Hostmode team, for being one of the most important part in making dream about true pocket *real* computer, come true! Huge thanks, and asking for more

BTW, blame Nokians for lack of miniHDMI output
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Posts: 18 | Thanked: 1 time | Joined on Aug 2011
#319
Thx for your reply. When I connect my usb keybd via active hub to my n900, I can't turn on the light of the Capslock button, should that make me worry?

Do you have your Desktop running all the time btw? Or can you boot it using your n900

edit:

hmm you would expect this install the kernel power
Code:
# apt-get install kernel-power-settings               
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  kernel-bfs-bootimg kernel-bfs-modules
Recommended packages:
  multiboot kernel-bfs-flasher iptables mtd-utils kexec-tools
The following NEW packages will be installed:
  kernel-bfs-bootimg kernel-bfs-modules kernel-power-settings
0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.
Need to get 0B/5247kB of archives.
After this operation, 11,0MB of additional disk space will be used.
Do you want to continue [Y/n]?
Code:
uname -a
Linux Nokia-N900 2.6.28.10-bfs7 #1 PREEMPT Fri Sep 30 23:39:22 EEST 2011 armv7l unknown
Should my usb keybd show up in extkeybd under keyboard? (I think bluetooth keyboards are showing up there)


'no file system available'
Does this message mean, not on my phone or not on the usb device?

USB sticks doesn't show up in app manager.
Code:
# lsusb
Bus 001 Device 001: ID 1d6b:0002
Damn


edit: Ok, I just hold on I even found someone who got this keyboard working ...
Here are the kernel messages
Code:
<p>341.699554] ------------[ cut here ]------------
<br>[ 1341.699615] WARNING: at drivers/usb/musb/musb_host.c:128 musb_h_tx_flush_fifo+0x94/0xcc()
<br>[ 1341.699645] Could not flush host TX0 fifo: csr: 000a
<br>[ 1341.699676] Modules linked in: vfat fat sd_mod scsi_mod iphb rfcomm panic_info_buff sco l2cap ext3 omaplfb jbd pvrsrvkm bridgedriver ipv6 g_file_storage uinput board_rx51_camera omap_previewer_hack omap34xxcam_mod isp_mod iovmm videobuf_dma_sg videobuf_core omap3_iommu iommu2 iommu dspbridge ssi_mcsaab_imp mmc_block phonet joydev cmt_speech omap_hsmmc wl12xx smc91x mii omap_wdt mac80211 crc7 omap_ssi nokia_av hci_h4p cfg80211 tsc2005 mmc_core bluetooth fmtx_si4713 et8ek8 ad5820 videodev adp1653 smia_sensor rtc_twl4030 lis302dl v4l1_compat compat_ioctl32 leds_lp5523 leds_twl4030_vibra twl4030_wdt tsl2563 led_class rtc_core smiaregs v4l2_int_device
<br>[ 1341.700256] [&lt;c0030470&gt;] (dump_stack+0x0/0x14) from [&lt;c0057440&gt;] (warn_slowpath+0x64/0x80)
<br>[ 1341.700347] [&lt;c00573dc&gt;] (warn_slowpath+0x0/0x80) from [&lt;c01e9be8&gt;] (musb_h_tx_flush_fifo+0x94/0xcc)
<br>[ 1341.700408]  r3:00000000 r2:c0340092
<br>[ 1341.700439]  r6:d80ab100 r5:0000000a r4:0000000a
<br>[ 1341.700500] [&lt;c01e9b54&gt;] (musb_h_tx_flush_fifo+0x0/0xcc) from [&lt;c01eaab8&gt;] (musb_cleanup_urb+0xc0/0x10c)
<br>[ 1341.700561] [&lt;c01ea9f8&gt;] (musb_cleanup_urb+0x0/0x10c) from [&lt;c01eb2bc&gt;] (musb_urb_dequeue+0x1dc/0x248)
<br>[ 1341.700622] [&lt;c01eb0e0&gt;] (musb_urb_dequeue+0x0/0x248) from [&lt;c01cee24&gt;] (unlink1+0x108/0x114)
<br>[ 1341.700714] [&lt;c01ced1c&gt;] (unlink1+0x0/0x114) from [&lt;c01cfdc0&gt;] (usb_hcd_unlink_urb+0x9c/0xf8)
<br>[ 1341.700775] [&lt;c01cfd24&gt;] (usb_hcd_unlink_urb+0x0/0xf8) from [&lt;c01d0c7c&gt;] (usb_kill_urb+0x84/0x14c)
<br>[ 1341.700866]  r7:ce563c00 r6:ce563c00 r5:cf0a6000 r4:00000000
<br>[ 1341.700927] [&lt;c01d0bf8&gt;] (usb_kill_urb+0x0/0x14c) from [&lt;c01d1f00&gt;] (usb_start_wait_urb+0x80/0x120)
<br>[ 1341.700988]  r6:00001388 r5:cf0a7e50 r4:00000000
<br>[ 1341.701049] [&lt;c01d1e80&gt;] (usb_start_wait_urb+0x0/0x120) from [&lt;c01d2180&gt;] (usb_control_msg+0xc4/0xe8)
<br>[ 1341.701110] [&lt;c01d20bc&gt;] (usb_control_msg+0x0/0xe8) from [&lt;c01cae74&gt;] (hub_port_init+0x3d8/0x634)
<br>[ 1341.701202] [&lt;c01caa9c&gt;] (hub_port_init+0x0/0x634) from [&lt;c01cc56c&gt;] (hub_events+0x86c/0xe64)
<br>[ 1341.701263] [&lt;c01cbd00&gt;] (hub_events+0x0/0xe64) from [&lt;c01ce1bc&gt;] (hub_thread+0x30/0x19c)
<br>[ 1341.701324] [&lt;c01ce18c&gt;] (hub_thread+0x0/0x19c) from [&lt;c006da8c&gt;] (kthread+0x54/0x80)
<br>[ 1341.701385]  r6:00000000 r5:c01ce18c r4:00000000
<br>[ 1341.701446] [&lt;c006da38&gt;] (kthread+0x0/0x80) from [&lt;c005a94c&gt;] (do_exit+0x0/0x7bc)
<br>[ 1341.701507]  r5:00000000 r4:00000000
<br>[ 1341.701538] ---[ end trace 7be5b1cae9b88444 ]---
<br>[ 1341.739288] usb 1-1: khubd timed out on ep0out len=0/0
<br>~ $ </p>

Last edited by rooz; 2011-10-15 at 21:47.
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#320
Trash messages from dmesg output. Be sure to use latest booston (provided by joerg_rw in this thread, few pages ago - You need to install it manually), and that You're choosing high-speed, if Your HUB is real 2.0 compliant, or Full-speed otherwise. Hub will manage connection speed for keyboard.

Also, You could first try to connect keyboard without any hubs, then start adding things, that may complicate debugging. As for extkbd, yea, Your keyboard should be recognized after enumerating, but it is unrelated to hostmode, and Your output clearly show errors on connection (USB) part, so leave further things alone for now.

Please, try executing everything in following order:

1. Choose appropriate speed for Your keyboard - low-speed or full-speed (most low-speed keyboards should work also with full-speed). Do *not* use high-speed, unless You're 100% sure, that You got strange keyboard that need it (most unlikely).

2. wait second or two, enable vbus booston (next step).

3. after 2 or three seconds, connect Your keyboard to N900 (it *musn't* be connected before!

4. Wait another few seconds, then choose "enumerate".

5. You should get message about connection - if not, open kernel messages, and post result here. If doing so, please be sure that You're posting here output only of this single attempt (i.e after fresh restart of H-E-N), to help us parse output quickly .

6. Ignore any messages about filesystem not available, they're irrelevant here.

7. If You cannot connect *anything* - be it keyboard, mouse, pendrive... That mean You've probably got something screwed on device software side. Most likely, kernel-power installation, or H-E-N one itself.

As for Your question about my desktop - I use WOL (wake on LAN) - after few lines of ssh tunnels for security - so I don't need to have desktop on all the time. But this is off-topic here, so PM me if You got any questions regarding this.

Good luck with H-E-N!

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!

Last edited by Estel; 2011-10-16 at 00:14.
 
Reply

Tags
awesome!, bada rox, h-e-n hostmode, more noise


 
Forum Jump


All times are GMT. The time now is 10:38.