Cross-compiling dropbear under MIPS

Source: Internet
Author: User
Tags dropbear

1. Compiling zlib-1.2.8

When compiling dropbear, I get the error of "configure: error: *** zlib missing - install first or check config.log ***", which is caused by the lack of zlib library, so before cross compiling dropbear, first To compile zlib.

(1) Download zlib Software installation package, http://zlib.net/zlib-1.2.8.tar.gz.

(2) Extract zlib compression package, enter command TAR–XZF zlib-1.2.8.tar.gz

(3) Enter Zlib folder, CD zlib-1.2.8

(4) then execute./configure--prefix=/root/zlib–static

(5) Edit the makefile file and modify the three cc=mips-linux-gcc,ldshared=mips-linux-gcc,cpp=mips-linux-gcc–e.

(6) Do clean && make

(7) Execute make install

(8) The generated zlib header files and libraries will be in the/root/zlib directory.

2. Compiling dropbear

(1) Download good dropbear compression package, the first decompression, decompression method with the "compilation of the second step in zlib-1.2.8."

(2) After entering the Dropbear folder, first execute the Autoconf–i

(3) execution./configure--with-zlib=/root/zlib cc=mips-linux-gcc--host=mips-linux--build=i686-pc-linux-gnu--prefix=/ Root/dropbear

(4) Do clean && make

(5) Execute make SCP

(6) Execute make install

3 Installation using Dropbear

(1) After performing these two steps, then execute Cd/root/dropbear, go to the Dropbear folder under the home directory, and copy the executable Dropbearkey, Dropbear, and SCP under its Sbin folder to the/usr/of the Development Board. Under the Sbin.

(2) then perform the following on the Development Board:

Dropbearkey-t rsa-f Dropbear_rsa_host_key

Dropbearkey-t dss-f Dropbear_dss_host_key

Copy the newly generated dropbear_rsa_host_key, dropbear_dss_host_key two files, execute "mkdirdropbear" in the Development Board's/etc directory, and put the generated two files in.

(3) After the above operation, you can start dropbear, directly under the Development Board run "/usr/sbin/dropbear", so you can use the win SCP login to try.

    • This article from: Hobby Linux Technology Network
    • This article link: http://www.ahlinux.com/embed/19758.html

Cross-compiling dropbear under MIPS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.