自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Linux SkyEye開源軟件安裝調(diào)試功能

運維 系統(tǒng)運維
目前最新版本的Linux SkyEye開源軟件是Linux SkyEye開源軟件-1.2-RC6.tar.bz2版本,該版本可以從www.Linux SkyEye開源軟件.org獲取。Linux SkyEye開源軟件目前支持多款嵌入式處理器:

Linux SkyEye開源軟件還是比較常用的,于是我研究了一下Linux SkyEye開源軟件,在這里拿出來和大家分享一下,希望對大家有用。一個 Linux SkyEye開源軟件項目,它是在Linux和Windows平臺上實現(xiàn)一個純軟件模擬集成開發(fā)環(huán)境,模擬常見的嵌入式系統(tǒng)。可以在Linux SkyEye開源軟件上運行Linux,uClinux以及uC/OS-II等多款嵌入式操作系統(tǒng)和各種系統(tǒng)軟件。

目前最新版本的Linux SkyEye開源軟件是Linux SkyEye開源軟件-1.2-RC6.tar.bz2版本,該版本可以從www.Linux SkyEye開源軟件.org獲取。Linux SkyEye開源軟件目前支持多款嵌入式處理器:

  1. ATMEL AT91X40  
  2. PHILIPS LPC2xxxx  
  3. Samsung s3c4510b  
  4. Samsung s3c44b0  
  5. Cirrus Logic EP7312  
  6. sharp LH79520  
  7. Cirrus Logic EP9312  
  8. cs89712  
  9. sa1100  
  10. xscale pxa250 lubbock developboard  
  11. xscale pxa270 mainstone developboard  
  12. at91RM9200  
  13. s3c2410x  
  14. s3c2440  
  15. sharp lh7a400 developbaord  
  16. NetSilicon ns9750  
  17. Philips LPC2210 

對于附加設(shè)備該項目已經(jīng)完成對Flash,LCD,Network Interface Card,touchsceen, UART的支持

2.Linux SkyEye開源軟件的安裝

下面我就以最新版本的Linux SkyEye開源軟件-1.2.RC6為例子安裝Linux SkyEye開源軟件.我的系統(tǒng)配置入下操作系統(tǒng): Fedora Core 2 Linux(2.4.x)GCC Version: 3.3.2arm-elf-gcc Version: 2.95.3 20010315首先從www.uClinux.org下載arm-elf-tools,里面包含arm-elf-gcc, arm-elf-ld等工具。下載后可以通過如下方式安裝:
$su -c './arm-elf-tools-20030315.sh'
$password:

安裝完畢后,可以進入存放Linux SkyEye開源軟件的目錄,例如我的是放在/home/jelly/download/目錄。然后進行解壓。
$cd ~/download
$ls
Linux SkyEye開源軟件-1.2-RC6.tar.bz2
$tar jxvf Linux SkyEye開源軟件-1.2-RC6-tar.bz2

然后進入解壓的Linux SkyEye開源軟件目錄$cd Linux SkyEye開源軟件-v1最后使用make命令進行軟件的安裝,編譯完畢后會在binary生成一個Linux SkyEye開源軟件可執(zhí)行文件,該文件就是Linux SkyEye開源軟件模擬器了。使用make命令的時候可以加入一些選項參數(shù),例如:

  1. 不允許DBCT  
  2. $make NO_DBCT=1 
  3. 不支持LCD  
  4. $make NO_LCD=1 
  5. 不支持BFD庫  
  6. $make NO_BFD=1 
  7. 不支持網(wǎng)絡(luò)設(shè)備  
  8. $make NO_NET=1 

