davemf
April 10, 2017, 3:49pm
1
How to activate uart_AO_B?
I added on /common/arch/arm64/boot/dts/amlogic/kvim.dts
uart_AO_B: serial@c81004e0 {
compatible = “amlogic, meson-uart”;
reg = <0x0 0xc81004e0 0x0 0x18>;
interrupts = <0 197 1>;
current-speed = <9600>;
status = “okay”;
clocks = <&clock CLK_XTAL>;
clock-names = “clk_uart”;
fifosize = < 64 >;
pinctrl-names = “default”;
pinctrl-0 = <&ao_b_uart_pins>;
};
after that I made:
$ source device/khadas/kvim/mkern.sh
$ ./vendor/amlogic/tools/aml_upgrade/aml_image_v2_packer -r out/target/product/kvim/upgrade/aml_upgrade_package.conf out/target/product/kvim/upgrade
out/target/product/kvim/update.img
but I have not found the new port “ttyS”
What is the name of the port in “uart_AO_B”?
Terry
April 11, 2017, 2:46am
2
Nougat or Mmallow?
I tried it , The uart_AO_B is work.
Vim:/dev # ls -l ttyS4
crw------- 1 root root 244, 4 2015-01-01 00:00 ttyS4
1 Like
Terry
April 11, 2017, 4:58am
3
You need to copy the dtb ‘out/target/product/kvim/obj/KERNEL_OBJ/arch/arm64/boot/dts/kvim.dtb’ to the path ‘out/target/product/kvim/dtb.img’ before packing update image.
1 Like
davemf
April 11, 2017, 6:20am
4
But “dtb.img” not a folder. How can I copy?
Terry
April 11, 2017, 6:29am
5
You can rename the kvim.dtb as dtb.img
1 Like
Terry
April 11, 2017, 9:11am
6
Does your issue got resolved?
davemf
April 11, 2017, 9:14am
7
Yes, uart_AO_B is work as ttyS4 (on Mmallow)
Terry
April 11, 2017, 3:32pm
9
It is the same as Mmallow
1 Like
davemf
April 11, 2017, 7:58pm
10
uart_AO_B work is well with my uart gps/glonass receiver
1 Like