]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: [plat-axs*/plat-hsdk]: Allow U-Boot to pass MAC-address to the kernel
authorAlexey Brodkin <abrodkin@synopsys.com>
Thu, 2 Aug 2018 10:19:37 +0000 (13:19 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 27 Aug 2018 16:00:36 +0000 (09:00 -0700)
commit14c989f1f419fe325e7060a46c74dc1c78506f2d
tree041a21b1a3043c6b046271eb0d7601c0060a7538
parent6f49d1d0094452cdc60e7777b60bdce97e94bfb4
ARC: [plat-axs*/plat-hsdk]: Allow U-Boot to pass MAC-address to the kernel

Otherwise kernel uses random MAC which is not very conveniet.
With that change in place use might set desired MAC in U-Boot
with "setenv ethaddr 11:22:33:44:55:66", save environment and
then from boot to boot the same MAC will be used by the kernel.

One other note for this to happen it's required to pass
board's .dtb in U-Boot's "bootm" command like that:
------------------->8-----------------
bootm 0x82000000 - 0x84000000
------------------->8-----------------

Here 0x82000000 is location of uImage while
0x80000000 is location of either axs10x.dtb or hsdk.dtb
previously loaded from SD-card, USB storage or TFTP server.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: stable@vger.kernel.org # 4.14
Cc: devicetree@vger.kernel.org
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/boot/dts/axs10x_mb.dtsi
arch/arc/boot/dts/hsdk.dts