如果在binary目錄下生成了Linux SkyEye開源軟件文件,那么安裝成功。下面我以uClinux為例子,在Linux SkyEye開源軟件上模擬??梢酝ㄟ^使用-h參數(shù)來獲取幫助$Linux SkyEye開源軟件 -hLinux SkyEye開源軟件 -V1.2
Usage: Linux SkyEye開源軟件 [options] -e program [program args]
Default mode is STANDALONE mode
Options:
-e exec-file the (ELF executable format)kernel file name.
-d in GDB Server mode (can be connected by GDB).
-c config-file the Linux SkyEye開源軟件 configure file name.
-h This Help Display
-v This shows arch and cpu supported
-e 指定elf各式的內(nèi)核文件
-d GDB調(diào)試模式
-c 指定配置文件
-h 獲取幫助
-v 顯示體系結(jié)構(gòu)和CPU支持信息(不知道是不是我用的這個版本沒有實現(xiàn)該功能,使用-v選項后顯示:Unknown option '-v')

3.uClinux移植

從www.uclinux.org網(wǎng)站上下載比較新的內(nèi)核包文件,并且解壓。$tar xvzf uClinux-dist-xxxxxxxx.tar.gz進入生成的uClinux-dist目錄可以使用make xconfig - 圖形配置模式,make menuconfig - 菜單模式配置,方式來配置uClinux.在uClinux-dist目錄下執(zhí)行:$make xconfig

在Target Platform Selection選項卡中選擇:Vendor/Product: GDB/ARMulator Kernel Version: linux-2.4.x Libc Version: uC-libc然后選擇save and exit

完成配置后,可以使用make dep建立內(nèi)核依賴關(guān)系,然后使用make編譯內(nèi)核和文件系統(tǒng)$make dep; make經(jīng)過一段時間的編譯后,如果沒有出現(xiàn)錯誤,則在uClinux-dist目錄下的images目錄里會建立如下幾個文件:image.bin linux.data linux.text. romfs.img該romfs.img就是我們需要的文件系統(tǒng)映象了同時,在uClinux-dist/linux-2.4.x/目錄下會生成linux,該文件是一個我們需要模擬的內(nèi)核文件。

接下來我們可以使用Linux SkyEye開源軟件軟件來模擬我們編譯的uClinux系統(tǒng)了。我們在uClinux-dist目錄下建立一個名為Linux SkyEye開源軟件.conf的配置文件。內(nèi)容如下:
cpu: arm7tdmi
mach: at91
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
mem_bank: map=M, type=R, addr=0x01400000, size=0x00400000, file=images/romfs.img
mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
lcd: state=on

