This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请教TI工程师 mtd utils工具的问题,恳盼答复,非常感谢!



am335x + sdk06.00.00.00 +ubuntu 12.04

按照processors.wiki.ti.com/.../MTD_Utilities文档所述

e2fsprogs 文件 configure  error:

checking whether linker accepts -static... yes
configure: creating ./config.status
./config.status: line 1387: syntax error: unexpected end of file
root@ubuntu:/mnt/hgfs/ubuntu_share/TI-mtd-utils/e2fsprogs-1.42#

开始怀疑是下载的文件的问题,更换几个版本e2fsprogs-1.41 / e2fsprogs-1.42.8,问题都如此,因

config.status 是configure 所create的,走读configure 找了好久也没找到问题所在,在此发帖求助TI,恳请赐教~!谢谢!



  • 我在ubuntu10.04下按照下面流程编译的:

            host$ tar xvf e2fsprogs-1.42.tar.gz

            host$ cd e2fsprogs-1.42/

            host$ ./configure --build=i686-pc-linux --prefix=~/mtd/install

            host$ make

            host$ make install

            host$ cd lib/uuid/

            host$ make install

            host$ cd ../../../

     没有发现错误

  • jian zhou 你好:

    感谢您以上的回复,现在问题已经解决了,是因为我把这些安装包放在了ubuntu 共享文件去安装了,大概是因为VMware不知道共享区的这个安装导致的吧;不过还有有个疑问请教下你:

    在ubuntu 12.04上,"~/"不是个合法的路径吧?须要“root/”才行的吧?你是怎么操作的过的呢?

    root@ubuntu:/mnt/hgfs/ubuntu_share/TI-mtd-utils/e2fsprogs-1.42# ./configure --build=i686-pc-linux --prefix=~/mtd/install
    configure: error: expected an absolute directory name for --prefix: ~/mtd/install
    root@ubuntu:/mnt/hgfs/ubuntu_share/TI-mtd-utils/e2fsprogs-1.42#

  • 这个~/mtd/install是指你建立的mtd的目录,比如你把mtd建立在本地用户目录下,就是/home/user/mtd/install

  • O(∩_∩)O~  看来是我理解错了~~

  • 你好

    我有个问题求助。

    我按照MTD Utilities.pdf所描述关于生成mkfs.jffs2工具的时候,在编译三个工具的时候没有问题,但是当编译mtd的时候,使用make install DESTDIR=/home/user/mtd/install进行编译的时候,出现了错误。错误提示为:

    LD ftl_format.o

    arm-none-linux-gnueabi-gcc:ftl_format.o:no such file or directory

    make:***[ftl_format]Eror 1

    问题描述如上,我是完全按照文档的描述来的,唯一的不同就是文中使用了两种不同的交叉编译器,在编译前面工具的时候使用的是arm-arago-linux-gnueabi-,而最后编译mtd的时候使用的是arm-none-linux-gnueabi-,我只使用了arm-none-linux-gnueabi-。不知道我出现了这个错误的原因在哪里?如果是因为要使用两个编译器的话,还请说一下arm-arago-linux-gnueabi-这个编译器的安装文件可以在哪里找到,我百度了没有下载到。

    谢谢。

  • 应该使用同一个交叉编译工具,arm-arago-linux-gnueabi-可以从TI的SDK中找到。

  • 您好!请问您的问题解决了么,我遇到的情况和您很相似,完全按照MTD Utilities.pdf所描述关于生成mkfs.jffs2工具,并且我的交叉编译工具都使用的同一个(arm-arago-linux-gnueabi-gcc),但是每次都出现和您同样的错误,可以告诉我怎么解决的么?谢谢

  • 追加一句,以上操作我都是在centos下进行的