This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Linux
构建 AM5728定制板。 我可以看到它达到 board_EARLY_INIT 只是正常的、因此我知道 MLO 目前正在加载和执行。
为了帮助启动、 我想启用早期调试消息。
当我尝试启用这些功能时、我看到电路板在 board_earne_init 之前卡住:
CONFIG_DEBUT_UART=y CONFIG_DEBUG_UART_BASE=0x48020000 CONFIG_DEBUG_UART_CLOC=48000000 CONFIG_DEBUT_UART_SHIFT=2
CONFIG_DEBUT_UART_NS16550=y
从上面开始、我尝试启用 CONFIG_DEBUG_UART_OMAP (也禁用了 CONFIG_DEBUT_UART_NS16550)、但我收到编译时间错误。
是否有人可以检查我的设置? 我使用的是随 U-Boot 版本2018.01提供的 TI Linux SDK 4.02。
您好、Adam、
在 U-Boot 中可以获得的最早的 UART 消息是在的开头添加一条#define 调试行 /board-support/u-boot- /include/configs/am57xx_evm.h 文件。
此致、
Kemal
下面是我与 UART 相关的配置:
CONFIG_DEBUT_y # CONFIG_DEBUT_UART_SKIP_INIT 未设置 # CONFIG_Altera_JTAG_UART 未设置 # CONFIG_Altera_UART 未设置# CONFIG_FSL_LPUART 未设置 # CONFIG_MVEBU_A37_UART_DEBUT_UART_UART_CLIT_CONFIG_CONFIG_UART_UART_UART_INIT_CONFIG_CONFIG_CONFIG_UART_UART_UART_UART_UART_UART_INIT_CONFIG_CONFIG_CONFIG_CONFIG=y CONFIG_CONFIG_CONFIG_IG_IG_INIT_IG_
以下是 jist:
`arch/arm/mach-omap2/built-in.o: `Early system_init':|/home/ylee/tisdk-20180716/build/workspace/sources/u-boot-ti-staging/arch/arm/mach-omap2/hwinit-common.c /../bfd/elf32-arm.c:204:未定义`debug_UART_init'的引用| common/built-in.o:in function `utilc':|/home/ylee/tisdk-20180716/build/workspace/sources/u-boot-ti-staging/common/console.c:502:undefined reference to `prinabi'| common/built-in.o:in function `gds-linux-dfd:1.529.gfd'(/home/ylee/tisdk-20180716/build/workspace/sources/u-boot-ti-staging/common/console.c) bfd (GNU binutils) 2.29.1.20170915断言失败./../bfd/elf32-arm.c /home/ylee/tisdk-20180718/build/solix8-glibc/work/solix-oe-linux-gnueabi/u-boot-ti-staging/2018.01:9509 | make[1]:***[u-boot]错误1 | make[1]:离开目录``/home/ylee/tisdk-20180718/build/solix8-glibc/work/solix-oe-linux-gnueabi/u-boot-ti-staging/2018.01 +git999-R15/u-boot-ti-staging -2018.01+git999'| make:***[sub-make]错误2 |从/home/ylee/tisdk-20180716/build/workspace/sources/u-boot-ti-staging 退出|错误1: do_compile (日志文件位于/home/ylee/tisdk-20180718/build/solix8-glibc/work/solix-oe-linux-gnueabi/u-boot-ti-staging/2018.01 +git999-R15/temp/log.do_compile.24231) 错误:任务(/home/ylee/tisdk-20180716/poky/meta-ti/recipes-bsp/u-boot/u-boot-ti-staging_2018.01.bb:do_compile)失败、退出代码为"1"
启用 CONFIG_DEBUT_BOART_INIT=y 创建 board_DEBUT_INIT 函数、并使用设置 UART 就绪所需的引脚多路复用和时钟设置填充该函数。
添加#include `到 printch '引用未定义的文件的标头。
void board_debug_UART_init (void) { }
这看起来是正确的吗?
只要它们不相互冲突,它们就处于良好的状态。