QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1811|回复: 3

skyeye模拟的硬件环境,内核里能否修改寄存器?

[复制链接]
发表于 2007-8-22 16:17:39 | 显示全部楼层 |阅读模式
修改2410的寄存器S3C2410_MPLLCON无效, skyeye是不是除了能把硬件跑起来, 就只能在上面跑一些应用了
 楼主| 发表于 2007-8-22 17:36:30 | 显示全部楼层
把console_init注掉, 还能打印信息, 这个skyeye的串口到底是怎么工作的呀,这没有仿真好硬件呀?
回复

使用道具 举报

发表于 2007-8-23 19:45:39 | 显示全部楼层
原帖由 grantchien 于 2007-8-22 16:17 发表
修改2410的寄存器S3C2410_MPLLCON无效, skyeye是不是除了能把硬件跑起来, 就只能在上面跑一些应用了


There is some register that not simulated. I added MPLLCON write in current source repository, or you can patch your skyeye source according to http://lists.gro.clinux.org/pipe ... -August/001465.html
回复

使用道具 举报

发表于 2007-8-23 19:51:39 | 显示全部楼层
原帖由 grantchien 于 2007-8-22 17:36 发表
把console_init注掉, 还能打印信息, 这个skyeye的串口到底是怎么工作的呀,这没有仿真好硬件呀?

I had tried to comment console_init. That seems no meesage output except some error message from SkyEye.

################################ before comment  console_init ########################
ksh@ksh:/opt/source/build-2.6.20-smdk> /home/ksh/cvs/skyeye/skyeye-v1/trunk/binary/skyeye -e vmlinux
big_endian is false.
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
mach info: name s3c2410x, mach_init addr 0x806adc0
lcd_mod:1
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm920t mmu ops
Loaded RAM   ./initrd.img
exec file "vmlinux"'s format is elf32-littlearm.
load section .init: addr = 0xc0008000  size = 0x0001e000.
load section .text: addr = 0xc0026000  size = 0x002892b8.
not load section .rodata: addr = 0xc02b0000  size = 0x00000000 .
not load section .pci_fixup: addr = 0xc02b0000  size = 0x00000000 .
not load section .rio_route: addr = 0xc02b0000  size = 0x00000000 .
load section __ksymtab: addr = 0xc02b0000  size = 0x00004438.
load section __ksymtab_gpl: addr = 0xc02b4438  size = 0x00001018.
not load section __ksymtab_unused: addr = 0xc02b5450  size = 0x00000000 .
not load section __ksymtab_unused_gpl: addr = 0xc02b5450  size = 0x00000000 .
load section __ksymtab_gpl_future: addr = 0xc02b5450  size = 0x00000018.
not load section __kcrctab: addr = 0xc02b5468  size = 0x00000000 .
not load section __kcrctab_gpl: addr = 0xc02b5468  size = 0x00000000 .
not load section __kcrctab_unused: addr = 0xc02b5468  size = 0x00000000 .
not load section __kcrctab_unused_gpl: addr = 0xc02b5468  size = 0x00000000 .
not load section __kcrctab_gpl_future: addr = 0xc02b5468  size = 0x00000000 .
load section __ksymtab_strings: addr = 0xc02b5468  size = 0x0000c080.
load section __param: addr = 0xc02c14e8  size = 0x000004c4.
load section .data: addr = 0xc02c2000  size = 0x0001ff68.
not load section .bss: addr = 0xc02e1f80  size = 0x00025f04 .
not load section .comment: addr = 0x00000000  size = 0x00002e44 .
not load section .debug_abbrev: addr = 0x00000000  size = 0x000ae3c2 .
not load section .debug_info: addr = 0x00000000  size = 0x01379148 .
not load section .debug_line: addr = 0x00000000  size = 0x00143382 .
not load section .debug_pubnames: addr = 0x00000000  size = 0x0001db04 .
not load section .debug_str: addr = 0x00000000  size = 0x00083a79 .
not load section .debug_aranges: addr = 0x00000000  size = 0x00006398 .
not load section .debug_frame: addr = 0x00000000  size = 0x00056394 .
not load section .debug_loc: addr = 0x00000000  size = 0x0020958f .
not load section .debug_ranges: addr = 0x00000000  size = 0x000615d8 .
call ARMul_InitSymTable,kernel filename is vmlinux.
start addr is set to 0xc0008000 by exec file.
Linux version 2.6.20 (ksh@ksh) (gcc version 4.1.0) #6 Thu Aug 23 19:50:17 CST 2007
CPU: ARM920T [41009200] revision 0 (ARMvundefined/unknown), cr=00003177
Machine: SMDK2410
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410 (id 0x32410000)
S3C2410: core 62.400 MHz, memory 62.400 MHz, peripheral 62.400 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists.  Total pages: 4064
Kernel command line: root=/dev/hda1 ro init=/bin/bash console=ttySAC0
PID hash table entries: 64 (order: 6, 256 bytes)
timer tcon=00000000, tcnt cb1f, tcfg 00000200,00000000, usec 0000189e
Console: colour dummy device 80x30
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 13132KB available (2672K code, 279K data, 120K init)
Mount-cache hash table entries: 512
KSDBG 1 in mnt_init
CPU: Testing write buffer coherency: ok
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
########################################################################################

