help with mini 6410

Yohan Fernando
I have a board (Idea6410) which is similar to the Mini6410. It has the same
processor and same specs. 

The board currently has Qtopia on it, but I want to install Qt. I have been
following some guides with installing Qt on the 6410, but all of them are
for the mini2440

http://suchakra.wordpress.com/2011/05/17/qt-on-mini2440/

http://mini2440vietnam.blogspot.co.nz/2011/04/upgrade-qt462-in-mini2440....

Those are the procedures that I have been following, and I still havent had
any success. 

As I saw these parameters,(and left them out) since they were for the
mini2440, does anyone know what -march and -mtune is for the 6410?
For the mini2440 they are -march=armv4t -mtune=arm920t, but they cant be
the same since I think they describe the processor type and architecture. 

Can anyone help me or point me in the right direction?

blueshift
Please go through this thread. It will be helpful to you.
http://www.friendlyarm.net/forum/topic/4260

Yohan Fernando
This is very frustrating. I shall try and describe my full development
system as much as possible, and I hope someone can point out to me what I
am doing wrong here. 

I have the arm toolchain at /usr/local/arm/4.4.3 (which i downloaded from
here)
I have the source code downloaded from qt.nokia.com at /usr/local I am
considering redownloading it to make sure all files are there
I installed the host build to /usr/local/qt-host while I plan to have the
target build at /qt-target
tslib is in /home/tslib
I have also installed QtCreator, Assisstant, Designer and Linguist.. I
havent installed the SDK. Do I need to?

I built the host version successfully without any problems. I modified the
qmake files as per instructions in the two links I posted above. I even
successfully compiled tslib. 

I have tried to make the files (using sudo make -j5) about 10-20 times and
each time I get some error. I got an error about some invalid instruction
in qatomic_armv5.h, tslib errors and a host of others which I tried to fix
through trial and error and researching on forums..

Each time I issue sudo make confclean and reconfigure the build. This is my
latest configuration, 

sudo ./configure -prefix /qt-target -opensource -no-largefile
-no-qt3support -qt-zlib -qt-libtiff -qt-libmng -qt-libpng -qt-libjpeg
-no-openssl -silent -optimized-qmake -no-nis -no-cups -embedded arm
-xplatform qws/linux-arm-g++ -little-endian -qt-gfx-linuxfb -qt-gfx-vnc
-qt-kbd-tty -qt-kbd-linuxinput -qt-mouse-linuxinput -qt-mouse-tslib

