寻求D1s支持UART3(PB6, PB7)的boot0_sdcard.fex
-
硬件平台是mangopi-mq(D1s),使用buildroot构建 https://gitee.com/GloomyGhost/Buildroot-YuzukiSBC, 想要调整串口
UART0 (PE2, PE3) - > UART3(PB6, PB7)管脚复用应该在sys_config.fex进行调整,但是在buildroot中只提供了二进制的引导程序:
buildroot/board/allwinner-generic/sun20i-d1s/bin/boot0_sdcard.fex哪位大佬能够提供一份使用UART3的boot0_sdcard.fex, 谢谢
-
由于无法重建boot0_sdcard.fex, 参见下面对fex文件的分析,直接修改二进制文件boot0_sdcard.fex
https://whycan.com/t_6638.html
https://linux-sunxi.org/Boot0调整为UART3以及PB6, PB7的管脚复用定义,然后重新生成文件的checksum
然后重新烧录,最终效果boot0和opensbi在UART0和UART3都无输出显示uboot和kernel的显示成功转到UART3上
U-Boot 2018.05-config-dirty (Jul 22 2022 - 19:54:57 -0700) Allwinner Technology[00.327]DRAM: 64 MiB
[00.329]Relocation Offset is: 01ee9000
[00.333]secure enable bit: 0
[00.336]CPU=720 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz
[00.343]flash init start
[00.345]workmode = 0,storage type = 1
[00.348][mmc]: mmc driver ver uboot2018:2021-11-19 15:38:00
[00.354][mmc]: get sdc_type fail and use default host:tm1.
[00.361][mmc]: can't find node "mmc0",will add new node
[00.365][mmc]: fdt err returned <no error>
[00.369][mmc]: Using default timing para
[00.373][mmc]: SUNXI SDMMC Controller Version:0x50310
[00.409][mmc]: card_caps:0x3000000a
[00.412][mmc]: host_caps:0x3000003f不知道为什么boot0和opensbi的串口输出没有起效果,哪位大佬能指点一下? 谢谢
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号