From: Tom Rini <trini@konsulko.com>
To: Frieder Schrempf <frieder@fris.de>
Cc: Stefano Babic <sbabic@denx.de>, Adam Ford <aford173@gmail.com>,
Andre Przywara <andre.przywara@arm.com>,
Fabio Estevam <festevam@gmail.com>,
Frieder Schrempf <frieder.schrempf@kontron.de>,
Heiko Schocher <hs@denx.de>,
Heiko Stuebner <heiko.stuebner@theobroma-systems.com>,
Jagan Teki <jagan@amarulasolutions.com>,
Kever Yang <kever.yang@rock-chips.com>,
Lokesh Vutla <lokeshvutla@ti.com>,
Marcin Niestroj <m.niestroj@grinn-global.com>,
Navin Sankar Velliangiri <navin@linumiz.com>,
"NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
Oleh Kravchenko <oleg@kaa.org.ua>,
Parthiban Nallathambi <parthiban@linumiz.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>,
Peter Robinson <pbrobinson@gmail.com>,
Sean Anderson <sean.anderson@seco.com>,
Sebastian Reichel <sebastian.reichel@collabora.com>,
Simon Glass <sjg@chromium.org>,
Tim Harvey <tharvey@gateworks.com>,
Dave Gerlach <d-gerlach@ti.com>, Fabio Estevam <festevam@denx.de>,
u-boot@lists.denx.de
Subject: Re: [PATCH v4 1/2] imx: imx6ul: Add support for Kontron Electronics SL/BL i.MX6UL/ULL boards (N63xx/N64xx)
Date: Wed, 21 Jul 2021 09:33:51 -0400 [thread overview]
Message-ID: <20210721133351.GS9379@bill-the-cat> (raw)
In-Reply-To: <20210721080336.193481-1-frieder@fris.de>
[-- Attachment #1: Type: text/plain, Size: 2809 bytes --]
On Wed, Jul 21, 2021 at 10:03:26AM +0200, Frieder Schrempf wrote:
> From: Frieder Schrempf <frieder.schrempf@kontron.de>
>
> This adds support for i.MX6UL/ULL-based evaluation kits with SoMs by
> Kontron Electronics GmbH.
>
> Currently there are the following SoM flavors (SoM-Line):
> * N6310: SOM with i.MX6UL-2, 256MB RAM, 256MB SPI NAND
> * N6311: SOM with i.MX6UL-2, 512MB RAM, 512MB SPI NAND
> * N6411: SOM with i.MX6ULL, 512MB RAM, 512MB SPI NAND
>
> And the according evaluation boards (Board-Line):
> * N6310-S: Baseboard with SOM N6310, eMMC, display (optional), ...
> * N6311-S: Baseboard with SOM N6311, eMMC, display (optional), ...
> * N6411-S: Baseboard with SOM N6411, eMMC, display (optional), ...
>
> Currently U-Boot describes i.MX6UL and i.MX6ULL through separate config
> options at compile-time. Though the differences are so minor, that for
> the scope of these SoMs we just use a single defconfig that is compatible
> with both SoCs.
>
> Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
> Reviewed-by: Stefano Babic <sbabic@denx.de>
[snip]
> +/*
> + * #######################################
> + * ### ENVIRONMENT ###
> + * #######################################
> + */
> +#define CONFIG_EXTRA_ENV_SETTINGS \
> + "bootargs_base=" KONTRON_ENV_KERNEL_MTDPARTS "\0" \
> + "script=boot.scr\0" \
> + "kernel_addr_r=" KONTRON_ENV_KERNEL_ADDR "\0" \
> + "fdt_addr_r=" KONTRON_ENV_FDT_ADDR "\0" \
> + "ramdisk_addr_r=" KONTRON_ENV_RAMDISK_ADDR "\0" \
> + "pxefile_addr_r=" KONTRON_ENV_PXE_ADDR "\0" \
> + "scriptaddr=" KONTRON_ENV_PXE_ADDR "\0" \
I assume there's more platforms coming in, and thus the common and mx6
split. But I still see some problems.
> + "bootdir=\0" \
> + "bootdelay=3\0" \
> + "ipaddr=192.168.1.11\0" \
> + "serverip=192.168.1.10\0" \
> + "gatewayip=192.168.1.10\0" \
> + "netmask=255.255.255.0\0" \
It's really really frowned upon to put the ipaddr/etc in to the
hard-coded default environment. Is this absolutely necessary?
[snip]
> +#define KONTRON_ENV_KERNEL_MTDPARTS "mtdparts=spi1.0:128k(spl),832k(u-boot),64k(env);spi4.0:192m(rootfs),-(user)"
This should just be in the device tree (for Linux!) and we should be
parsing that.
> +#define KONTRON_ENV_KERNEL_ADDR "0x82000000"
> +#define KONTRON_ENV_FDT_ADDR "0x83000000"
16MB for kernel + BSS is very very small. You're likely to hit
overlaps.
> +#define KONTRON_ENV_PXE_ADDR "0x83100000"
> +#define KONTRON_ENV_RAMDISK_ADDR "0x83200000"
What is the smallest amount of memory you need to work with on these
platforms? The header I referenced in the other thread spells out a
bunch of safe sizes / offsets to use, but that can be tricky on smaller
memory platforms.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2021-07-21 13:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-21 8:03 [PATCH v4 1/2] imx: imx6ul: Add support for Kontron Electronics SL/BL i.MX6UL/ULL boards (N63xx/N64xx) Frieder Schrempf
2021-07-21 8:03 ` [PATCH v4 2/2] imx: imx8mm: Add support for Kontron Electronics SL/BL i.MX8M-Mini boards (N801x) Frieder Schrempf
2021-07-23 9:35 ` Michael Walle
2021-08-19 9:20 ` Frieder Schrempf
2021-07-21 13:33 ` Tom Rini [this message]
2021-07-22 12:48 ` [PATCH v4 1/2] imx: imx6ul: Add support for Kontron Electronics SL/BL i.MX6UL/ULL boards (N63xx/N64xx) Frieder Schrempf
2021-07-23 9:33 ` Michael Walle
2021-08-19 9:14 ` Frieder Schrempf
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=20210721133351.GS9379@bill-the-cat \
--to=trini@konsulko.com \
--cc=aford173@gmail.com \
--cc=andre.przywara@arm.com \
--cc=d-gerlach@ti.com \
--cc=festevam@denx.de \
--cc=festevam@gmail.com \
--cc=frieder.schrempf@kontron.de \
--cc=frieder@fris.de \
--cc=heiko.stuebner@theobroma-systems.com \
--cc=hs@denx.de \
--cc=jagan@amarulasolutions.com \
--cc=kever.yang@rock-chips.com \
--cc=lokeshvutla@ti.com \
--cc=m.niestroj@grinn-global.com \
--cc=navin@linumiz.com \
--cc=oleg@kaa.org.ua \
--cc=parthiban@linumiz.com \
--cc=patrick.delaunay@foss.st.com \
--cc=pbrobinson@gmail.com \
--cc=sbabic@denx.de \
--cc=sean.anderson@seco.com \
--cc=sebastian.reichel@collabora.com \
--cc=sjg@chromium.org \
--cc=tharvey@gateworks.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@nxp.com \
/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