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; }
创建以上内容到提示目录下