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