### Prepare Trident Build Environment. $ cd /home/lilin/trident/SRC/; source pnx8400_MP_env.sh; cd - $ tar zxvf e2fsprgos-1.41.14.tar.gz $ cd e2fsprogs-1.41.14 ### Read instructions on building and installing e2fsprogs. ### $ cat INSTALL : $ mkdir build; cd build ################################################ ### IMPORTANT !!! ### ### Specify the sysroot FLAG to CC and LD. ### ################################################ $ export LDFLAGS=--sysroot=$_TMSYSROOT $ export CFLAGS=--sysroot=$_TMSYSROOT $ ../configure --host=arm-linux $ make ### Check result. $ file misc/mke2fs misc/mke2fs: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), not stripped $ ls -al misc/mke2fs -rwxrwxr-x 1 lilin lilin 379668 Feb 15 14:36 misc/mke2fs $ ls -al lib/*.a -rw-rw-r-- 2 lilin lilin 69866 Feb 15 14:36 lib/libblkid.a -rw-rw-r-- 2 lilin lilin 14040 Feb 15 14:35 lib/libcom_err.a -rw-rw-r-- 2 lilin lilin 50738 Feb 15 14:35 lib/libe2p.a -rw-rw-r-- 2 lilin lilin 327632 Feb 15 14:36 lib/libext2fs.a -rw-rw-r-- 2 lilin lilin 36546 Feb 15 14:35 lib/libss.a -rw-rw-r-- 2 lilin lilin 26544 Feb 15 14:35 lib/libuuid.a ################################################ ### ELF share library enabled. (see INSTALL) ### ################################################ $ ../configure --host=arm-linux -enable-elf-shlibs $ make $ $ file misc/mke2fs misc/mke2fs: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), not stripped $ ls -al misc/mke2fs -rwxrwxr-x 1 lilin lilin 132483 Feb 15 15:02 misc/mke2fs $ arm-linux-strip misc/mke2fs $ ls -al misc/mke2fs -rwxrwxr-x 1 lilin lilin 102620 Feb 15 15:03 misc/mke2fs $ ls -al lib/ total 2184 drwxrwxr-x 8 lilin lilin 4096 Feb 15 15:02 . drwxrwxr-x 14 lilin lilin 4096 Feb 15 15:01 .. drwxrwxr-x 3 lilin lilin 4096 Feb 15 15:02 blkid drwxrwxr-x 3 lilin lilin 4096 Feb 15 15:02 e2p drwxrwxr-x 3 lilin lilin 4096 Feb 15 15:02 et drwxrwxr-x 3 lilin lilin 4096 Feb 15 15:02 ext2fs -rw-rw-r-- 2 lilin lilin 69866 Feb 15 15:02 libblkid.a -rwxrwxr-x 4 lilin lilin 79618 Feb 15 15:02 libblkid.so -rwxrwxr-x 4 lilin lilin 79618 Feb 15 15:02 libblkid.so.1 -rwxrwxr-x 4 lilin lilin 79618 Feb 15 15:02 libblkid.so.1.0 -rw-rw-r-- 2 lilin lilin 14040 Feb 15 15:01 libcom_err.a -rwxrwxr-x 4 lilin lilin 17107 Feb 15 15:01 libcom_err.so -rwxrwxr-x 4 lilin lilin 17107 Feb 15 15:01 libcom_err.so.2 -rwxrwxr-x 4 lilin lilin 17107 Feb 15 15:01 libcom_err.so.2.1 -rw-rw-r-- 2 lilin lilin 50738 Feb 15 15:02 libe2p.a -rwxrwxr-x 4 lilin lilin 36125 Feb 15 15:02 libe2p.so -rwxrwxr-x 4 lilin lilin 36125 Feb 15 15:02 libe2p.so.2 -rwxrwxr-x 4 lilin lilin 36125 Feb 15 15:02 libe2p.so.2.3 -rw-rw-r-- 2 lilin lilin 327632 Feb 15 15:02 libext2fs.a -rwxrwxr-x 4 lilin lilin 288183 Feb 15 15:02 libext2fs.so -rwxrwxr-x 4 lilin lilin 288183 Feb 15 15:02 libext2fs.so.2 -rwxrwxr-x 4 lilin lilin 288183 Feb 15 15:02 libext2fs.so.2.4 -rw-rw-r-- 2 lilin lilin 36546 Feb 15 15:02 libss.a -rwxrwxr-x 4 lilin lilin 28013 Feb 15 15:02 libss.so -rwxrwxr-x 4 lilin lilin 28013 Feb 15 15:02 libss.so.2 -rwxrwxr-x 4 lilin lilin 28013 Feb 15 15:02 libss.so.2.0 -rw-rw-r-- 2 lilin lilin 26544 Feb 15 15:02 libuuid.a -rwxrwxr-x 4 lilin lilin 37837 Feb 15 15:02 libuuid.so -rwxrwxr-x 4 lilin lilin 37837 Feb 15 15:02 libuuid.so.1 -rwxrwxr-x 4 lilin lilin 37837 Feb 15 15:02 libuuid.so.1.2 drwxrwxr-x 3 lilin lilin 4096 Feb 15 15:02 ss drwxrwxr-x 3 lilin lilin 4096 Feb 15 15:02 uuid
2011/02/15
e2fsprogs on Trident PNX84xx
訂閱:
張貼留言 (Atom)
1 則留言:
Hi, I read almost all articles on your blog, you do really interesting things. Is it possible to buy PNX84xx development board, or Realtek 1073/1283 development board in your country?
Here in Europe I cannot get it.
張貼留言