No Keyboard on Android

I have a Rev C2 Beagle Board.

For the most part, I followed the Embinux Android Porting Guide.

Last week, I had the problem where the build resulted in a kernel that
wouldn't boot.

I did a repo sync this morning and the resulting kernel was bootable,
and the Android GUI is running from the Beagle Board.

However, I cannot get the USB keyboard to work.

I have the USB keyboard connected to the USB hub, which is connected
to the USB port on the Beagle Board.

With this configuration, the USB keyboard does work with the Angstrom
demo.

I have tested the USB keyboard connected directly to the Beagle Board,
USB keyboard directly connected to the USB OTG port, and USB keyboard
connected to the USB OTG port by way of a USB hub.

None of those worked.

Is it something wrong with the kernel that would be causing this?

Anything I can do about this?

Thanks!

Not that this will help you any further, but I have the exact same
problem (also having the C2 revision).
I have tried with having the keyboard directly connected to the USB
host port, or through a hub. As in your case, neither works.
Looking around in /sys in the hope of finding something obvious did
not yield any result.

My USB-hub is equipped with some highly annoying blue LEDs. They are
on as long as the HUB receives power. When booting the
android kernel, the LEDs turn off, and never on again, suggesting that
the HUB does not receive any power after the kernel has been loaded.
Again, as in your case, everything works fine with Angström. At some
point I figured that it had something to do with power saving, but I
never got around to get it verified.

Unfortunately I have not had time to look further into the issue. I'll
post on this list if I succeed.

Cheers,
Paul

Hi,

It looks like it had been fixed. Please sync your build.
In my case I have to issue ‘$repo sync’ twice, as it failed on first occasion.

You need to build your kernel again. Please let us know your results.

Regards,
Paul Fleischer wrote:

Hi Rupesh,

Didn't seem to work for me.

Did a repo sync successfully, then built the kernel again. Tested it
and still no keyboard functionality.

Is it required to run make again? Or can you just go straight to
running beagle_build_kernel.sh?

-Stan

I have rebuild the complete android system from scratch, but keyboard
does still not work.
My hub is properly listed in /sys, and gets power. However, I cannot
see the keyboard in /sys nor does it seem to get any power (haven't
measured on the cable, though).

Is there anything else I have to do, other than following the
instructions at
http://labs.embinux.org/index.php/Android_Porting_Guide_to_Beagle_Board
?

Cheers,
Paul

I also have no USB EHCI support under embinux’s android source… however, it does work under Angstrom.

Hi,

I am limited to try it out, as I still dont have Rev.C board. If someone can point me, what might be going wrong, or what patch is required I will definitely merge it with our repositories.

Regards,
Rupesh Gujare
http://embinux.com

I have used Angstrom kernel (which has working EHCI) and added Android’s kernel drivers (ASHMEM and BINDER)… and that didn’t work either… I don’t know what the problem might be.

I also have no USB EHCI support under embinux's android source... however,
it does work under Angstrom.

Did you try the ESC demo image (ESC Build Your Own Embedded System online registration deadline 3/25 - BeagleBoard)? I took
the Angstrom kernel and added Android patches to it and used Embinux's
instructions and file system to get it to work, then Bill Gatliff
fixed my bugs and did several other improvements. Between us, we can
share all the source with you. Sorry for not being more progressive
about sharing it up front. Bill might have a place where it is
published.

OMG… thank you so much… can you please point me to the source you guys used to make that kernel? I can make the android image myself no problem (unless ofcourse you guys added some special sauce to it… )

Keyboard now works :smiley:

Thanks!!!

I'm still pretty lost.

Did a repo sync this morning and built a new kernel, and I THINK
there's been some progress, but I still can't seem to do anything with
the keyboard on Android.

Am I suppose to do anything with the "Key Mapping" section in the
Embinux guide: http://labs.embinux.org/index.php/Android_Porting_Guide_to_Beagle_Board

Or is that just a reference chart of what is supposed to do what?

