Created
November 4, 2021 22:48
-
-
Save RobertCNelson/5249c0b65e386252a615be77259ea352 to your computer and use it in GitHub Desktop.
stm32mp1 ethaddr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/arch/arm/mach-stm32mp/cpu.c b/arch/arm/mach-stm32mp/cpu.c | |
| index eb79f3ff..f410d038 100644 | |
| --- a/arch/arm/mach-stm32mp/cpu.c | |
| +++ b/arch/arm/mach-stm32mp/cpu.c | |
| @@ -607,8 +607,8 @@ __weak int setup_mac_address(void) | |
| struct udevice *dev; | |
| /* MAC already in environment */ | |
| - if (eth_env_get_enetaddr("ethaddr", enetaddr)) | |
| - return 0; | |
| + //if (eth_env_get_enetaddr("ethaddr", enetaddr)) | |
| + // return 0; | |
| ret = uclass_get_device_by_driver(UCLASS_MISC, | |
| DM_DRIVER_GET(stm32mp_bsec), | |
| @@ -628,7 +628,7 @@ __weak int setup_mac_address(void) | |
| log_err("invalid MAC address in OTP %pM\n", enetaddr); | |
| return -EINVAL; | |
| } | |
| - log_debug("OTP MAC address = %pM\n", enetaddr); | |
| + printf("OTP MAC address = %pM\n", enetaddr); | |
| ret = eth_env_set_enetaddr("ethaddr", enetaddr); | |
| if (ret) | |
| log_err("Failed to set mac address %pM from OTP: %d\n", enetaddr, ret); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment