http://vault.centos.org/5.3/os/SRPMS/device-mapper-1.02.28-2.el5.src.rpm\r
https://www.fefe.de/dietlibc/dietlibc-0.34.tar.xz\r
\r
-======== Build Envrioment ======== \r
+======== Build Environment ======== \r
build for 32bit, static linked with dietlibc\r
1. install centos 6.10 i386 with CentOS-6.10-i386-bin-DVD1.iso\r
2. yum install gcc kernel-devel package\r
6. get dmsetup/dmsetup.static as the dmsetupaa64 binary file\r
\r
\r
+======================== Build for mips64 dmsetup =========================\r
+1. extract device mapper source code\r
+2. ./configure CC="mips64el-linux-musl-gcc -mips64r2 -mabi=64" --target=mips --host=x86_64-linux-gnu --disable-nls --disable-selinux --disable-shared --enable-static_link\r
+3. modify include/configure.h file\r
+ --- delete the line with "#define malloc rpl_malloc"\r
+4. make\r
+5. mips64el-linux-musl-strip dmsetup/dmsetup.static\r
+6. get dmsetup/dmsetup.static as the dmsetupm64e binary file\r
+\r
+\r
\r
\r
\r