Hi, @Joey_z
The previous bootloader compilation was successful. Now, I have written the image into the NOR flash and after booting, there is no output on the UART.
I referred to AN13750. Here are my operation steps:
I followed the "S32G2_LinuxBSP_42.0_User_Manual.pdf", and installed u-boot bsp42.0-2022.04 and ATF bsp42.0-2.10 in Ubuntu 20.
I modified s32_mmc.c and s32_common.mk according to 0001-fip-align-and-mmc-init.patch.
zhipeng_0-1787646642108.png
zhipeng_1-1787646670172.png
zhipeng_2-1787646683855.png
I compiled u-boot and ATF.
make CROSS_COMPILE=/opt/S32G/arm-gnu-toolchain-11.3.rel1-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=aarch64 PLAT=s32g274ardb2 BL33=../u-boot/u-boot-nodtb.bin
Image Layout
DCD: Offset: 0x200 Size: 0x1c
IVT: Offset: 0x1000 Size: 0x100
AppBootCode Header: Offset: 0x1200 Size: 0x40
Application: Offset: 0x1240 Size: 0x33e00
Boot Core: A53_0
IVT Location: SD/eMMC
Load address: 0x342f8f00
Entry point: 0x34302000
I wrote the fip.s32 onto the SD card. After replacing the fip, the SD card was still able to boot, and the date of the u-boot changed.
U-Boot 2022.04-00213-g5a6f62071f (Aug 24 2026 - 10:35:21 +0800)
Configure the bootloader.
zhipeng_3-1787647428751.png
zhipeng_4-1787647490093.png
zhipeng_5-1787647533346.png
zhipeng_6-1787647547310.png
Generate S32G Boot Image
zhipeng_7-1787647657415.png
select the bt_m7_blob.bin to write it to the address 0x0.
select the fip.bin to write it to the address 0x100000.
select theS32G274A_M7.bin to write it to the address 0x200000.
zhipeng_8-1787647865193.png
Now neither the UART nor the CAN is responding. Please help me analyze the situation.
Thanks.