Hello,
I'm following the instructions on S32G2_LinuxBSP_33.0_User_Manual.pdf.
I performed the following:
1) Building uboot:
git clone https://source.codeaurora.org/external/autobsps32/u-boot
cd u-boot
git checkout bsp33.0-2020.04
make CROSS_COMPILE=<toolchain_path>/bin/aarch64-none-linux-gnu- s32g274ardb2_defconfig
make CROSS_COMPILE=<toolchain_path>/bin/aarch64-none-linux-gnu-
2) Building ATF:
(tools for fiptool already installed on my Ubuntu)
git clone https://source.codeaurora.org/external/autobsps32/arm-trusted-firmware
cd arm-trusted-firmware
git checkout bsp33.0-2.5
make CROSS_COMPILE=<toolchain_path>/bin/aarch64-none-linux-gnu- ARCH=aarch64 BL33=<uboot_path>/u-boot-nodtb.bin ARCH=aarch64 PLAT=s32g274ardb2
3) Write fip.s32 to the SDCard:
sudo dd if=build/s32g274ardb2/release/fip.s32 of=/dev/sda skip=512 seek=512 iflag=skip_bytes oflag=seek_bytes conv=fsync,notrunc
4) When I boot the board with the SDCard I get nothing on the screen.
Note: I was only able to get ATF+uboot running with the BSP28, when I had the option: CONFIG_S32_ATF_BOOT_FLOW=y when building uboot.
From what I understand this option doesn't exist anymore starting on BSP32.
More info:
when ATF finish the build, it outputs:
Image Layout
DCD: Offset: 0x200 Size: 0x1c
IVT: Offset: 0x1000 Size: 0x100
AppBootCode Header: Offset: 0x1200 Size: 0x40
Application: Offset: 0x1240 Size: 0x2ea00
IVT Location: SD/eMMC
Load address: 0x342fc6a0
Entry point: 0x34302000
And my boot_info.c contains:
const unsigned long fip_mmc_offset = 0x1240;
const unsigned long fip_qspi_offset = 0;
const unsigned long fip_mem_offset = 0;
const unsigned int fip_hdr_size = 0x0;
const unsigned int dtb_size = 0x5960;
Am I missing something?
I appreciate any help on how to proceed.
Thanks
Marcio