I can see that the keyboard does have power (one of the lights is on),
but Android doesn't seem to respond to any key presses.

Any more help?

Thanks...

Hi All,

   Problem lies with uboot version. Please make sure that you have
latest u-boot.
Please refer to following link for upgrading uboot from flash.

http://elinux.org/BeagleBoardUbuntu#Upgrade_U-Boot

or use same uboot binary as that of Angstrom if you are booting from MMC.

I had heard at least one community member reporting that USB is working,
after uboot upgrade.

Regards,

Make sure that you sync your repositories.

ie. #repo sync

Regards,
Rupesh Gujare

Rupesh Gujare wrote:

Tried upgrading u-boot from that link, and also tried the u-boot from
the Angstrom demo: http://www.angstrom-distribution.org/demo/beagleboard/

But neither got the keyboard working with the kernel built yesterday.

I'm getting an error doing a repo sync this morning:

~/beagledroid$ repo sync
Fetching projects: 100% (115/115), done.
error: Untracked working tree file 'arch/arm/configs/
omap3_beagle_android_defconfig' would be overwritten by merge.

error: kernel/: repo/kernel checkout refs/remotes/beagledroid/
android-2.6.29

Thanks...

I have the same issue with my keyboard not working with Android. I
will try the latest u-boot when I get home.

I managed to fix the repo sync problem by removing the file in
question, but after building the new kernel, still no luck with the
keyboard.

I've tried two different keyboards, a Microsoft one and a Logitech
one.

With the Microsoft keyboard, if I plug it directly into the USB port
of the BeagleBoard, I can see that it has power because the F Lock
light can be turned on and off, but Num Lock, Caps Lock and Scroll
Lock lights can not. If I plug this keyboard into the hub, and the hub
is connected to the USB port, then even the F Lock light won't come
on.

The Logitech keyboard does not seem to work connected directly or
through the hub either.

This is the hub I am using: http://www.supermediastore.com/gwc-usb-2-0-3-port-hub-ethernet-adapter.html

Here is a good update.

You have to use the USB OTG port, and only after J6 has been shorted
on the back of the BeagleBoard.

The regular USB host port is NOT currently supported.

So essentially, even though Rev C has the additional USB host port,
you still have to wire it up like an old Rev B board.

The keyboard (and mouse) work when connected to the USB OTG port
through a hub.

The repo sync command seems to be failing. Is your git server down?
Thanks!

$ repo sync
remote: Counting objects: 75, done.
remote: Compressing objects: 100% (60/60), done.
remote: Total 61 (delta 43), reused 0 (delta 0)
Unpacking objects: 100% (61/61), done.
From git://android.git.kernel.org/tools/repo
   bc7ef67..da88ff4 master -> origin/master
   bc7ef67..8135cdc stable -> origin/stable
remote: Counting objects: 2, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 2 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (2/2), done.
From git://android.git.kernel.org/tools/repo
* [new tag] v1.6.7.5 -> v1.6.7.5
* [new tag] v1.6.8 -> v1.6.8
Fetching projects: 1% (2/113) remote: Counting objects: 20, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 18remote: (delta 6), reused 0 (delta 0)
Unpacking objects: 100% (18/18), done.
From git://labs.embinux.org/repo/android/platform/beaglemanifest
   2c7cf3a..7089e22 master -> origin/master
Fetching projects: 2% (3/113) fatal: The remote end hung up
unexpectedly
error: Cannot fetch repo/android/platform/bionic

BeagleBoardUbuntu - eLinux.org

or use same uboot binary as that of Angstrom if you are booting from MMC.

I had heard at least one community member reporting that USB is working,
after uboot upgrade.

Hi,

I have already upgrade to the last u-boot, but ths USB keyboard still
doesn't work, neither lights turn on, I think should be something
related with the kernel, maybe a missing driver.

Any other idea?

Best Regards!

It turns out that the regular USB port on Rev C is currently not
working with the current Android build. You have to wire it up through
the USB OTG port just like a Rev B board and it'll work. Needed to
short the J6 pins on the back of the board.