Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-03-18 Thread Joakim Tjernlund
: u-boot@lists.denx.de Subject: Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ? On Wed, 16 Mar 2022 20:28:31 + Joakim Tjernlund wrote: Hi, > Got something I cannot figure out and was hoping to pick your brain: > timeofday does not count. > I can now boot fine into user space b

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-03-16 Thread Andre Przywara
On Wed, 16 Mar 2022 20:28:31 + Joakim Tjernlund wrote: Hi, > Got something I cannot figure out and was hoping to pick your brain: > timeofday does not count. > I can now boot fine into user space but then I tested the date command > and my time stands still on 1970. I can set date but the

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-03-16 Thread Joakim Tjernlund
Hi again Got something I cannot figure out and was hoping to pick your brain: timeofday does not count. I can now boot fine into user space but then I tested the date command and my time stands still on 1970. I can set date but the time still does not count. Normal sleep 1 works though. Using

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-17 Thread Joakim Tjernlund
On Thu, 2022-02-17 at 15:13 +, Andre Przywara wrote: > On Fri, 11 Feb 2022 17:00:48 + > Joakim Tjernlund wrote: > > Hi, > > > On Fri, 2022-02-11 at 15:00 +0100, Joakim Tjernlund wrote: > > > On Fri, 2022-02-11 at 01:26 +, Andre Przywara wrote: > > > > On Fri, 11 Feb 2022 00:22:25

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-17 Thread Andre Przywara
On Fri, 11 Feb 2022 17:00:48 + Joakim Tjernlund wrote: Hi, > On Fri, 2022-02-11 at 15:00 +0100, Joakim Tjernlund wrote: > > On Fri, 2022-02-11 at 01:26 +, Andre Przywara wrote: > > > On Fri, 11 Feb 2022 00:22:25 + > > > Joakim Tjernlund wrote: > > > > > > > On Thu, 2022-02-10

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-11 Thread Joakim Tjernlund
On Fri, 2022-02-11 at 15:00 +0100, Joakim Tjernlund wrote: > On Fri, 2022-02-11 at 01:26 +, Andre Przywara wrote: > > On Fri, 11 Feb 2022 00:22:25 + > > Joakim Tjernlund wrote: > > > > > On Thu, 2022-02-10 at 22:43 +, Andre Przywara wrote: > > > > On Thu, 10 Feb 2022 21:58:30 + >

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-11 Thread Joakim Tjernlund
On Fri, 2022-02-11 at 01:26 +, Andre Przywara wrote: > On Fri, 11 Feb 2022 00:22:25 + > Joakim Tjernlund wrote: > > > On Thu, 2022-02-10 at 22:43 +, Andre Przywara wrote: > > > On Thu, 10 Feb 2022 21:58:30 + > > > Joakim Tjernlund wrote: > > > > > > Hi, > > > > > > > On Thu,

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-10 Thread Andre Przywara
On Fri, 11 Feb 2022 00:22:25 + Joakim Tjernlund wrote: > On Thu, 2022-02-10 at 22:43 +, Andre Przywara wrote: > > On Thu, 10 Feb 2022 21:58:30 + > > Joakim Tjernlund wrote: > > > > Hi, > > > > > On Thu, 2022-02-10 at 10:22 +, Andre Przywara wrote: > > > > On Wed, 9 Feb

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-10 Thread Joakim Tjernlund
On Thu, 2022-02-10 at 22:43 +, Andre Przywara wrote: > On Thu, 10 Feb 2022 21:58:30 + > Joakim Tjernlund wrote: > > Hi, > > > On Thu, 2022-02-10 at 10:22 +, Andre Przywara wrote: > > > On Wed, 9 Feb 2022 12:03:47 + > > > Joakim Tjernlund wrote: > > > > > > Hi, > > > > > > >

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-10 Thread Andre Przywara
On Thu, 10 Feb 2022 21:58:30 + Joakim Tjernlund wrote: Hi, > On Thu, 2022-02-10 at 10:22 +, Andre Przywara wrote: > > On Wed, 9 Feb 2022 12:03:47 + > > Joakim Tjernlund wrote: > > > > Hi, > > > > > On Wed, 2022-02-09 at 10:45 +, Andre Przywara wrote: > > > > On Wed, 9 Feb

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-10 Thread Joakim Tjernlund
On Thu, 2022-02-10 at 10:22 +, Andre Przywara wrote: > On Wed, 9 Feb 2022 12:03:47 + > Joakim Tjernlund wrote: > > Hi, > > > On Wed, 2022-02-09 at 10:45 +, Andre Przywara wrote: > > > On Wed, 9 Feb 2022 08:35:04 + > > > Joakim Tjernlund wrote: > > > > > > Hi, > > > > > > >

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-10 Thread Andre Przywara
On Wed, 9 Feb 2022 12:03:47 + Joakim Tjernlund wrote: Hi, > On Wed, 2022-02-09 at 10:45 +, Andre Przywara wrote: > > On Wed, 9 Feb 2022 08:35:04 + > > Joakim Tjernlund wrote: > > > > Hi, > > > > > On Wed, 2022-02-09 at 00:33 +, Andre Przywara wrote: > > > > On Tue, 8 Feb

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-10 Thread Andre Przywara
On Wed, 9 Feb 2022 18:07:24 + Joakim Tjernlund wrote: Hi, > On Wed, 2022-02-09 at 13:13 +, Andre Przywara wrote: > > On Wed, 9 Feb 2022 14:05:57 +0100 > > Michael Walle wrote: > > > > Hi, > > > > > > > The problem I have is that I boot a custom SOC into u-boot and when > > > > >

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-09 Thread Joakim Tjernlund
On Wed, 2022-02-09 at 13:13 +, Andre Przywara wrote: > On Wed, 9 Feb 2022 14:05:57 +0100 > Michael Walle wrote: > > Hi, > > > > > The problem I have is that I boot a custom SOC into u-boot and when > > > > u-boot tries > > > > to boot linux I get an error exception when u-boot calls > >

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-09 Thread Andre Przywara
On Wed, 9 Feb 2022 14:05:57 +0100 Michael Walle wrote: Hi, > >> The problem I have is that I boot a custom SOC into u-boot and when u-boot > >> tries > >> to boot linux I get an error exception when u-boot calls > >> armv8_switch_to_el2 to enter linux. > > > > So that means that U-Boot

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-09 Thread Michael Walle
>> The problem I have is that I boot a custom SOC into u-boot and when u-boot >> tries >> to boot linux I get an error exception when u-boot calls armv8_switch_to_el2 >> to enter linux. > > So that means that U-Boot runs in EL3, is that the first and only firmware > that you run? I think the EL3

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-09 Thread Joakim Tjernlund
On Wed, 2022-02-09 at 10:45 +, Andre Przywara wrote: > On Wed, 9 Feb 2022 08:35:04 + > Joakim Tjernlund wrote: > > Hi, > > > On Wed, 2022-02-09 at 00:33 +, Andre Przywara wrote: > > > On Tue, 8 Feb 2022 22:05:00 + > > > Joakim Tjernlund wrote: > > > > > > Hi Joakim, > > > >

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-09 Thread Andre Przywara
On Wed, 9 Feb 2022 08:35:04 + Joakim Tjernlund wrote: Hi, > On Wed, 2022-02-09 at 00:33 +, Andre Przywara wrote: > > On Tue, 8 Feb 2022 22:05:00 + > > Joakim Tjernlund wrote: > > > > Hi Joakim, > > > > > Trying to figure out how I should map the MMU for normal RAM so it > > >

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-09 Thread Joakim Tjernlund
On Wed, 2022-02-09 at 00:33 +, Andre Przywara wrote: > On Tue, 8 Feb 2022 22:05:00 + > Joakim Tjernlund wrote: > > Hi Joakim, > > > Trying to figure out how I should map the MMU for normal RAM so it acessible > > from all ELx security states. > >^^^ > > This does not make

Re: ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-08 Thread Andre Przywara
On Tue, 8 Feb 2022 22:05:00 + Joakim Tjernlund wrote: Hi Joakim, > Trying to figure out how I should map the MMU for normal RAM so it acessible > from all ELx security states. ^^^ This does not make much sense. U-Boot is typically running in one exception level only, and sets

ARM A53 and initial MMU mapping for EL0/1/2/3 ?

2022-02-08 Thread Joakim Tjernlund
Trying to figure out how I should map the MMU for normal RAM so it acessible from all ELx security states. So far I have this mem_map: /* memory mapped RAM. 32MB */ .virt = 0x6000UL, .phys = 0x6000UL, .size = 0x0200UL,