With the help of Ronald Gomes from Technologic Systems who was very helpful I
managed
to resolve all issues now and thought I should sum it up here to prevent others
who are
new to TS7300 from facing the same situation.
It turned out that there was indeed something wrong with the RT kernels that TS
offered
on their FTP. Ronald updated them now, and the new ones work.
I also had issues with bootload on TS7300 with most of the kernels. Ronald
confirmed that
there are problems loading RT kernels, but others should work. The only one I
managed to
load here though was the new 2.6 zImage, everything else, including the default
kernel
from the sd card failed to load. Since things work for me now I am not looking
into this
further, but for people who have problems with kernels on TS7300 I highly
recommend
always writing kernels to the first partition of the sd card using dd. At least
one document
mentioned symbolic links from /vmlinux.bin to the kernel to load, but this does
not work
for me on TS7300 either, so dd seems the way to go.
I ended up compiling my own crosstool chain including modutils for kernel
compiling and
gdb for remote debugging (very nice when using through Eclipse CDT), kernels,
lincan and
RTAI. And since this might be useful for others I share it here:
http://www.scratchdisk.com/static/ts7300/crosstool-linux-gcc-3.3.4-glibc-2.3.2-
modutils-gdb.tar.bz2
http://www.scratchdisk.com/static/ts7300/vmlinux-7300-ts11-rt.bin.bz2
http://www.scratchdisk.com/static/ts7300/modules-ts11-rt.tar.bz2
http://www.scratchdisk.com/static/ts7300/rtai-ts11-rt.tar.bz2
http://www.scratchdisk.com/static/ts7300/vmlinux-7300-ts11.bin.bz2
http://www.scratchdisk.com/static/ts7300/modules-ts11.tar.bz2
I used Ubuntu for compilation. Here a brief overview about the process in
detail:
1. downgrade gcc-3.4:
sudo aptitude install gcc-3.4
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
2. dash -> bash:
sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh
3. crosstools:
- download crosstools-0.28
- edit demo-arm.sh:
eval `cat arm.dat gcc-3.3.4-glibc-2.3.2.dat` sh all.sh --notest
- edit arm.dat:
TARGET=arm-linux
- run demo-arm.sh
4. gdb
download gdb-6.8, unzip to /opt/src/gdb-6.8
./configure --target="arm-linux" --disable-nls --prefix=/opt/crosstool/arm-
linux/gcc-3.3.4-glibc-2.3.2/
make
make install
5. modutils: (for depmod)
./configure --target=arm-linux
--prefix=/opt/crosstool/arm-linux/gcc-3.3.4-glibc-
2.3.2
make
make install
6. ts patch:
cd /opt/src/linux24-ts
patch -p1 <
/mnt/hgfs/lehni/TS-7300/kernel/src/rt-tskernel-2.4.26-tsX-adeos.patch
(displays 1 error)
7. modify Makefile:
EXTRAVERSION =-ts11-tr
CROSS_COMPILE = /opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-
DEPMOD = /opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/sbin/depmod
8. kernel:
make ts7300_config
make oldconfig
(accept adeos, but not 'adeos domains are threads')
make menuconfig
make dep
make vmlinux
make modules
make modules_install INSTALL_MOD_PATH=/opt/dist
9. rtai:
make ARCH=arm CROSS_COMPILE=/opt/crosstool/arm-linux/gcc-3.3.4-glibc-
2.3.2/bin/arm-linux-
install director: /usr/realtime
linux source directory: /opt/src/linux24-ts
sudo make install
sudo mv /usr/realtime/ /opt/dist/
10. back to gcc-4.x:
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.x /usr/bin/gcc
11. bash -> dash:
sudo rm /bin/sh
sudo ln -s /bin/dash/ /bin/sh
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|