################# after comment console_init() ######################
ksh@ksh:/opt/source/build-2.6.20-smdk> /home/ksh/cvs/skyeye/skyeye-v1/trunk/binary/skyeye -e vmlinux
big_endian is false.
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
mach info: name s3c2410x, mach_init addr 0x806adc0
lcd_mod:1
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm920t mmu ops
Loaded RAM   ./initrd.img
exec file "vmlinux"'s format is elf32-littlearm.
load section .init: addr = 0xc0008000  size = 0x0001e000.
load section .text: addr = 0xc0026000  size = 0x002892b8.
not load section .rodata: addr = 0xc02b0000  size = 0x00000000 .
not load section .pci_fixup: addr = 0xc02b0000  size = 0x00000000 .
not load section .rio_route: addr = 0xc02b0000  size = 0x00000000 .
load section __ksymtab: addr = 0xc02b0000  size = 0x00004438.
load section __ksymtab_gpl: addr = 0xc02b4438  size = 0x00001018.
not load section __ksymtab_unused: addr = 0xc02b5450  size = 0x00000000 .
not load section __ksymtab_unused_gpl: addr = 0xc02b5450  size = 0x00000000 .
load section __ksymtab_gpl_future: addr = 0xc02b5450  size = 0x00000018.
not load section __kcrctab: addr = 0xc02b5468  size = 0x00000000 .
not load section __kcrctab_gpl: addr = 0xc02b5468  size = 0x00000000 .
not load section __kcrctab_unused: addr = 0xc02b5468  size = 0x00000000 .
not load section __kcrctab_unused_gpl: addr = 0xc02b5468  size = 0x00000000 .
not load section __kcrctab_gpl_future: addr = 0xc02b5468  size = 0x00000000 .
load section __ksymtab_strings: addr = 0xc02b5468  size = 0x0000c080.
load section __param: addr = 0xc02c14e8  size = 0x000004c4.
load section .data: addr = 0xc02c2000  size = 0x0001ff68.
not load section .bss: addr = 0xc02e1f80  size = 0x00025f04 .
not load section .comment: addr = 0x00000000  size = 0x00002e44 .
not load section .debug_abbrev: addr = 0x00000000  size = 0x000ae3c2 .
not load section .debug_info: addr = 0x00000000  size = 0x01379148 .
not load section .debug_line: addr = 0x00000000  size = 0x00143381 .
not load section .debug_pubnames: addr = 0x00000000  size = 0x0001db04 .
not load section .debug_str: addr = 0x00000000  size = 0x00083a79 .
not load section .debug_aranges: addr = 0x00000000  size = 0x00006398 .
not load section .debug_frame: addr = 0x00000000  size = 0x00056394 .
not load section .debug_loc: addr = 0x00000000  size = 0x0020958f .
not load section .debug_ranges: addr = 0x00000000  size = 0x000615d8 .
call ARMul_InitSymTable,kernel filename is vmlinux.
start addr is set to 0xc0008000 by exec file.
ERROR: s3c2410x_io_write_word(0x4d000060) = 0x00000cf0
ERROR: s3c2410x_io_write_word(0x4d000050) = 0x00000000
############################################################
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 14:20 , Processed in 0.065604 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表