Operating system: Ubuntu14.04 or Red Hat 9 (recommended)
If you use Red Hat 9, you will need to install GTK in your system Software update:
Choose Main menu, add or Remove applications---select development tools and kernel development, click Update installation will prompt you to insert the disc, in the virtual machine settings change CD/DVD (IDE), using the ISO image file, select the corresponding installation disk,
CD Address:
Ftp://openware.byr.edu.cn/pub/embedded/SkyEye-BOOK-CDROM/cdrom
ftp://ftp.bupt.edu.cn/pub/embedded/SkyEye-BOOK-CDROM/
(two URL content, the second URL is intranet)
Assume:
You have copied the entire contents of the disc that came with the book to a directory, for example:
#mkdir/mnt/cdrom
#mkdir/opt/skyeye-cdrom
#mount-T Iso9660-o ro/dev/cdrom/mnt/cdrom (or mount-t iso9660-o RO/DEV/HDC
/mnt/cdrom)
#cp-a/mnt/cdrom/*/opt/skyeye-cdrom
No. 0 Step: Watch Skyeye-ep7312-armlinux-minigui-same.avi,
or you can recreate the video on your own machine and start your own SkyEye tour:
#cd/opt/ skyeye-cdrom/skyeye/testsuit/
#tar jxfv skyeye-binary-testutils-1.0.7.1.tar.bz2
#cd skyeye-binary-testutils-1.0.7
#cd ep7312
#cd Ep7312_with_framebuffer_touchscreen_minigui
#./ Skyeye-v0.7.8.rh9.bin vmlinux-8-332
(skyeye) Target sim
(skyeye) load
(SkyEye) Run
(armlinux kernel starts ... ...)
/>/bin/same/same
This is a game program made with Minigui, enjoy it!
The CD contains a source package for the Open source project Minigui 1.3.0, and a configuration script for SkyEye is added.
In the future, you can also migrate more embedded GUI systems to SkyEye, such as Qt/embedded,picogui,tiny-x,ucgui
, GTK/FB.
Step One: Establish a cross-compilation environment (see Build_cross_compile_enviroment.avi)
(1) to build a cross-compilation environment for compilation Ucosii,uclinux
#cd/opt/skyeye-cdrom/ developtools/uclinux_gnutools/arm/
#sh arm-elf-tools-20030314.sh (if there is an error, here's how to fix it: Look back)
#ls/usr/local/bin/ arm-elf-* (you can see that the compilation tools such as ARM-ELF-GCC have been installed on your machine)
(2) Build a cross-compilation environment for compilation Armlinux
1) Install 3.3.2 version
#cd/opt/skyeye-cdrom/ developtools/armlinux_gnutools/arm/
#cp arm-linux-gcc-3.3.2.tar.bz2/
#cd/
#tar JXFV ARM-LINUX-GCC-3.3.2.TAR.BZ2
#ls/usr/local/arm/3.3.2/bin/arm-linux-* (you can see that the compilation tools, such as 3.3.2 version ARM-LINUX-GCC, have been
to your machine)
1) Install 2.95.3 version
#cd/opt/skyeye-cdrom/developtools/armlinux_gnutools/arm/
#cp cross-2.95.3.tar.bz2 /usr/local/arm/
#cd/usr/local/arm/
#tar jxfv cross-2.95.3.tar.bz2
#ls/usr/local/arm/2.95.3/bin/ arm-linux-* (you can see that the compilation tools such as Version 2.95.3 ARM-LINUX-GCC have been
on your machine)
Step two: Compile and install SkyEye (see Build_install_skyeye.avi)
#cd/opt/skyeye-cdrom/skyeye/skyeye/
#tar JXFV skyeye-0.8.0.tar.bz2
#cd SkyEye
#./configure--target=arm-elf--prefix=/usr/local (please read the Readme file carefully first)
#make
#make Install
#skyeye (You can now run SkyEye under any path, type quit SkyEye)
Step three: Compile the embedded operating system--ucosii (see Build_ucosii_4_skyeye.avi)
#cd/opt/skyeye-cdrom/skyeye/ucosii4skyeye
#tar ZXF ucosii4skyeye-1.8.4.tgz
#cd Ucosii4skyeye
#make Cleanall (Please read the Readme file carefully first)
#export Ostype=linux-gnu (depending on the operating system you are actually running)
#make Config
#make DEP
#make
#cd Sameples
#cd Simple_test
#skyeye simple_test.elf
(SkyEye) Target Sim
(skyeye) load
(SkyEye) Run
Ucosii A simple program started running on SkyEye, press CTRL + C to terminate the run, type quit quit SkyEye
#cd:
#cd Ucos_test
#skyeye ucos_test.elf
(SkyEye) Target Sim
(skyeye) load
(SkyEye) Run
Enjoy it! Press CTRL + C to terminate the run, type quit to exit SkyEye
Fourth step: Compiling the embedded operating system with network support--uclinux (see Build_uclinux_4_skyeye.avi)
#cd/opt/skyeye-cdrom/uclinux
#tar ZXF uclinux-dist-20030522.tar.gz
#cp/opt/skyeye-cdrom/skyeye/uclinux4skyeye/uclinux4skyeye-v0.2.3.tgz.
#tar ZXF uclinux4skyeye-v0.2.3.tgz
#cd Uclinux4skyeye
#cp example/uclinux-dist-20030522/vendor__gdb_armulator/*. /uclinux-
dist/vendors/gdb/armulator/
#cp example/uclinux-dist-20030522/linux-2.4.x__drivers__net/*. /uclinux-
dist/drivers/net/
#cd:
#cd uclinux-dist
#make menuconfig (on X window, the terminal window must be larger than 19 rows and 80 columns, or menuconfig cannot be
Often run)
#make DEP
#make
#ls Linux-2.4.x/linux
#cd:
#ln-S Uclinux-dist/linux-2.4.x/linux Linux
#cp/opt/skyeye-cdrom/skyeye/testsuit/skyeye-binary-testutils-
1.0.7/at91/uclinux3/boot.rom.
#cp/opt/skyeye-cdrom/skyeye/testsuit/skyeye-binary-testutils-
1.0.7/at91/uclinux3/skyeye.cof.
#skyeye Linux
(SkyEye) Target Sim
(skyeye) load
(SkyEye) Run
(The Uclinux kernel starts ...)
/>sbin/ifconfig
Open a terminal on another host
#ifconfig can see one more network device tpa0 10.0.0.1
#ping 10.0.0.2-c 4 You will see the network operation between the host and the SkyEye emulator.
You can follow the/opt/skyeye-cdrom/skyeye/testsuit/skyeye-binary-testutils-.
1.0.7/at91/installguide.txt's instructions, try it.
#telnet 10.0.0.2
/〉mount-t NFS 10.0.0.1:/target/tmp
Fifth step: Compile the embedded OS--armlinux with framebuffer and touchscreen support (see
Build_armlinux_4_skyeye.avi)
#cd/opt/skyeye-cdrom/skyeye/armlinux4skyeye/ep7312
#tar JXFV linux-2.4.13-patched-4-ep7312.tar.bz2
The patch has been patched and configured to directly compile the Armlinux kernel with framebuffer and touch-screen drivers
You can run the Minigui application on it.
#cd Linux
#make
#ll Vmlinux
#cd:
#ln-S Linux/vmlinux vmlinux
#cp/opt/skyeye-cdrom/skyeye/testsuit/skyeye-binary-testutils-
1.0.7/ep7312/ep7312_with_framebuffer_touchscreen_minigui/ywcromfs-minigui.img.
#cp/opt/skyeye-cdrom/skyeye/testsuit/skyeye-binary-testutils-
1.0.7/ep7312/ep7312_with_framebuffer_touchscreen_minigui/skyeye.cof.
#skyeye Vmlinux
(SkyEye) Target Sim
(skyeye) load
(SkyEye) Run
(The Armlinux kernel starts ...)
/>/bin/same/same
Or
/>/bin/housekeeper/housekeeper
And the No. 0 step is different, this time use of SkyEye and Vmlinux are compiled by themselves.
Note: The SKYEYE-BINARY-TESTUTILS-1.0.7.1.TAR.BZ2 software package has many of the various operating system kernels that have been compiled, if
There are boot=yes options in the skyeye.conf file in the relevant directory, then the SkyEye simulation run steps in this directory are:
#skyeye
(SkyEye) Target Sim
(SkyEye) Run
(Various kernels start ...)
Problems in the installation process and how to resolve them:
Question 1:
Tail:cannot Open ' +43 ' for reading:no such file or directory
Workaround: Under Linux (note: Do not under win) re-download a arm-elf-tools-20030314.sh
Suggested VIM (note: Do not win)
Put the code for line 39th:
Tail +${skip} ${script} | Gunzip | Tar xvf-
Change to the following:
Tail-n +${skip} ${script} | Gunzip | Tar xvf-
Question 2:
gunzip:stdin:unexpected End of File
Workaround: To add a blank line in the last line of arm-elf-tools-20030314.sh (note, do not modify under win, it is recommended to use VIM)
SkyEye UClinux Compile and install