登录社区云,与社区用户共同成长
邀请您加入社区
现场一产品出现内核不能正常启动问题
现场一产品出现内核不能正常启动问题,启动信息如下:
内核启动不起来,启动信息: U-Boot 1.3.4 (Jul 9 2010 - 11:41:52) DRAM: 32 MB product's uboot verion : u-boot_cdz.V1.2 NAND: 256 MiB In: serial Out: serial Err: serial Net: macb0 Hit any key to stop autoboot: 0 NAND read: device 0 offset 0x200000, size 0x160000 1441792 bytes read: OK ## Booting kernel from Legacy Image at 21800000 ... Image Name: Linux-2.6.27.21 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1410380 Bytes = 1.3 MB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux.......................................................................................... done, booting the kernel. Linux version 2.6.27.21 (reille@ubuntu) (gcc version 4.2.0 20070413 (prerelease) (CodeSourcery Sourcery G++ Lite 2007q1-10)) #179 Tue Oct 12 11:51:30 CST 2010 CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 Machine: KGE Devices for cdz based on Atmel AT91SAM9260 Memory policy: ECC disabled, Data cache writeback Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz CPU0: D VIVT write-back cache CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 Kernel command line: mem=32M console=ttyAT0,115200 root=/dev/mtdblock3 AT91: 96 gpio irqs in 3 banks PID hash table entries: 128 (order: 7, 512 bytes) Console: colour dummy device 80x30 console [ttyAT0] enabled 启动到"console [ttyAT0] enabled"就停止不动了。
从内核代码来看,应该是在start_kernel()函数中的console_init()或其后代码段出了问题。
/* * HACK ALERT! This is early. We're enabling the console before * we've done PCI setups etc, and console_init() must be aware of * this. But we do want output early, in case something goes wrong. */ console_init(); if (panic_later) panic(panic_later, panic_param);
console_init()用来对控制台初始化,这个函数运行完成后,串口可以看到内核用printk()函数打印的信息。
更多推荐
Linux虚拟文件系统之文件系统卸载(sys_umount())
Linux中卸载文件系统由umount系统调用实现,入口函数为sys_umount()。较于文件系统的安装较为简单,下面是具体的实现。1. /*sys_umont系统调用*/2. SYSCALL_DEFINE2(umount, char __user *, name, int, flags)3. {4.struct path path;
网卡速率和双工模式的配置
http://linux.chinaitlab.com/system/792187.html1、mii-tool 配置网络设备协商方式的工具; 1.1 mii-tool 介绍; mii-tool - view, manipulate media-independent interface status (mii-tool 是查看,管理介质的网络接口的状态)
Linux系统下超级终端Minicom的使用方法(例如:连接交换机,路由器等)转http://baike.baidu.com/view/2911642.htm?fr=ala0_1
<br /> Linux系统下超级终端Minicom的使用方法 <br /> Linux下的Minicom的功能与下的超级终端功能相似,适于在通过超级终端对设备的管理以及对嵌入操作系统的升级,现写出Minicom的使用手册: <br /> 1. 启动minicom <br /> 以root权限登录系统 <br /> 使用命令 <br /> minicom –s 则minicom启动,屏
扫一扫分享内容
所有评论(0)