谢谢您的关注!
目的是公司用micro2440核心板做东西,硬件同事没和我商量,把uart0接其他MCU,uart1留作打印。所以我要从软件上改。
我的用的u-boot版本2010-3,tekkamanninja整合的。
我做的修改,只修改\include\configs\mini2440.h
//#define CONFIG_SERIAL1 1 /* we use SERIAL 1 on SBC2410X */ //uart0
#define CONFIG_SERIAL2 1 /* we use SERIAL 2 on SBC2410X */ //uart1
结果是,u-boot信息确实从uart1输出了,但无法引导内核
U-Boot 2010.03 (Oct 26 2012 - 20:11:30)
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 ...
theKernel:0x30008000, machid 0x7cf, bd->bi_boot_params:0x30000100
最后一句打印是
PRINT_YU("theKernel:0x%x, machid 0x%x, bd->bi_boot_params:0x%x\n", theKernel, machid, bd->bi_boot_params);
theKernel (0, machid, bd->bi_boot_params);
修改回来用CONFIG_SERIAL1就可以引导内核。
困扰两天了,想不出问题所在。