When running this, this is the latest error I get, and I dont know what it
is, 
compiling .rcc/release-shared-emb-arm/qrc_methods.cpp
compiling .moc/release-shared-emb-arm/moc_birthdayparty.cpp
linking methods
compiling .moc/release-shared-emb-arm/moc_happybirthdaysong.cpp
make[5]: Leaving directory
`/usr/local/qt-everywhere-opensource-src-4.8.2/examples/declarative/cppextension
s/referenceexamples/methods'
compiling .rcc/release-shared-emb-arm/qrc_valuesource.cpp
rm -f libchapter6-plugins.so
linking lib/libchapter6-plugins.so
linking valuesource
mv -f libchapter6-plugins.so lib/
make[5]: Leaving directory
`/usr/local/qt-everywhere-opensource-src-4.8.2/examples/declarative/tutorials/ex
tending/chapter6-plugins'
make[4]: Leaving directory
`/usr/local/qt-everywhere-opensource-src-4.8.2/examples/declarative/tutorials/ex
tending'
make[3]: Leaving directory
`/usr/local/qt-everywhere-opensource-src-4.8.2/examples/declarative/tutorials'
make[5]: Leaving directory
`/usr/local/qt-everywhere-opensource-src-4.8.2/examples/declarative/cppextension
s/referenceexamples/valuesource'
make[4]: Leaving directory
`/usr/local/qt-everywhere-opensource-src-4.8.2/examples/declarative/cppextension
s/referenceexamples'
make[3]: Leaving directory
`/usr/local/qt-everywhere-opensource-src-4.8.2/examples/declarative/cppextension
s'
make[2]: Leaving directory
`/usr/local/qt-everywhere-opensource-src-4.8.2/examples/declarative'
make[1]: *** [sub-declarative-make_default] Error 2
make[1]: Leaving directory
`/usr/local/qt-everywhere-opensource-src-4.8.2/examples'
make: *** [sub-examples-make_default-ordered] Error 2

Does anyone know any fix? Is there any tried and tested method for
compiling a Qt build for the mini6410 that will work????? Btw I'm using
Qt4.8.2. 

Any help would be greatly appreciated as now it seems like I'm just hitting
my head against a brick wall..

holger
I could compile this version with this configure options you posted
successful.
But I have the FriendlyARM gcc in version 4.5.1. Maybe try with this
version instead of yours? :-)

Yohan Fernando
Where do you find version 4.5.1? I tried looking for it in the downloads
and on the FTP site, but couldnt find anything. 

Thanks so much for your help!

Yohan Fernando
http://code.google.com/p/mini6410-debian/downloads/detail?name=arm-linux...=

Would that link be OK? The site says it is for Debian/Emdebian for
Mini6410, but I searched for it on google by typing "arm-linux-gcc 4.5.1"
that file should be ok right?

holger
It is on the FTP site here:-)
It is in the Mini6410A-20111022.iso (maybe is a newer iso now?) Download
the ISO, burn it to a dvd or mount it. In there is a "Linux"-folder
containing the arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz.

Yohan Fernando
I used the 4.5.1 toolchain and still I had problems. Then I went to the
4.7.4 source code and both my host and target files compiled and were
installed without any problems. 

I copied my qt files to /qt-tartget4.7.4 and the tslib files to /tslib in
the mini6410. Due to issues with symbolic links, I was not able to copy the
files using terminal, so then I had to compress them and transfer via SD
card. I changed all the files with .so.4.7.4 extensions in the Qt lib
folder to .s0.4. 

Then I tried to run fluid launcher (./fluidlauncher -qws), but I got an
error saying that "libts-1.0.so.0: cannot open shared object file". I found
it in the tslib folder, and then changed the file name. After that
libQtGui.so.4 cannot be opened. I checked, and this file does exist in the
tslib folder. But I have submitted the file path correctly. 

Additionally, once the board boots up, it gets stuck in the screen with the
linux penguin in the top right and a flashing cursor. Previously it would
boot in to the Qtopia GUI. 

I am attaching my /etc/profile and /etc/init.d/rcS files
profile

# Ash profile
# vim: syntax=sh

# No core files by default
#ulimit -S -c 0 > /dev/null 2>&1

#export set TSLIB_TSDEVICE=/dev/event1
#export set TSLIB_CONFFILE=/etc/ts.conf
#export set TSLIB_PLUGINDIR=/lib/ts
#export set TSLIB_CALIBFILE=/etc/pointercal
export set HOME=/root
#export set QTDIR=/opt/Qtopia
#export set QPEDIR=/opt/Qtopia
#export set KDEDIR=/opt/kde
export set QWS_KEYBOARD="TTY:/dev/tty1"
#export set QWS_MOUSE_PROTO="TPanel:/dev/event1 USB:/dev/mouse0"
#export set PATH=$QPEDIR/bin:$PATH
#export set LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/lib

export LD_LIBRARY_PATH=/tslib/lib
export QTDIR=/qt-target4.7.4
export QWS_MOUSE_PROTO=tslib:/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_PLUGINDIR=/tslib/lib/ts
export TSLIB_TSDEVICE=/tslib/lib/ts
export TSLIB_TSEVENTTYPE=INPUT
export QWS_DISPLAY=LinuxFB:mmWidth=105:mmHeight=140

USER="`id -un`"
LOGNAME=$USER
PS1='[\u@\h \W]# '
PATH=$PATH

HOSTNAME=`/bin/hostname`
                        
export USER LOGNAME PS1 PATH


rcS
#!/bin/sh


PATH=/sbin:/bin:/usr/sbin:/usr/bin
runlevel=S
prevlevel=N
umask 022
export PATH runlevel prevlevel

#
#       Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#

mount -a
mkdir -p /dev/pts
mount -t devpts devpts /dev/pts
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
mkdir -p /var/lock

mkdir /dev/fb /dev/v4l
ln -s /dev/fb0 /dev/fb/0
ln -s /dev/video0 /dev/v4l/video0

hwclock -s
EmbedSky_wdg &

insmod /lib/modules/mac80211.ko
#TL-WN321G+
insmod /lib/modules/rt2x00lib.ko
insmod /lib/modules/rt2x00usb.ko
insmod /lib/modules/rt73usb.ko
#TL-WN322G+
insmod /lib/modules/zd1211rw.ko

ifconfig lo 127.0.0.1
net_set &                       
                                
/etc/rc.d/init.d/httpd start    
                               
#source /etc/qt46profile       
                               
#qtopia &                   
#/bin/hostname -F /etc/sysconfig/HOSTNAME

Thank you very very much for you help in advance,and I really hope someone
can help me and point me in the right direction.