ltib 添加mtd-utils时出现错误的处理方法

   Their BSP has not been updated and the newer compiler on your distro is triggering the problem (it's more strict).
 
Unfortunately that platform has not been pushed into Savannah so you  
can't upgrade from there.  
To fix this download the updated spec file from here:
http://cvs.savannah.gnu.org/viewvc/*checkout*/ltib/dist/lfs-5.1/mtd-utils/mtd-utils-20060302.spec?revision=1.3&root=ltib
and save it to dist/lfs-5.1/mtd-utils/
having done that,

$ rm -rf /opt/freescale/ltib/usr/src/rpm/BUILD/mtd*
$ ./ltib

原文链接:http://lists.gnu.org/archive/html/ltib/2009-07/msg00129.html
 
若出现没有 mtd-utils-20060302-eraseall_prog.patch 的错误
 
diff --exclude CVS -uNr mtd/util/flash_eraseall.c mtd.modified/util/flash_eraseall.c 
--- mtd/util/flash_eraseall.c 2007-01-25 10:05:38.000000000
+0100 +++ mtd.modified/util/flash_eraseall.c 2007-01-25 09:56:04.000000000 +0100
@@ -212,9 +209,11 @@ 
if (!quiet) 
printf (" Cleanmarker written at %x.", erase.start); } 
- if (!quiet) - printf("\n"); 
- + if (!quiet) { + printf("\rErasing %d Kibyte @ %x -- 100%% complete.\n", + meminfo.erasesize / 1024, erase.start); + fflush(stdout); + } return 0; }
 
创建以上内容到提示目录下
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值