Skyeye Install Guide
Yangye 2003-2-20
------------------------------------------------------------------------------------------------
6. Compile and run
ucosII samples for Skyeye
7 . Compile and run
ucLinux for Skyeye
------------------------------------------------------------------------------------------------
From mirror ftp site, get the newest versions.
Skyeye-v0.2b4.tgz
ucosii4skyeye-v1.6b4.tgz
uclinux4skeye-v0.1a1.tgz
$tar xvzf skyeye-v0.2b4.tgz
$tar xvzf ucosii4skyeye-v1.6b4.tgz
$tar xvzf uclinux4skeye-v0.1a1.tgz
( NOTICE: you
shoud have root id first!)
#su -
#cd skyeye
#./configure --target=arm-elf --prefix=/usr/local --without-gtk-prefix --without-gtk-exec-prefix --disable-gtktest
(NOTICE: If you use Mandrake Linux, this step maybe takes a long time to begin, just wait.)
(NOTICE: If
you use Mandrake Linux, you have to do below command to prevent from some
errors)
#ln -s /usr/include/ncurses/termcap.h
/usr/local/include/termcap.h
(NOTICE: If you use Debian Linux, you should use gcc 2.96+, don’t use gcc 2.95)
#make
(NOTICE: If no error occurs, you will get a execute program skyeye/gdb/gdb. This program is
skyeye with debug info, you can use gdb to debug it.)
#make install
(NOTICE: This step delete debug info in skyeye, and copy skyeye/gdb/gdb to /usr/local/bin/skyeye, so you can run it from anywhere.)
#skyeye
(NOTICE: If you see following info,you have successfully compiled and installed skyeye!)
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf".
(gdb)
(NOTICE: For skyeye sim_ne2k, you shoud install tun.o modules if you want to use tcpip,like samples/lwip_on_ucos_test)
a. the user id should be root
b. should setup&install linux kernel driver tuo.o
(in RedHat, the file is /lib/modules/2.4.x/kernel/drivers/net/tun.o)
(if tun.o isn't in your system, just compile linux kernel to get a tun.o module)
c. run tun driver module:
#insmod /lib/modules/2.4.x/kernel/drivers/net/tun.o
if you don't make device node, you should do commands
#mkdir /dev/net
#mknod /dev/net/tun c 10 200
$cd ucosii\samples\ucos_test
$make cleanall
$make config
$make dep
$make
(you will get a ucos_test.elf in this
directory after this step)
$su
(must be root to run Skyeye with network simulation)
#make test
(notice here "make test" =
"skyeye ucos_test.elf" ,
skyeye is the hardware armulator, ucos_test.elf is the ARM program run on it)
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf".
(gdb)
(now you are in skyeye(base on gdb),
type following gdb commands)
(gdb)target sim
(gdb)load
(gdb)run
(now ucos_test sample is running!)
(It is the
same with other samples like simple_test, ucos_serial, .....)
(Notice
that skyeye is based on gdb , so you can use gdb commands to debug the ucos
samples or your own project running on Skyeye , refer to gdb manual for more
details)
NOTICE: This is a alpha version (already been tested in
uClinux-dist-20020816). Now, the uClinux4SkyEye only support ping network
commands.
We add a skyeye ne2k net device driver for uclinux, so uClinux in skyeye can
use network.
1. Decompress
uClinux-dist-20020816.tar.gz. Add contents in these files, or
just copy examples/* to related
directories:
changed files
------------------------------------------------------------
uClinux-dist/vendors/GDB/ARMulator/config.linux-2.4.x
CONFIG_NET=y
CONFIG_NET_ETHERNET=y
CONFIG_SKYEYENE2k=y
uClinux-dist/linux-2.4.x/drivers/net/Makefile
obj-$(CONFIG_NET) +=
Space.o setup.o net_init.o loopback.o
obj-$(CONFIG_SKYEYENE2k)
+= skyeyene2k.o
uClinux-dist/linux-2.4.x/drivers/net/Config.in
#chy 2003-02-18
#add for skyeye
if [ "$CONFIG_ARCH_ATMEL" = "y" ];
then
tristate ' SkyEye ne2k ethernet card support' CONFIG_SKYEYENE2k
fi
2. Add skyeyene2k.[ch] files to uClinux-dist/linux-2.4.x/drivers/net/
to then build uclinux for gdb/armulator.
If you don't know how to change, please
wait the newest uclinux4skyeye.
3. Compile and Run uClinux
Compiler uClinux as usually.
NOTICE: please read ucosii/installguide.txt to install skyeye and tun.o
uclinux4skyeye can ping host system, and
host system can ping uclinux4skyeye until now.
If you compile and install
uclinux4skyeye and skyeye successfully, try below commands.
in one linux terminal, your user id
should be root, and insmod tun.o, then:
#skyeye linux-2.4.x/linux
>target sim
>load
>run
.....
sash>ifconfig eth0 10.0.0.2
...
in another linux terminal:
$/sbin/ifconfig
you will find a net device tap0 10.0.0.1
$ping 10.0.0.2
then you will see something...