编译好的内核下载到 板子上运行有错误
编译好的内核下载到 板子上运行,出现:
5ec0: c016a650 c01699d0 80000093 ffffffff c03e5f2c c03e5ee4 c016a650
5ee0: c01699c4 0000000a ffffffff 00000001 00000002 c01bd4ff 00000400 c01bd100
5f00: c01830e7 c01bd100 00000014 60000013 00000001 0000001e 41129200 00000009
5f20: c03e5f4c c03e5f30 c0029ccc c016a26c 00000000 00000014 00000013 00000001
5f40: c03e5f98 c03e5f60 c00b9304 c0029c74 c01830dc 00000013 00000002 00000014
5f60: 00000001 0000001e 00000009 c0183018 00000000 00000000 00000000 c01b32fc
5f80: c01b9b04 c01a8c48 30015058 c03e5fb8 c03e5f9c c0010548 c00b91c0 00000000
5fa0: c0019200 c01e47e4 c01b9b1c c03e5fcc c03e5fbc c0008914 c00104ec 00000000
5fc0: c03e5fdc c03e5fd0 c000895c c000890c c03e5ff4 c03e5fe0 c001a280 c0008940
5fe0: 00000000 c01e47e4 00000000 c03e5ff8 c001bc98 c001a280 00000000 00000000
Backtrace:
Function entered at [<c01699b4>] from [<c016a650>]
Function entered at [<c016a25c>] from [<c0029ccc>]
Function entered at [<c0029c64>] from [<c00b9304>]
r7 = 00000001 r6 = 00000013 r5 = 00000014 r4 = 00000000
Function entered at [<c00b91b0>] from [<c0010548>]
Function entered at [<c00104dc>] from [<c0008914>]
r6 = C01B9B1C r5 = C01E47E4 r4 = C0019200
Function entered at [<c00088fc>] from [<c000895c>]
r4 = 00000000
Function entered at [<c0008930>] from [<c001a280>]
Function entered at [<c001a270>] from [<c001bc98>]
r5 = C01E47E4 r4 = 00000000
Code: e1a02000 e2411001 e3710001 0a000009 (e5d23000)
Kernel panic: Attempted to kill init!
是什么原因呢?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
你认为这里有神吗?只看2进制就可以判断错误了?
不好意思,给出的内容太少了,
arm 是 说吃s3c2410, 64M SDRAM,16M Nor Flash,16M Nana Flash.
内核是 linux 2.4
bootloader是 U-boot 1.1.4
Makefile: arch:=arm
cross_complie:=/usr/local/arm/2.95.3/bin/arm-linux
config 为:
#
# Automatically generated by make menuconfig: don't edit
#
CONFIG_ARM=y
CONFIG_UID16=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y
CONFIG_EXPERIMENTAL=y
CONFIG_KMOD=y
CONFIG_ARCH_S3C2410=y
CONFIG_S3C2410_SMDK=y
CONFIG_SMDK_AIJI=y
CONFIG_S3C2410_USB=y
CONFIG_S3C2410_USB_CHAR=y
# CONFIG_FOOTBRIDGE_ADDIN is not set
CONFIG_CPU_32=y
CONFIG_CPU_32v4=y
CONFIG_CPU_ARM920T=y
CONFIG_CPU_ARM920_CPU_IDLE=y
CONFIG_CPU_ARM920_I_CACHE_ON=y
CONFIG_CPU_ARM920_D_CACHE_ON=y
CONFIG_MIZI=y
CONFIG_ISA=y
CONFIG_ZBOOT_ROM_TEXT=0
CONFIG_ZBOOT_ROM_BSS=0
CONFIG_HOTPLUG=y
CONFIG_PCMCIA=m
CONFIG_PCMCIA_PROBE=y
CONFIG_I82365=y
CONFIG_SYSVIPC=y
CONFIG_SYSCTL=y
CONFIG_FPE_NWFPE=y
CONFIG_KCORE_ELF=y
CONFIG_NET=y
CONFIG_SYSVIPC=y
CONFIG_FPE_NWFPE=y
CONFIG_KCORE_ELF=y
CONFIG_BINFMT_ELF=y
CONFIG_CMDLINE="root=/dev/ram rw initrd=0x30800000,6000000 ramdisk_size=15360 console=ttyS0,115200 mem=64M"
CONFIG_LEDS=y
CONFIG_LEDS_TIMER=y
CONFIG_LEDS_CPU=y
CONFIG_ALIGNMENT_TRAP=y
CONFIG_MTD=y
CONFIG_MTD_PARTITIONS=y
CONFIG_MTD_CONCAT=y
CONFIG_MTD_BLOCK=y
CONFIG_MTD_SMC=y
CONFIG_MTD_NANDY=y
CONFIG_MTD_NAND_ECC=y
CONFIG_MTD_NAND_VERIFY_WRITE=y
CONFIG_MTD_NAND_BONFS=y
CONFIG_MTD_SMC_S3C2410_SMDK=y
CONFIG_BLK_DEV_NBD=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=20480
CONFIG_BLK_DEV_INITRD=y
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_NETDEVICES=y
CONFIG_DUMMY=y
CONFIG_NET_ETHERNET=y
CONFIG_NET_PCI=y
CONFIG_CERF_CS8900A=y
CONFIG_NET_RADIO=y
CONFIG_HERMES=m
CONFIG_PCMCIA_HERMES=m
CONFIG_NET_WIRELESS=y
CONFIG_NET_PCMCIA=y
CONFIG_PCMCIA_3C589=m
CONFIG_PCMCIA_3C574=m
CONFIG_PCMCIA_PCNET=m
CONFIG_PCMCIA_XIRC2PS=m
CONFIG_IRDA=m
CONFIG_IRDA_CACHE_LAST_LSAP=y
CONFIG_IRDA_FAST_RR=y
CONFIG_IRDA_DEBUG=y
CONFIG_IRTTY_SIR=m
CONFIG_DONGLE=y
CONFIG_S3C2410_IR=m
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_SD_EXTRA_DEVS=40
CONFIG_INPUT=y
CONFIG_INPUT_KEYBDEV=y
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL_S3C2410=y
CONFIG_SERIAL_S3C2410_CONSOLE=y
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_S3C2410_TOUCHSCREEN=y
CONFIG_S3C2410_GPIO_BUTTONS=m
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
CONFIG_I2C=y
CONFIG_I2C_8563=y
CONFIG_VIDEO_DEV=y
CONFIG_AUTOFS4_FS=y
CONFIG_FAT_FS=y
CONFIG_VFAT_FS=y
CONFIG_CRAMFS=y
CONFIG_TMPFS=y
CONFIG_RAMFS=y
CONFIG_PROC_FS=y
CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y
CONFIG_DEVPTS_FS=y
CONFIG_EXT2_FS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
# CONFIG_ROOT_NFS is not set
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_ZLIB_FS_INFLATE=y
CONFIG_PARTITION_ADVANCED=y
CONFIG_MSDOS_PARTITION=y
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=m
CONFIG_NLS_CODEPAGE_936=m
CONFIG_NLS_CODEPAGE_950=m
CONFIG_NLS_CODEPAGE_949=m
CONFIG_NLS_ISO8859_1=m
CONFIG_PC_KEYMAP=y
CONFIG_FB=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FB_S3C2410=y
CONFIG_FBCON_ADVANCED=y
CONFIG_FBCON_CFB16=y
ONFIG_FBCON_FONTWIDTH8_ONLY=y
CONFIG_FBCON_FONTS=y
CONFIG_FONT_ACORN_8x8=y
CONFIG_SOUND=y
CONFIG_SOUND_SMDK2410_UDA1341=y
CONFIG_USB=y
CONFIG_USB_OHCI_S3C2410=y
CONFIG_MAX_ROOT_PORTS=1
CONFIG_USB_STORAGE=y
CONFIG_USB_STORAGE_DEBUG=y
CONFIG_FRAME_POINTER=y
CONFIG_DEBUG_USER=y
CONFIG_DEBUG_KERNEL=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_ERRORS=y
CONFIG_DEBUG_LL=y
## Booting image at 32000000 ...
Image Name:
Created: 2007-07-16 2:15:57 UTC
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 759039 Bytes = 741.2 kB
Load Address: 30008000
Entry Point: 30008000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
Linux version 2.4.18-rmk7-pxa1 (root@localhost.localdomain) (gcc version 2.95.37CPU: ARM/CIRRUS Arm920Tsid(wb) revision 0
Machine: Samsung-SMDK2410
Warning: bad configuration page, trying to continue
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram rw initrd=0x30800000,6000000 ramdisk_size=15MConsole: colour dummy device 80x30
Calibrating delay loop... 50.58 BogoMIPS
Memory: 64MB = 64MB total
Memory: 62520KB available (1543K code, 331K data, 72K init)
Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
CPU clock = 202.800000 Mhz, HCLK = 101.400000 Mhz, PCLK = 50.700000 Mhz
Initializing S3C2410 buffer pool for DMA workaround
S3C2410 USB Controller Core Initialized
USB Function Character Driver Interface - 0.5, (C) 2001, Extenex Corp.
usbctl: Opened for usb-char
usbctl: Started for usb-char
Starting kswapd
devfs: v1.10 (20020120) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
8563 init OK
ttyS%d0 at I/O 0x50000000 (irq = 52) is a S3C2410
ttyS%d1 at I/O 0x50004000 (irq = 55) is a S3C2410
ttyS%d2 at I/O 0x50008000 (irq = 5 is a S3C2410
Console: switching to colour frame buffer device 30x40
Installed S3C2410 frame buffer
pty: 256 Unix98 ptys configured
s3c2410-ts initialized
S3C2410 Real Time Clock Driver v0.1
GPECON1 is 0xaaaaaaaa
Unable to handle kernel NULL pointer dereference at virtual address 00000002
pgd = c0004000
*pgd = 00000000, *pmd = 00000000
Internal error: Oops: 0
CPU: 0
pc : [<c01699d0>] lr : [<c016a650>] Not tainted
sp : c03e5ed4 ip : c03e5ee4 fp : c03e5ee0
r10: 00000000 r9 : c03e5f5c r8 : ffffffff
r7 : c01bd10a r6 : 00000000 r5 : 00000002 r4 : 00000000
r3 : c019bd64 r2 : 00000002 r1 : fffffffe r0 : 00000002
Flags: Nzcv IRQs off FIQs on Mode SVC_32 Segment kernel
Control: 317F Table: 30004000 DAC: 0000001D
Process swapper (pid: 1, stackpage=c03e5000)
Stack: (0xc03e5ec4 to 0xc03e6000)
5ec0: c016a650 c01699d0 80000093 ffffffff c03e5f2c c03e5ee4 c016a650
5ee0: c01699c4 0000000a ffffffff 00000001 00000002 c01bd4ff 00000400 c01bd100
5f00: c01830e7 c01bd100 00000014 60000013 00000001 0000001e 41129200 00000009
5f20: c03e5f4c c03e5f30 c0029ccc c016a26c 00000000 00000014 00000013 00000001
5f40: c03e5f98 c03e5f60 c00b9304 c0029c74 c01830dc 00000013 00000002 00000014
5f60: 00000001 0000001e 00000009 c0183018 00000000 00000000 00000000 c01b32fc
5f80: c01b9b04 c01a8c48 30015058 c03e5fb8 c03e5f9c c0010548 c00b91c0 00000000
5fa0: c0019200 c01e47e4 c01b9b1c c03e5fcc c03e5fbc c0008914 c00104ec 00000000
5fc0: c03e5fdc c03e5fd0 c000895c c000890c c03e5ff4 c03e5fe0 c001a280 c0008940
5fe0: 00000000 c01e47e4 00000000 c03e5ff8 c001bc98 c001a280 00000000 00000000
Backtrace:
Function entered at [<c01699b4>] from [<c016a650>]
Function entered at [<c016a25c>] from [<c0029ccc>]
Function entered at [<c0029c64>] from [<c00b9304>]
r7 = 00000001 r6 = 00000013 r5 = 00000014 r4 = 00000000
Function entered at [<c00b91b0>] from [<c0010548>]
Function entered at [<c00104dc>] from [<c0008914>]
r6 = C01B9B1C r5 = C01E47E4 r4 = C0019200
Function entered at [<c00088fc>] from [<c000895c>]
r4 = 00000000
Function entered at [<c0008930>] from [<c001a280>]
Function entered at [<c001a270>] from [<c001bc98>]
r5 = C01E47E4 r4 = 00000000
Code: e1a02000 e2411001 e3710001 0a000009 (e5d23000)
Kernel panic: Attempted to kill init!
PECON1 is 0xaaaaaaaa
Unable to handle kernel NULL pointer dereference at virtual address 00000002
这个地方\什么意思呢?
应该是内存映射时出现了地址覆盖。有可能是多加了那个驱动进内核所致。
你可以比较一下以前正常能启动时的配置文件和你现在有什么区别。
具体跟一下是那个驱动出错:
特别是PECON1 is 0xaaaaaaaa这个操作在哪里驱动里面,他后面还要运行什么驱动等!
谢谢,
正常的执行时:
ttyS00 at I/O 0x50000000 (irq = 52) is a S3C2410
ttyS238550281 at I/O 0x50004000 (irq = 55) is a S3C2410
ttyS02 at I/O 0x50008000 (irq = 5 is a S3C2410
Console: switching to colour frame buffer device 30x40
Installed S3C2410 frame buffer
pty: 256 Unix98 ptys configured
s3c2410-ts initialized
S3C2410 Real Time Clock Driver v0.1
GPECON1 is 0xaaaaaaaa
now is 1-Jul-2006 9:33:4 Friday
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 20480K size 1024 blocksize
这是正确执行时的信息.
now is 1-Jul-2006 9:33:4 Friday,感觉读时间的时候好像有问题
[ 本帖最后由 jiaxi 于 2007-7-17 15:14 编辑 ]
CONFIG_RTC
问题找到了,是这个配置,
把这个配置 取消,就可以了.
但不知道这个配置可否取消呢?