-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
u-boot: support all network interfaces and read tlv eeprom macs
- Enable network interfaces in u-boot based on active serdes protocol - Read MAC Addresses from TLV EEPROM on LX2160A CEX7
- Loading branch information
Showing
4 changed files
with
493 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
patches/u-boot/0007-cmd-tlv_eeprom-don-t-fail-boot-when-reading-eeprom-f.patch
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From fff14a56662e7f4ff86cdb5452e5c1b1e35f28bd Mon Sep 17 00:00:00 2001 | ||
From: Josua Mayer <[email protected]> | ||
Date: Sat, 2 Nov 2024 16:31:01 +0100 | ||
Subject: [PATCH 07/10] cmd: tlv_eeprom: don't fail boot when reading eeprom | ||
fails | ||
|
||
When u-boot calls mac_read_from_eeprom during init an error return code | ||
will fail the boot before reaching u-boot shell. | ||
|
||
Return success error code even on error, mac addresses are not critical. | ||
|
||
Signed-off-by: Josua Mayer <[email protected]> | ||
--- | ||
cmd/tlv_eeprom.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/cmd/tlv_eeprom.c b/cmd/tlv_eeprom.c | ||
index bf8d453dc5b..cbc11ebf421 100644 | ||
--- a/cmd/tlv_eeprom.c | ||
+++ b/cmd/tlv_eeprom.c | ||
@@ -1023,7 +1023,7 @@ int mac_read_from_eeprom(void) | ||
|
||
if (read_eeprom(eeprom)) { | ||
printf("Read failed.\n"); | ||
- return -1; | ||
+ return 0; | ||
} | ||
|
||
maccount = 1; | ||
-- | ||
2.43.0 | ||
|
Oops, something went wrong.