{"id":1471,"date":"2016-05-26T13:54:43","date_gmt":"2016-05-26T05:54:43","guid":{"rendered":"http:\/\/kaoru.tech\/?p=1471"},"modified":"2016-05-26T17:11:37","modified_gmt":"2016-05-26T09:11:37","slug":"crosscompile-openssh","status":"publish","type":"post","link":"http:\/\/kaoru.tech:7000\/wordpress\/?p=1471","title":{"rendered":"CrossCompile openssh"},"content":{"rendered":"<h1>ChangeLog<\/h1>\n<div class=\"table-responsive\"><table  style=\"width:100%;  margin-left:auto;margin-right:auto\"  class=\"easy-table easy-table-cuscosky \" >\n<thead>\r\n<tr><th >Data<\/th>\n<th >Desc<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >2016\/5\/26<\/td>\n<td >update compile on i.MX6Ul<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<h1>Download sources<\/h1>\n<pre lang=\"bash\" class=\"\">$ git clone\u00a0git:\/\/anongit.mindrot.org\/openssh.git\r\n$ git clone\u00a0git:\/\/git.openssl.org\/openssl.git\r\n$ git clone https:\/\/github.com\/madler\/zlib.git<\/pre>\n<h1>Build openssl<\/h1>\n<p>\u5982\u679c\u7f16\u8bd1\u5668\u4e2d\u81ea\u5e26\u4e86openssl\u5e93\u5219\u4e0d\u9700\u8981\u81ea\u5df1\u91cd\u65b0\u7f16\u8bd1openssl\u3002\u5982\u679c\u7f16\u8bd1\u5668\u4e0d\u5e26openssl\uff0c\u6216\u8005\u81ea\u5e26\u7684openssl\u6709\u6f0f\u6d1e\uff0c\u5219\u9700\u8981\u81ea\u5df1\u4e0b\u8f7d\u5e76\u7f16\u8bd1openssl\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/kaoru.tech\/archives\/50\" target=\"_blank\">http:\/\/kaoru.tech\/archives\/50<\/a><\/li>\n<li><a href=\"http:\/\/kaoru.tech\/archives\/1385\" target=\"_blank\">http:\/\/kaoru.tech\/archives\/1385<\/a><\/li>\n<\/ul>\n<h1>Build zlib (i.MX6Ul)<\/h1>\n<pre class=\"lang:default decode:true\">$ .\/configure --host=arm-poky-linux-gnueabi\r\n$ make<\/pre>\n<h1><span style=\"font-size: 33px; font-weight: 900; line-height: 1.27273;\">Build openssh<\/span><\/h1>\n<pre class=\"lang:default decode:true\">$ git checkout V_7_2\r\n$ autoconf\r\n$ autoheader\r\n<\/pre>\n<h2>SAM9X5 (CROSS_COMPILE:arm-linux)<\/h2>\n<pre class=\"lang:default decode:true\">$ .\/configure --host=arm-linux --with-ssl-dir=\/data\/utils\/openssl.git $ make<\/pre>\n<h2>i.MX6UL (CROSS_COMPILE:arm-poky-linux-gnueabi)<\/h2>\n<pre class=\"lang:default decode:true\">$ .\/configure --host=arm-linux --with-ssl-dir=..\/openssl.git \\\r\n              --with-zlib=..\/zlib.git\/\r\n# modify Makefile, replace LD with CC\r\n$ make<\/pre>\n<h1>Deploy<\/h1>\n<pre class=\"lang:default decode:true\">$ cp ssh-keygen to TARGET \/usr\/sbin\r\n$ cp sshd to TARGET \/usr\/sbin\r\n$ cp sshd_config to TARGET \/usr\/local\/etc\/\r\n$ ssh-keygen -A\r\n# \/usr\/sbin\/sshd<\/pre>\n<h1>Reference<\/h1>\n<ul>\n<li style=\"padding-left: 30px;\"><a href=\"https:\/\/bbs.archlinux.org\/viewtopic.php?id=165382\">https:\/\/bbs.archlinux.org\/viewtopic.php?id=165382<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>ChangeLog Download sources $ git clone\u00a0git:\/\/anongit.mindrot.org\/openssh.git $ git clone\u00a0git:\/\/git.openssl.org\/openssl.git $ git clone https:\/\/github.com\/madler\/zlib.git Build openssl \u5982\u679c\u7f16\u8bd1\u5668\u4e2d\u81ea\u5e26\u4e86openssl\u5e93\u5219\u4e0d\u9700\u8981\u81ea\u5df1\u91cd\u65b0\u7f16\u8bd1openssl\u3002\u5982\u679c\u7f16\u8bd1\u5668\u4e0d\u5e26openssl\uff0c\u6216\u8005\u81ea\u5e26\u7684openssl\u6709\u6f0f\u6d1e\uff0c\u5219\u9700\u8981\u81ea\u5df1\u4e0b\u8f7d\u5e76\u7f16\u8bd1openssl\u3002 http:\/\/kaoru.tech\/archives\/50 http:\/\/kaoru.tech\/archives\/1385 Build zlib (i.MX6Ul) $ .\/configure &#8211;host=arm-poky-linux-gnueabi $ make Build openssh $ git&hellip;<\/p>\n","protected":false},"author":2,"featured_media":1481,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[16],"tags":[208,272],"class_list":["post-1471","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-crosscompile","tag-crosscompile","tag-openssh"],"_links":{"self":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1471","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=1471"}],"version-history":[{"count":13,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1471\/revisions"}],"predecessor-version":[{"id":1540,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1471\/revisions\/1540"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/1481"}],"wp:attachment":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1471"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}