Android on mini2440简易编译安装指南.pdf
Android on mini2440简易编译安装指南.pdfroot@tom: opt, Friendly ARM/androidIe Edit vICw Terminal Tabs Hclpkernel/drivers/clocksource/acpi_pm.ckernel/drivers/clocksource,'cyclonackernel/drivers/clocksource/ tcb clksrc cIrootatom android# cd kernel/[rootcatom kernel]# lscryptoinclude libREADMEsoundblockDocumentation init MAINTAINERS REPORTING-BUGs Usconfig mini2440 driversMakefile sampLesviILCOPYINGfirmwareBuil-scriptsCREDITStskernel netsecurIty[rootatom kernel]# ls-aCOPYINGfirmware kbuildscriptsCREDITSkernelsecurityarchclude libREADMEsoundblockDocumentation ln⊥tMAINTAINERS REPORTING-BUG5 usrcontig mini2440 driverslpcMakefile sampLesvirtlrvolalum ker nel]# cd ../I[rootcatom fs]# lsbin default. prop init, goldfish. rc liblost+fund proc sysdata devinit. rcLinuxrc mycevsbin systemIrootatom fs]# cdIrootatom android# l[roottom android]#配置和编译内核解压出来的内核中经包含了一个缺省的内核配置文件:运行命注意前面有个“.”然后运行,不要做任何设置,保存退出,如图:root@tom: /apt/ Friendly ARM/ android/kernelFile Edit View Terminal Tabs HelpCREDITSkerneltsecurarchcryptoinclude libREADMEsoundblockDocumentation initMAINTAINERS REPORTING-BUes usrconfig mini2449 driversIprMakefilesamplesIrootdtom kernel]# cd ../fs[r。ot@ tom ts]#15defaulL prop iniL. goldfish.It LibLus L+foind pruc sysW彐data dev1n1。rclinuxrc myDevsbin systemIrootatom fs# cd[reotτ m andr。1d]#15irootatom android]= cd kernel/rootat om kernel]# lscryptoinclude libREADMEsoundbLockDocumentation 101tMANNTALNERS EPORIING-BUGs 5Iconfig mini244 drivers1MakefilesanD lasvirtCOPTLNGfirmwareKbuild mmscriptsCREDITSkernel netsecurit[rootidtom kernel]# cp config mini2440. configlrootatom kerne-# make menuconfigHOSTcc scripts/basic/'fixdepHOSTcc scripts/basic/docprocHOSTcc scripts/kconfig/confo再执行命令:开始编译内核,执行完毕,如图所示,将在目录下生产文件,如图:root@tom:/apt/Friendly/android/kernelle Edit View Terminal Tabs Helptmp kallsymslStmp kallsyms10LDtmp vmLinux2KSYMtmp kal l syms.stmp kallsyms 2amples/kobject/built-inosamples/kprobes/built-in.DLDsamples/markers/built-in.DLDsampl es/bllilt-inaLDvmlinuxSYSMAP sys tem, mapSYSMAP. tmp systcm. mapOBJCOPY arch/arm/boot/ ImageKerneL: arch/arm/ hoot/Image is readyASarch/arm/boot/compressed/head.oGZIP arch/arm/boot/compressed/piggy. gzarch/arm/boot/compressed/piggy.oCOarch/arm/haot/compressed/ mic.oLDarch/arm/boot/compressed/vmlinuxOBJCOPY arch/arm/boot/zImageKernel: arch/arm/boot/zImage is readyI rootatom kernel]# ls arch/ arm/boot/zImagerch/arm/boot/zImageroat@t om kernel]#制作文件系统映象要把目标文件系统目录制作成可以烧写的文件系统映象文件,需要使用功能,在命令行输入应该出现如下信息:root@tom: /apt/FriendlyARM/android/kernelEle Edit View Terminal Tabs HelpIDsamples/kprobes/blliIt-inasamples/ markers/built-in.Dsamples/built-in.3LDlInuxSYSMAP System mapSYSMAP. tmp System mapOBJCOPY ar ch/aI l/bouL/ImageKernel: arch/arm/ boot/Image i5 readyASarch/arm/boot/compressedhead. oGZIP arch/arm/boot/compressed/piggy. gZarch/arm/hoot /compressed/piggy.aarch/arm/boot/compressed/misc.oarch/arm/boot/compressed/vmiOBJ]COY arch/arm/boot/zImageKerneL: arch/arm/boot/zImage is ready[rootcotom kerneL# Ls arch/ arm/boot/zImagearch/arm/boot/ZImage[rootatom kernel]# mkyaffs2image-12BMmkyaffs2image: image buiLding tool for YAFFS2 built Jul 9 2009usage: mkyaffs2image dir image_file [convertdirthe directory tree to be convertedage file the output file to hold the imageconvert produce a big-endian image frcm a li.tle-endian machine[root@tom kernel]#在日录下执行:将会把目录制作成可烧写映象文件:如图root@tom/opt/Friendly ARM/androidle Edit view Terminal Tabs Helpsamples/markers/built-in.DSamplcs/built-in.DLDILinuxSYSMAP System mapSYSMAP. tmp SystoB]COPY arch/arm/boot/ImageKernel: arch1ASh/arm/boot/compressed/head.oGZIP arch/arm/hoot/compresse/piggy. g7arch/arm/boot/compressed/piggy.Darch/ arm/boot/compressed/misc. oarch/arm/boot/compressed/vmlinuxOBJCOPY arch/arm/boot/zImageKerneL: arch/arm/hoot/iMage is ready[rootgtom kerneL]# ls arch/arm/boot/zImagearch/arm/boot/zImageIrootatom kernell# mkyaffs21mage-12BMmkyaffsimage: image buildi ng tool for YAFFS2+ lu1 92009usage:mkyaffs2image dir image file [convertdirthe directory tree to be convertedimage file the output file to hold the imageconvert produce a big-endian image frcm a Li-tle-endian machinerootatom kernel]# cdRoot(@ om android]# mkyatfsimage-128M f5/ mini2440T35 android in执行完毕结果如图:root@tom:/opt/FriendlyARM/androidle Edit Wiew Terminal Tabs Helpobject 852, fs//system/etc/ dhcpcd/dhcped-run-hocks is a file, l data chunks writobject 853, fs//system/etc/ shcpcd/dhcpcd conf is a file, 1 data chunks writtenobject 854, fs//system/etc/dhcpcd/dhcpdd-hooks is a directoryobjecL 855, [s//sys Lem/eLc/Jhcptd/dhcpcd-hooks /20-dns conf is a file, l da La chuInks writtenobject 856, fs//system/etc/dhcpcd/dhcpcd-hooks/cl-test is a file, l data chunkswrittenobject 857, fs//system/etc/ hrpr.d/dhcpcH-haoks/95-ccnfigured is a file, 1 data chunks writterobject 858, fs//system/etc/event-log-tags is a file, 7 data chunks writtenobject 859, fs//system/ctc/permissions is a directoryobject 860, fs//system/etc/ permissions/platform. xml is a file, 4 data chunks wril0 ejecT861,「s//syse!eLc/ resole.cn「ia「ile,1 de le chunks willEnobject 862, fs//system/etc/ hosts is a file, l data chunks writtenobject 863, fs//myDev is a directory54, ts//prac is a dOperation complete608 objects in 54 directories31948 NAND pagesIrootctom android]# lsIis kernel mini2440 35 android. imgRoot@tom android]#烧写到开发板运行以上我们分别制作生产了内核文件:,和文件系统映象文件:,下面我们通过开发板自带的把它们烧写到开发板并运行。注意:安装驱动和串口终端设置,以及下载烧写说明,请见用户手册。首先,把开发板的开关设置到次,开机启动进入模式也就是模式,版本的的输出如图:tty50-超级终端文件〕编辑)着⑩)呼叫c)传送)帮助〔)P瞪##非#甚 FriendlyARf BIOs fOh2非#排群[K] bon part日a2k2a68k[u Download uly[k] DoWnload linux kernelly Download root yaffs image[al Absolute User ApplicationIn Download Nboot[l DoWnload wince boot-10go[u] Download WincE Nk.bind download runDownload zImage into RAM[g] Boot linux from RAl千1 Format the nand flashb boot the system[s] Set the boot parameters[u Backup NAND Flash to HOST through UsB(upload)[r] restore NANd Flash from HOST through USBq Goto shell of LvlEnter your selection已连接025AIh115208-1 LL CAPS NUM捕打印在此菜单下先输入“”格式化系统然后再选择“”开始下载,可以选,也可以选择再选择“”开始下载内核:最后选择“”开始下载文件系统文件烧写完毕,可以使川“”命令启动系统,也可以把开关拨到侧,复位启动系统。第一次启动系统时,会出现校正界面,依次点“十”字型的中间位置,直到校正接触,稍等片刻,就可以看到“大钟”界面了,如图:智143Browser⊙FriendlyARM此版本的支持以下特性比较准确的触摸屏卡自动挂载(开机之前必须先插入卡)按键驱动板子|的按键对应功能关系返回菜单右键音量减中间按键音量加网卡驱动采用音频输入与输出:可播放并冂录音命令行截图工具各个文件下载地址二进制映象文件包含文件系统包内核源代码包符合标准的交叉编译器
用户评论
正派上用场 !!!