4093|1

65

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

linux内核移植到2440问题 [复制链接]

按照网上的教程交叉编译了一个linux的内核,在下载到arm2440上运行不了。显示的输出信息为:
Read chip id = ec76
Nand flash status = c0, NandAddr=1
buf address :0x30008000
Set boot params = root=/dev/mtdblock2  load_ramdisk=0 init=/linuxrc console=ttySAC0 display=shp240 mem=64M devfs=mount
Linux version 2.6.12-h1940 (root@Decell-tts) (gcc version 3.4.5) #283 Wed Jun 24 12:37:07 HKT 2009

CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)

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

Machine: SMDK2410

ATAG_INITRD is deprecated; please update your bootloader.

Memory policy: ECC disabled, Data cache writeback

CPU S3C2440A (id 0x32440001)

S3C2440: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz

S3C2410 Clocks, (c) 2004 Simtec Electronics

Built 1 zonelists

Kernel command line: root=/dev/mtdblock2  load_ramdisk=0 init=/linuxrc console=ttySAC0 display=shp240 mem=64M devfs=mount

irq: clearing pending ext status 00080200

irq: clearing subpending status 00000093

irq: clearing subpending status 00000092

PID hash table entries: 512 (order: 9, 8192 bytes)

timer tcon=00090000, tcnt a2c1, tcfg 00000200,00001000, usec 00001eb8

Console: colour dummy device 80x30

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

Memory: 64MB = 64MB total

Memory: 61056KB available (2931K code, 745K data, 108K init)

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

NET: Registered protocol family 16

S3C2440: Initialising architecture

S3C2440: IRQ Support

S3C2440: Clock Support, UPLL 48.000 MHz

SCSI subsystem initialized

usbcore: registered new driver usbfs

usbcore: registered new driver hub

S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics

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

NetWinder Floating Point Emulator V0.97 (double precision)

devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)

devfs: boot_options: 0x1

Installing knfsd (copyright (C) 1996 okir@monad.swb.de).

NTFS driver 2.1.22 [Flags: R/W].

JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.

yaffs Mar 23 2009 04:06:15 Installing.

Initializing Cryptographic API

--- s3c2410fb init ---!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

pxafb_probe start!!!!!!!!!!!!!!!!!!!!!!!!!!

VA=0xffc00000, PA=0x305c0000, size=0x00027000

Console: switching to colour frame buffer device 30x40

success to register framebuffer device: 0!!!

done probe!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

fb1: Virtual frame buffer device, using 1024K of video memory

c03ae1f8

c03ae244

c03ae290

c03ae2dc

c05fe204

c05fe004

c06c2e04

c06c2c04

c06c2a04

in s3c2410ts init()

success get major number!!!!!!

s3c2410-ts device driver MAJOR:253

success to get adc clock source!

base_addr = 0xc4962000

line 532 passed!

register s3c2410-ts driver success, return code is 0

S3C2410 RTC, (c) 2004 Simtec Electronics

c06c2804

s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440

s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440

s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440

io scheduler noop registered

io scheduler anticipatory registered

io scheduler deadline registered

io scheduler cfq registered

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

loop: loaded (max 8 devices)

nbd: registered device at major 43

ub: sizeof ub_scsi_cmd 68 ub_dev 2384 ub_lun 140

usbcore: registered new driver ub

dm9000 Ethernet Driver

eth0: dm9000 at c496e300,c4970304 IRQ 53 MAC: 00:12:34:56:78:90

Linux video capture interface: v1.00

S3C24XX NAND Driver, (c) 2004 Simtec Electronics

s3c2410-nand: mapped registers at c4980000

s3c2410-nand: timing: Tacls 10ns, Twrph0 40ns, Twrph1 10ns

NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)

Scanning device for bad blocks

Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":

0x00000000-0x00040000 : "Bootload"

0x00040000-0x00200000 : "Kernel"

0x00200000-0x02000000 : "RootFileSystem"

0x02000000-0x04000000 : "ExtendFileSystem"

usbmon: debugs is not available

hello,enter new ohci-s3c2410.c

CLKDIVN = 00000005

CLKSLOW = 00000004

CLKCON = 00f2e770

UPLLCON = 00038022

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

usb usb1: Product: S3C24XX OHCI

usb usb1: Manufacturer: Linux 2.6.12-h1940 ohci_hcd

usb usb1: SerialNumber: s3c24xx

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

usbcore: registered new driver usblp

drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver

Initializing USB Mass Storage driver...

usbcore: registered new driver usb-storage

USB Mass Storage support registered.

usbcore: registered new driver usbhid

drivers/usb/input/hid-core.c: v2.01:USB HID core driver

mice: PS/2 mouse device common for all mice

i2c /dev entries driver

s3c2440-i2c s3c2440-i2c: slave address 0x10

s3c2440-i2c s3c2440-i2c: bus frequency set to 48 KHz

s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter

globalmem device init Enter!

we  have  major158

we have got a device number!

Fram i2c init Enter!

&i2cFramDriver = 0xc0352d94

i2cFramAttachAdapter = 0xc023b2a0

0

Unable to handle kernel NULL pointer dereference at virtual address 00000000

pgd = c0004000

[00000000] *pgd=00000000

Internal error: Oops: 805 [#1]

Modules linked in:

CPU: 0

PC is at __memzero+0x24/0x80

LR is at __init_begin+0x3fff8000/0x2c

pc : []    lr : [<00000000>]    Not tainted

sp : c0485f9c  ip : 00000000  fp : c0485fb4

r10: 00000000  r9 : 00000000  r8 : 00000000

r7 : c03b36d8  r6 : c0352e78  r5 : c0352e78  r4 : 00000000

r3 : 00000000  r2 : 00000000  r1 : 0000000c  r0 : 00000000

Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  Segment kernel

Control: C000717F  Table: 30004000  DAC: 00000017

Process swapper (pid: 1, stack limit = 0xc0484194)

Stack: (0xc0485f9c to 0xc0486000)

5f80:                                                                c007daf4

5fa0: 09e00000 00000000 c0485fd8 c0485fb8 c001a9e0 c007dad8 09e00001 c0484000

5fc0: c001e7f0 00000000 00000000 c0485ff4 c0485fdc c00230d4 c001a910 00000000

5fe0: 00000000 00000000 00000000 c0485ff8 c003bce8 c0023064 6f636564 615f6564

Backtrace:

[] (cdev_init+0x0/0x58) from [] (framInit+0xe0/0x180)

r5 = 00000000  r4 = 09E00000

[] (framInit+0x0/0x180) from [] (init+0x80/0x1c4)

r7 = 00000000  r6 = 00000000  r5 = C001E7F0  r4 = C0484000

[] (init+0x0/0x1c4) from [] (do_exit+0x0/0xa94)

r6 = 00000000  r5 = 00000000  r4 = 00000000

Code: e52de004 e1a0c002 e1a0e002 e2511040 (a8a0500c)

<0>Kernel panic - not syncing: Attempted to kill init!


就这样死掉了,请问怎么才行啊?
此帖出自Linux开发论坛

最新回复

自己顶下……………………  详情 回复 发表于 2009-10-9 16:53
点赞 关注

回复
举报

67

帖子

0

TA的资源

一粒金砂(初级)

沙发
 
自己顶下……………………
此帖出自Linux开发论坛
 
 

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

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/6 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表