QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1836|回复: 2

skyeye模拟at91rm9200,启动skyeye后键盘无法输入;

[复制链接]
发表于 2008-5-8 15:51:34 | 显示全部楼层 |阅读模式
按照duzhig 介绍的方法 修改相关参数后内核运行情况如下:(运行环境:fc8
[root@localhost linux-2.6.20]# skyeye -e vmlinux
big_endian is false.
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
mach info: name at91rm92, mach_init addr 0x8068a50
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm920t mmu ops
Loaded RAM   ./initrd.img
exec file "vmlinux"'s format is elf32-little.
load section .init: addr = 0xc0008000  size = 0x00017000.
load section .text: addr = 0xc001f000  size = 0x0018ecd4.
not load section .rodata: addr = 0xc01ae000  size = 0x00000000 .
not load section .pci_fixup: addr = 0xc01ae000  size = 0x00000000 .
not load section .rio_route: addr = 0xc01ae000  size = 0x00000000 .
load section __ksymtab: addr = 0xc01ae000  size = 0x000037e8.
load section __ksymtab_gpl: addr = 0xc01b17e8  size = 0x00000c10.
not load section __ksymtab_unused: addr = 0xc01b23f8  size = 0x00000000 .
not load section __ksymtab_unused_gpl: addr = 0xc01b23f8  size = 0x00000000 .
not load section __ksymtab_gpl_future: addr = 0xc01b23f8  size = 0x00000000 .
not load section __kcrctab: addr = 0xc01b23f8  size = 0x00000000 .
not load section __kcrctab_gpl: addr = 0xc01b23f8  size = 0x00000000 .
not load section __kcrctab_unused: addr = 0xc01b23f8  size = 0x00000000 .
not load section __kcrctab_unused_gpl: addr = 0xc01b23f8  size = 0x00000000 .
not load section __kcrctab_gpl_future: addr = 0xc01b23f8  size = 0x00000000 .
load section __ksymtab_strings: addr = 0xc01b23f8  size = 0x000099f8.
load section __param: addr = 0xc01bbdf0  size = 0x00000258.
load section .data: addr = 0xc01be000  size = 0x000159a0.
not load section .bss: addr = 0xc01d39a0  size = 0x00017df0 .
not load section .comment: addr = 0x00000000  size = 0x00001d0a .
call ARMul_InitSymTable,kernel filename is vmlinux.
start addr is set to 0xc0008000 by exec file.
Linux version 2.6.20.21 ([email protected]) (gcc version 3.4.4) #3 Thu May 8 15:14:32 CST 2008
CPU: ARM920T [41009200] revision 0 (ARMvundefined/unknown), cr=00003177
Machine: Atmel AT91RM9200-DK
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 0 MHz, master 0 MHz, main 18.432 MHz
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: 8128
Kernel command line: mem=32M console=ttyS1,115200 initrd=0xc0200000,0x00500000 root=/dev/ram0 rw
AT91: 128 gpio irqs in 4 banks
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x30
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: 25388KB available (1656K code, 181K data, 92K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 1024 bind 512)
TCP reno registered
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 5120K
NetWinder Floating Point Emulator V0.97 (double precision)
io scheduler noop registered
io scheduler anticipatory registered (default)
AT91 Watchdog Timer enabled (5 seconds, nowayout)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffc4000 (irq = 7) is a ATMEL_SERIAL
Division by zero in kernel.
Division by zero in kernel.
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
at91_ether: probe of at91_ether failed with error -1
physmap platform flash device: 00200000 at 10000000
physmap-flash physmap-flash.0: map_probe failed
at91_cf: irqs det #64, io #0
mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 2048KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 92K
Division by zero in kernel.
Division by zero in kernel.
Division by zero in kernel.
Division by zero in kernel.
Division by zero in kernel.
Division by zero in kernel.
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.

/ # (光标停在这,无法输入)

并且skyeye-testsuite-2.3带的linux\at91rm9200里的例子运行也出现同样的问题;而linux\s3c2410下的内核和配置启动正常,可以在启动完毕后输入命令如“ls”参看虚拟机上目录结构.
请大侠们帮我看看,问题在哪哦;谢谢了。

[ 本帖最后由 yhcyzc 于 2008-5-8 15:52 编辑 ]
发表于 2008-5-10 21:26:40 | 显示全部楼层
我也遇见这个问题了 好像内核的问题 你可以把
xxx\skyeye-1.2.4\arch\arm\mach\skyeye_mach_at91rm92.c
中的
if(skyeye_uart_read(-1, &buf, 1, &tv, NULL) > 0)
                {
                        int i = 0;
                        for(;i < UART_NUM; i++){
                                /*if( (((io.uart.cr & 0x30) >> 4)) == 0x1 )*/    /* 把这个判断去掉好像就可以了 */
                                {
                                        if(io.uart.imr & AT91RM92_US_RXRDY)
                                        {
                                                io.uart.rhr = (int) buf;
                                                /* Receiver Ready
                                                 * */
                                                io.uart.csr |= AT91RM92_US_RXRDY;
                                                /* pending usart0 interrupt
                                                 * */
                                                io.ipr |= AT91RM92_ID_US(i);
                                        }
                                }
                        }
回复

使用道具 举报

 楼主| 发表于 2008-5-12 15:00:41 | 显示全部楼层
感谢duzhig的回复;取消那个判断后就正常了.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 10:24 , Processed in 0.040272 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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