I am now reading uboot code of IMX6 Quad.
There is a function relocate_code() in crt0.S.
I just wonder why this relocate code is there?
The code in the on-chip boot ROM already copied the code from boot device to RAM, why the relocate_code to another memory copy?
Does this relocate_code function have any special purpose?
If not, is there a way to skip this step.
I have searched online a little bit and found the patch below to skip the relocate_code(), but someone said with this patch, the uboot command line did not work properly.
Thanks and Best Regards,