Re: [PATCH] rpi: always set fdt_addr to the correct value

2022-04-12 Thread Jim Posen
Another related issue that I was confused by is that I expected the FDT address to be in the variable fdt_addr_r but it is in fdt_addr. In the U-Boot documentation here https://u-boot.readthedocs.io/en/latest/usage/environment.html#image-locations, *_r variables indicate addresses in RAM whereas fd

Re: [PATCH] rpi: always set fdt_addr to the correct value

2022-02-15 Thread Marek Szyprowski
Hi Matthias, On 15.02.2022 19:19, Matthias Brugger wrote: > > On 15/02/2022 15:55, Matthias Brugger wrote: >> >> On 18/02/2022 03:44, Jaehoon Chung wrote: >>> On 22. 2. 14. 20:25, Marek Szyprowski wrote: The fdt_addr env have meaning only for the current runtime and it depends on t

Re: [PATCH] rpi: always set fdt_addr to the correct value

2022-02-15 Thread Matthias Brugger
On 15/02/2022 15:55, Matthias Brugger wrote: On 18/02/2022 03:44, Jaehoon Chung wrote: On 22. 2. 14. 20:25, Marek Szyprowski wrote: The fdt_addr env have meaning only for the current runtime and it depends on the dtb size or firmware version. If one save the environment to disk and the loa

Re: [PATCH] rpi: always set fdt_addr to the correct value

2022-02-15 Thread Matthias Brugger
On 18/02/2022 03:44, Jaehoon Chung wrote: On 22. 2. 14. 20:25, Marek Szyprowski wrote: The fdt_addr env have meaning only for the current runtime and it depends on the dtb size or firmware version. If one save the environment to disk and the loads it on the latter boot, the fdt_addr might cha

Re: [PATCH] rpi: always set fdt_addr to the correct value

2022-02-15 Thread Jaehoon Chung
On 22. 2. 14. 20:25, Marek Szyprowski wrote: > The fdt_addr env have meaning only for the current runtime and it depends > on the dtb size or firmware version. If one save the environment to disk > and the loads it on the latter boot, the fdt_addr might change, what > result in passing incorrect dt

[PATCH] rpi: always set fdt_addr to the correct value

2022-02-14 Thread Marek Szyprowski
The fdt_addr env have meaning only for the current runtime and it depends on the dtb size or firmware version. If one save the environment to disk and the loads it on the latter boot, the fdt_addr might change, what result in passing incorrect dtb address to the kernel. Fix this by always setting t