[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB Keyboard


Apply the attached patch. Then in the menu Char devices choose Virtual
Terminal and make dep; make zImage. The kernel will compile and the
keyboard will work (if you hack drivers/char/keyboard.c handle_scancode
function and put in some printk you'll see that the USB keyboard is
working how to get it to display to com1 is your problem;) if you get it
to work I would like to know how.

By the way. The attached patch is a bit of a hack - I'm working on a new
clean one.

	Regards Simon

Na 1058398596, 2003-07-17 ob 01:36, je Dave Matlock napisal(a):
> I am having issues getting a USB Keyboard to work with the devboard82.  I need to have the text appear on the console (com1).  I have enabled the following settings in xconfig:
> Input Core Support
> Keyboard Support
> USB Full HID Support
> HID Input Layer Support
> When I 'make kernel' I get the following:
> make[2]: Leaving directory `/home/dave/axis/devboard_82/os/linux-2.4.20/arch/cris/boot/rescue'
> if [ ! -e /home/dave/axis/devboard_82/os/linux-2.4.20/arch/cris/cris.ld.tmp -o /home/dave/axis/devboard_82/os/linux-2.4.20/arch/cris/cris.ld -nt /home/dave/axis/devboard_82/os/linux-2.4.20/arch/cris/cris.ld.tmp ]; then sed -e s/@xxxxxxx.o \
>         --start-group \
>         kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch/cris/kernel/kernel.o arch/cris/mm/mm.o \
>          drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/mtd/mtdlink.o drivers/usb/usbdrv.o drivers/input/inputdrv.o arch/cris/drivers/drivers.o \
>         net/network.o \
>         /home/dave/axis/devboard_82/os/linux-2.4.20/arch/cris/lib/lib.a /home/dave/axis/devboard_82/os/linux-2.4.20/lib/lib.a /home/dave/axis/devboard_82/os/linux-2.4.20/arch/cris/lib/lib.a /usr/local/cris/lib/gcc-lib/cris/2.96/linux/libgcc.a \
>         --end-group \
>         -o vmlinux
> drivers/input/inputdrv.o: In function `emulate_raw':
> drivers/input/inputdrv.o(.text+0x7be): undefined reference to `handle_scancode'
> drivers/input/inputdrv.o(.text+0x7f8): undefined reference to `handle_scancode'
> drivers/input/inputdrv.o(.text+0x812): undefined reference to `handle_scancode'
> drivers/input/inputdrv.o(.text+0x822): undefined reference to `handle_scancode'
> drivers/input/inputdrv.o: In function `keybdev_event':
> drivers/input/inputdrv.o(.text+0x8ec): undefined reference to `keyboard_tasklet'
> drivers/input/inputdrv.o(.text+0x8f8): undefined reference to `keyboard_tasklet'
> drivers/input/inputdrv.o(.text+0x908): undefined reference to `keyboard_tasklet'
> drivers/input/inputdrv.o: In function `keybdev_init':
> drivers/input/inputdrv.o(.text.init+0x50): undefined reference to `kbd_ledfunc'
> make[1]: *** [vmlinux] Error 1
> make[1]: Leaving directory `/home/dave/axis/devboard_82/os/linux-2.4.20'
> make: *** [kernel] Error 2

Attachment: linux-2.4.20-cris-sp0.patch.bz2
Description: application/bzip