SkyEye 1.3.5 运行vmlinux 遇到的问题
. Please report the following output to [email protected].In bus_read, Bus read error, can not find corresponding bank for addr 0x0,pc=0x30108188
/opt/skyeye/lib/skyeye/libcommon.so.0(skyeye_log+0x115)
/opt/skyeye/lib/skyeye/libcommon.so.0(bus_read+0x147)
/opt/skyeye/lib/skyeye/libarm.so(+0x3a8b2)
/opt/skyeye/lib/skyeye/libarm.so(mmu_read_word+0x20)
/opt/skyeye/lib/skyeye/libarm.so(ARMul_ReadWord+0x36)
/opt/skyeye/lib/skyeye/libarm.so(ARMul_LoadWordN+0x2a)
/opt/skyeye/lib/skyeye/libarm.so(+0xb1127)
/opt/skyeye/lib/skyeye/libarm.so(ARMul_Emulate32+0x2e58)
/opt/skyeye/lib/skyeye/libarm.so(ARMul_DoProg+0x47)
/opt/skyeye/lib/skyeye/libarm.so(+0x23d62)
/opt/skyeye/lib/skyeye/libcommon.so.0(+0x1240fe)
/lib/i386-linux-gnu/libpthread.so.0(+0x6d4c)
/lib/i386-linux-gnu/libc.so.6(clone+0x5e)
skyeye.conf 文件内容如下
# skyeye config file for S3C2440
arch:arm
cpu: arm920t
mach: s3c2440
# physical memory
mem_bank: map=M, type=RW, addr=0x30000000, size=0x00800000
mem_bank: map=M, type=RW, addr=0x30800000, size=0x00800000 file=./initrd.img
mem_bank: map=M, type=RW, addr=0x31000000, size=0x01000000
# all peripherals I/O mapping area
mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000
mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020
#net: type=cs8900a, base=0x19000300, size=0x20,int=9, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
#lcd: type=s3c2410x, mod=gtk
#uart:mod=stdio
uart:mod=term
load_addr:base=0x30000000, mask=0xFFFFFF
#dbct:state=on 这么看来,是你的vmlinux 在pc为0x30108188指令上 访问了 0x0地址。
1、访问0地址是正确的,在skyeye.conf中配置上0地址。
2、访问0地址是错误的,跟踪汇编为何访问0地址。
建议先按第一种方案 试试,能不能跑过去。 我使用skyeye1.3.5运行了 s3c2440的测试用例,的确也有类似问题,但是不影响启动运行,具体内核为什么访问0地址,我还没有深入研究,如下是我的运行信息
david@linux-jmxq:~/WorkSpace/testsuite/skyeye-testsuite/linux/s3c2440/2.6.30.5> /opt/skyeye/bin/skyeye -n -e vmlinux
SkyEye 1.3.4
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 http://www.skyeye.org.
Type "help" to get command list.
1 core is initialized.
. Please report the following output to [email protected].
In bus_read, Bus read error, can not find corresponding bank for addr 0x0,pc=0x300083b0
/opt/skyeye/lib/skyeye/libcommon.so.0(skyeye_log+0x183)
/opt/skyeye/lib/skyeye/libcommon.so.0(bus_read+0x121)
/opt/skyeye/lib/skyeye/libarm.so(+0x551ef)
/opt/skyeye/lib/skyeye/libarm.so(ARMul_ReadWord+0x1d)
/opt/skyeye/lib/skyeye/libarm.so(+0xadd7d)
/opt/skyeye/lib/skyeye/libarm.so(ARMul_Emulate32+0x4033)
/opt/skyeye/lib/skyeye/libarm.so(ARMul_DoProg+0x41)
/opt/skyeye/lib/skyeye/libarm.so(+0x40c43)
/opt/skyeye/lib/skyeye/libcommon.so.0(+0x1a788d)
/lib64/libpthread.so.0(+0x6a3f)
/lib64/libc.so.6(clone+0x6d)
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 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 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 <bio-0> 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 into ram disk... ---|0xc0062a90|---260000000
done.
---|0xc0161714|---270000000
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:
http://www.skyeye.org/
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
我的系统环境:Linux 2.6.37 x86_64 opensuse 11.04 抱歉,我之前运行的skyeye不是1.3.5的发布版本,我又尝试了一下1.3.5_rel版本,现象和之前类似,如下
david@linux-jmxq:~/WorkSpace/testsuite/skyeye-testsuite/linux/s3c2440/2.6.30.5> /opt/skyeye/bin/skyeye -n -e vmlinux
SkyEye 1.3.5
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 http://www.skyeye.org.
Type "help" to get command list.
In create_uart_console
mmap DRAM, size=0x2000000, return 0x30000000
1 core is initialized.
. Please report the following output to [email protected].
In bus_read, Bus read error, can not find corresponding bank for addr 0x0,pc=0x300083b0
/opt/skyeye/lib/skyeye/libcommon.so.0(skyeye_log+0x183)
/opt/skyeye/lib/skyeye/libcommon.so.0(bus_read+0x124)
/opt/skyeye/lib/skyeye/libarm.so(+0x568ff)
/opt/skyeye/lib/skyeye/libarm.so(ARMul_ReadWord+0x1d)
/opt/skyeye/lib/skyeye/libarm.so(+0xb827d)
/opt/skyeye/lib/skyeye/libarm.so(ARMul_Emulate32+0x4578)
/opt/skyeye/lib/skyeye/libarm.so(ARMul_DoProg+0x41)
/opt/skyeye/lib/skyeye/libarm.so(+0x41b21)
/opt/skyeye/lib/skyeye/libcommon.so.0(+0x1ab94d)
/lib64/libpthread.so.0(+0x6a3f)
/lib64/libc.so.6(clone+0x6d)
IN ARMul_Emulate32, undefined or unpredicted behavior for arm instruction.
IN ARMul_Emulate32, undefined or unpredicted behavior for arm instruction.
IN ARMul_Emulate32, undefined or unpredicted behavior for arm instruction.
IN ARMul_Emulate32, undefined or unpredicted behavior for arm instruction.
IN ARMul_Emulate32, undefined or unpredicted behavior for arm instruction.
IN ARMul_Emulate32, undefined or unpredicted behavior for arm instruction.
IN ARMul_Emulate32, undefined or unpredicted behavior for arm instruction.
IN ARMul_Emulate32, undefined or unpredicted behavior for arm instruction.
IN ARMul_Emulate32, undefined or unpredicted behavior for arm instruction.
重复打印了很多这个调试信息,可能淹没了串口输出信息。
你可以在skyeye.conf中,将串口输出方式改为term模式,如附件
最终进入linux的shell,但是shell无法输入。
页:
[1]