[Frage] sshpass für freetz auf FB 7390 compilieren

Mit freetz als "Toolchain" für die 7390:
Code:
# Paket laden und auspacken, hier im "freetz-Ordner" mit "freetz-trunk"
cd sshpass-1.05
PATH="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin:/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4/mips-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" CC="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/mips-linux-uclibc-gcc" CXX="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/mips-linux-uclibc-g++-wrapper" CFLAGS="-march=24kc -mtune=24kc -msoft-float -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CXXFLAGS="-march=24kc -mtune=24kc -msoft-float -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="" PKG_CONFIG_PATH="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/../lib/pkgconfig" PKG_CONFIG_LIBDIR="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/../lib/pkgconfig" GLOBAL_LIBDIR=/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/usr/lib   ./configure    --cache-file=/home/joerg/freetz-trunk/source/target-mips_gcc-4.6.4_uClibc-0.9.32.1/config.cache --target=mips-linux --host=mips-linux --build=x86_64-pc-linux-gnu 

make
# oder für ein statisches Binary
make LDFLAGS=-static

# ggf. noch "strippen"
/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/mips-linux-strip sshpass
Ergebnis:
Code:
joerg@joerg-Ubuntu:~/freetz-trunk/sshpass-1.05$ file sshpass
sshpass: ELF 32-bit MSB  executable, MIPS, MIPS32 rel2 version 1 (SYSV), statically linked, stripped
joerg@joerg-Ubuntu:~/freetz-trunk/sshpass-1.05$ qemu-mips ./sshpass -h
Usage: sshpass [-f|-d|-p|-e] [-hV] command parameters
   -f filename   Take password to use from file
   -d number     Use number as file descriptor for getting password
   -p password   Provide password as argument (security unwise)
   -e            Password is passed as env-var "SSHPASS"
   With no parameters - password will be taken from stdin

   -h            Show help (this screen)
   -V            Print version information
At most one of -f, -d, -p or -e should be used
joerg@joerg-Ubuntu:~/freetz-trunk/sshpass-1.05$
 

Anhänge

  • sshpass.gz
    43.5 KB · Aufrufe: 14
Da ich noch nach amtterm gefragt wurde:
Das geht fast 1:1 genauso, wie oben beschrieben: Freetz auschecken, 7390 als Box wählen und einmal "make" ausführen, um die Toolchain zu bauen,
Welche Libs man noch braucht, muss man ggf. noch prüfen, die bei mir vorhandenen reichten ;-)

Amttel braucht/hat kein "configure", das mach alles das Makrefile, Steht aber auch im INSTALL,,,

Code:
# im Freetzordner habe ich amtterm 1,4 ausgepackt, dann

joerg@joerg-Ubuntu:~/freetz-trunk$ cd amtterm-1.4
joerg@joerg-Ubuntu:~/freetz-trunk/amtterm-1.4$ PATH="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin:/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4/mips-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" CC="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/mips-linux-uclibc-gcc" CXX="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/mips-linux-uclibc-g++-wrapper" CFLAGS="-march=24kc -mtune=24kc -msoft-float -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CXXFLAGS="-march=24kc -mtune=24kc -msoft-float -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="-static " PKG_CONFIG_PATH="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/../lib/pkgconfig" PKG_CONFIG_LIBDIR="/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/bin/../lib/pkgconfig" GLOBAL_LIBDIR=/home/joerg/freetz-trunk/toolchain/build/mips_gcc-4.6.4_uClibc-0.9.32.1/mips-linux-uclibc/usr/lib   make 
checking for libdir name ... lib
checking for gtk+-x11-2.0 (using pkg-config) ... no
checking for vte (using pkg-config) ... no

Make.config written, edit if needed

checking for libdir name ... lib
  CC	  amtterm.o
  CC	  redir.o
  CC	  tcp.o
  LD	  amtterm
joerg@joerg-Ubuntu:~/freetz-trunk/amtterm-1.4$ 
joerg@joerg-Ubuntu:~/freetz-trunk/amtterm-1.4$ file amtterm
amtterm: ELF 32-bit MSB  executable, MIPS, MIPS32 rel2 version 1, statically linked, not stripped
joerg@joerg-Ubuntu:~/freetz-trunk/amtterm-1.4$ qemu-mips ./amtterm

This is amtterm, release 1.4, I'll establish
serial-over-lan (sol) connections to your Intel AMT boxes.

usage: amtterm [options] host [port]
options:
   -h            print this text
   -v            verbose (default)
   -q            quiet
   -u user       username (default: admin)
   -p pass       password (default: $AMT_PASSWORD)

By default port 16994 is used.
If no password is given amtterm will ask for one.

-- 
(c) 2007 Gerd Hoffmann <[email protected]>

joerg@joerg-Ubuntu:~/freetz-trunk/amtterm-1.4$
 

Anhänge

  • amtterm.gz
    61 KB · Aufrufe: 5

Zurzeit aktive Besucher

Neueste Beiträge

Statistik des Forums

Themen
244,858
Beiträge
2,219,651
Mitglieder
371,572
Neuestes Mitglied
#Kuddel#
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.