保存退出然后在uClinux-dist目錄里執(zhí)行~/download/Linux SkyEye開源軟件-v1/binary/Linux SkyEye開源軟件 -e linux-2.4.x/linux看看uclinux是不是跑起來了?下面是我的輸出
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x80727e0
can't find device module: (null)
Linux SkyEye開源軟件: use arm7100 mmu ops
Loaded ROM images/romfs.img
exec file "linux-2.4.x/linux"'s format is elf32-little.
load section .init: addr = 0x01000000 size = 0x0000a000.
load section .text: addr = 0x0100a000 size = 0x000c5ca0.
load section .data: addr = 0x010d0000 size = 0x00008320.
not load section .bss: addr = 0x010d8320 size = 0x00022198 .
not load section .debug_abbrev: addr = 0x00000000 size = 0x00039846 .
not load section .debug_info: addr = 0x00000000 size = 0x016b812f .
not load section .debug_line: addr = 0x00000000 size = 0x00378ef3 .
not load section .debug_pubnames: addr = 0x00000000 size = 0x0000b40d .
not load section .debug_aranges: addr = 0x00000000 size = 0x000022e0 .
start addr is set to 0x01000000 by exec file.
Linux version 2.4.19-uc1 (jelly@localhost.localdomain) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux∞ XIP and shared lib patches from http://www.snapgear.com/)∞) #1 五 4#1 五 4月 7 23:41:40 CST 2006
Processor: Atmel AT91M40xxx revision 0
Architecture: EB01
On node 0 totalpages: 1024
zone(0): 0 pages.
zone(1): 1024 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0
Calibrating delay loop... 12.97 BogoMIPS
Memory: 4MB = 4MB total
Memory: 3036KB available (791K code, 170K data, 40K init)
Dentry cache hash table entries: 512 (order: 0, 4096 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 1024 (order: 0, 4096 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Atmel USART driver version 0.99
ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 1400000-145DBFF [VIRTUAL 1400000-145DBFF] (RO)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Shell invoked to run file: /etc/rc
Command: hostname GDB-ARMulator
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram0 /var
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: cat /etc/motd
Welcome to


GDB/ARMulator support by <davidm@snapgear.com>
For further information check:
http://www.uclinux.org/∞
Execution Finished, Exiting
Sash command shell (version 1.1.1)
/>

對于Linux SkyEye開源軟件.conf文件的一點說明對于Linux SkyEye開源軟件-v0.2.5版本之前的Linux SkyEye開源軟件使用的是memmap.conf文件,而之后的是使用Linux SkyEye開源軟件.conf文件cpu: 指定CPU類型,如arm7tdmi,arm720t等mach: 開發(fā)板類型,如at91, ep7312mem_bank: 內(nèi)存塊
map=M 指定為rom/ram, map=I 指定為IO空間
type=RW 可讀寫,type=R 只讀
addr=0x00000000 內(nèi)存塊開始地址
size=0x10000000 內(nèi)存塊大小
files=romfs.img 文件系統(tǒng)映象文件
net: 網(wǎng)絡(luò)配置
state=on 模擬NIC,等于off則不模擬
mac=0:4:3:2:1:f 指定MAC地址
ethmod=tuntap/vnet 使用虛擬驅(qū)動
hostip= 指定ip地址
例如:net: state = on, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1uart: 串口支持
fd_in= 指定輸入文件
fd_out= 指定輸出文件
例如:uart: fd_in=/dev/ttyS0, fd_out=/dev/ttyS1
則你可以使用minicon來監(jiān)聽COM1口來進行數(shù)據(jù)交換LCD:LCD模擬state = on/off 打開或者關(guān)閉LCD模擬

4.Linux SkyEye開源軟件調(diào)試功能
要使用SkeyEye調(diào)試功能,可以在執(zhí)行的時候加入-d參數(shù),例如:
$Linux SkyEye開源軟件 -e linux -d
這時就在本機的12345端口開啟了gdb服務(wù)

這時重新開一個終端程序
$arm-elf-gdb linux
(gdb)target remote 127.0.0.1:12345
此時就可以象使用本地gdb一樣來調(diào)試服務(wù)端的uClinux了。

【編輯推薦】

  1. Linux SkyEye安裝交叉編譯器
  2. Linux wingrub關(guān)于系統(tǒng)引導(dǎo)管理器的簡單介紹
  3. Linux操作系統(tǒng)配置過程啟動服務(wù)
  4. Linux Quagga守護進程啟動
  5. Linux initrd啟動跟系統(tǒng)的硬件相關(guān)
責(zé)任編輯:佚名 來源: csdn
相關(guān)推薦

2010-03-02 10:55:47

Linux SkyEy

2010-02-24 16:49:24

Fedora SkyE

2009-05-26 09:04:07

skyeye嵌入式模擬器

2010-08-12 13:31:49

2010-03-03 13:09:08

Linux安裝

2012-11-08 16:16:41

Linux開源軟件

2011-01-06 13:22:00

2018-12-19 09:20:45

Linux遷移安裝軟件

2009-05-20 16:07:49

開源模擬器Skyeye1.2.8

2010-01-10 17:45:35

開源軟件Linux

2020-05-09 12:01:40

Linux開源軟件SDN

2013-05-16 11:16:45

Linux軟件安裝卸載

2023-09-07 13:21:00

Linux軟件

2010-03-02 15:29:11

Linux圖形軟件安裝

2009-12-16 17:22:55

Linux軟件安裝

2009-03-26 17:23:57

LinuxWebLogic安裝調(diào)試

2010-12-14 09:15:50

Visual Stud

2011-01-11 16:00:13

Linux軟件安裝

2010-03-02 14:35:58

linux文本環(huán)境安裝

2025-02-19 08:25:23

點贊
收藏

51CTO技術(shù)棧公眾號