由于Hi3559AV100中<hi3559av100-demb.dts>隻添加uart0- uart9,而uart10和uart11沒有添加,而IC卡使用Sensor Hub UART5,故要添加相應序列槽。
路徑如下:osdrv/opensource/kernel/linux-4.9.y_multi-core/arch/arm64/boot/dts/hisilicon
1. 在檔案<hi3559av100.dtsi>配置相應序列槽
2. 在檔案< hi3559av100-demb.dts >使能相應狀态
//aliases 添加
aliases {
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
serial3 = &uart3;
serial4 = &uart4;
serial5 = &uart5;
serial6 = &uart6;
serial7 = &uart7;
serial8 = &uart8;
serial9 = &uart9;
serial10 = &uart10;
serial11 = &uart11;
...
};
//更改uart的status為"okay"
&uart0 {
status = "okay";
};
&uart1 {
status = "okay";
};
&uart2 {
status = "okay";
};
&uart3 {
status = "okay";
};
&uart4 {
status = "okay";
};
&uart5 {
status = "okay";
};
&uart6 {
status = "okay";
};
&uart7 {
status = "okay";
};
&uart8 {
status = "okay";
};
&uart9 {
status = "okay";
};
&uart10 {
status = "okay";
};
&uart11 {
status = "okay";
};
3. 重新編譯核心