[求助] 使用u-boot启动, 内核启动后串口不显示信息

内核编译和嵌入式产品的设计与开发
回复
moranlin
帖子: 50
注册时间: 2006-12-19 20:05

[求助] 使用u-boot启动, 内核启动后串口不显示信息

#1

帖子 moranlin » 2010-06-20 13:06

大家好!

小弟在使用Micro2440板子的时候遇到一个问题, 使用u-boot启动内核, 在u-boot运行期间,串口正常显示信息,
但是当kernel跑起来后,串口就没有信息显示 了,特向大家请教如何解决此问题?

u-boot的环境变量设置如下:

[Micro2440]# printenv
baudrate=115200
stdin=serial
stdout=serial
stderr=serial
ethact=dm9000
ethaddr=00:12:34:56:78:91
filesize=1FCAB4
fileaddr=30800000
netmask=255.255.255.0
bootcmd=tftp 0x30008000 uImage ; bootm
bootdelay=3
ipaddr=192.168.1.123
gatewayip=192.168.1.1
serverip=192.168.1.102
bootargs=mem=64M console=ttysole=ttySAC0, 115200 noinitrd init=/linuxrc root=/dev/nfs rw nfsroot=192.168.1.102:/opt/FriendlyARM/micro2440/root_qtopia ip=192.168.1.123:192.168.1.102:192.168.1.1:255.255.255.0:moran:eth0:off display=dh240
Environment size: 507/131068 bytes


从开机到kernel跑起来的串口信息如下:

U-Boot 2010.03-dirty (Jun 18 2010 - 20:08:40)

modified by ChenLiang
E-mail: [email protected]
MSN: [email protected]

I2C: ready
DRAM: 64 MB
Flash: 2 MB
NAND: 128 MiB
Video: 240x320x16 20kHz 62Hz
In: serial
Out: serial
Err: serial
USB slave is enable!
Net: dm9000
Hit any key to stop autoboot: 3 2 1 0
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 00:12:34:56:78:91
operating at 100M full duplex mode
Using dm9000 device
TFTP from server 192.168.1.102; our IP address is 192.168.1.123
Filename 'uImage'.
Load address: 0x30008000
Loading: *T #################################################################
#################################################################
##########################################
done
Bytes transferred = 2517088 (266860 hex)
## Booting kernel from Legacy Image at 30008000 ...
Image Name: uImage
Created: 2010-06-17 14:39:11 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2517024 Bytes = 2.4 MB
Load Address: 30008000
Entry Point: 30008040
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux................................................................................................................................................................... done, booting the kernel.
头像
tonghuix
帖子: 355
注册时间: 2010-10-08 0:55

Re: [求助] 使用u-boot启动, 内核启动后串口不显示信息

#2

帖子 tonghuix » 2010-11-22 22:34

noinitrd 貌似删掉就没事了吧
另外貌似没设置启动方式bootmode
/***
* @tonghuix 佟辉 Tong Hui
* @brief 启智开源 编码自由
* @brief Open Source Open Mind, Coding for free!
* @website: https://tonghuix.io
* @weibo http://weibo.com/234826309
* @Twitter http://twitter.com/tonghuix
* @G+ http://gplus.to/tonghuix
*/
回复