Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-09-19 Thread Marek Vasut
On 09/18/2018 09:55 PM, Simon Goldschmidt wrote: > On 18.09.2018 12:37, Marek Vasut wrote: >> On 09/18/2018 12:29 PM, Simon Goldschmidt wrote: >>> On Tue, Sep 18, 2018 at 12:12 PM Marek Vasut wrote: On 09/17/2018 10:44 PM, Simon Goldschmidt wrote: > OK, so I got more than 2 weeks off of U

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-09-18 Thread Simon Goldschmidt
On 18.09.2018 12:37, Marek Vasut wrote: On 09/18/2018 12:29 PM, Simon Goldschmidt wrote: On Tue, Sep 18, 2018 at 12:12 PM Marek Vasut wrote: On 09/17/2018 10:44 PM, Simon Goldschmidt wrote: OK, so I got more than 2 weeks off of U-Boot, but here I'm back... ;-) On 18.08.2018 14:25, Marek Vasu

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-09-18 Thread Marek Vasut
On 09/18/2018 12:29 PM, Simon Goldschmidt wrote: > On Tue, Sep 18, 2018 at 12:12 PM Marek Vasut wrote: >> >> On 09/17/2018 10:44 PM, Simon Goldschmidt wrote: >>> >>> OK, so I got more than 2 weeks off of U-Boot, but here I'm back... ;-) >>> >>> On 18.08.2018 14:25, Marek Vasut wrote: On 08/18

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-09-18 Thread Simon Goldschmidt
On Tue, Sep 18, 2018 at 12:12 PM Marek Vasut wrote: > > On 09/17/2018 10:44 PM, Simon Goldschmidt wrote: > > > > OK, so I got more than 2 weeks off of U-Boot, but here I'm back... ;-) > > > > On 18.08.2018 14:25, Marek Vasut wrote: > >> On 08/18/2018 10:55 AM, Simon Goldschmidt wrote: > >>> On Fri

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-09-18 Thread Marek Vasut
On 09/17/2018 10:44 PM, Simon Goldschmidt wrote: > > OK, so I got more than 2 weeks off of U-Boot, but here I'm back... ;-) > > On 18.08.2018 14:25, Marek Vasut wrote: >> On 08/18/2018 10:55 AM, Simon Goldschmidt wrote: >>> On Fri, Aug 17, 2018 at 12:20 PM Marek Vasut wrote: On 08/17/2018 0

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-09-17 Thread Simon Goldschmidt
OK, so I got more than 2 weeks off of U-Boot, but here I'm back... ;-) On 18.08.2018 14:25, Marek Vasut wrote: On 08/18/2018 10:55 AM, Simon Goldschmidt wrote: On Fri, Aug 17, 2018 at 12:20 PM Marek Vasut wrote: On 08/17/2018 08:56 AM, Simon Goldschmidt wrote: On Fri, Aug 17, 2018 at 1:57 A

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-18 Thread Marek Vasut
On 08/18/2018 10:55 AM, Simon Goldschmidt wrote: > On Fri, Aug 17, 2018 at 12:20 PM Marek Vasut wrote: >> >> On 08/17/2018 08:56 AM, Simon Goldschmidt wrote: >>> On Fri, Aug 17, 2018 at 1:57 AM Marek Vasut wrote: On 08/16/2018 09:44 PM, Simon Goldschmidt wrote: > On Thu, Aug 16, 201

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-18 Thread Simon Goldschmidt
On Fri, Aug 17, 2018 at 12:20 PM Marek Vasut wrote: > > On 08/17/2018 08:56 AM, Simon Goldschmidt wrote: > > On Fri, Aug 17, 2018 at 1:57 AM Marek Vasut wrote: > >> > >> On 08/16/2018 09:44 PM, Simon Goldschmidt wrote: > >>> On Thu, Aug 16, 2018 at 4:04 PM Marek Vasut wrote: > > On 08/

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-17 Thread Marek Vasut
On 08/17/2018 08:56 AM, Simon Goldschmidt wrote: > On Fri, Aug 17, 2018 at 1:57 AM Marek Vasut wrote: >> >> On 08/16/2018 09:44 PM, Simon Goldschmidt wrote: >>> On Thu, Aug 16, 2018 at 4:04 PM Marek Vasut wrote: On 08/16/2018 03:50 PM, Simon Goldschmidt wrote: > On Thu, Aug 16, 2018

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-16 Thread Simon Goldschmidt
On Fri, Aug 17, 2018 at 1:57 AM Marek Vasut wrote: > > On 08/16/2018 09:44 PM, Simon Goldschmidt wrote: > > On Thu, Aug 16, 2018 at 4:04 PM Marek Vasut wrote: > >> > >> On 08/16/2018 03:50 PM, Simon Goldschmidt wrote: > >>> On Thu, Aug 16, 2018 at 3:15 PM Marek Vasut wrote: > > On 08/1

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-16 Thread Marek Vasut
On 08/16/2018 09:44 PM, Simon Goldschmidt wrote: > On Thu, Aug 16, 2018 at 4:04 PM Marek Vasut wrote: >> >> On 08/16/2018 03:50 PM, Simon Goldschmidt wrote: >>> On Thu, Aug 16, 2018 at 3:15 PM Marek Vasut wrote: On 08/16/2018 03:12 PM, Simon Goldschmidt wrote: > > > Marek Va

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-16 Thread Simon Goldschmidt
On Thu, Aug 16, 2018 at 4:04 PM Marek Vasut wrote: > > On 08/16/2018 03:50 PM, Simon Goldschmidt wrote: > > On Thu, Aug 16, 2018 at 3:15 PM Marek Vasut wrote: > >> > >> On 08/16/2018 03:12 PM, Simon Goldschmidt wrote: > >>> > >>> > >>> Marek Vasut mailto:ma...@denx.de>> schrieb am Do., 16. > >>>

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-16 Thread Marek Vasut
On 08/16/2018 03:50 PM, Simon Goldschmidt wrote: > On Thu, Aug 16, 2018 at 3:15 PM Marek Vasut wrote: >> >> On 08/16/2018 03:12 PM, Simon Goldschmidt wrote: >>> >>> >>> Marek Vasut mailto:ma...@denx.de>> schrieb am Do., 16. >>> Aug. 2018, 15:06: >>> >>> On 08/16/2018 03:00 PM, Simon Goldschmid

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-16 Thread Simon Goldschmidt
On Thu, Aug 16, 2018 at 3:15 PM Marek Vasut wrote: > > On 08/16/2018 03:12 PM, Simon Goldschmidt wrote: > > > > > > Marek Vasut mailto:ma...@denx.de>> schrieb am Do., 16. > > Aug. 2018, 15:06: > > > > On 08/16/2018 03:00 PM, Simon Goldschmidt wrote: > > > On Thu, Aug 16, 2018 at 1:18 PM Ma

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-16 Thread Marek Vasut
On 08/16/2018 03:12 PM, Simon Goldschmidt wrote: > > > Marek Vasut mailto:ma...@denx.de>> schrieb am Do., 16. > Aug. 2018, 15:06: > > On 08/16/2018 03:00 PM, Simon Goldschmidt wrote: > > On Thu, Aug 16, 2018 at 1:18 PM Marek Vasut > wrote: > >> > >> On

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-16 Thread Simon Goldschmidt
Marek Vasut schrieb am Do., 16. Aug. 2018, 15:06: > On 08/16/2018 03:00 PM, Simon Goldschmidt wrote: > > On Thu, Aug 16, 2018 at 1:18 PM Marek Vasut wrote: > >> > >> On 08/16/2018 09:38 AM, Simon Goldschmidt wrote: > >>> gd->env_addr points to pre-relocation address even after > >>> relocation.

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-16 Thread Marek Vasut
On 08/16/2018 03:00 PM, Simon Goldschmidt wrote: > On Thu, Aug 16, 2018 at 1:18 PM Marek Vasut wrote: >> >> On 08/16/2018 09:38 AM, Simon Goldschmidt wrote: >>> gd->env_addr points to pre-relocation address even after >>> relocation. This leads to an abort in env_callback_init >>> when loading the

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-16 Thread Simon Goldschmidt
On Thu, Aug 16, 2018 at 1:18 PM Marek Vasut wrote: > > On 08/16/2018 09:38 AM, Simon Goldschmidt wrote: > > gd->env_addr points to pre-relocation address even after > > relocation. This leads to an abort in env_callback_init > > when loading the environment. > > > > Fix this by enabling CONFIG_SYS

Re: [U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-16 Thread Marek Vasut
On 08/16/2018 09:38 AM, Simon Goldschmidt wrote: > gd->env_addr points to pre-relocation address even after > relocation. This leads to an abort in env_callback_init > when loading the environment. > > Fix this by enabling CONFIG_SYS_EXTRA_ENV_RELOC. > > Signed-off-by: Simon Goldschmidt I have

[U-Boot] [PATCH v5] arm: socfpga: fix U-Boot running from fpga OnChip RAM

2018-08-16 Thread Simon Goldschmidt
gd->env_addr points to pre-relocation address even after relocation. This leads to an abort in env_callback_init when loading the environment. Fix this by enabling CONFIG_SYS_EXTRA_ENV_RELOC. Signed-off-by: Simon Goldschmidt --- Changes in v5: Improve comments Changes in v4: enable this fix fo