Openssh cross compiled

Richard
I'm having some trouble cross-compiling openssh 6.1p1 for mini2440. The
toolchain i have is gcc.4.3.2 from the site, but even with the same flags i
use for other programs, the executables give me 'Illegal Instruction'. 

I Tried to compile openssh-5.0p1 with the same flags, and the client
worked, but the server don't.


Anyone having the same problem, or already have a working compilation?

Juergen Beisert
a) what target arch?
b) what compiler (exactly)?
c) what are the flags you are using?

Richard
The hardware is a micro2440 with sc2440.

I'm using this configure options for openSSH

./configure --host=arm-linux --disable-strip
--with-zlib=/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib/
--with-ssl-dir=/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib/
CFLAGS="-msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t"
LDFLAGS=-L/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib/
CPPFLAGS=-I/usr/local/arm/4.3.2/arm-none-linux-gnueabi/include/c++/4.3.2/

The compiler is arm-linux-gcc 4.3.2 downloaded from friendlyarm.net.

After some tries with other versions i got openSSH 4.3p1 working parcially,
but the client still give 'illegal instruction' and i discover today that
the server closes when some client asks his keys.

nilson
Hi Richard, did you had success on connecting to your micro2440 using ssh?
I've tried using OpenSSH4Mini2440 without success, and even after trying to
compile openSSH 4.3p1 using the flags you posted above it still gives me
Illegal Instruction after calling /usr/sbin/sshd. All I want to do is to
connect to my EM2440 using an SSH connection from inside Eclipse. Well,
just to inform, I've tried the opensSSH 5.6 and 6.5 also without success.

Another detail, when I tap "$netstat -nat" it returns me no TCP 22 port
listening, it would be a problem to another computer to try to connect
right? (sorry if this is a elementar question but I didn't found too much
information on how to setup a TCP port on the linux embeded - where we
don't have iptable resource available, for example)

so, if anyone have any clue..