U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2] spl: Weed out CONFIG_SYS_TEXT_BASE usage
Date: Wed, 3 Oct 2018 21:41:37 +0200	[thread overview]
Message-ID: <61fa5844-7772-3281-8a85-647de1d4ebd4@gmail.com> (raw)
In-Reply-To: <CAHTX3dJqTZ6OBwvzydp5ue63kUEf5Pt1x9SvjXMq31cVaMQF9A@mail.gmail.com>

On 10/03/2018 03:39 PM, Michal Simek wrote:
> Hi Marek,

Hi,

[...]

>> diff --git a/common/spl/spl_ram.c b/common/spl/spl_ram.c
>> index e594beaeaa..619b39a537 100644
>> --- a/common/spl/spl_ram.c
>> +++ b/common/spl/spl_ram.c
>> @@ -63,8 +63,9 @@ static int spl_ram_load_image(struct spl_image_info
>> *spl_image,
>>                          * No binman support or no information. For now,
>> fix it
>>                          * to the address pointed to by U-Boot.
>>                          */
>> -                       u_boot_pos = CONFIG_SYS_TEXT_BASE -
>> -                                       sizeof(struct image_header);
>> +                       header = spl_get_load_buffer(-sizeof(*header),
>> +                                                    sizeof(*header));
>> +
>>
> 
> I am curious how you have tested this change.
> Because I see on my zc706 that this breaks my SPL boot flow.

Definitely not on every single board we support ...

> This should be assigned to u_boot_pos instead of header (which is done 2
> line below)
> and also here is additional empty line which shouldn't be there.
Patches welcome. And yes, it should be u_boot_pos .

-- 
Best regards,
Marek Vasut

  reply	other threads:[~2018-10-03 19:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-14  9:27 [U-Boot] [PATCH V2] spl: Weed out CONFIG_SYS_TEXT_BASE usage Marek Vasut
2018-08-14  9:51 ` Simon Goldschmidt
2018-08-14 10:01   ` Marek Vasut
2018-08-14 10:22     ` Simon Goldschmidt
2018-08-14 10:42       ` Marek Vasut
2018-08-14 12:56         ` Simon Goldschmidt
2018-08-14 18:12           ` Marek Vasut
2018-08-14 18:25             ` Simon Goldschmidt
2018-08-15  7:52               ` Marek Vasut
2018-08-15  9:04                 ` Simon Goldschmidt
2018-09-26 12:42 ` [U-Boot] [U-Boot,V2] " Tom Rini
2018-10-03 13:39 ` [U-Boot] [PATCH V2] " Michal Simek
2018-10-03 19:41   ` Marek Vasut [this message]
2018-10-04  6:00     ` Michal Simek
2018-10-04  7:02       ` Marek Vasut
2018-10-04  7:41         ` Michal Simek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=61fa5844-7772-3281-8a85-647de1d4ebd4@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox