This doc explain how to modify the bootloader to boot linux&mcal, to solve the conflict between bootloader, mcal and linux
本文说明在S32G2 RDB2板上如何定制开发Bootloader,本文示例主要实现功能是:
目录
2.3 优化重排M7 demo镜像及与MPU设置的配合... 5
2.7 UART MCAL程序去掉PORT INIT. 10
2.8 UART MCAL程序修改CLOCK TREE.. 10
3.4 增加MCAL驱动所需要的PORT的初始化... 15
3.5 解决Bootloader,MCAL与Linux的clock冲突... 17
3.10 制造Bootloader的带IVT的镜像... 38
add one more doc to explain how to modify atf to boot on G3.
Hi John,
just curious - is this document available in english ?
Best Regards,
Viktor
Thanks a lot for the english version !
Hi John
I upload the boot loader to QSPI at address 0 and fip.bin to QSPI at address 0x100000, the probe message is as follow:
NOTICE: Reset status: Power-On Reset
NOTICE: BL2: v2.5(release):bsp37.0-2.5
NOTICE: BL2: Built : 16:13:38, Nov 2 2023
Warning: Instruction at BL33_ENTRYPOINT (0xffaa0000) is 0x0, which is not a B or BL!
NOTICE: BL2: Booting BL31
Why should upload fip.bin to qspi? and the fip.bin seems can't be booted
Thank you!
Hi @Johnli,
您好!
目前正在使用S32,您发布的文档对我帮助很大,非常感谢!
请教您个问题,关于A53相关的clk(core和外设),ATF、uboot、linux三部分之间是什么关系?从您的文档上看,时钟的初始化都是在ATF中,那之后的uboot和linux只是使用者吗,还是说uboot和linux也会重新配置时钟?我的理解,linux也会建立时钟树,但是linux设备树中没有看到。这部分不是很清楚,烦请您帮忙解惑。如果有相关的文档,希望您能分享下。
谢谢!
1: 看一下时钟相关文档S32G_Supplemental_documentation_on_resolving_clock_conflicts_V1-2023.07.03.pdf。
2: linux的时钟初始化与配置,是需要传到ATF里的,所以代码在ATF中。
check:
doc&project explain the G3 bootloader customizaiton(similar with G2) to run logger demo | https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/S32G-Bootloader-G3-Customization/ta-p/176952... |
after bootloader, how to solve the clock conflict to boot ATF | https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/S32G-Bootloader-Customzition/ta-p/1519838 |
你好,请教个问题,我使用BSP38镜像,启动之后在uboot中使用clk dump查询 llce_can_pe的时钟值,显示为0,我看了一下ATF中的设备树配置并没有发现什么问题。
check the doc: make sure you have load the llce driver ko.
S32G_Bootloader_G3_LLCELOGGER | doc&project explain the G3 bootloader customizaiton(similar with G2) to run logger demo | https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/S32G-Bootloader-G3-Customization/ta-p/176952... |
Is there an English version of the supplemental document?
你好,我正在调试mcu读写flash,我目前遇到A核启动到uboot阶段,norflash读写正常,但是到linux阶段,norflash功能会异常
uboot阶段 clk dump查看 qspi_flash2x是266666666
linux里dump /sys/kernel/debug/clk/clk_summary里qspi_flash2x是266666666然后变为0
查看dfs1寄存器,dfs1在被reset
请问这个问题如何定位
最终定位到问题为uboot 中board_common.c,在start kernel时board_cleanup_before_linux调用scmi_reset_agent导致,请问如果注释调会由什么影响