Klone on tqm860 board

tat edited this page Oct 16, 2012 · 1 revision

Technical specification of TQM8xx(L) boards


1 or 2 memory banks 2 to MByte 32-bit memory


4 to 64 MByte (4, 16, 32, 64)


serial (max 115200 Baud) bus (26 / 32 bit address-bus and 32 bit data-bus) can (2 CAN controllers Intel 82527) EBDI / BDM other

Power Supply

3.3V power supply (direct input) 5.0V power supply (5.0V to 3.3V integrated DC/DC converter)

Building KLone for ppc platform

For building kloned binary for power pc architecture please go to klone_and_eldk. It uses ELDK developement tool for cross compilation.


On target system was following SW installed:

U-boot 1.1.3

Linux PCU-1 2.4.20-rthal5

BusyBox 1.0.1

Uploading necessary files

List of necessary libaries can vary on used embedded system but basically following files are necessary to run kloned on TQM860 board:

Binaries: kloned (is produced by compilation on your host system)

Libraries (can be found in direcory /home/eldk/ppc_8xx/usr/lib/ and in /home/eldk/ppc_8xx/lib/ assuming that ELDK was installed into /home/eldk):

libcom_err.so.2 libcrypto.so.5 libgssapi_krb5.so.2 libk5crypto.so.3 libkrb5.so.3 libkrb5support.so.0 libresolv.so.0 libssl.so.5 libuClibc-0.9.27.so libz.so.1

Now connect to target system using FTP protocol

user@hostsystem:~/klone2$ ftp
ftp> open
Connected to

and fill in login and password.

Change to binary mode

ftp> bin
200 Type set to I.

and change directory to location where you want to store kloned.

ftp> cd /tmp
250 CWD command successful.

Close ftp connection.

ftp> exit

Change direcory to /home/eldk/ppc_8xx/usr/lib/

connect to target via FTP again and upload all libraries from list using send command. It is not necessary to upload libraries to the same directory but some embedded systems have /lib in RO part. Do the same for libraries located in /home/eldk/ppc_8xx/lib/

System variable configuration

  1. Create symbolic link to named libgcc_s.so.1 to file libuClibc-0.9.27.so

    [1/30] /tmp # ln -s libuClibc-0.9.27.so libgcc_s.so.1

  2. If you are not allowed for some reason to upload files to /lib ricectory add directory you want to copy in to LD_LIBRARY_PATH (this is not recommended solution, but on some systems it is only chance how to let system to know path to libraries.)

    [1/30] /tmp # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp [1/30] /tmp # export | grep LD_LIBRARY export LD_LIBRARY_PATH='/opt/usr/lib:/mnt/lib/:/mnt/usr/lib:/tmp'

  3. change mode

    [1/30] /tmp # chmode +x *

Running KLone on TQM860

[1/30] /tmp # ./kloned

Checking if server is running

Insert IP address of your target system followed by “:8080” into your browser and have a lot of fun.