正常来说,板子刚上电会类似有如下的打印:
但因为硬件没用到uart0,改成uart1后,到了kernel起来阶段,才有打印,而且烧录时也没有打印。请问这块的打印是在哪里控制?
查了些历史帖,都在讨论env.cfg、sys_config.fex、dts等
env.cfg部分内容如下
#kernel command arguments
earlyprintk=sunxi-uart,0x05000000
initcall_debug=0
console=ttyS1,115200
nand_root=/dev/ubiblock0_4
mmc_root=/dev/mmcblk0p4
nor_root=/dev/mtdblock2
init=/init
rdinit=/rdinit
loglevel=8
cma=4M
coherent_pool=16K
sys_config.fex如下:
[uart_para]
uart_debug_port = 1
uart_debug_tx = port:PG06<5><1><default><default>
uart_debug_rx = port:PG07<5><1><default><default>
;----------------------------------------------------------------------------------
;uart configuration
;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
;----------------------------------------------------------------------------------
[uart1]
uart1_used = 1
uart1_port = 1
uart1_type = 2
uart1_tx = port:PG06<5><1><default><default>
uart1_rx = port:PG07<5><1><default><default>
dts我直接改了sun8iw19p1-pinctrl.dsti:
uart1_pins_a: uart1@0 {
allwinner,pins = "PG6", "PG7";
allwinner,pname = "uart1_tx", "uart1_rx";
allwinner,function = "uart1";
allwinner,muxsel = <5>;
allwinner,drive = <1>;
allwinner,pull = <1>;
};
uart1_pins_b: uart1@1 {
allwinner,pins = "PG6", "PG7";
allwinner,function = "io_disabled";
allwinner,muxsel = <7>;
allwinner,drive = <1>;
allwinner,pull = <0>;
};
原理图:
还有哪里没改对?