All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH 1/2] board: tbs2910: Use recommended distroboot addresses
Date: Fri, 2 Oct 2020 12:55:39 +0200	[thread overview]
Message-ID: <2dc23098-80b6-e886-c8ef-829a80278f86@denx.de> (raw)
In-Reply-To: <3c2965af-5f39-addb-7b21-1985b2b16c4c@web.de>

Hi Soeren,

On 02.10.20 12:40, Soeren Moch wrote:
> Stefano, Tom,
> 
> I would really like to see this merged for v2020.10. Maybe there are no
> other imx patches pending for v2020.10,

Right, I do not see urgent fixes, and remaining patches will be merged
after release.

> so maybe Tom can pick up this
> directly (as the original patch for sysboot support, that was merged in
> -next for v2020.10-rc1)?

Fine with me - @Tom, could you pick up this ?

> 
> This really is a fix for this newly added sysboot support on tbs2910, so
> it would be great to get the properly fixed addresses and dtb
> declaration into the final release. The u-boot internal device tree must
> not be used for booting linux, since this dtb is stripped down. And the
> recommended kernel address avoids the additional self-relocation of the
> kernel after starting linux.

Regards,
Stefano

> 
> Thanks,
> Soeren
> 
> On 27.08.20 21:52, Soeren Moch wrote:
>> According to doc/README.distro fdt_addr must not be set when DTB is not
>> available from hardware. So remove this entry.
>>
>> Use address 32MB above the start of DRAM for kernel_addr_r. This way
>> we likely can avoid the self-relocation of the compressed kernel image
>> before it decompresses to offset 0x8000 from start of DRAM.
>>
>> Use address 128MB above the start of DRAM for fdt_addr_r, since this is
>> the maximum location for the end of the kernel. So we avoid overwriting
>> the DTB.
>>
>> Use 512k above that for ramdisk_addr_r. This should be enough for the
>> DTB, rest of DRAM can be used for initrd.
>>
>> Place boot script / extlinux.conf at offset 0 / 1MB from start of DRAM.
>> This space is available for processing in U-Boot.
>>
>> Signed-off-by: Soeren Moch <smoch@web.de>
>> ---
>> Cc: Stefano Babic <sbabic@denx.de>
>> Cc: Fabio Estevam <festevam@gmail.com>
>> Cc: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
>> Cc: u-boot at lists.denx.de
>>
>> Recommendations taken from [1].
>>
>> Distroboot support for the tbs2910 board was added in the v2020.10
>> merge window. So please pull this in as fix for v2020.10.
>>
>> Thanks,
>> Soeren
>>
>> [1] https://lists.denx.de/pipermail/u-boot/2020-January/398482.html
>> ---
>>  include/configs/tbs2910.h | 11 +++++------
>>  1 file changed, 5 insertions(+), 6 deletions(-)
>>
>> diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h
>> index 8092b9edfb..b05034945e 100644
>> --- a/include/configs/tbs2910.h
>> +++ b/include/configs/tbs2910.h
>> @@ -85,13 +85,12 @@
>>  			"bootm 0x10800000 0x10d00000\0" \
>>  	"console=ttymxc0\0" \
>>  	"fan=gpio set 92\0" \
>> -	"fdt_addr=0x13000000\0" \
>> -	"fdt_addr_r=0x13000000\0" \
>> +	"fdt_addr_r=0x18000000\0" \
>>  	"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
>> -	"kernel_addr_r=0x10008000\0" \
>> -	"pxefile_addr_r=0x10008000\0" \
>> -	"ramdisk_addr_r=0x18000000\0" \
>> -	"scriptaddr=0x14000000\0" \
>> +	"kernel_addr_r=0x12000000\0" \
>> +	"pxefile_addr_r=0x10100000\0" \
>> +	"ramdisk_addr_r=0x18080000\0" \
>> +	"scriptaddr=0x10000000\0" \
>>  	"set_con_serial=setenv stdout serial; " \
>>  			"setenv stderr serial\0" \
>>  	"set_con_hdmi=setenv stdout serial,vidconsole; " \
>> --
>> 2.17.1
>>


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

  reply	other threads:[~2020-10-02 10:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-27 19:52 [PATCH 1/2] board: tbs2910: Use recommended distroboot addresses Soeren Moch
2020-08-27 19:52 ` [PATCH 2/2] board: tbs2910: Disable CONFIG_ENV_VARS_UBOOT_CONFIG in defconfig Soeren Moch
2020-08-27 21:24   ` Fabio Estevam
2020-09-18 14:06   ` sbabic at denx.de
2020-08-27 21:23 ` [PATCH 1/2] board: tbs2910: Use recommended distroboot addresses Fabio Estevam
2020-08-28 12:53 ` Tom Rini
2020-10-02 10:40 ` Soeren Moch
2020-10-02 10:55   ` Stefano Babic [this message]
2020-10-02 15:56 ` Tom Rini

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=2dc23098-80b6-e886-c8ef-829a80278f86@denx.de \
    --to=sbabic@denx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.