android porting——配置文件的修改
2009-11-10 09:45
316 查看
android移植采用的开发板为华恒公司的开发板。
android移植采用的方法是:
diff标准linux和android提供的1.0linux,得到android_std_patch文件
将得到的android_std_patch文件patch到华恒公司提供的linux中。
交叉编译工具为arm-2009q3;载入华恒的config文件;修改配置文件,增加了对nfs的支持,配置信息如下:
-----------------------------------------
Required enabled config options(必选设定):
-----------------------------------------
修改:general setup->initial ARM filesystem and ram disk中的initramfs source file 为空。
CONFIG_FB_MODE_HELPERS
CONFIG_YAFFS_SHORT_NAMES_IN_RAM
FB_CFB_COPYAREA
FB_CFB_IMAGEBLIT
INOTIFY
INOTIFY_USER
INPUT_EVDEV
INPUT_MISC
LOCK_KERNEL
MISC_DEVICES
NEW_LEDS
PREEMPT
RTC_CLASS
RTC_LIB
TMPFS
YAFFS_AUTO_YAFFS2
YAFFS_FS
YAFFS_YAFFS1
YAFFS_YAFFS2
ASHMEM
CONFIG_FONT_8x16
CONFIG_FONT_8x8
DAB
FB
FB_CFB_IMAGEBLIT
FB_DEFERRED_IO
FB_TILEBLITTING
LEDS_CLASS
LEDS_GPIO
UID16
POWER_SUPPLY
VIDEO_OUTPUT_CONTROL
CONFIG_NETWORK_FILESYSTEMS
CONFIG_NFS_FS
CONFIG_NFS_V3
CONFIG_NFS_DIRECTIO
CONFIG_LOCKD
CONFIG_LOCKD_V4
CONFIG_NFS_COMMON
CONFIG_NFS_V3_ACL
CONFIG_NFS_V4
CONFIG_NFSD
CONFIG_NFSD_V3
CONFIG_NFSD_V3_ACL
CONFIG_NFSD_V4
CONFIG_NFSD_TCP
CONFIG_ROOT_NFS
CONFIG_NFS_ACL_SUPPORT
CONFIG_NFSD_V2_ACL
CONFIG_EXPORTFS=m
------------------------------------
Required disabled config options(不可选设定)
------------------------------------
CONFIG_YAFFS_DISABLE_LAZY_LOAD
DNOTIFY
……………………………………………………………………………
device drivers -> network device suppot -> ethernet(10 or 100 mbit) -> dm9000 support改为build in(即前面括号内为*)
menuconfig增加general setup -> use full ashmem filesystem
HHARM6410-linux-2.6/mm/shmem.c增加2566~2575行,也就是
/*
*sheme_set_file
*/
void shmem_set_file(struct vm_area_struct *vma, struct file *file)
{
if (vma->vm_file)
fput(vma->vm_file);
vma->vm_file = file;
vma->vm_ops = &shmem_vm_ops;
}
………………………………………………………………………………
选择S3C2410 LCD相关的内容
Device Drivers ---> Graphics support ---> Support for frame buffer devices ---> <*> S3C2410 LCD framebuffer support
Device Drivers ---> Graphics support ---> [*] Bootup logo ---> [*] Standard black and white Linux logo
Device Drivers ---> Graphics support ---> [*] Bootup logo ---> [*] Standard 16-color Linux logo
Device Drivers ---> Graphics support ---> [*] Bootup logo ---> [*] Standard 224-color Linux logo
******************************************
测试的结果为:init: critical process 'servicemanager' exited 4 times in 4 minutes; rebooting into recovery mode
Restarting system with command 'recovery'
解决的方法为:将init.rc中关于servicemanager的一段注释掉
*******************************************
测试结果为:可以进入shell,但是LCD显示屏无反应,输入top后,显示如下:
………………………………………………………………
PID CPU% S #THR VSS RSS UID Name
535 92% R 1 54240K 17368K root zygote
515 0% R 1 892K 360K root top
279 0% S 1 0K 0K root rpciod/0
5 0% S 1 0K 0K root events/0
6 0% S 1 0K 0K root khelper
83 0% S 1 0K 0K root kblockd/0
89 0% S 1 0K 0K root ksuspend_usbd
94 0% S 1 0K 0K root khubd
101 0% S 1 0K 0K root kmmcd
127 0% S 1 0K 0K root pdflush
128 0% S 1 0K 0K root pdflush
129 0% S 1 0K 0K root kswapd0
131 0% S 1 0K 0K root aio/0
230 0% S 1 0K 0K root mtdblockd
475 0% S 1 724K 320K root /system/bin/sh
476 0% S 2 1820K 324K root /system/bin/mountd
477 0% S 1 652K 264K root /system/bin/debuggerd
478 0% S 3 3252K 596K radio /system/bin/rild
482 0% S 1 1160K 560K bluetoot /system/bin/dbus-daemon
483 0% S 1 788K 264K root /system/bin/installd
485 0% S 2 1264K 120K root /sbin/adbd
2 0% S 1 0K 0K root kthreadd
1 0% S 1 276K 188K root /init
3 0% S 1 0K 0K root ksoftirqd/0
4 0% S 1 0K 0K root watchdog/0
………………………………………………………………
目前尚未解决这个问题。
android移植采用的方法是:
diff标准linux和android提供的1.0linux,得到android_std_patch文件
将得到的android_std_patch文件patch到华恒公司提供的linux中。
交叉编译工具为arm-2009q3;载入华恒的config文件;修改配置文件,增加了对nfs的支持,配置信息如下:
-----------------------------------------
Required enabled config options(必选设定):
-----------------------------------------
修改:general setup->initial ARM filesystem and ram disk中的initramfs source file 为空。
CONFIG_FB_MODE_HELPERS
CONFIG_YAFFS_SHORT_NAMES_IN_RAM
FB_CFB_COPYAREA
FB_CFB_IMAGEBLIT
INOTIFY
INOTIFY_USER
INPUT_EVDEV
INPUT_MISC
LOCK_KERNEL
MISC_DEVICES
NEW_LEDS
PREEMPT
RTC_CLASS
RTC_LIB
TMPFS
YAFFS_AUTO_YAFFS2
YAFFS_FS
YAFFS_YAFFS1
YAFFS_YAFFS2
ASHMEM
CONFIG_FONT_8x16
CONFIG_FONT_8x8
DAB
FB
FB_CFB_IMAGEBLIT
FB_DEFERRED_IO
FB_TILEBLITTING
LEDS_CLASS
LEDS_GPIO
UID16
POWER_SUPPLY
VIDEO_OUTPUT_CONTROL
CONFIG_NETWORK_FILESYSTEMS
CONFIG_NFS_FS
CONFIG_NFS_V3
CONFIG_NFS_DIRECTIO
CONFIG_LOCKD
CONFIG_LOCKD_V4
CONFIG_NFS_COMMON
CONFIG_NFS_V3_ACL
CONFIG_NFS_V4
CONFIG_NFSD
CONFIG_NFSD_V3
CONFIG_NFSD_V3_ACL
CONFIG_NFSD_V4
CONFIG_NFSD_TCP
CONFIG_ROOT_NFS
CONFIG_NFS_ACL_SUPPORT
CONFIG_NFSD_V2_ACL
CONFIG_EXPORTFS=m
------------------------------------
Required disabled config options(不可选设定)
------------------------------------
CONFIG_YAFFS_DISABLE_LAZY_LOAD
DNOTIFY
……………………………………………………………………………
device drivers -> network device suppot -> ethernet(10 or 100 mbit) -> dm9000 support改为build in(即前面括号内为*)
menuconfig增加general setup -> use full ashmem filesystem
HHARM6410-linux-2.6/mm/shmem.c增加2566~2575行,也就是
/*
*sheme_set_file
*/
void shmem_set_file(struct vm_area_struct *vma, struct file *file)
{
if (vma->vm_file)
fput(vma->vm_file);
vma->vm_file = file;
vma->vm_ops = &shmem_vm_ops;
}
………………………………………………………………………………
选择S3C2410 LCD相关的内容
Device Drivers ---> Graphics support ---> Support for frame buffer devices ---> <*> S3C2410 LCD framebuffer support
Device Drivers ---> Graphics support ---> [*] Bootup logo ---> [*] Standard black and white Linux logo
Device Drivers ---> Graphics support ---> [*] Bootup logo ---> [*] Standard 16-color Linux logo
Device Drivers ---> Graphics support ---> [*] Bootup logo ---> [*] Standard 224-color Linux logo
******************************************
测试的结果为:init: critical process 'servicemanager' exited 4 times in 4 minutes; rebooting into recovery mode
Restarting system with command 'recovery'
解决的方法为:将init.rc中关于servicemanager的一段注释掉
*******************************************
测试结果为:可以进入shell,但是LCD显示屏无反应,输入top后,显示如下:
………………………………………………………………
PID CPU% S #THR VSS RSS UID Name
535 92% R 1 54240K 17368K root zygote
515 0% R 1 892K 360K root top
279 0% S 1 0K 0K root rpciod/0
5 0% S 1 0K 0K root events/0
6 0% S 1 0K 0K root khelper
83 0% S 1 0K 0K root kblockd/0
89 0% S 1 0K 0K root ksuspend_usbd
94 0% S 1 0K 0K root khubd
101 0% S 1 0K 0K root kmmcd
127 0% S 1 0K 0K root pdflush
128 0% S 1 0K 0K root pdflush
129 0% S 1 0K 0K root kswapd0
131 0% S 1 0K 0K root aio/0
230 0% S 1 0K 0K root mtdblockd
475 0% S 1 724K 320K root /system/bin/sh
476 0% S 2 1820K 324K root /system/bin/mountd
477 0% S 1 652K 264K root /system/bin/debuggerd
478 0% S 3 3252K 596K radio /system/bin/rild
482 0% S 1 1160K 560K bluetoot /system/bin/dbus-daemon
483 0% S 1 788K 264K root /system/bin/installd
485 0% S 2 1264K 120K root /sbin/adbd
2 0% S 1 0K 0K root kthreadd
1 0% S 1 276K 188K root /init
3 0% S 1 0K 0K root ksoftirqd/0
4 0% S 1 0K 0K root watchdog/0
………………………………………………………………
目前尚未解决这个问题。
相关文章推荐
- windows下Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件
- linux(以ubuntu为例)下Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件
- Android根据xml配置文件动态修改九宫格功能配置
- Android Studio导入太慢?修改项目配置文件再导入,飞一般的感觉
- AS 修改SDK .android .AndroidStudio等配置文件位置
- linux(以ubuntu为例)下Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件
- window下自动修改Android的prop配置文件
- android studio修改配置文件(.android .gradle .AndroidStudio)位置
- 详解Android通过修改配置文件设置wifi密码
- Android Studio导入太慢?修改项目配置文件再导入,飞一般的感觉
- windows下Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件
- Android基于配置文件的测试模式(不修改代码通过配置文件来打开和关闭测试模式)
- 如何使用Android Studio打开一个App项目,导入Android App项目需要修改哪些配置文件?
- Android通过修改配置文件设置wifi密码
- linux(以ubuntu为例)下Android利用ant自动编译、修改配置文件、批量多渠道,打包生
- windows下Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件
- 修改Android手机的Preferences配置文件
- Porting:linux内核编译、配置、修改配置文件、添加.c文件到内核
- windows下Android利用ant自动编译、修改配置文件、批量多渠道,打包生成apk文件
- Android Studio导入太慢?修改项目配置文件再导入,飞一般的感觉