From: "Pali Rohár" <pali@kernel.org>
To: u-boot@lists.denx.de
Subject: [PATCH v2 4/4] arm: mvebu: Espressobin: Update README.marvell file
Date: Thu, 27 Aug 2020 15:01:28 +0200 [thread overview]
Message-ID: <20200827130128.22389-4-pali@kernel.org> (raw)
In-Reply-To: <20200827130128.22389-1-pali@kernel.org>
Include information about permanent ethernet MAC address and add link how
to build ATF as U-Boot on Espressobin cannot be flashed without ATF.
Signed-off-by: Pali Roh?r <pali@kernel.org>
---
doc/README.marvell | 40 +++++++++++++++++++++++++++++++++++++---
1 file changed, 37 insertions(+), 3 deletions(-)
diff --git a/doc/README.marvell b/doc/README.marvell
index 336461745c..da16316407 100644
--- a/doc/README.marvell
+++ b/doc/README.marvell
@@ -13,7 +13,8 @@ Build Procedure
2. Set the cross compiler:
- # export CROSS_COMPILE=/path/to/toolchain/aarch64-marvell-linux-gnu-
+ # sudo apt-get install gcc-aarch64-linux-gnu
+ # export CROSS_COMPILE=aarch64-linux-gnu-
3. Clean-up old residuals:
@@ -30,7 +31,7 @@ Build Procedure
5. Configure the device-tree and build the U-Boot image:
- Compile u-boot and set the required device-tree using:
+ For the Armada-70x0/80x0 DB board compile u-boot and set the required device-tree using:
# make DEVICE_TREE=<name>
@@ -42,12 +43,45 @@ Build Procedure
In order to prevent this, the required device-tree MUST be set during compilation.
All device-tree files are located in ./arch/arm/dts/ folder.
+ For other DB boards (MacchiatoBin, EspressoBin and 3700 DB board) compile u-boot with
+ just default device-tree from defconfig using:
+
+ # make
+
NOTE:
The u-boot.bin should not be used as a stand-alone image.
The ARM Trusted Firmware (ATF) build process uses this image to generate the
- flash image.
+ flash image. See TF-A Build Instructions for Marvell Platforms for more details at:
+ https://trustedfirmware-a.readthedocs.io/en/latest/plat/marvell/armada/build.html
Configuration update
---------------------
To update the U-Boot configuration, please refer to doc/README.kconfig
+
+Permanent ethernet MAC address
+-------------------------------
+ Prior flashing new U-Boot version (as part of ATF image) it is suggested to backup
+ permanent ethernet MAC address as it is stored only in U-Boot env storage (SPI or eMMC).
+ Some boards like EspressoBin have MAC address printed on sticker. To print current MAC
+ address run:
+
+ # echo $ethaddr
+
+ MAC addresses 00:51:82:11:22:00, 00:51:82:11:22:01, 00:51:82:11:22:02, 00:51:82:11:22:03
+ and F0:AD:4E:03:64:7F are default hardcoded values found in Marvell's and Armbian U-Boot
+ forks and therefore *not* unique. Usage of static hardcoded MAC addresses should be avoided.
+ When original address is lost (e.g. erased by Armbian boot scripts for EspressoBin) it is
+ suggested to generate new random one.
+
+ After flashing new U-Boot version it is suggested to reset U-Boot env variables to default
+ and then set correct permanent ethernet MAC address.
+
+ # env default -a
+ # setenv ethaddr XX:XX:XX:XX:XX:XX
+ # saveenv
+
+ Where XX:XX:XX:XX:XX:XX is permanent ethernet MAC address.
+
+ Recent Linux kernel versions use correct permanent ethernet MAC address from U-Boot env as
+ U-Boot will inject it into kernel's device-tree.
--
2.20.1
next prev parent reply other threads:[~2020-08-27 13:01 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-24 14:24 [PATCH 1/5] arm: mvebu: Espressobin: Move env load addresses Pali Rohár
2020-08-24 14:24 ` [PATCH 2/5] arm: mvebu: Espressobin: Change default loadaddr Pali Rohár
2020-08-25 7:06 ` Stefan Roese
2020-08-24 14:25 ` [PATCH 3/5] arm: mvebu: Espressobin: Define fdt_addr and kernel_addr env aliases Pali Rohár
2020-08-25 7:07 ` Stefan Roese
2020-08-24 14:25 ` [PATCH 4/5] arm: mvebu: Espressobin: Define console env Pali Rohár
2020-08-25 7:08 ` Stefan Roese
2020-08-26 13:22 ` Andre Heider
2020-08-26 13:31 ` Pali Rohár
2020-08-26 14:00 ` Andre Heider
2020-08-26 14:10 ` Pali Rohár
2020-08-26 14:43 ` Andre Heider
2020-08-26 15:10 ` Pali Rohár
2020-08-26 15:29 ` Andre Heider
2020-08-27 4:51 ` Andre Heider
2020-08-27 10:29 ` Pali Rohár
2020-08-27 14:34 ` Andre Heider
2020-08-27 5:25 ` Andre Heider
2020-08-24 14:25 ` [PATCH 5/5] arm: mvebu: Espressobin: Update README.marvell file Pali Rohár
2020-08-25 7:08 ` Stefan Roese
2020-08-25 7:05 ` [PATCH 1/5] arm: mvebu: Espressobin: Move env load addresses Stefan Roese
2020-08-26 7:30 ` Andre Heider
2020-08-26 8:31 ` Espressobin booting (Was: Re: [PATCH 1/5] arm: mvebu: Espressobin: Move env load addresses) Pali Rohár
2020-08-26 9:57 ` Andre Heider
2020-08-26 10:51 ` Pali Rohár
2020-08-26 11:40 ` Pali Rohár
2020-08-26 13:22 ` Andre Heider
2020-08-27 13:14 ` Pali Rohár
2020-08-28 12:39 ` Pali Rohár
2020-08-28 14:35 ` Andre Heider
2020-08-28 14:53 ` Pali Rohár
2020-08-27 13:01 ` [PATCH v2 1/4] arm: mvebu: Espressobin: Move env load addresses Pali Rohár
2020-08-27 13:01 ` [PATCH v2 2/4] arm: mvebu: Espressobin: Change default loadaddr Pali Rohár
2020-08-27 15:31 ` Stefan Roese
2020-08-27 16:04 ` Andre Heider
2020-08-31 13:06 ` Stefan Roese
2020-08-27 13:01 ` [PATCH v2 3/4] arm: mvebu: Espressobin: Define fdt_addr and kernel_addr env aliases Pali Rohár
2020-08-27 15:31 ` Stefan Roese
2020-08-27 16:04 ` Andre Heider
2020-08-31 13:06 ` Stefan Roese
2020-08-27 13:01 ` Pali Rohár [this message]
2020-08-27 15:32 ` [PATCH v2 4/4] arm: mvebu: Espressobin: Update README.marvell file Stefan Roese
2020-08-31 13:06 ` Stefan Roese
2020-08-27 14:31 ` [PATCH v2 1/4] arm: mvebu: Espressobin: Move env load addresses Andre Heider
2020-08-27 15:37 ` Stefan Roese
2020-08-27 15:31 ` Stefan Roese
2020-08-31 13:06 ` Stefan Roese
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=20200827130128.22389-4-pali@kernel.org \
--to=pali@kernel.org \
--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