From the original comment:
@Yoshqu there is a much simpler way to measure boot time to the usec, without having to use that custom bootloader
basically, ST_CLO begins counting at 1mhz, the instant the SoC comes out of reset and /proc/uptime begins counting seconds when linux starts up its internal clocks
the code in the gist, will then print both of them at once, and if you find the difference, youll see how long it took for linux to gain control of the core