Hi All,

Be honest, I am new to USB stuff on Linux.
Here is the problem I run into:

I try to compile USB Keyboard Support into Kernel for an embedded device.

So I turn on the following options:
1.  CONFIG_USB_HID
2.  CONFIG_USB_HIDDEV
3.  CONFIG_INPUT
4.  CONFIG_INPUT_KEYBDEV

* CONFIG_INPUT_EVDEV is not turned on
* CONFIG_PCI is not turned on

However, I failed comipling the kernel, error message is:
============================================================================
===============================
arch/mips/kernel/kernel.o arch/mips/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o
ipc/ipc.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/ide/idedriver.o
drivers/scsi/scsidrv.o drivers/mtd/mtdlink.o drivers/usb/usbdrv.o
drivers/input/inputdrv.o \
        net/network.o \
        arch/mips/lib/lib.a /home/build/src_tree/os/linux/lib/lib.a
arch/mips/brcm-boards/common/brcmstb.a
arch/mips/brcm-boards/bcm97320/bcm97320.a \
        --end-group \
        -o vmlinux
drivers/input/inputdrv.o: In function `emulate_raw':
/home/build/src_tree/os/linux/drivers/input/keybdev.c:136: undefined
reference to `handle_scancode'
/home/build/src_tree/os/linux/drivers/input/keybdev.c:139: undefined
reference to `handle_scancode'
/home/build/src_tree/os/linux/drivers/input/keybdev.c:140: undefined
reference to `handle_scancode'
/home/build/src_tree/os/linux/drivers/input/keybdev.c:134: undefined
reference to `handle_scancode'
/home/build/src_tree/os/linux/drivers/input/keybdev.c:121: undefined
reference to `handle_scancode'
drivers/input/inputdrv.o:/home/build/src_tree/os/linux/drivers/input/keybdev
.c:114: more undefined references
to `handle_scancode' follow
drivers/input/inputdrv.o: In function `keybdev_event':
/home/build/src_tree/os/linux/include/linux/interrupt.h:158: undefined
reference to `keyboard_tasklet'
/home/build/src_tree/os/linux/include/linux/interrupt.h:158: undefined
reference to `keyboard_tasklet'
drivers/input/inputdrv.o: In function `keybdev_init':
/home/build/src_tree/os/linux/drivers/input/keybdev.c:224: undefined
reference to `kbd_ledfunc'
/home/build/src_tree/os/linux/drivers/input/keybdev.c:224: undefined
reference to `kbd_ledfunc'
drivers/input/inputdrv.o: In function `keybdev_exit':
/home/build/src_tree/os/linux/drivers/input/keybdev.c:239: undefined
reference to `kbd_ledfunc'
/home/build/src_tree/os/linux/drivers/input/keybdev.c:223: undefined
reference to `kbd_ledfunc'
============================================================================
================================

I solve the compiling by turning on:
CONFIG_VT
CONFIG_DUMMY_CONSOLE
CONFIG_PC_KEYB

And then I run into other problems:
1.  I try to directly read the input of the keyboard from one of the device
node.  I tried all the ttyXX, none of them works; but I verified that the
kernel did get
an key event by stick a printk in the function handle_scancode in keyboard.c
So how can I get the input of the keyboard directly without using a console
or X or somethingelse?

In addition, I don't really need a console or anything else.  
All I want is to:
1.  Dynamically connect the USB keyboard to the device,
2.  Push keys on the keyboard and the embedded system will receive it and
excute the testing command.
So how can I make it work without compiling in the modules that are
associated with VT/DUMMY_CONSOLE/PC_KEYB?

Can anybody help me or give me some clue what I should do without adding the
above options?

Thanks

John


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to