TI sitara training video says the first function in boot time is s_init().
Bit I cannot find s_init() function in board.c.
I’m using SDK v7.0 and CCS 6.0.
please anyone knows what went wrong tells me.
Thanks in advance.
It’s defined in arch/arm/cpu/armv7/am33xx/board.c, but that’s not the first function in boot time. The very first “function” is the reset vector (see arch/arm/cpu/armv7/start.S for example) from there it’ll jump to _main (see arch/arm/lib/crt0.S) and that will call the very first C code from u-boot, which is board_init_f(), after that, it goes back to assembly for some further stack setup, cleaning BSS, etc, then it’ll jump back to C, now into board_init_r().
This isn’t 100% correct, because there are a few differences when it comes to SPL vs non-SPL builds. But up to board_init_f(), it’s all common code.