主题 : [求救] 使用u-boot启动内核后,串口不显示信息 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 18863
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
综合积分: 18 分
注册时间: 2010-04-13
最后登录: 2011-10-12
楼主  发表于: 2010-06-19 23:18

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

管理提醒: 本帖被 qq2440 从 micro2440技术交流专区 移动到本区(2013-11-18)
    各位前辈,大家好!
    小弟在使用Micro2440板子的时候遇到一个问题, 使用u-boot启动内核, 在u-boot运行期间,串口正常显示信息,
但是当kernel跑起来后,串口就没有信息显示了,特向大家请教如何解决此问题?

kernel使用的是光盘里自带的.
从开机到kernel跑起来的串口信息如下:

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


modified by ChenLiang

E-mail: chenliangmoran@gmail.com

   MSN: chan_liang@live.cn


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  0

[Micro2440]#

[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

[Micro2440]# reset

resetting ...



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


modified by ChenLiang

E-mail: chenliangmoran@gmail.com

   MSN: chan_liang@live.cn


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.
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-06-20 16:31
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

你确定你没有贴错?
看起来应该是
bootargs=mem=64M console=ttySAC0,115200 ...
注意ttySAC0和115200之间没有空格
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 18863
精华: 0
发帖: 9
金钱: 45 两
威望: 9 点
综合积分: 18 分
注册时间: 2010-04-13
最后登录: 2011-10-12
2楼  发表于: 2010-06-21 00:57
引用第1楼kasim于2010-06-20 16:31发表的  :

你确定你没有贴错?
看起来应该是
bootargs=mem=64M console=ttySAC0,115200 ...
注意ttySAC0和115200之间没有空格



根据您的提示,修改了启动参数后问题得以解决.
非常感谢总版主的帮助!