cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
137 Views
Registered: ‎07-05-2020

AXI_UARTLITE as System Console

Greetings,

I am trying to use axi_uartlite_0 as a system console. But, I get the below error in the ATF when I build the image.

 

Log data follows:
| DEBUG: Executing shell function do_configure
| NOTE: make ZYNQMP_CONSOLE=0 PRELOADED_BL33_BASE=0x8000000 clean -C /home/user/petalinux/Test/build/tmp/work/aarch64-xilinx-linux/arm-trusted-firmware/2.0-xilinx-v2019.2+gitAUTOINC+713dace94b-r0/git BUILD_BASE=/home/user/petalinux/Test/build/tmp/work/aarch64-xilinx-linux/arm-trusted-firmware/2.0-xilinx-v2019.2+gitAUTOINC+713dace94b-r0/build PLAT=zynqmp
| make: Entering directory '/home/user/petalinux/Test/build/tmp/work/aarch64-xilinx-linux/arm-trusted-firmware/2.0-xilinx-v2019.2+gitAUTOINC+713dace94b-r0/git'
| plat/xilinx/zynqmp/platform.mk:91: *** "Please define ZYNQMP_CONSOLE".  Stop.
| make: Leaving directory '/home/user/petalinux/Test/build/tmp/work/aarch64-xilinx-linux/arm-trusted-firmware/2.0-xilinx-v2019.2+gitAUTOINC+713dace94b-r0/git'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/user/petalinux/Test/build/tmp/work/aarch64-xilinx-linux/arm-trusted-firmware/2.0-xilinx-v2019.2+gitAUTOINC+713dace94b-r0/temp/log.do_configure.19480)

 

and I have checked where the ZYNQMP_CONSOLE is defined in "build/tmp/work/aarch64-xilinx-linux/arm-trusted-firmware/2.0-xilinx-v2019.2+gitAUTOINC+713dace94b-r0/git/plat/xilinx/zynqmp/platform.mk"

 

ZYNQMP_CONSOLE	?=	cadence
ifeq (${ZYNQMP_CONSOLE}, $(filter ${ZYNQMP_CONSOLE},cadence cadence0 cadence1))
  PLAT_BL_COMMON_SOURCES += drivers/cadence/uart/aarch64/cdns_console.S
else ifeq (${ZYNQMP_CONSOLE}, dcc)
  PLAT_BL_COMMON_SOURCES += \
			    drivers/arm/dcc/dcc_console.c
else
  $(error "Please define ZYNQMP_CONSOLE")
endif

 

Why ZYNQMP_CONSOLE=0 in "project-spec/meta-plnx-generated/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_%.bbappend"

FILESEXTRAPATHS_append := ":${sysconf}"
ATF_CONSOLE_zynqmp = "0"
SRC_URI_append ="\
    file://config\
"
atf_bl33_load = "0x8000000"
extra_settings = ""
sysconf = "${TOPDIR}/../project-spec/configs"
EXTRA_OEMAKE_append = " ${extra_settings} PRELOADED_BL33_BASE=${atf_bl33_load}"

 

What should I do to make axi_uartlite_0 work as system console?

Thanks,

Murad

0 Kudos
Reply
0 Replies