
On Thu, May 17, 2018 at 02:01:55PM +0300, Ramon Fried wrote:
Hi. I'm currently working on snapdragon bootloader support and in the particular case where U-boot is running in Aarch32 and the kernel is Aarch64 the specific implementation is to jump to Linux through SCM call.
I try to find the best possible way to provide an alternative boot function. Adding #ifdef ARCH_SNAPDRAGON will just be too specific in arm/lib/bootm.c in my opinion and I'm thinking of introducing kind of a callback function in gd. that if exists will jump there instead of executing boot_jump_linux().
What do you think ?
So, to be clear, we're on an aarch64 SoC, but U-Boot has been entered in 32bit mode. And we need to boot a 64bit Linux Kernel. What else, if anything, is also loaded/still in residence/etc? Can you explain the overall usecase a bit more and why we're in 32bit mode? Thanks!