AW: load BL31 on imx8mm and imx8mq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Rouven.

And what is the reason behind decreasing 16 from returning address:

MX8MQ_ATF_BL33_BASE_ADDR - 16

I removed "16" for im8mq in Barebox and still works.

The PLAT_NS_IMAGE_OFFSET is identical for imx8mq and imx8mm. Do you have any idea why the firmware is not returned to this address?
Do we need to enable any special timer or clock for this point?
I used the same firmware as I have used in UBoot, thus the firmware itself should be correct.

Best,
Reyhaneh

-----Ursprüngliche Nachricht-----
Von: Rouven Czerwinski [mailto:r.czerwinski@xxxxxxxxxxxxxx]
Gesendet: Wednesday, June 26, 2019 11:28 AM
An: Yazdani, Reyhaneh
Cc: barebox@xxxxxxxxxxxxxxxxxxx
Betreff: Re: load BL31 on imx8mm and imx8mq

On Wed, 2019-06-26 at 08:46 +0000, Yazdani, Reyhaneh wrote:
> Hello everyone,
>
>
> On the process of bring-up imx8mm board, I am at the point that load
> bl31 and
> jump to ATF.Upon exit from ATF's initialization routine, the execution
> level should be EL2.
>
> My question is about imx8mq_atf_load_bl31 function.
> After copy BL31 into OCRAM address, the function sets up the sp_el2 to
> "MX8MQ_ATF_BL33_BASE_ADDR - 16".
>
> Can anyone explain me why this address? Because I am using the same
> address for imx8mm and it seems Barebox does not return to this point.

sp_el2 is the address for the stack pointer in el2. This is done so there is a stack pointer setup after returning from TF-A.
The TF-A return address is compiled into the TF-A and may be different for the imx8mm. Looking into the TF-A PLAT_NS_IMAGE_OFFSET is set to 0x40200000. So execution should continue after TF-A at this address.

Regards,
Rouven Czerwinski


Vertrauliche E-Mail von / Confidential e-mail from: DATA MODUL AG
Vorstand / CEO: Dr. Florian Pesahl
Vorsitzende des Aufsichtsrates / Chairwoman of the Supervisory Board: Kristin D. Russell
Sitz der Gesellschaft / Registered Office: München
Registergericht / Registration Court: München Handelsregister B 85 591



_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux