系统默认使用的lcd的7.0寸的,现在准备让其在4.3寸屏幕上正常显示。
第一步。修改内核。在init.atmel.rc文件中添加以下代码
on property:ro.bootmode=120
# The DPI settings for our display (default 160)
setprop ro.sf.lcd_density 120
on property:ro.bootmode=200
# The DPI settings for our display (default 200)
setprop ro.sf.lcd_density 200
on property:ro.bootmode=240
# The DPI settings for our display (default 160)
setprop ro.sf.lcd_density 240
其中bootmode=120. 200 .240 分别对应4.3寸,7.0寸,以及10.2寸显示屏。
第二步。与第一步一样在Android2.3.5-r1系统中的init.atmel.rc文件中添加同样的内容
第三步。设置bootargs参数添加bootmode=value(根据自己的lcd的尺寸选择value的值)
第四步。阅读ubifs.sh脚本文件,使用ubifs制作文件系统时指定lcd的尺寸。例如:
./ubifs.sh -b at91sam9x5 -l 4.3