Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12590 Discussions

sshd on Nios II uClinux with buildroot

Altera_Forum
Honored Contributor II
1,025 Views

Hello tschmelcher, 

 

I am following your defined step for sshd on Nios II. 

http://forum.niosforum.com/forum/index.php?showtopic=3252 (http://forum.niosforum.com/forum/index.php?showtopic=3252

 

Step 1 works fine. 

 

Step 2 have some problems 

1.) Make its config.h.in: autoheader 

I didn't get exactly. 

2.) while configuring with given command, it failed with given below error message. it is looking for 

zlib. 

******configure: error: *** zlib missing - please install first or check config.log *** 

3.) I did make in usr/ssh dir. in the start only following message came. what to do? 

********************************** 

(cd openbsd-compat && make) 

make[1]: Entering directory `/home/goutam/uClinux-dist-test/user/ssh/openbsd-compat' 

cc -I. -I.. -c -o bsd-arc4random.o bsd-arc4random.c 

In file included from ../includes.h:22, 

from bsd-arc4random.c:25: 

../config.h:9:29: config/autoconf.h: No such file or directory 

make[1]: *** [bsd-arc4random.o] Error 1 

make[1]: Leaving directory `/home/goutam/uClinux-dist-test/user/ssh/openbsd-compat' 

make: *** [subdirs] Error 2 

**************************************** 

 

How the error will remove. is any more patches required? 

 

thanks & regard, 

Goutam
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
317 Views

may be you should try uClinux-dist-20051110 in step2.

0 Kudos
Altera_Forum
Honored Contributor II
317 Views

I built the ssh and sshd with buidlroot and uClinux-dist-20051110. 

But I didn't run them yet. (I don't have any boards with Ethernet) 

 

1. follow tschmelcher's sshd guide, build openssl in buildroot. 

2. build zlib in buildroot, it may fail in so, but just ignore it. 

3. apply the uClinux-dist.diff as in build script. 

edit uClinux-dist/vendors/Altera/nios2nommu/config.arch, add "-lcrypt -lutil" to LDPATH for apps. 

touch uClinux-dist/vendors/Altera/nios2nommu/inittab 

4. build ssh and sshd in uClinux-dist, but DON'T use the cross patches in tschmelcher's sshd guide.  

make menuconfig,make subdirs,make romfs.
0 Kudos
Reply