{"id":1717,"date":"2017-09-16T22:37:51","date_gmt":"2017-09-16T14:37:51","guid":{"rendered":"http:\/\/kaoru.tech:7000\/wordpress\/?p=1717"},"modified":"2017-09-16T22:37:51","modified_gmt":"2017-09-16T14:37:51","slug":"cross-compile-dosfstools","status":"publish","type":"post","link":"http:\/\/kaoru.tech:7000\/wordpress\/?p=1717","title":{"rendered":"Cross Compile dosfstools"},"content":{"rendered":"<p>\u7531\u4e8ebusybox\u4e2d\u63d0\u4f9b\u7684mkfs.vfat\u65e0\u6cd5\u683c\u5f0f\u5316\u8d85\u8fc72G\u7684\u5206\u533a\uff0c\u63d0\u793a\uff1a<\/p>\n<pre class=\"lang:default decode:true\">mkfs.vfat: lseek: Value too large for defined data type<\/pre>\n<p>\u6240\u4ee5\u9700\u8981\u5355\u72ec\u7f16\u8bd1mkfs.fat\u4ee5\u652f\u63012G\u4ee5\u4e0a\u7684\u5206\u533a<\/p>\n<pre class=\"lang:sh decode:true\">$ git clone https:\/\/github.com\/dosfstools\/dosfstools.git dosfstools.git\r\n$ cd dosfstools.git\r\n$ git checkout v4.1<\/pre>\n<p>\u9996\u5148\u4ea7\u751fconfigure\u6587\u4ef6\uff0c\u6267\u884cautoconf\u540e\u62a5\u9519\uff1a<\/p>\n<pre class=\"lang:default decode:true\">$ autoconf\r\nconfigure.ac:19: error: possibly undefined macro: AM_INIT_AUTOMAKE\r\n If this token and others are legitimate, please use m4_pattern_allow.\r\n See the Autoconf documentation.\r\nconfigure.ac:30: error: possibly undefined macro: AM_CONDITIONAL\r\nconfigure.ac:58: error: possibly undefined macro: AC_DEFINE<\/pre>\n<p>\u7ecf\u67e5\u9700\u8981\u5148\u6267\u884caclocal<\/p>\n<pre class=\"lang:default decode:true\">$ aclocal\r\n$ autoconf<\/pre>\n<p>\u4ea7\u751fconfigure\u540e\u8fdb\u884c\u81ea\u52a8\u914d\u7f6e\u4ea7\u751fMakefile\uff1a<\/p>\n<pre class=\"lang:default decode:true\">$ .\/configure --host=arm-linux\r\nconfigure: loading site script \/data\/toolchain\/imx-a7\/site-config-cortexa7hf-vfp-neon-poky-linux-gnueabi\r\nconfigure: error: cannot find install-sh, install.sh, or shtool in \".\" \".\/..\" \".\/..\/..\"<\/pre>\n<p>\u67e5\u4e86\u4e00\u4e0b\u9700\u8981\u5148\u6267\u884cautoconf &#8211;install\u4ea7\u751finstall-sh\u811a\u672c<\/p>\n<pre class=\"lang:default decode:true\">$ autoreconf --install\r\n$ .\/configure --host=arm-linux\r\n$ make\r\n$ file src\/mkfs.fat\r\nsrc\/mkfs.fat: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter \/lib\/ld-linux-armhf.so.3, for GNU\/Linux 2.6.32, BuildID[sha1]=9ae7350e4d6a124867e762b8d019b5a881a8ca97, not stripped<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8ebusybox\u4e2d\u63d0\u4f9b\u7684mkfs.vfat\u65e0\u6cd5\u683c\u5f0f\u5316\u8d85\u8fc72G\u7684\u5206\u533a\uff0c\u63d0\u793a\uff1a mkfs.vfat: lseek: Value too large for defined data type \u6240\u4ee5\u9700\u8981\u5355\u72ec\u7f16\u8bd1mkfs.fat\u4ee5\u652f\u63012G\u4ee5\u4e0a\u7684\u5206\u533a $ git clone https:\/\/github.com\/dosfstools\/dosfstools.git dosfstools.git $ cd dosfstools.git $ git checkout v4.1 \u9996\u5148\u4ea7\u751fconfigure\u6587\u4ef6\uff0c\u6267\u884cautoconf\u540e\u62a5\u9519\uff1a $ autoconf configure.ac:19: error: possibly undefined&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1717","post","type-post","status-publish","format-standard","hentry","category-crosscompile"],"_links":{"self":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1717","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1717"}],"version-history":[{"count":1,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1717\/revisions"}],"predecessor-version":[{"id":1718,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1717\/revisions\/1718"}],"wp:attachment":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1717"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}