Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-30 Thread Simon Glass
Hi Mark, On Fri, 30 Dec 2022 at 12:11, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Fri, 30 Dec 2022 11:51:05 -0600 > > > > Hi Pali, > > > > On Fri, 30 Dec 2022 at 09:32, Pali Rohár wrote: > > > > > > On Thursday 22 December 2022 10:49:58 Tom Rini wrote: > > > > On Fri, Dec 16, 2022

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-30 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 30 Dec 2022 11:51:05 -0600 > > Hi Pali, > > On Fri, 30 Dec 2022 at 09:32, Pali Rohár wrote: > > > > On Thursday 22 December 2022 10:49:58 Tom Rini wrote: > > > On Fri, Dec 16, 2022 at 01:13:07AM +0100, Pali Rohár wrote: > > > > On Thursday 15 December 2022

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-30 Thread Simon Glass
Hi Pali, On Fri, 30 Dec 2022 at 09:32, Pali Rohár wrote: > > On Thursday 22 December 2022 10:49:58 Tom Rini wrote: > > On Fri, Dec 16, 2022 at 01:13:07AM +0100, Pali Rohár wrote: > > > On Thursday 15 December 2022 06:24:16 Simon Glass wrote: > > > > Hi Eugen, > > > > > > > > On Thu, 15 Dec 2022

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-30 Thread Pali Rohár
On Thursday 22 December 2022 10:49:58 Tom Rini wrote: > On Fri, Dec 16, 2022 at 01:13:07AM +0100, Pali Rohár wrote: > > On Thursday 15 December 2022 06:24:16 Simon Glass wrote: > > > Hi Eugen, > > > > > > On Thu, 15 Dec 2022 at 03:58, Eugen Hristev > > > wrote: > > > > > > > > Newer DTC require

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-22 Thread Tom Rini
On Fri, Dec 16, 2022 at 01:13:07AM +0100, Pali Rohár wrote: > On Thursday 15 December 2022 06:24:16 Simon Glass wrote: > > Hi Eugen, > > > > On Thu, 15 Dec 2022 at 03:58, Eugen Hristev > > wrote: > > > > > > Newer DTC require that the DTB start address is aligned at 8 bytes. > > > In the

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Tom Rini
On Thu, Dec 22, 2022 at 12:20:01AM +0100, Mark Kettenis wrote: > > Date: Wed, 21 Dec 2022 18:09:10 -0500 > > From: Tom Rini > > > > On Wed, Dec 21, 2022 at 11:42:56PM +0100, Mark Kettenis wrote: > > > > Date: Wed, 21 Dec 2022 16:56:37 -0500 > > > > From: Tom Rini > > > > > > > > On Sat, Dec

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Mark Kettenis
> Date: Wed, 21 Dec 2022 18:09:10 -0500 > From: Tom Rini > > On Wed, Dec 21, 2022 at 11:42:56PM +0100, Mark Kettenis wrote: > > > Date: Wed, 21 Dec 2022 16:56:37 -0500 > > > From: Tom Rini > > > > > > On Sat, Dec 17, 2022 at 11:14:41PM +0100, Mark Kettenis wrote: > > > > > From: Eugen Hristev

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Tom Rini
On Wed, Dec 21, 2022 at 11:42:56PM +0100, Mark Kettenis wrote: > > Date: Wed, 21 Dec 2022 16:56:37 -0500 > > From: Tom Rini > > > > On Sat, Dec 17, 2022 at 11:14:41PM +0100, Mark Kettenis wrote: > > > > From: Eugen Hristev > > > > Date: Thu, 15 Dec 2022 13:58:25 +0200 > > > > > > > > Newer DTC

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Mark Kettenis
> Date: Wed, 21 Dec 2022 16:56:37 -0500 > From: Tom Rini > > On Sat, Dec 17, 2022 at 11:14:41PM +0100, Mark Kettenis wrote: > > > From: Eugen Hristev > > > Date: Thu, 15 Dec 2022 13:58:25 +0200 > > > > > > Newer DTC require that the DTB start address is aligned at 8 bytes. > > > In the

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Pali Rohár
On Wednesday 21 December 2022 14:47:48 eugen.hris...@microchip.com wrote: > On the other hand , what you are saying Pali, that objcopy trims > trailing zeros, and your platform is broken, hence you are aligning to 4 > bytes, I do not think that alignment to 4 bytes is the solution. Yes, it is

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Tom Rini
On Sat, Dec 17, 2022 at 11:14:41PM +0100, Mark Kettenis wrote: > > From: Eugen Hristev > > Date: Thu, 15 Dec 2022 13:58:25 +0200 > > > > Newer DTC require that the DTB start address is aligned at 8 bytes. > > In the u-boot.bin case, the u-boot-nodtb.bin is concatenated with the > > DTB, but

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Tom Rini
On Thu, Dec 15, 2022 at 07:00:51AM -0800, Simon Glass wrote: > Hi Eugen, > > On Thu, 15 Dec 2022 at 06:37, wrote: > > > > On 12/15/22 16:24, Simon Glass wrote: > > > Hi Eugen, > > > > > > On Thu, 15 Dec 2022 at 03:58, Eugen Hristev > > > wrote: > > >> > > >> Newer DTC require that the DTB

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-21 Thread Eugen.Hristev
On 12/18/22 01:59, Pali Rohár wrote: > On Saturday 17 December 2022 23:54:40 Pali Rohár wrote: >> On Saturday 17 December 2022 23:04:08 Pali Rohár wrote: >>> On Saturday 17 December 2022 14:40:44 Simon Glass wrote: Hi Pali, On Thu, 15 Dec 2022 at 16:13, Pali Rohár wrote: >

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-17 Thread Pali Rohár
On Saturday 17 December 2022 23:54:40 Pali Rohár wrote: > On Saturday 17 December 2022 23:04:08 Pali Rohár wrote: > > On Saturday 17 December 2022 14:40:44 Simon Glass wrote: > > > Hi Pali, > > > > > > On Thu, 15 Dec 2022 at 16:13, Pali Rohár wrote: > > > > > > > > On Thursday 15 December 2022

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-17 Thread Pali Rohár
On Saturday 17 December 2022 23:04:08 Pali Rohár wrote: > On Saturday 17 December 2022 14:40:44 Simon Glass wrote: > > Hi Pali, > > > > On Thu, 15 Dec 2022 at 16:13, Pali Rohár wrote: > > > > > > On Thursday 15 December 2022 06:24:16 Simon Glass wrote: > > > > Hi Eugen, > > > > > > > > On Thu,

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-17 Thread Mark Kettenis
> From: Eugen Hristev > Date: Thu, 15 Dec 2022 13:58:25 +0200 > > Newer DTC require that the DTB start address is aligned at 8 bytes. > In the u-boot.bin case, the u-boot-nodtb.bin is concatenated with the > DTB, but there is no alignment/padding to the next 8byte aligned address. > This causes

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-17 Thread Pali Rohár
On Saturday 17 December 2022 14:40:44 Simon Glass wrote: > Hi Pali, > > On Thu, 15 Dec 2022 at 16:13, Pali Rohár wrote: > > > > On Thursday 15 December 2022 06:24:16 Simon Glass wrote: > > > Hi Eugen, > > > > > > On Thu, 15 Dec 2022 at 03:58, Eugen Hristev > > > wrote: > > > > > > > > Newer

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-17 Thread Simon Glass
Hi Pali, On Thu, 15 Dec 2022 at 16:13, Pali Rohár wrote: > > On Thursday 15 December 2022 06:24:16 Simon Glass wrote: > > Hi Eugen, > > > > On Thu, 15 Dec 2022 at 03:58, Eugen Hristev > > wrote: > > > > > > Newer DTC require that the DTB start address is aligned at 8 bytes. > > > In the

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-15 Thread Pali Rohár
On Thursday 15 December 2022 06:24:16 Simon Glass wrote: > Hi Eugen, > > On Thu, 15 Dec 2022 at 03:58, Eugen Hristev > wrote: > > > > Newer DTC require that the DTB start address is aligned at 8 bytes. > > In the u-boot.bin case, the u-boot-nodtb.bin is concatenated with the > > DTB, but there

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-15 Thread Michal Simek
On 12/15/22 16:00, Simon Glass wrote: Hi Eugen, On Thu, 15 Dec 2022 at 06:37, wrote: On 12/15/22 16:24, Simon Glass wrote: Hi Eugen, On Thu, 15 Dec 2022 at 03:58, Eugen Hristev wrote: Newer DTC require that the DTB start address is aligned at 8 bytes. In the u-boot.bin case, the

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-15 Thread Simon Glass
Hi Eugen, On Thu, 15 Dec 2022 at 06:37, wrote: > > On 12/15/22 16:24, Simon Glass wrote: > > Hi Eugen, > > > > On Thu, 15 Dec 2022 at 03:58, Eugen Hristev > > wrote: > >> > >> Newer DTC require that the DTB start address is aligned at 8 bytes. > >> In the u-boot.bin case, the u-boot-nodtb.bin

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-15 Thread Eugen.Hristev
On 12/15/22 16:24, Simon Glass wrote: > Hi Eugen, > > On Thu, 15 Dec 2022 at 03:58, Eugen Hristev > wrote: >> >> Newer DTC require that the DTB start address is aligned at 8 bytes. >> In the u-boot.bin case, the u-boot-nodtb.bin is concatenated with the >> DTB, but there is no alignment/padding

Re: [PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-15 Thread Simon Glass
Hi Eugen, On Thu, 15 Dec 2022 at 03:58, Eugen Hristev wrote: > > Newer DTC require that the DTB start address is aligned at 8 bytes. > In the u-boot.bin case, the u-boot-nodtb.bin is concatenated with the > DTB, but there is no alignment/padding to the next 8byte aligned address. > This causes

[PATCH] lds: align u-boot-nodtb with 8 bytes boundary

2022-12-15 Thread Eugen Hristev
Newer DTC require that the DTB start address is aligned at 8 bytes. In the u-boot.bin case, the u-boot-nodtb.bin is concatenated with the DTB, but there is no alignment/padding to the next 8byte aligned address. This causes the board to fail booting, because the FDT will claim that the DTB inside