欢迎来到天天文库
浏览记录
ID:12532810
大小:304.50 KB
页数:58页
时间:2018-07-17
《linux android基础知识总结》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、===================================================linux,Android基础知识总结1.Android编译系统分析2.文件系统分析3.制作交叉工具链4.软件编译常识5.设置模块流程分析6.linux系统启动流程分析7.linux下svn使用指南8.LFS相关9.linux内核的初步理解====================================================================android系统开发指南(常用环境的搭建和使用)说明:有的步骤会用到脚本简化操作
2、,脚本通过svn服务器获取:svncosvn://192.168.2.148/smartphone/td0901/release/images/scripts用户名为各位的姓名拼音,密码与用户名相同一编译android源码,制作文件系统二ubuntu下烧录内核和文件系统一编译android源码,制作文件系统1.开发主线源码位置:svn://192.168.2.148/smartphone/td0901/trunk/cupcake-jianping//cupcake源代码svn://192.168.2.148/smartphone/td0901/trunk
3、/linux-2.6.28-a1//内核源代码2.打标的源代码位置svnlistsvn://192.168.2.148/smartphone/td0901/tag我们可以通过svnlistsvn://192.168.2.148/smartphone查看svn版本库内核更多信息请参卡以下文档:http://192.168.2.148/svn/smartphone/http://192.168.2.148/svn/smartphone/智能平台开发部资料管理手册V1.0.dochttp://192.168.2.148/svn/smartphone/linux
4、下svn操作指南及规范.doc用户名为各位的姓名拼音,密码与用户名相同3.编译源码进入cupcake工作拷贝的顶层目录,执行:../make_image15.sh部分执行结果:out/target/product/littleton/root/内核需要使用的initramfsout/target/product/littleton/system文件系统的系统分区out/target/product/littleton/data/文件系统数据分区4.编译内核此处内核编译主要针对驱动组之外的同事1>设置工具链内核的linux-2.6.28-a1/Makefi
5、le中设定了:CROSS_COMPILE?=arm-linux-所以设置PATH环境变量,保证能找到正确的工具链假设工具链位于:/usr/local/marvell-arm-linux-4.1.1/设置为:exportPATH:=/usr/local/marvell-arm-linux-4.1.1/bin/:$PATH2>更改编译选项(网络启动或者本机启动)内核顶层目录执行:makemenuconfigGeneralsetup--->[*]InitialRAMfilesystemandRAMdisk(initramfs/initrd)support()I
6、nitramfssourcefile(s)(NEW)如果需要支持网络启动反选[]InitialRAMfilesystemandRAMdisk(initramfs/initrd)support如果需要支持本地启动选中[*]InitialRAMfilesystemandRAMdisk(initramfs/initrd)support设置()Initramfssourcefile(s)(NEW)为root拷贝cupcake编译结果out/target/product/littleton/root/到内核顶层目录3>编译内核顶层目录执行makezImage编译好
7、的内核:arch/arm/boot/zImage5.搭建网络开发环境1>安装nfs服务器sudoapt-getinstallnfs-kernel-servernfs-common2>修改nfs服务器配置文件/etc/exports,确保有以下配置项/nfsroot/rootfs*(rw,no_root_squash,sync)我们在内核中已经固定,手机通过网络方式启动,默认从/nfsroot/rootfs读取文件系统,修改配置项后需要重启nfs服务器:sudo/etc/init.d/nfs-kernel-serverrestart3>配置网络根文件系统拷
8、贝out/target/product/littleton/root/内容到/n
此文档下载收益归作者所有