• «
  • 1
  • 2
  • »
  • Pages: 2/2     Go
主题 : uboot linux 控制台重定向问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 76651
精华: 0
发帖: 16
金钱: 80 两
威望: 16 点
贡献值: 0 点
综合积分: 32 分
注册时间: 2012-08-27
最后登录: 2017-07-10
10楼  发表于: 2012-10-30 14:19
朋友,你的问题解决了吗,我也有此问题的困扰啊
邮箱:yucejun@126.com,欢迎讨论!
级别: 侠客
UID: 34734
精华: 0
发帖: 101
金钱: 510 两
威望: 102 点
贡献值: 0 点
综合积分: 202 分
注册时间: 2010-12-20
最后登录: 2018-07-15
11楼  发表于: 2012-10-30 15:19

 回 10楼(core1011) 的帖子

我还在解决中。。。
咱们可以讨论下,一起想办法解决。如果我有进展了会发上来的。
邮箱:yucejun@126.com,欢迎讨论!
级别: 侠客
UID: 34734
精华: 0
发帖: 101
金钱: 510 两
威望: 102 点
贡献值: 0 点
综合积分: 202 分
注册时间: 2010-12-20
最后登录: 2018-07-15
12楼  发表于: 2012-10-30 19:43

 回 8楼(kasim) 的帖子

我试过链接帖子的方法。
这里我用u-boot_uart0指"#define CONFIG_SERIAL1          1    /* we use SERIAL 1 on SBC2410X */        //uart0"编译出来的u-boot,
这里我用u-boot_uart1指"#define CONFIG_SERIAL2          1    /* we use SERIAL 1 on SBC2410X */        //uart1"编译出来的u-boot,

u-boot_uart0能成功引导增加early_printk功能的内核,u-boot_uart1则引导失败。
若再打开debug选项,则u-boot_uart0引导内核失败,u-boot_uart1也引导失败。
(1)  Kernel hacking --->
[*] Kernel debugging
[*] Kernel low-level debugging functions
//[*]  Kernel low-level debugging messages via S3C2410 UART
[*]   Kernel low-level debugging via EmbeddedICE DCC channel
(0) S3C2410 UART to use for low-level debug

(2) System Type  --->
(0) S3C2410 UART to use for low-level messages

引导失败的表现是:
串口打印到时Starting kernel ...不再输出,LCD全黑,没有小企鹅输出。
U-Boot 2010.03 (Oct 30 2012 - 17:49:45)

modified by tekkamanninja (tekkamanninja@163.com)
Love Linux forever!!

I2C:   ready
DRAM:  64 MB
Flash:  2 MB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
USB slave is enable!
Net:   dm9000
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x60000, size 0x500000
5242880 bytes read: OK

Starting kernel ...

我得到的结论是,这个问题不是u-boot的问题,而是kernel的问题。但是kernel连Uncompressing Linux这样解压的命令都没打印出来,无法通过打印来找问题原因。所以很难找原因。。。
邮箱:yucejun@126.com,欢迎讨论!
级别: 侠客
UID: 34734
精华: 0
发帖: 101
金钱: 510 两
威望: 102 点
贡献值: 0 点
综合积分: 202 分
注册时间: 2010-12-20
最后登录: 2018-07-15
13楼  发表于: 2012-10-30 20:30
我终于打到问题的原因了,原来这问题还跟内核kernel有关系。kernel的配置config_mini2440_x35里有几句关于串口的配置
CONFIG_S3C_BOOT_UART_FORCE_FIFO=y
CONFIG_S3C_LOWLEVEL_UART_PORT=0
CONFIG_SERIAL_SAMSUNG_UARTS=3
CONFIG_DEBUG_S3C_UART=0
修改为
CONFIG_S3C_BOOT_UART_FORCE_FIFO=y
CONFIG_S3C_LOWLEVEL_UART_PORT=1
CONFIG_SERIAL_SAMSUNG_UARTS=3
CONFIG_DEBUG_S3C_UART=1
即可用u-boot_uart1成功引导内核了。

之后make menuconfig
由     (0) S3C UART to use for low-level messages
变为 (1) S3C UART to use for low-level messages  

请参考
kernel starting 内核引导失败常见解决办法http://blog.csdn.net/luhao806/article/details/7338465 问题一
[ 此帖被yucejun在2012-10-30 21:54重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
14楼  发表于: 2012-10-30 21:47

 回 13楼(yucejun) 的帖子

恭喜问题得到解决
"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."
  • «
  • 1
  • 2
  • »
  • Pages: 2/2     Go