Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2435964
  • 博文数量: 293
  • 博客积分: 2660
  • 博客等级: 少校
  • 技术积分: 3632
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-03 17:50
文章分类

全部博文(293)

文章存档

2015年(13)

2014年(58)

2013年(73)

2012年(25)

2011年(30)

2010年(86)

2009年(8)

分类: LINUX

2014-03-16 12:08:05

http://blog.chinaunix.net/uid-26963688-id-3268312.html
开发环境:
Ubuntu 12.04 LTS
开发包:
skyeye-1.3.3_testsuite_rel.tar.gz

注:skyeye-1.3.3的安装见本博客http://blog.chinaunix.net/space.php?uid=26963688&do=blog&id=3267351帖子

测试步骤:
1. 解压skyeye-1.3.3_testsuite_rel.tar.gz,在终端运行 tar zxvf skyeye-1.3.3_testsuite_rel.tar.gz 命令,解压:
root@chaozang:/opt/skyeye_install_packets# tar zxvf skyeye-1.3.3_testsuite_rel.tar.gz 
解压完毕:

2.切换到skyeye-testsuite目录:
root@chaozang:/opt/skyeye_install_packets# cd skyeye-testsuite
其中u-boot是bootloader的相关程序,uClinux是不带MMU的linux内核文件,linux目录下是我们所需要的,即Linux内核相关,vxworks是另一个架构的实时内核。

3.我们首先采用s3c2440作为开发板,采用linux2.6.30.5内核:
root@chaozang:/opt/skyeye_install_packets/skyeye-testsuite/linux/s3c2440/2.6.30.5#

4.在该目录下运行linux内核镜像:
root@chaozang:/opt/skyeye_install_packets/skyeye-testsuite/linux/s3c2440/2.6.30.5# /opt/skyeye/bin/skyeye -e vmlinux 
终端将打印出如下信息,即启动skyeye:
root@chaozang:/opt/skyeye_install_packets/skyeye-testsuite/linux/s3c2440/2.6.30.5# /opt/skyeye/bin/skyeye -e vmlinux 
SkyEye 1.3.3
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should not remove or modify the annoucement of SkyEye copyright. 
Get more information about it, please visit the homepage
Type "help" to get command list. 
 LLVM NOT EXIST 
LLVM NOT EXIST
(skyeye)

5. 执行start命令,初始化架构信息:
SkyEye 1.3.3
SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should not remove or modify the annoucement of SkyEye copyright. 
Get more information about it, please visit the homepage
Type "help" to get command list. 
 LLVM NOT EXIST 
LLVM NOT EXIST
(skyeye) start
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2 
In do_mach_option, mach info: name s3c2440, mach_init addr 0xb5595ec0

uart_mod:0, desc_in:, desc_out:, converter:
do_load_addr_option not finished.
Loaded RAM   ./initrd.img
1 core is initialized.
SKYEYE: use arm920t mmu ops
SKYEYE: use arm920t mmu ops
exec file "vmlinux"'s format is elf32-i386.
In SIM_start, Set PC to the address 0x30008000

(skyeye) 

6. 运行run命令,跑起内核:
(skyeye) In start_all_thread, the thread 1 is set to running
(running) Bus read error, can not find corresponding bank for addr 0x0,pc=0x300083b0
Linux version 2.6.30.5 (akaedu@akaedu-desktop) (gcc version 4.2.1) #4 Fri Jun 18 11:24:57 CST 2010
CPU: ARM920T [41009200] revision 0 (ARMvundefined/unknown), cr=00003177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440 (id 0x32440000)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 176.117 MHz, memory 88.058 MHz, peripheral 44.029 MHz
CLOCK: Slow mode (2.116 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: mem=32M console=ttySAC0 root=/dev/ram initrd=0x30800000,0x00800000 ramdisk_size=8192 rw
NR_IRQS:99
irq: clearing pending ext status ffffffff
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 20204KB available (3548K code, 331K data, 144K init, 0K highmem)
Calibrating delay loop... 25.60 BogoMIPS (lpj=64000)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 936 bytes
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c2808000, irq 33
DMA channel 1 at c2808040, irq 34
DMA channel 2 at c2808080, irq 35
DMA channel 3 at c28080c0, irq 36
S3C244X: Clock Support, DVS on
bio: create slab at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 85 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (junk in compressed archive); looks like an initrd
Freeing initrd memory: 8192K
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 55
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
dm9000 Ethernet Driver, V1.31
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 22ns Twrph0=6 68ns, Twrph1=2 22ns
No NAND device found!!!
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
s3c2410-ohci s3c2410-ohci: USB HC takeover failed!  (BIOS/SMM bug)
s3c2410-ohci s3c2410-ohci: startup error -16
s3c2410-ohci s3c2410-ohci: USB bus 1 deregistered
s3c2410-ohci: probe of s3c2410-ohci failed with error -16
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq abled
Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 2048KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing init memory: 144K
SIOCSIFADDR: No such device
SIOCGIFFLAGS: No such device
Welcome to
     _      _____      __   __    _      _
    / \    /  __ \    /  \_/  \  | |    |_|                 
   / _ \   | |  | |  / /\   /\ \ | |     _ ____  _   _  _  _ 
  / /_\ \  | |__| | / /  \_/  \ \| |    | |  _ \| | | |\ \/ /
 / /___\ \ | |__\ \ | |       | || |___ | | |_| | |_| |/    \
/_/ \_\| |   \_\|_|       |_||_____||_|_| |_|\____|\_/\_/
  
ARMLinux for Skyeye 
For further information please check:
BusyBox v1.00 (2004.12.27-02:03+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/ash: can't access tty; job control turned off
/ # 
经过一段时间的等待,终于出现了令人心动的画面ARMLinux,由此可见,2.6.30.5内核已经正常的运行起来了。
同时可以看出skyeye比较消耗资源:
采用同样的方法,可以测试下uClinux:
注:skyeye-1.3.3_testsuite_rel.tar.gz下载地址:
阅读(4257) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~