天嵌 ARM开发社区

 找回密码
 注册
查看: 1733|回复: 0

移植DM9000遇到的问题,好像是物理地址和虚拟地址的冲突

[复制链接]
dhynust 发表于 2011-8-29 10:55:39 | 显示全部楼层 |阅读模式
编译的内核成功了,就是带了一些警告:
比如:warning:passing argument 1 of 'printk' makes pointer from interger without a cast

将镜像烧写到开发板后,启动开发板出现如下情况
Start Linux ...
Copy linux kernel from 0x00200000 to 0x30008000, size = 0x00300000 ... Copy Kernel to SDRAM done,NOW, Booting Linux......
Uncompressing Linux......................................................................................................................... done, booting the kernel.
Linux version 2.6.30.4-EmbedSky (root@EmbedSky) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-176) ) #4 Sat Aug 27 21:05:19 CST 2011
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
NR_IRQS:85
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60864KB available (3404K code, 377K data, 120K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
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 c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
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 97 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: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
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.
yaffs Aug 25 2011 15:09:28 Installing.
msgmni has been set to 118
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
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2440-uart.0: tq2440_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: tq2440_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: tq2440_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
Unable to handle kernel paging request at virtual address 3a61620a
pgd = c0004000
[3a61620a] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in:
CPU: 0    Not tainted  (2.6.30.4-EmbedSky #4)
PC is at vsnprintf+0xca8/0xcf8
LR is at vscnprintf+0xc/0x18
pc : [<c013a248>]    lr : [<c013a33c>]    psr: 80000093
sp : c381dc78  ip : 00000000  fp : c381deac
r10: 00000000  r9 : c03b0d14  r8 : 3a61620a
r7 : c381deac  r6 : 00000046  r5 : 3a61620a  r4 : 00000400
r3 : c381deac  r2 : 3a61620a  r1 : 00000400  r0 : c03b1114
Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: c000717f  Table: 30004000  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc381c268)
Stack: (0xc381dc78 to 0xc381e000)
dc60:                                                       ffffffff 00000000
dc80: 00000000 c0138e30 00000000 00000000 00000000 00000400 c03b0d14 c03b1114
dca0: 00000000 00000000 00000000 00000000 00000000 ffffffff 00000038 3632ffff
dcc0: 00000038 35370000 00000038 c03272d0 ffffffff c033c0e8 c03272ae c398f240
dce0: c03de708 00000004 00000360 c381dd26 c381df5b ffffffff c381dd26 c381df5b
dd00: ffffffff 00000002 00000000 c0138e30 00000000 00000000 c381df44 ffffffff
dd20: 00000007 c034af9b c03a1ce0 c0139bc0 00000001 00000004 00000000 ffffffff
dd40: 0000000a ffffffff ffffffff c033c0e8 ffffffff 00000007 c39db2c0 c39db2c7
dd60: 0000000a ffffffff ffffffff 00000000 ffffffff c034af9d 00000000 c001a56c
dd80: c381df5b 0000000e c381df58 c013a240 0000000e 00000002 ffffffff 0000000a
dda0: ffffffff ffffffff c381c000 3c7e20a7 c381df58 ffffffff 0000000a ffffffff
ddc0: ffffffff 00000002 c386960c c0137984 c39dd18c c39dd180 00002000 00000000
dde0: 00001fff c0084a50 c4872000 c39dd180 00002000 c0084c6c 00000017 c4800000
de00: c381c000 00000400 00000000 00000046 c381deac 3a61620a c0392c58 00000000
de20: 00000004 c013a33c c03b0d14 c0045f30 ffffffff 60000013 00001000 00020000
de40: c0392d18 c3847f00 c3847c00 c0392c58 00000000 c0084f4c ffffffff 000000d0
de60: c002e2cc 00001007 00001000 c002e2cc c4873000 90000a46 0000000a 00000046
de80: c3847f00 c3847c00 c0392c58 00000000 2201d112 c0291088 3a61620a c381deac
dea0: 00000000 c029058c 3a61620a 0000001f 00000000 c01a0c44 00000000 c38374b0
dec0: 00000001 c00cdc78 c38374b0 00000700 00000000 c0392c60 c0392c60 c03a304c
dee0: c39c5060 c03a1ce0 00000000 00000000 00000000 c017b618 c0392c60 c017a8a0
df00: c0392c60 c0392c94 c03a304c c39c5060 c03a1ce0 c017a9b0 00000000 c017a954
df20: c03a304c c017a1f4 c38035b8 c3836990 c0020f70 c03a304c c03a304c c0179b14
df40: c0324bec c0324bec 00000001 c0020f70 00000000 c03a304c 00000000 c001a694
df60: 00000000 c017ac7c c0020f70 00000000 00000000 00000000 c001a694 c00262a0
df80: 00000000 c00c74b0 c381dfb4 c032af44 00008100 00000088 c03995bc c3830500
dfa0: c03995bc 00000050 c03d3980 c00c7700 c032af44 c38311e0 c381dfc6 c006958c
dfc0: 00000000 30381a80 00000000 00000000 00000000 c0020f70 00000000 00000000
dfe0: 00000000 00000000 00000000 c0008554 00000000 c0048140 30023000 06600400
[<c013a248>] (vsnprintf+0xca8/0xcf8) from [<c013a33c>] (vscnprintf+0xc/0x18)
[<c013a33c>] (vscnprintf+0xc/0x18) from [<c0045f30>] (vprintk+0xf4/0x2a0)
[<c0045f30>] (vprintk+0xf4/0x2a0) from [<c0291088>] (printk+0x1c/0x28)
[<c0291088>] (printk+0x1c/0x28) from [<c029058c>] (dm9000_probe+0x468/0x5d0)
[<c029058c>] (dm9000_probe+0x468/0x5d0) from [<c017b618>] (platform_drv_probe+0x18/0x1c)
[<c017b618>] (platform_drv_probe+0x18/0x1c) from [<c017a8a0>] (driver_probe_device+0xa8/0x15c)
[<c017a8a0>] (driver_probe_device+0xa8/0x15c) from [<c017a9b0>] (__driver_attach+0x5c/0x7c)
[<c017a9b0>] (__driver_attach+0x5c/0x7c) from [<c017a1f4>] (bus_for_each_dev+0x48/0x78)
[<c017a1f4>] (bus_for_each_dev+0x48/0x78) from [<c0179b14>] (bus_add_driver+0x98/0x210)
[<c0179b14>] (bus_add_driver+0x98/0x210) from [<c017ac7c>] (driver_register+0xa4/0x130)
[<c017ac7c>] (driver_register+0xa4/0x130) from [<c00262a0>] (do_one_initcall+0x58/0x198)
[<c00262a0>] (do_one_initcall+0x58/0x198) from [<c0008554>] (kernel_init+0x70/0xe0)
[<c0008554>] (kernel_init+0x70/0xe0) from [<c0048140>] (do_exit+0x0/0x578)
[<c0048140>] (do_exit+0x0/0x578) from [<00000000>] (0x0)
Code: e59d1024 ebfffaaa e1a09000 e59d503c (e5d53000)
---[ end trace d676dd0d1228aa71 ]---
Kernel panic - not syncing: Attempted to kill init!
[<c002c6fc>] (unwind_backtrace+0x0/0xdc) from [<c0290f9c>] (panic+0x40/0x110)
[<c0290f9c>] (panic+0x40/0x110) from [<c00481a4>] (do_exit+0x64/0x578)
[<c00481a4>] (do_exit+0x64/0x578) from [<c002acbc>] (die+0x148/0x168)
[<c002acbc>] (die+0x148/0x168) from [<c002d61c>] (__do_kernel_fault+0x64/0x74)
[<c002d61c>] (__do_kernel_fault+0x64/0x74) from [<c002d828>] (do_page_fault+0x1fc/0x218)
[<c002d828>] (do_page_fault+0x1fc/0x218) from [<c00261e8>] (do_DataAbort+0x30/0x90)
[<c00261e8>] (do_DataAbort+0x30/0x90) from [<c0026920>] (__dabt_svc+0x40/0x60)
Exception stack(0xc381dc30 to 0xc381dc78)
dc20:                                     c03b1114 00000400 3a61620a c381deac
dc40: 00000400 3a61620a 00000046 c381deac 3a61620a c03b0d14 00000000 c381deac
dc60: 00000000 c381dc78 c013a33c c013a248 80000093 ffffffff                  
[<c0026920>] (__dabt_svc+0x40/0x60) from [<c013a33c>] (vscnprintf+0xc/0x18)
[<c013a33c>] (vscnprintf+0xc/0x18) from [<00000000>] (0x0)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-10-3 00:32 , Processed in 1.030313 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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