天嵌 ARM开发社区

 找回密码
 注册
查看: 3941|回复: 10

只移植了内核,没有移植文件系统,终端最后部分显示(内核崩溃)是否属于正常?

[复制链接]
xiang8000 发表于 2010-10-20 10:17:47 | 显示全部楼层 |阅读模式
英文忘了是怎么的了,反正翻译过来就是内核崩溃,然后后面就是R7,R6什么的一长串,然后就停在那里了,不能输入字符命令。这是否属于正常现象,如果此时把做好的文件系统移植进去,就不会再有这类现象产生了是不是?
 楼主| xiang8000 发表于 2010-10-20 23:39:28 | 显示全部楼层
U-Boot 2009.08 (10月 18 2010 - 23:46:18)

DRAM:  64 MB
Flash:  2 MB
NAND:  NAND_ECC_NONE selected by board driver. This is not recommended !!
64 MiB
In:    serial
Out:   serial
Err:   serial
Net:   dm9000
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x50000, size 0x200000
2097152 bytes read: OK
## Booting kernel from Legacy Image at 31000000 ...
   Image Name:   linux-2.6.30.4
   Created:      2010-10-17   8:56:14 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1882456 Bytes =  1.8 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
............................................................ done, booting the k
ernel.
Linux version 2.6.30.4 (root@linux) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3
-72) ) #4 Thu Oct 28 03:36:20 KST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/hda1 ro init=/bin/bash console=ttySAC0
NR_IRQS:85
irq: clearing pending ext status 00080000
irq: clearing subpending status 00000002
PID hash table entries: 64 (order: 6, 256 bytes)
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 12224KB available (3512K code, 312K data, 128K init, 0K highmem)
Calibrating delay loop... 50.38 BogoMIPS (lpj=125952)
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 c1808000, irq 33
DMA channel 1 at c1808040, irq 34
DMA channel 2 at c1808080, irq 35
DMA channel 3 at c18080c0, 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 98 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: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
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.
msgmni has been set to 23
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: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_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
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit
)
Scanning device for bad blocks
Bad eraseblock 1673 at 0x000001a24000
Bad eraseblock 3357 at 0x000003474000
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000030000 : "xiang boot"
0x000000030000-0x000000070000 : "xiang env"
0x000000050000-0x000000250000 : "xiang kernel"
0x000000250000-0x000003ffc000 : "xiang filesystem"
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
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: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "hda1" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00             192 mtdblock0 (driver?)
1f01             256 mtdblock1 (driver?)
1f02            2048 mtdblock2 (driver?)
1f03           63152 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Backtrace:
[<c002ca00>] (dump_backtrace+0x0/0x114) from [<c02c95b8>] (dump_stack+0x18/0x1c)

r7:00008001 r6:c0491000 r5:c002483c r4:c03b7d14
[<c02c95a0>] (dump_stack+0x0/0x1c) from [<c02c9608>] (panic+0x4c/0x11c)
[<c02c95bc>] (panic+0x0/0x11c) from [<c00090d0>] (mount_block_root+0x1e0/0x220)
r3:00000000 r2:20000013 r1:c0429f6c r0:c033fd6d
[<c0008ef0>] (mount_block_root+0x0/0x220) from [<c00091d4>] (mount_root+0xc4/0xf
c)
r8:00000000 r7:00000000 r6:00000000 r5:00000000 r4:00200000
[<c0009110>] (mount_root+0x0/0xfc) from [<c000937c>] (prepare_namespace+0x170/0x
1c4)
r5:c002483c r4:c03b7664
[<c000920c>] (prepare_namespace+0x0/0x1c4) from [<c000860c>] (kernel_init+0xbc/0
xe8)
r5:00000000 r4:c03b7640
[<c0008550>] (kernel_init+0x0/0xe8) from [<c004a318>] (do_exit+0x0/0x58c)
r4:00000000

至此卡住,不能输入字符到终端,也无任何字符输出
machoe 发表于 2010-10-21 08:12:05 | 显示全部楼层
哎,如果你没移植文件系统就想进入终端的话,我敢保证你可以得诺贝奖了
天嵌_support1 发表于 2010-10-21 11:42:23 | 显示全部楼层
2# xiang8000


Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "hda1" or unknown-block(2,0)

还是想问,你用的是nfs ,你设置nfs 服务器了么?
 楼主| xiang8000 发表于 2010-10-21 12:36:53 | 显示全部楼层
3楼版主,你好,我明白没有移植文件系统是不能输入终端命令的,因为我做了几次文件系统文件都没做成功,所以先想确定一下没有加载文件系统的内核启动这段是否正常,故此提出此问。

4楼版主你好,感谢你对我问题的关注,表示万分感谢,我没有使用nfs,以前也没有配置过或启用过这方面的文件或服务,我是直接将bin下载到NANDFLASH中然后读到RAM中执行的,请问这里有错误提示么?恳请老师鞭策
天嵌_support1 发表于 2010-10-21 12:39:31 | 显示全部楼层
5# xiang8000


照你说的,你的内核已经启动完成。正在准备加载文件系统,但是没有找到。
machoe 发表于 2010-10-21 12:58:50 | 显示全部楼层
内核肯定是成功运行起来了,可是你传递的参数是要挂载NFS文件系统。而你又没移植,当然就出现错误了。
 楼主| xiang8000 发表于 2010-10-21 15:17:21 | 显示全部楼层
哦,这样哦,谢谢两位的指点,也就是说目前内核移植这块是正确了的哈,那我再仔细看看文件系统移植这块的内容,看看问题到底出在什么位置,我是准备使用YAFFS2文件系统
天嵌_support1 发表于 2010-10-21 17:56:12 | 显示全部楼层
8# xiang8000
网友呀.....
讨论要把你的论点主题和大家挑明呀......
slesre 发表于 2010-10-24 00:33:05 | 显示全部楼层
8# xiang8000


我遇到过类似的问题:解决问题的方法是,把移植那个文档上的NAND Flash移植部分也做完即可。
天嵌_support1 发表于 2010-10-25 17:43:41 | 显示全部楼层
10# slesre


呵呵呵,网友似乎在说笑话
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-12 18:02 , Processed in 1.032266 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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