i want to use a mini usb keyboard as input device for my openwrt box. so i configured a custom kernel and copied my .config file to /openwrt/target/linux/linux-2.4/config/brmc. when i enable CONFIG_VT ( Character devices / Virtual terminal) i get this error messages when i want to compile the kernel:
drivers/char/char.o: In function `setkeycode':
: undefined reference to `kbd_setkeycode'
drivers/char/char.o: In function `setkeycode':
: relocation truncated to fit: R_MIPS_26 against `kbd_setkeycode'
drivers/char/char.o: In function `getkeycode':
: undefined reference to `kbd_getkeycode'
drivers/char/char.o: In function `getkeycode':
: relocation truncated to fit: R_MIPS_26 against `kbd_getkeycode'
drivers/char/char.o: In function `handle_scancode':
: undefined reference to `kbd_translate'
drivers/char/char.o: In function `handle_scancode':
: relocation truncated to fit: R_MIPS_26 against `kbd_translate'
drivers/char/char.o: In function `handle_scancode':
: undefined reference to `kbd_unexpected_up'
drivers/char/char.o: In function `handle_scancode':
: relocation truncated to fit: R_MIPS_26 against `kbd_unexpected_up'
drivers/char/char.o: In function `handle_scancode':
: undefined reference to `kbd_sysrq_key'
drivers/char/char.o: In function `handle_scancode':
: undefined reference to `kbd_sysrq_key'
drivers/char/char.o: In function `handle_scancode':
: undefined reference to `kbd_sysrq_xlate'
drivers/char/char.o: In function `handle_scancode':
: undefined reference to `kbd_sysrq_xlate'
drivers/char/char.o: In function `kbd_bh':
keyboard.c:(.text+0x1f35c): undefined reference to `kbd_leds'
keyboard.c:(.text+0x1f35c): relocation truncated to fit: R_MIPS_26 against `kbd_leds'
drivers/char/char.o: In function `kbd_init':
: undefined reference to `kbd_init_hw'
drivers/char/char.o: In function `kbd_init':
: relocation truncated to fit: R_MIPS_26 against `kbd_init_hw'
make: *** [vmlinux] Error 1
when i disable VT_CONFIG the kernel compiles fine... i think this is quite strange.. according to the kernel help:
You need at least one virtual terminal device in order to make use ?
? of your keyboard and monitor. Therefore, only people configuring an ?
? embedded system would want to say N here in order to save some ?
? memory; the only way to log into such a system is then via a serial ?
? or network connection. ?
?
which is ok for me.. BUT in the kernel documentation about usb keyboards says something different:
Something stuff:
"Undefined Symbols handle_scancode, keyboard_tasklet, kbd_ledfunc" at install ???
USB keyboard need PC-style keyboard driver, because the USB driver
simulate standard AT-Keycodes. A normaly AT- or PS/2-Keyboard must not
exist for this. The driver says normaly error (Timeout) on boot.
You must enable CONFIG_VT in kernel konfiguration!
Character devices --->
[*] Virtual terminal
[ ] Support for console on virtual terminal
can anyone help me?
