M7 Bringup Steps
Yocto Configuration
- Add
m7-samplepath to filem7-sample.bbas shown below:
- Add the required cross-compilation toolchain to file
cortex-m-toochain.bb
m7-samplewill be compiled into the image under namem7-boot,this is shown in the figure below:
- next you should add the
DISTRO_FEATURE:append = "m7-boot"tobuild\conf\local.confas shown below:
- and then you can use command
bitbake m7-sampleto build them7-sample.bbfor generate the sdcard file.- Notice: if you want to build your own new code add in
m7-sampleproject underbuild/tmp/work/cortexa53-crypto-fsl-linux/m7-sample/1.0-r0/gitonly,
you can use the commandbitbake m7-sample -c do_compile -fto build it.
- Notice: if you want to build your own new code add in
Pre-analyze fip.s32-sdcard.m7
Before analyzing the mirror, it is necessary to understand the structure of the IVT, as shown below:

Application boot as shown below:

Example
fip.s32-sdcard.m7information as shown below:
IVTtable shows that the entry address of theivt headeris0x1000, and theApplicatioin boot entry pointer addressis0x1200( store the application boot ram address)
Application boot image structure(BOOT_SEQ=0) as shown below:

From the
Application boot image structureand you can find theRAM_start_pointer,RAM_entry pointerandCode_len;
M7.binactual size is0xdbe0as shown below:
M7.binstart address as shown below:
M7.binend address(start address + actual size) as shown below:
fip.binas shown below:
0x11240is thefip.binstart address
fip.binsize is0xf0690