您的位置:首页 > 运维架构 > Linux

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

2014-01-08 12:31 591 查看
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 键盘