欢迎来到天天文库
浏览记录
ID:13877822
大小:561.00 KB
页数:73页
时间:2018-07-24
《个人笔记(嵌入式linux)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、个人笔记(嵌入式linux)1、编译交叉工具链:方法一:1.getallthesourcefileslinux-2.4.9.tar.gz,patch-2.4.9-ac9.gz,patch-2.4.9-ac9-rmk1.bz2,diff-2.4.9-ac9-rmk1-np1.gz,binutils-2.11.2.tar.gz,gcc-2.95.3.tar.gz,glibc-2.2.4.tar.gz,glibc-linuxthreads-2.2.4.tar.gz2.installthebinutils#cd/tmp#tarzxvfbinutils-2.11.2.tar.gz#cdbinu
2、tils-2.11.2#./configure--target=armv4l-unknown-linux--prefix=/opt/host/armv4l#make#makeinstall3.makethebinutilsreachablel#exportPATH=/opt/host/armv4l/bin:$PATH4.Installinggcc(ccompiler)#cd/tmp#tarzxvflinux-2.4.9.tar.gz#mvlinuxlinux-2.4.9-ac9-rmk1-np1#mvpatch-2.4.9-ac9.gzpatch-2.4.9-ac9-rmk1.bz2
3、diff-2.4.9-ac9-rmk1-np1.gz./linux-2.4.9-ac9-rmk1-np1#cdlinux-2.4.9-ac9-rmk1-np1:kernel2.4.9#gzip-cdpatch-2.4.9-ac9.gz
4、patch-p1:AlanCoxpatch#bzip2-cdpatch-2.4.9-ac9-rmk1.bz2
5、patch-p1:RussellKingpatch#gzip-cddiff-2.4.9-ac9-rmk1-np1.gz
6、patch-p1:NicholasPitrepatch#makemenuconfig:DotocreateARMheader
7、files.Whenyouexit,selectsaveitem.#makedep:Alsodotocreateheaderfiles.5.Nowheaderfilesofthedevelopmentversionkernelarecreatedat/usr/includedirectory.CopythemtodevelopdirectoryLink/usr/includedirectoryto/opt/host/armv41/armv41-unknown-linux/includebysymboliclink.#cd/opt/host/armv4l/armv4l-unknown-
8、linux#cdinclude:Ifnotexisting,makeincludedirectory.#cp-a/usr/include/*.:Copyallheaderfilesunder/usr/includedirtothecurrentdir.#ln-s/tmp/linux-2.4.9-ac9-rmk1-np1/include/asm-armasm#ln-s/tmp/linux-2.4.9-ac9-rmk1-np1/include/linuxlinux6.Then,installGCCCcompilerasfollowing.#cdgcc-2.95.3#./configure
9、--target=armv4l-unknown-linux--prefix=/opt/host/armv4l#makeLANGUAGES=c#makeLANGUAGES=cinstall7.Installingglibc#cd/tmp#tarzxvfglibc-2.2.4.tar.gz#mvglibc-linuxthreads-2.2.4.tar.gz./glibc-2.2.4#cdglibc-2.2.4#tarzxvfglibc-linuxthreads-2.2.4.tar.gz#CC=armv4l-unknown-linux-gcc./configurearm-linux--en
10、able-add-ons--build=i686-pc-linux-gnu--disable-iconv--with-headers=/tmp/linux-2.4.9-ac9-rmk1-np1/include--prefix=/opt/host/armv4l#make#makeinstall8.Installinggcc(c++compiler)#cd/tmp/gcc-2.95.3#./configure--target=armv4l-unknown-li
此文档下载收益归作者所有