本帖最后由 uwyyk28 于 2014-4-26 22:50 编辑
默认Marsboard的console终端用的是串口2,想试着用串口1作为console终端来显示启动信息(注:串口1已测试过,工作正常),但在Uboot的Starting Kernel ...这里卡住了,信息如下:
Bytes transferred = 3235860 (316014 hex)
## Booting kernel from Legacy Image at 10800000 ...
Image Name: Linux-3.0.15_geeb0c0e
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3235796 Bytes = 3.1 MB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uboot使用的是英佩特官方提供的,print信息如下:
baudrate=115200
netmask=255.255.255.0
loadaddr=0x10800000
rd_loadaddr=0x11000000
netdev=eth0
ethprime=FEC0
ethaddr=00:01:02:03:04:05
uboot=u-boot.bin
kernel=uImage
bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}{nfsroot},v3,tcp enable_wait_mode=off
bootcmd_net=dhcp; run bootargs_nfs;bootm
bootargs_mmc1=setenv bootargs ${bootargs} root=/dev/mmcblk1p1 rootwait rw
bootcmd_mmc0=run bootargs_mmc0;mmc dev 1;mmc read ${loadaddr} 0x800 0x2000;bootm
bootcmd_mmc1=run bootargs_mmc1;mmc dev 1;mmc read ${loadaddr} 0x800 0x2000;bootm
bootcmd=if mmc dev 0; then run bootcmd_mmc1; else run bootcmd_mmc0; fi
clearenv=sf probe 0 && sf erase 0xc0000 0x2000 && echo restored environment to factory default
upgradeu=for disk in 0 1 ; do mmc dev ${disk} ;for fs in fat ext2 ; do ${fs}load mmc ${disk}:1 10008000 /6q_upgrade && source 10008000 ; done ; done
bootfile=_BOOT_FILE_PATH_IN_TFTP_
nfsroot=_ROOTFS_PATH_IN_NFS_
ethact=FEC0
bootdelay=1
ipaddr=192.168.0.168
serverip=192.168.0.6
gatewayip=192.168.0.1
stdin=serial
stdout=serial
stderr=serial
bootargs=console=ttymxc0,115200 video=mxcfb0:dev=lcd,4.3inch_LCD,if=RGB24
bootargs_mmc0=setenv bootargs console=ttymxc0,115200 video=mxcfb0:dev=lcd,4.3inch_LCD,if=RGB24 root=/dev/mmcblk0p1 rootwait rw
我已经修改了内核board-mx6q_marsboard.c文件里的mx6_marsboard_timer_init函数中的
early_console_setup(UART2_BASE_ADDR, uart_clk);
修改为
early_console_setup(UART1_BASE_ADDR, uart_clk);
请问大家,如何可以使用Uart1作为console终端,谢谢! |