Kernel panic 问题

xiaozhiwise 2011-11-29 04:06:52
U-Boot code: E0500000 -> E05175C0 BSS: -> E051DBE0
HI_VERSION=U_BOOT_1_1_4-M08C0305B0301 @Hi3511v110_OSDrv_1_0_0_7 2009-03-18 20:44:35
RAM Configuration:
Bank #0: e0000000 64 MB
Flash: 8 MB
In: serial
Out: serial
Err: serial
MAC: 00-AA-BB-00-02-01
Hit any key to stop autoboot: 0
## Booting image at 34040000 ...
Image Name: Linux-2.6.14-hi3511v100dmeb-rele
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 945288 Bytes = 923.1 kB
Load Address: e0800000
Entry Point: e0800000
OK
initrd_start 0x 0,initrd_end 0x 0
Starting kernel ...

Uncompressing Linux.............................................................. done, booting the kernel.
Kernel Early-Debug on Level 5
Linux version 2.6.14-hi3511v100dmeb-release (w00132114@localhost.localdomain) (gcc version 3.4.3 (release) (CodeSourcery ARM Q3cvs 2004)) #1 Wed Mar 18 20:56:08 CST 2009
CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
Machine: Hi3511v100
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists
Kernel command line: mem=32M console=ttyAMA0,115200 busclk=135000000 root=1f01 rootfstype=jffs2 mtdparts=phys_mapped_flash:1536K(boot),6656K(rootfs) ethaddr=00:aa:bb:00:02:01
PID hash table entries: 256 (order: 8, 4096 bytes)
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: 32MB = 32MB total
Memory: 30336KB available (1555K code, 328K data, 80K init)
Mount-cache hash table entries: 512
HI_VERSION=LINUX_2_6_14-M06C0303B0103 @Hi3511v110_OSDrv_1_0_0_7 2009-03-18 20:50:52
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Hisilicon clock system V0.01
Hisilicon PCI work at slave mode.
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
Serial: AMBA PL011 UART driver
ttyAMA0 at MMIO 0x101f1000 (irq = 12) is a AMBA/PL011
ttyAMA1 at MMIO 0x101f2000 (irq = 13) is a AMBA/PL011
ttyAMA2 at MMIO 0x101f3000 (irq = 14) is a AMBA/PL011
io scheduler noop registered
RAMDISK driver initialized: 4 RAM disks of 8192K size 1024 blocksize
physmap flash device: 4000000 at 34000000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
2 cmdlinepart partitions found on MTD device phys_mapped_flash
Creating 2 MTD partitions on "phys_mapped_flash":
0x00000000-0x00180000 : "boot"
0x00180000-0x00800000 : "rootfs"
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 80K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.

对这两个分区我也很不解,不知道 uboot和kernel是怎么放的?
也不知道文件系统烧写到什么地址,试用34800000这个地址,运行时出现上面问题.
是我的文件系统没有烧写对地址吗?还是什么别的原因?
谢谢!
...全文
271 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
blueviss 2011-12-22
  • 打赏
  • 举报
回复
起始位置是Uboot的,你的定义是从0x34000000开始
内核位置从0x34100000开始
文件系统应该是从0x34200000开始
xiaozhiwise 2011-11-30
  • 打赏
  • 举报
回复
8M nor flash.

bootargs=mem=32M console=ttyAMA0,115200 busclk=135000000 root=1f01 rootfstype=jffs2 mtdparts=phys_mapped_flash:1536K(boot),6656K(rootfs)

uboot代码中:
#define MEM_BASE_FLASH 0x34000000

linux启动时打印:
Creating 2 MTD partitions on "phys_mapped_flash":
0x00000000-0x00180000 : "boot"
0x00180000-0x00800000 : "rootfs"


mtd分区是通过mtdparts参数分配的两个区,我怎样确定文件系统烧写地址?
dongjiawei316 2011-11-30
  • 打赏
  • 举报
回复
载文件系统时出的问题,很可能是你自己所说的,文件系统放的位置和你在uboot里写的位置不匹配。
ezword 2011-11-30
  • 打赏
  • 举报
回复
文件系统内部的问题
xuexingyang 2011-11-29
  • 打赏
  • 举报
回复
提供一个解决流程
1. 先看uboot先init的参数。
2. 看flash分区,看地址是否设置错误。
3. 看启动脚本里面inittab设置。

没仔细看,先分析下,问题不大。

21,600

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