清空記錄
歷史記錄
取消
清空記錄
歷史記錄
內(nèi)核配置
源碼longan目錄執(zhí)行以下命令進(jìn)入內(nèi)核配置項(xiàng)界面。
./build.sh menuconfig
Serial drivers
界面,通過鍵盤上下鍵選中Console on SUNXI UART port
配置項(xiàng)后,按下空格鍵選中。Device Drivers -> Character devices -> Serial drivers
Save
,按下鍵盤ENTER鍵,彈出確認(rèn)框后默認(rèn)在OK選項(xiàng),繼續(xù)按下ENTER鍵確定即可完成配置。Exit
,按下ENTER鍵退出核配置項(xiàng)界面。cd kernel/linux-4.9/
mv .config sun50iw10p1smp_a133_android_defconfig
cp sun50iw10p1smp_a133_android_defconfig arch/arm64/configs/
屏蔽掉earlyprintk和console項(xiàng)
longan/device/config/chips/a133/configs/default/env.cfg
#kernel command arguments
-earlyprintk=sunxi-uart,0x05000000
+#earlyprintk=sunxi-uart,0x05000000
initcall_debug=0
-console=ttyS0,115200
+#console=ttyS0,115200
nand_root=/dev/nand0p4
mmc_root=/dev/mmcblk0p4
init=/init
屏蔽uart_para選項(xiàng)
longan/device/config/chips/a133/configs/c3/sys_config.fex
--- a/longan/device/config/chips/a133/configs/dpf/sys_config.fex
+++ b/longan/device/config/chips/a133/configs/dpf/sys_config.fex
@@ -127,10 +127,10 @@ pc_bias = 1800
[auto_print]
auto_print_used = 1
-[uart_para]
-uart_debug_port = 0
-uart_debug_tx = port:PB09<2><1>
-uart_debug_rx = port:PB10<2><1>
+;[uart_para]
+;uart_debug_port = 0
+;uart_debug_tx = port:PB09<2><1>
+;uart_debug_rx = port:PB10<2><1>
[jtag_para]
jtag_enable = 1
重新編譯內(nèi)核和源碼后,將固件燒錄到主板,開機(jī)接入調(diào)試串口內(nèi)核將不會(huì)有調(diào)試串口打印。
淘寶購買鏈接:
https://item.taobao.com/item.htm?ft=t&id=679754011066
END