Difference between revisions of "HIP:TS-7000:dropbear"
Jump to navigation
Jump to search
(→move to usr/sbin) |
(→crosstool) |
||
Line 3: | Line 3: | ||
= compiling = | = compiling = | ||
− | == crosstool == | + | == crosstool setup == |
=== download and setup ts crosstool package === | === download and setup ts crosstool package === | ||
* At the time of this writing, I downloaded '''Linux Crosstool gcc-4.0.1-glibc-2.3.5 -- unknown (05-20-2006)''' | * At the time of this writing, I downloaded '''Linux Crosstool gcc-4.0.1-glibc-2.3.5 -- unknown (05-20-2006)''' |
Revision as of 11:42, 23 May 2007
Contents
about
This page describes how to compile dropbear to run in Technologic System's TS-Linux distribution. We're using the TS-7260.
compiling
crosstool setup
download and setup ts crosstool package
- At the time of this writing, I downloaded Linux Crosstool gcc-4.0.1-glibc-2.3.5 -- unknown (05-20-2006)
ftp://ftp.embeddedarm.com/ts-arm-linux-cd/cross-toolchains/crosstool-linux-gcc-4.0.1-glibc-2.3.5.tar.bz2
move it to / and unpack it
cd / sudo tar -xf crosstool-linux-gcc-4.0.1-glibc-2.3.5.tar
add it to your path
arm@crow:~$ cat ~/.bash_profile | grep cross PATH=/opt/crosstool/gcc-4.0.1- glibc-2.3.5/arm-unknown-linux-gnu/bin:${PATH}
dropbear ssh server and client
download dropbear
- At the time of this writing dropbear was at version 0.49
- [dropbear home]
wget http://matt.ucc.asn.au/dropbear/releases/dropbear-0.49.tar.bz2
compile dropbear
export CFLAGS="-Os -static -Wall" export LDFLAGS="-static" ./configure --host=arm-unknown-linux-gnu --build=arm --disable-zlib
make
make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" MULTI=1
move to usr/sbin
- dropbearmulti is primary binary, the rest are symbolic links to it
arm@crow:~/dropbear-0.49$ mv dropbearmulti ../tslinux/usr/sbin arm@crow:~/tslinux/usr/sbin$ ln -s dropbearmulti scp arm@crow:~/tslinux/usr/sbin$ ln -s dropbearmulti dropbearconvert arm@crow:~/tslinux/usr/sbin$ ln -s dropbearmulti dropbearkey arm@crow:~/tslinux/usr/sbin$ ln -s dropbearmulti dbclient arm@crow:~/tslinux/usr/sbin$ ln -s dropbearmulti dropbear
arm@crow:~/tslinux/usr/sbin$ ls -l | grep drop lrwxrwxrwx 1 arm arm 13 2007-05-23 11:29 dbclient -> dropbearmulti lrwxrwxrwx 1 arm arm 13 2007-05-23 11:30 dropbear -> dropbearmulti lrwxrwxrwx 1 arm arm 13 2007-05-23 11:28 dropbearconvert -> dropbearmulti lrwxrwxrwx 1 arm arm 13 2007-05-23 11:28 dropbearkey -> dropbearmulti -rwxr-xr-x 1 arm arm 821396 2007-05-23 11:24 dropbearmulti lrwxrwxrwx 1 arm arm 13 2007-05-23 11:27 scp -> dropbearmulti