编译linux-0.11内核后键盘不对的问题解决方法,比如/变成了-

keyboard.S文件开始有这么一句

#include <linux/config.h>


config.h里面有键盘布局的定义,linus用的是芬兰的键盘,我们用的是美式键盘。


#ifndef _CONFIG_H
#define _CONFIG_H

/*
 * The root-device is no longer hard-coded. You can change the default
 * root-device by changing the line ROOT_DEV = XXX in boot/bootsect.s
 */

/*
 * define your keyboard here -
 * KBD_FINNISH for Finnish keyboards
 * KBD_US for US-type
 * KBD_GR for German keyboards
 * KBD_FR for Frech keyboard
 */
/*#define KBD_US */
/*#define KBD_GR */
/*#define KBD_FR */
#define KBD_FINNISH

所以你要把#define KBD_FINNISH改为#define KBD_US 才能正常使用

#define KBD_US
/*#define KBD_GR */
/*#define KBD_FR */
/*#define KBD_FINNISH*/

你可能感兴趣的:(键盘,linux-0.11)