From: Alexander Dahl <ada@thorsis.com>
To: Simon Glass <sjg@chromium.org>
Cc: "U-Boot Mailing List" <u-boot@lists.denx.de>,
"Marek Behún" <marek.behun@nic.cz>,
"Rasmus Villemoes" <rasmus.villemoes@prevas.dk>,
"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
"Tom Rini" <trini@konsulko.com>, "Wolfgang Denk" <wd@denx.de>
Subject: Re: [PATCH v9 4/7] sandbox: Use a text-based environment
Date: Wed, 20 Oct 2021 08:58:06 +0200 [thread overview]
Message-ID: <YW+9/oZXPy9a4vGM@ada.ifak-system.com> (raw)
In-Reply-To: <20211019164418.v9.4.I0690bd21a0701ccc5dd95fb5df88519d216d8af5@changeid>
Hello Simon,
Am Tue, Oct 19, 2021 at 04:44:19PM -0600 schrieb Simon Glass:
> Use a text file for the environment instead of the #define settings.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Marek Behún <marek.behun@nic.cz>
> ---
>
> (no changes since v3)
>
> Changes in v3:
> - Add new patch to use a text-based environment for sandbox
>
> board/sandbox/sandbox.env | 25 +++++++++++++++++++++++++
> include/configs/sandbox.h | 29 -----------------------------
> 2 files changed, 25 insertions(+), 29 deletions(-)
> create mode 100644 board/sandbox/sandbox.env
>
> diff --git a/board/sandbox/sandbox.env b/board/sandbox/sandbox.env
> new file mode 100644
> index 00000000000..0f8d95b8db0
> --- /dev/null
> +++ b/board/sandbox/sandbox.env
> @@ -0,0 +1,25 @@
> +stdin=serial
> +#ifdef CONFIG_SANDBOX_SDL
> +stdin+=,cros-ec-keyb,usbkbd
> +#endif
> +stdout=serial,vidconsole
> +stderr=serial,vidconsole
> +
> +ethaddr=00:00:11:22:33:44
> +eth2addr=00:00:11:22:33:48
> +eth3addr=00:00:11:22:33:45
> +eth4addr=00:00:11:22:33:48
> +eth5addr=00:00:11:22:33:46
> +eth6addr=00:00:11:22:33:47
These MAC addresses use the OUI 00:00:11 which is assigned to NORMEREL
SYSTEMES, a company based in France. I doubt U-Boot is allowed to use
addresses from that block, and would prefer using a locally
administered address here, and set the second bit. Thus
02:00:11:xx:xx:xx would be okay for example.
> +ipaddr=1.2.3.4
Same here, this is a globally reachable IP address, which U-Boot
probably is not allowed to use. According to RFC 5737 there are two
IPv4 address blocks for documentational use:
“The blocks 192.0.2.0/24 (TEST-NET-1), 198.51.100.0/24 (TEST-NET-2),
and 203.0.113.0/24 (TEST-NET-3) are provided for use in
documentation.”
Greets
Alex
> +
> +/*
> + * These are used for distro boot which is not supported. But once bootmethod
> + * is provided these will be used again.
> + */
> +bootm_size=0x10000000
> +kernel_addr_r=0x1000000
> +fdt_addr_r=0xc00000
> +ramdisk_addr_r=0x2000000
> +scriptaddr=0x1000
> +pxefile_addr_r=0x2000
> diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
> index c19232f202f..c703a1330c0 100644
> --- a/include/configs/sandbox.h
> +++ b/include/configs/sandbox.h
> @@ -64,37 +64,8 @@
> #define CONFIG_LCD_BMP_RLE8
>
> #define CONFIG_KEYBOARD
> -
> -#define SANDBOX_SERIAL_SETTINGS "stdin=serial,cros-ec-keyb,usbkbd\0" \
> - "stdout=serial,vidconsole\0" \
> - "stderr=serial,vidconsole\0"
> -#else
> -#define SANDBOX_SERIAL_SETTINGS "stdin=serial\0" \
> - "stdout=serial,vidconsole\0" \
> - "stderr=serial,vidconsole\0"
> #endif
>
> -#define SANDBOX_ETH_SETTINGS "ethaddr=00:00:11:22:33:44\0" \
> - "eth2addr=00:00:11:22:33:48\0" \
> - "eth3addr=00:00:11:22:33:45\0" \
> - "eth4addr=00:00:11:22:33:48\0" \
> - "eth5addr=00:00:11:22:33:46\0" \
> - "eth6addr=00:00:11:22:33:47\0" \
> - "ipaddr=1.2.3.4\0"
> -
> -#define MEM_LAYOUT_ENV_SETTINGS \
> - "bootm_size=0x10000000\0" \
> - "kernel_addr_r=0x1000000\0" \
> - "fdt_addr_r=0xc00000\0" \
> - "ramdisk_addr_r=0x2000000\0" \
> - "scriptaddr=0x1000\0" \
> - "pxefile_addr_r=0x2000\0"
> -
> -#define CONFIG_EXTRA_ENV_SETTINGS \
> - SANDBOX_SERIAL_SETTINGS \
> - SANDBOX_ETH_SETTINGS \
> - MEM_LAYOUT_ENV_SETTINGS
> -
> #ifndef CONFIG_SPL_BUILD
> #define CONFIG_SYS_IDE_MAXBUS 1
> #define CONFIG_SYS_ATA_IDE0_OFFSET 0
> --
> 2.33.0.1079.g6e70778dc9-goog
>
next prev parent reply other threads:[~2021-10-20 6:58 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-19 22:44 [PATCH v9 0/7] env: Allow environment in text files Simon Glass
2021-10-19 22:44 ` [PATCH v9 1/7] sandbox: Drop distro_boot Simon Glass
2021-10-19 22:44 ` [PATCH v9 2/7] doc: Move environment documentation to rST Simon Glass
2021-10-20 6:38 ` Heinrich Schuchardt
2021-10-22 3:05 ` Simon Glass
2021-10-19 22:44 ` [PATCH v9 3/7] env: Allow U-Boot scripts to be placed in a .env file Simon Glass
2021-10-21 9:50 ` Wolfgang Denk
2021-10-21 12:23 ` Tom Rini
2021-10-21 13:06 ` Wolfgang Denk
2021-10-21 13:25 ` Marek Behún
2021-10-21 13:28 ` Marek Behún
2021-10-21 15:12 ` Wolfgang Denk
2021-10-21 15:18 ` Tom Rini
2021-10-21 15:59 ` Simon Glass
2021-10-21 16:03 ` Tom Rini
2021-10-21 16:51 ` Simon Glass
2021-10-22 6:40 ` Rasmus Villemoes
2021-10-24 19:54 ` Simon Glass
2021-10-25 7:06 ` Rasmus Villemoes
2021-10-25 15:18 ` Simon Glass
2021-10-25 19:52 ` Rasmus Villemoes
2021-10-26 10:15 ` Wolfgang Denk
2021-10-28 14:18 ` Simon Glass
2021-10-22 8:08 ` Wolfgang Denk
2021-10-22 14:47 ` Tom Rini
2021-10-24 15:46 ` Wolfgang Denk
2021-10-24 16:44 ` Tom Rini
2021-10-25 7:48 ` Wolfgang Denk
2021-10-22 8:06 ` Wolfgang Denk
2021-10-22 14:04 ` Marek Behún
2021-10-22 14:50 ` Tom Rini
2021-10-19 22:44 ` [PATCH v9 4/7] sandbox: Use a text-based environment Simon Glass
2021-10-20 6:58 ` Alexander Dahl [this message]
2021-10-19 22:44 ` [PATCH v9 5/7] doc: Mention CONFIG_DEFAULT_ENV_FILE Simon Glass
2021-10-19 22:44 ` [PATCH v9 6/7] doc: Improve environment documentation Simon Glass
2021-10-19 22:44 ` [PATCH v9 7/7] bootm: Tidy up use of autostart env var Simon Glass
2021-10-21 14:02 ` [PATCH v9 0/7] env: Allow environment in text files 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=YW+9/oZXPy9a4vGM@ada.ifak-system.com \
--to=ada@thorsis.com \
--cc=marek.behun@nic.cz \
--cc=rasmus.villemoes@prevas.dk \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=wd@denx.de \
--cc=xypron.glpk@gmx.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.