I have tried with the latest snapshot and by rebuilding the software stack from the source. But I cannot see any UART output from ARM Trusted Firmware and UEFI.
I can see UART from Linux on UART3 (even if I do not see the early Linux messages - probably because I do not have earlyprintk
). Here are the first lines of the Linux kernel:
[ 3.209058] hisi_thermal f7030700.tsensor: THERMAL ALARM: T > 50^M [ 5.640555] of_dma_request_slave_channel: dma-names property of node '/smb/uart@f7113000' missing or empty^M Loading, please wait...^M Scanning for Btrfs filesystems^M fsck from util-linux 2.27.1^M rootfs: clean, 65522/96000 files, 356411/384000 blocks^M
I have two UART adapters connected on UART0 and UART3. They seem to both work.
Having a quick look at the source of ARM Trusted Firmware and UEFI. They both seem to use UART3.
cd arm-trusted-firmware grep -r -i uart plat/hikey/plat/hikey/bl2_plat_setup.c: console_init(CONSOLE_BASE, PL011_UART_CLK_IN_HZ, PL011_BAUDRATE);
plat/hikey/hikey_def.h:#define PL011_UART0_BASE 0xF8015000
plat/hikey/hikey_def.h:#define PL011_UART3_BASE 0xF7113000
plat/hikey/hikey_def.h:#define PL011_UART_CLK_IN_HZ 19200000
plat/hikey/platform.mk:CONSOLE_BASE := PL011_UART3_BASE
plat/hikey/platform.mk:CRASH_CONSOLE_BASE := PL011_UART3_BASE
plat/hikey/bl31_plat_setup.c: console_init(CONSOLE_BASE, PL011_UART_CLK_IN_HZ, PL011_BAUDRATE);
plat/hikey/bl1_plat_setup.c: console_init(CONSOLE_BASE, PL011_UART_CLK_IN_HZ, PL011_BAUDRATE);
cd linaro-edk2 grep -r -i uart HisiPkgHisiPkg/HiKeyPkg/HiKey.dsc: DEFINE SERIAL_BASE = 0xF7113000 # UART3
HisiPkg/HiKeyPkg/HiKey.dsc: gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
HisiPkg/HiKeyPkg/HiKey.dsc: gArmPlatformTokenSpaceGuid.PL011UartInteger|10
HisiPkg/HiKeyPkg/HiKey.dsc: gArmPlatformTokenSpaceGuid.PL011UartFractional|26
HisiPkg/HiKeyPkg/HiKey.dsc: gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N,1)/VenPcAnsi();VenHw(CE660500-824D-11E0-AC72-0002A5D5C51B)"
HisiPkg/HiKeyPkg/HiKey.dsc: gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N,1)/VenPcAnsi()"