1. 前一段时间已经在2410的板子上移植好了u-boot-1.1.4和linux-2.6.8,cramfs。最近想移植一个2.6.20版本的内核,启动参数还是用的2.6.8的:console=ttyS1,115200。每次到
Uncompressing Linux............................................................................................ done, booting the kernel.
这一步就没反应了,一直以为是内核解压的时候head.S里出了问题,在2.6.8的内核的时候也试过把u-boot和kernel的参数都该成ttySAC1,115200没有成功,2.6.20的内核反而要这样修改才行。
2. ## Starting application at 0x30008000 ...
Uncompressing Linux................................................................................. done, booting the kernel.
Linux version 2.6.20 () (gcc version 3.4.1) #13 Wed Apr 1 09:13:43 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 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: 16256
Kernel command line: init=/linuxrc root=/dev/nfs console=ttySAC1,115200 nfsroot=192.168.2.167:/home/rootfs/nfs ip=192.168.2.169:192.168.2.167:192.168.2.1:255.255.255.0:
irq: clearing subpending status 00000010
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a509, tcfg 00000200,00000000, usec 00001e4c
Console: colour dummy device 80x30
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: 62336KB available (2292K code, 202K data, 80K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
Registering sysclass
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2410: Initialising architecture
Unable to handle kernel NULL pointer dereference at virtual address 00000008
pgd = c0004000
[00000008] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in:
CPU: 0
PC is at platform_device_add+0x88/0x158
LR is at small_digits.2+0x0/0x28
pc : [] lr : [] Not tainted
sp : c0337f50 ip : c01e2a38 fp : c0337f70
r10: c0019270 r9 : 00000000 r8 : 00000000
r7 : 00000000 r6 : c0278740 r5 : c02611dc r4 : 00000000
r3 : 00000000 r2 : c0261288 r1 : 00000000 r0 : 00000008
Flags: Nzcv IRQs on FIQs on Mode SVC_32 Segment kernel
Control: 717F
Table: 30004000 DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc0336250)
Stack: (0xc0337f50 to 0xc0338000)
7f40: 00000000 c02611dc 00000005 c0278740
7f60: c00197a4 c0337f84 c0337f74 c011bf8c c011be24 c001a358 c0337fa0 c0337f88
7f80: c000df74 c011bf7c 00000000 c00190e4 c0336000 c0337ff4 c0337fa4 c001c0fc
7fa0: c000df10 00000001 c001ce24 c002fd88 00000000 00000000 c001c058 c0036018
7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
7fe0: 00000000 00000000 00000000 c0337ff8 c0036018 c001c068 c014b2b8 c014b37c
Backtrace:
[] (platform_device_add+0x0/0x158) from [] (platform_device_register+0x20/0x24)
r7 = C00197A4 r6 = C0278740 r5 = 00000005 r4 = C02611DC
[] (platform_device_register+0x0/0x24) from [] (s3c_arch_init+0x74/0xc8)
r4 = C001A358
[] (s3c_arch_init+0x0/0xc8) from [] (init+0xa4/0x270)
r6 = C0336000 r5 = C00190E4 r4 = 00000000
[] (init+0x0/0x270) from [] (do_exit+0x0/0x730)
Code: e1a04007 e595314c e28520ac e0831004 (e5913008)
<0>Kernel panic - not syncing: Attempted to kill init!
按照以前版本添加dm9000驱动的方法在devs.c中注册设备,就会出现这样的错误。在网上搜索一通解决的次问题,在mach-smdk2410.c中添加
#include
#define DM9000_BASE 0x20000300 //nGCS4
#define DM9000_IRQ IRQ_EINT3 //EINT3
struct dm9000_plat_data tekkaman2440_dm9000 = {
.flags= DM9000_PLATF_16BITONLY
};
static struct resource s3c2440_dm9000_resource[] = {
[0] = {
.start = DM9000_BASE,
.end = DM9000_BASE + 0xff,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = DM9000_IRQ,
.end = DM9000_IRQ,
.flags = IORESOURCE_IRQ,
}
};
struct platform_device s3c_device_dm9000 = {
.name = "dm9000",
.id = -1,
.num_resources = ARRAY_SIZE(s3c2440_dm9000_resource),
.resource = s3c2440_dm9000_resource,
.dev = {
.platform_data = &tekkaman2440_dm9000,
}
};
static struct platform_device *smdk2440_devices[] __initdata = {
&s3c_device_usb,
&s3c_device_lcd,
&s3c_device_wdt,
&s3c_device_i2c,
&s3c_device_iis,
&s3c_device_dm9000
};
搞定。(dm9000.c用的是以前调试好的程序)
阅读(1964) | 评论(0) | 转发(0) |