linux sd与dm对应关系,dm8168的心得之从sd卡启动linux系统.docx

dm8168心得之从sd卡启动linux系统

DM8168心得之文件系统jffs2的制作/**********************************************************************author:time:environment:kernelversion:卢浩+TIDM8186******************************************************************/首先要搭建制作jffs2的环境要下载这4个文件以下是下载链接http:///f//opensource/lzo/download/:///projects/e2fsprogs/files/e2fsprogs///downl:snapshot/d37fcc0afd0d4a14ce8e4257d0a99  下载完之后,TI的文档里面给了两种jffs2的,一种是给主机的,一种是个目标板的,也是是8168的。我这里就介绍给8168用的jffs2TargetThissectiondescribeshowtocrosscompiletheMTDutilitiesontheLinuxdevelopmenthostforLinuxARMtarget.首先我在我建立了一个文件夹/home/user/mtd用来存放这个压缩文件。接下来用来存放这4个压缩文件个压缩文件。首先我在我建立了一个文件夹按照以下步骤操作zlibhost$tarxvfhost$cd/host$./configure--prefix=/home/user/mtd/installEditresultingMakefileandaddtoolchainprefixarm-arago-linux-gnueabi-togcc,ldshared,cpp,arandranlib.这边需要注意的是修改Makefile的时候要注意对应你当前的编译器,比如我用的是arm-none-linux-gnueabi-gcc,那就需要把下面的arm-arago-linux-gnueabi-gcc改成arm-none-linux-gnueabi-gcc,。否则会报错找不到arm-arago-linux-gnueabi-gcchost$viMakefileCC=arm-arago-linux-gnueabi-gccLDSHARED=arm-arago-linux-gnueabi-gcc-Wl,-soname,,--version-script,CPP=arm-arago-linux-gnueabi-gcc-EAR=arm-arago-linux-gnueabi-arrcRANLIB=arm-arago-linux-gnueabi-ranlib-shared  Saveandclosevieditor.Thenyoushouldbereadyto$makehost$makeinstallhost$cd..Resultshouldbein/home/user/mtd/install/libdirectoryandzlib'sheadersin/home/user/mtd/install/$tarxvfhost$cd/host$./configure--host=arm-arago-linux-gnueabihost$makehost$makeinstallhost$cd..--build=i686-pc-linux--prefix=/home/user/mtd/installResultshouldbein/home/user/mtd/install/libdirectoryandlzo'sheadersin/home/user/mtd/install/include/$tarxvfhost$cd/host$./configure--build=i686-pc-linux--host=arm-arago-linux-gnueabihost$makehost$makeinstallhost$cdlib/uuid/host$makeinstall--prefix=/home/user/mtd/install  host$cd../../../Resultshouldbein/home/user/mtd/install/libdirectoryanduuid'sheadersin/home/user/mtd/install/include/$tarxvfhost$cdmtd-utils-d37fcc0/MTD-Utilsdon'thaveaconfigurescript,sowehavetoeditMakefileagain.Depending

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值