您的位置:首页 > 移动开发 > Android开发

Android系统开发小问题-启动过程中android字符没有显示出来 .

2012-02-01 14:22 405 查看
android目标平台可以正常启动,但是启动过程中的android字符没有显示出来,这个是linux内核配置的问题

打开内核framebuffer控制台即可。

(1)make menuconifg后选择Device Drivers->Graphics support->Console display driver support->Framebuffer Console support

然后打开相关的几个配置选项即可。

(2)直接修改内核配置文件,如下:

CONFIG_FRAMEBUFFER_CONSOLE=y

CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y

# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set

CONFIG_FONTS=y

CONFIG_FONT_8x8=y

CONFIG_FONT_8x16=y

CONFIG_FONT_6x11=y

# CONFIG_FONT_7x14 is not set

# CONFIG_FONT_PEARL_8x8 is not set

# CONFIG_FONT_ACORN_8x8 is not set

# CONFIG_FONT_MINI_4x6 is not set

# CONFIG_FONT_SUN8x16 is not set

# CONFIG_FONT_SUN12x22 is not set

# CONFIG_FONT_10x18 is not set

(3)android启动过程中的android字符显示在源代码的system/core/init.c中,如下:

if( load_565rle_image(INIT_IMAGE_FILE) ) {

fd = open("/dev/tty0", O_WRONLY);

if (fd >= 0) {

const char *msg;

msg = "/n"

"/n"

"/n"

"/n"

"/n"

"/n"

"/n" // console is 40 cols x 30 lines

"/n"

"/n"

"/n"

"/n"

"/n"

"/n"

"/n"

" A N D R O I D ";

write(fd, msg, strlen(msg));

close(fd);

}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: