following the document Qt Creator Embedded Debugging Setup
After following the steps I get to the section
The Qt is suppose to test the connect, but mine is not successfull and there is no further information if the connection fails.
I get the error: "SSH connection failure: Connection refused Device test failed." from QT
I cannot find any help for a SSH connection to my DM8168 evm board.
please someone help
I am using the EZSDK 5_3_01_15
Well I guess I missed the fine print at the top of the doc, DropBear is required, That's great seeing that the EZSDK doesn't include that, it would be nice if the document goes through how to install that on the evm's file system, to be a consice, efficent, and informative document.
So how do I get dropbear on my DM8168evm? anyone?
Help Help Help Help!
Some one must know how to help me out there? wheres the support for your Product TI!
I think I install Dropbear on the target, targetfs/bin well at least thats a director that one web site said to put it.
but I am still getting the
Connecting to host...
SSH connection failure: Connection refused
Device test failed.
when QT creator tries to test the connection.
I am new to linux, so I am totally lost on what I should do, not sure why everyone says Linux is so great... it has caused me nothing but frustration and anger.
PLEASE IS THERE ANYONE OUT THERE WHO CAN HELP!
Well since it would seem that I am the only one on the planet that is trying to do this, I just keep posting info that I find combing the web, in hopes that it might help someone else
The thing about dropbear is that you have to cross compile it for your target, this web site was very helpfull, NOT A TI SITE!
this link seems strange so if you cannot get to it just google the phrase "Dropbear: How-To setup SSH Server on Embedded Linux Targets"
After following the section near the end for Dropbear, I actually received a different error message:
SSH connection failure: Server rejected password.
Which seems contrary to what the original artical I was following:http://processors.wiki.ti.com/index.php/Qt_Creator_Embedded_Debugging_Setup
which states in the "Connection a linux device" section to leave the password blank!
I seem slightly closer, back to Google.
It seems like I am getting a transaction between the server and client but I am getting error message, then the connection fails.
I start dropbear with -E -s -g
the server message:
Child connection from 192.168.1.24:47174 Dec 09 15:11:03 Exit before auth (user 'root', 1 fails): Disconnect received
If I disabled using a password, and the client doesn't send a password, why do I get a password error? This is so frustrating, I hope I get this solved soon I need to get some real work done.
I finally got past the section in the original article step by step I was following. :)
The problem with the intitial test of the ssh connect was that I had to create a password for the evm root login?
Not sure if it was dropbear not working even when I gave the arguments -s -g or if QT creator is just a little wierd and really wants a value in the password field for the connection.
At any rate the original article is incorrect and I am not sure how they got it to work as described.
FYI to set a password:
after logging in to the target just type: passwd
hopefully the rest of the instruction goes smoothly, this section took me 3 days just to get working.
I got to the end of the Document I have been following and ran debug mode...nothing happened, Qt got stuck in build mode. I had to exit the app
Happened to notice on the terminal window were I launched QT a error message:
Unexpected extended data 'sh: /usr/libexec/sftp-server: not found' of type 1 on SFTP channel.Remote SFTP service exited with exit code 127
The document doesn't mention setting up SFTP, what is SFTP and were should it be installed
Hello TI this is your docuemnt, its incomplete and to many errors. Following it doesn't not get me a debug environment its be 5 days trying to get this to work.
Any one else do this before and know what SFTP is and where it should be installed? another day Googleing :(
I will update the wiki page to cover supported platforms so others will be aware. This wiki page has been tested against the am335x, am35x, am37x, and am180x. It looks like EZSDK for the 816 is missing the sftp-server and maybe more. We utilize an automated build system. I checked this system to find that the sftp-server is built from the open-ssh package: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-5.6p1.tar.gz
Then there is an addtional patch : openssh-5.2-sftp-server-nolibcrypto.patch
which is used to modify the makefile to generate the sftp-server.
You can find that patch here:
it is located under the directory: arago-oe-dev/recipes/openssh/openssh-5.6p1
If this post resolves your issue, please click on the verified answer.
Thanks for the reply.
But being really new to linux, I don't understand what info your are giving me?
should I download the ftp file your pointing to? Then what do I do with it? I am not sure what that is.
The patch you mentioned is for the ftp file I downloaded?
Also I am not sure what to do with the git line? If I type that in I just get an error
I didn't realize you were new to Linux. I was trying to point you to the necessary steps to install the components you needed. There may be another alternative for you.
You can use ethernet to NFS mount your filesystem. So your EVM's filesystem can be located on your Host LInux development machine. Then you could use QT creator to build your project right inside the filesystem. The only difference may be that you need to manually start and run the QT binaries once you create them, so that would be one extra step for you. You could start the newly created QT programs using your minicom console and launch them command line.
There is a setup script (setup.sh) that comes in the root directory of our EZSDK on your host machine. If you run it, It will allow you to automatically create all the files and u-boot parameters needed to NFS boot your filesystem rather than using the SD card.
So I downloaded the OpenSSH, but when I try to compile it I get an error that zlib is not installed.
So I tried downloading that and compiling that, but it doesn't seem to install correctly for embedded linux because I keep getting errors about it when I compile OpenSSH.
Can someone provide guidance on how to get these app compiled and installed for the DM8168? I have been searching for days on google and can't find anything that helps me.
From what I understand OpenSSH needs to be installed on the target to provided SFTP support because that's what QT creator uses to transfer files, is this correct or is there an alternative? I really need to be able to debug the app I am working on, it increasly hard to debug and app with out break points and other debug windows.
Some out out there must have done this before?
Thanx for the replies.
FYI I have been developing for Linux only for a few months, so please be as detailed as possible.
Here is a compiler run for zlib on the terminal window:
[linux-devkit]:~/Downloads/zlib/zlib-1.2.7> CC=arm-none-linux-gnuabi-gcc[linux-devkit]:~/Downloads/zlib/zlib-1.2.7> ./configure --prefix=/home/jdionne/zlibinstallChecking for shared library support...No shared library support; try without defining CC and CFLAGSBuilding static library libz.a version 1.2.7 with arm-none-linux-gnuabi-gcc.Checking for off64_t... No.Checking for fseeko... No.Checking for strerror... No.Checking for unistd.h... No.Checking for stdarg.h... No.Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf().Checking for snprintf() in stdio.h... No. WARNING: snprintf() not found, falling back to sprintf(). zlib can build but will be open to possible buffer-overflow security vulnerabilities.Checking for return value of sprintf()... No. WARNING: apparently sprintf() does not return a value. zlib can build but will be open to possible string-format security vulnerabilities.Looking for a four-byte integer type... Not found.
I was finally able to compile zlib with out errors I think output:
jdionne@Linux-Jeff:~/Downloads/zlib/zlib-1.2.7$ CC=arm-none-linux-gnuabi-gccjdionne@Linux-Jeff:~/Downloads/zlib/zlib-1.2.7$ .//configure --prefix=/home/jdionne/zlibinstallChecking for gcc...Checking for shared library support...Building shared library libz.so.1.2.7 with gcc.Checking for off64_t... Yes.Checking for fseeko... Yes.Checking for strerror... Yes.Checking for unistd.h... Yes.Checking for stdarg.h... Yes.Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().Checking for vsnprintf() in stdio.h... Yes.Checking for return value of vsnprintf()... Yes.Checking for attribute(visibility) support... Yes.Looking for a four-byte integer type... Found.jdionne@Linux-Jeff:~/Downloads/zlib/zlib-1.2.7$ makegcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -c -o example.o test/example.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o adler32.o adler32.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o crc32.o crc32.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o deflate.o deflate.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o infback.o infback.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inffast.o inffast.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inflate.o inflate.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o inftrees.o inftrees.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o trees.o trees.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o zutil.o zutil.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o compress.o compress.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o uncompr.o uncompr.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzclose.o gzclose.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzlib.o gzlib.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzread.o gzread.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -c -o gzwrite.o gzwrite.car rc libz.a adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o example example.o -L. libz.agcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -c -o minigzip.o test/minigzip.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip minigzip.o -L. libz.agcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/adler32.o adler32.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/crc32.o crc32.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/deflate.o deflate.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/infback.o infback.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inffast.o inffast.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inflate.o inflate.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/inftrees.o inftrees.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/trees.o trees.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/zutil.o zutil.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/compress.o compress.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/uncompr.o uncompr.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzclose.o gzclose.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzlib.o gzlib.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzread.o gzread.cgcc -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -DPIC -c -o objs/gzwrite.o gzwrite.cgcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o libz.so.1.2.7 adler32.lo crc32.lo deflate.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo zutil.lo compress.lo uncompr.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo -lc rm -f libz.so libz.so.1ln -s libz.so.1.2.7 libz.soln -s libz.so.1.2.7 libz.so.1gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o examplesh example.o -L. libz.so.1.2.7gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzipsh minigzip.o -L. libz.so.1.2.7gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -D_FILE_OFFSET_BITS=64 -c -o example64.o test/example.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o example64 example64.o -L. libz.agcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -I. -D_FILE_OFFSET_BITS=64 -c -o minigzip64.o test/minigzip.cgcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN -o minigzip64 minigzip64.o -L. libz.ajdionne@Linux-Jeff:~/Downloads/zlib/zlib-1.2.7$ make installcp libz.a /home/jdionne/zlibinstall/libchmod 644 /home/jdionne/zlibinstall/lib/libz.acp libz.so.1.2.7 /home/jdionne/zlibinstall/libchmod 755 /home/jdionne/zlibinstall/lib/libz.so.1.2.7cp zlib.3 /home/jdionne/zlibinstall/share/man/man3chmod 644 /home/jdionne/zlibinstall/share/man/man3/zlib.3cp zlib.pc /home/jdionne/zlibinstall/lib/pkgconfigchmod 644 /home/jdionne/zlibinstall/lib/pkgconfig/zlib.pccp zlib.h zconf.h /home/jdionne/zlibinstall/includechmod 644 /home/jdionne/zlibinstall/include/zlib.h /home/jdionne/zlibinstall/include/zconf.h
but when I compile OpenSSH I get:
checking for yp_match... nochecking for yp_match in -lnsl... yeschecking for setsockopt... yeschecking for dirname... yeschecking libgen.h usability... yeschecking libgen.h presence... yeschecking for libgen.h... yeschecking for getspnam... yeschecking for library containing basename... none requiredchecking zlib.h usability... nochecking zlib.h presence... nochecking for zlib.h... noconfigure: error: *** zlib.h missing - please install first or check config.log ***make: *** No rule to make target `sftp-server'. Stop.arm-none-linux-gnueabi-strip: 'sftp-server': No such file
zlib looked successful so why is OpenSSH saying it cannot find it?
the problem with the OpenSSH compile is it cannot find the zlib install, it compiles fine for the Desktop, how do I tell the configure where the cross compiled zlib is?
I've not built openSSH recently, but in many cases setting the LDFLAGS=/path to zlib
will tell the config where to find additional libs.
You may want to post any new issues to a new thread. New threads will be visible to everyone on the list.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.