diff options
author | Evan Lojewski <github@meklort.com> | 2020-11-03 19:06:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 19:06:43 -0700 |
commit | d45375ba78f2051b869812a1edf6f6354ca8bc29 (patch) | |
tree | 3b7a4ec54070e640c73f089808bcd5067d2d6a2c /utils | |
parent | 08feb38f78e92ecfbb09578024b7a60b44f2ac51 (diff) | |
download | bcm5719-ortega-d45375ba78f2051b869812a1edf6f6354ca8bc29.tar.gz bcm5719-ortega-d45375ba78f2051b869812a1edf6f6354ca8bc29.zip |
bcmflash: Default to valid (dummy) mac addresses when creating firmware images. (#160)
Diffstat (limited to 'utils')
-rw-r--r-- | utils/bcmflash/nvm_blackbird.c | 8 | ||||
-rw-r--r-- | utils/bcmflash/nvm_kh08p.c | 8 | ||||
-rw-r--r-- | utils/bcmflash/nvm_talos2.c | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/utils/bcmflash/nvm_blackbird.c b/utils/bcmflash/nvm_blackbird.c index b71d39b..9ee44c7 100644 --- a/utils/bcmflash/nvm_blackbird.c +++ b/utils/bcmflash/nvm_blackbird.c @@ -61,7 +61,7 @@ NVRAMInfo2_t gBlackbirdNVRAMInfo2 = { .mfr2Len = htobe16(sizeof(NVRAMInfo2_t)), // [202] 00 8C -- Length of manufacturing section 2. .UNKNOWN0 = 0, // [204] 00 00 00 00 -- Could be reserved. - .macAddr2 = { 0 }, // 1 [208] Upper 16 bits are zero/unused. + .macAddr2 = { htobe32(0x1122), htobe32(0x33445562) }, .UNKNOWN1 = 0, // [210] 0 .UNKNOWN2 = 0, // [214] 0 @@ -90,7 +90,7 @@ NVRAMInfo2_t gBlackbirdNVRAMInfo2 = { .func2CfgFeature = htobe32(0xC5C00000), // 1 [250] C5 C0 00 00 - Function 2 GEN_CFG_1E4. .func2CfgHW = htobe32(0x00004014), // 1 [254] 00 00 40 14 - Function 2 GEN_CFG_2. - .macAddr3 = { 0 }, // 1 [258] Upper 16 bits are zero/unused. + .macAddr3 = { htobe32(0x1122), htobe32(0x33445563) }, .func3CfgFeature = htobe32(0xC5C00000), // 1 [260] C5 C0 00 00 - Function 3 GEN_CFG_1E4. .func3CfgHW = htobe32(0x00004014), // 1 [264] 00 00 40 14 - Function 3 GEN_CFG_2. @@ -106,7 +106,7 @@ NVRAMInfo2_t gBlackbirdNVRAMInfo2 = { }; NVRAMInfo_t gBlackbirdNVRAMInfo = { - .macAddr0 = { 0 }, /* Placeholder*/ + .macAddr0 = { htobe32(0x1122), htobe32(0x33445560) }, .partNumber = "BCM95719", .partRevision = { 'A', '0' }, .firmwareRevision = 0, /* Placeholder*/ @@ -139,7 +139,7 @@ NVRAMInfo_t gBlackbirdNVRAMInfo = { .func0CfgFeature = htobe32(0xC5C00080), .func0CfgHW = htobe32(0x00004014), - .macAddr1 = { 0 }, + .macAddr1 = { htobe32(0x1122), htobe32(0x33445561) }, .func1CfgFeature = htobe32(0xC5C00000), .func1CfgHW = htobe32(0x00004014), diff --git a/utils/bcmflash/nvm_kh08p.c b/utils/bcmflash/nvm_kh08p.c index 890e548..90a6859 100644 --- a/utils/bcmflash/nvm_kh08p.c +++ b/utils/bcmflash/nvm_kh08p.c @@ -61,7 +61,7 @@ NVRAMInfo2_t gKH08PNVRAMInfo2 = { .mfr2Len = htobe16(sizeof(NVRAMInfo2_t)), // [202] 00 8C -- Length of manufacturing section 2. .UNKNOWN0 = 0, // [204] 00 00 00 00 -- Could be reserved. - .macAddr2 = { 0 }, // 1 [208] Upper 16 bits are zero/unused. + .macAddr2 = { htobe32(0x1122), htobe32(0x33445568) }, .UNKNOWN1 = 0, // [210] 0 .UNKNOWN2 = 0, // [214] 0 @@ -90,7 +90,7 @@ NVRAMInfo2_t gKH08PNVRAMInfo2 = { .func2CfgFeature = htobe32(0xCDB50202), // 1 [250] C5 C0 00 00 - Function 2 GEN_CFG_1E4. .func2CfgHW = htobe32(0x00006014), // 1 [254] 00 00 40 14 - Function 2 GEN_CFG_2. - .macAddr3 = { 0 }, // 1 [258] Upper 16 bits are zero/unused. + .macAddr3 = { htobe32(0x1122), htobe32(0x33445569) }, .func3CfgFeature = htobe32(0xCDB50202), // 1 [260] C5 C0 00 00 - Function 3 GEN_CFG_1E4. .func3CfgHW = htobe32(0x00006014), // 1 [264] 00 00 40 14 - Function 3 GEN_CFG_2. @@ -106,7 +106,7 @@ NVRAMInfo2_t gKH08PNVRAMInfo2 = { }; NVRAMInfo_t gKH08PNVRAMInfo = { - .macAddr0 = { 0 }, /* Placeholder*/ + .macAddr0 = { htobe32(0x1122), htobe32(0x33445566) }, .partNumber = "BCM95719", .partRevision = { 'A', '0' }, .firmwareRevision = 0, /* Placeholder*/ @@ -139,7 +139,7 @@ NVRAMInfo_t gKH08PNVRAMInfo = { .func0CfgFeature = htobe32(0xCDB50282), .func0CfgHW = htobe32(0x00006014), - .macAddr1 = { 0 }, + .macAddr1 = { htobe32(0x1122), htobe32(0x33445567) }, .func1CfgFeature = htobe32(0xCDB50202), .func1CfgHW = htobe32(0x00006014), diff --git a/utils/bcmflash/nvm_talos2.c b/utils/bcmflash/nvm_talos2.c index 07a4b6f..1817d81 100644 --- a/utils/bcmflash/nvm_talos2.c +++ b/utils/bcmflash/nvm_talos2.c @@ -61,7 +61,7 @@ NVRAMInfo2_t gTalosIINVRAMInfo2 = { .mfr2Len = htobe16(sizeof(NVRAMInfo2_t)), // [202] 00 8C -- Length of manufacturing section 2. .UNKNOWN0 = 0, // [204] 00 00 00 00 -- Could be reserved. - .macAddr2 = { 0 }, // 1 [208] Upper 16 bits are zero/unused. + .macAddr2 = { htobe32(0x1122), htobe32(0x33445572) }, .UNKNOWN1 = 0, // [210] 0 .UNKNOWN2 = 0, // [214] 0 @@ -90,7 +90,7 @@ NVRAMInfo2_t gTalosIINVRAMInfo2 = { .func2CfgFeature = htobe32(0xC5C00000), // 1 [250] C5 C0 00 00 - Function 2 GEN_CFG_1E4. .func2CfgHW = htobe32(0x00004014), // 1 [254] 00 00 40 14 - Function 2 GEN_CFG_2. - .macAddr3 = { 0 }, // 1 [258] Upper 16 bits are zero/unused. + .macAddr3 = { htobe32(0x1122), htobe32(0x33445573) }, .func3CfgFeature = htobe32(0xC5C00000), // 1 [260] C5 C0 00 00 - Function 3 GEN_CFG_1E4. .func3CfgHW = htobe32(0x00004014), // 1 [264] 00 00 40 14 - Function 3 GEN_CFG_2. @@ -106,7 +106,7 @@ NVRAMInfo2_t gTalosIINVRAMInfo2 = { }; NVRAMInfo_t gTalosIINVRAMInfo = { - .macAddr0 = { 0 }, /* Placeholder*/ + .macAddr0 = { htobe32(0x1122), htobe32(0x33445570) }, .partNumber = "BCM95719", .partRevision = { 'A', '0' }, .firmwareRevision = 0, /* Placeholder*/ @@ -139,7 +139,7 @@ NVRAMInfo_t gTalosIINVRAMInfo = { .func0CfgFeature = htobe32(0xC5C00080), .func0CfgHW = htobe32(0x00004014), - .macAddr1 = { 0 }, + .macAddr1 = { htobe32(0x1122), htobe32(0x33445571) }, .func1CfgFeature = htobe32(0xC5C00000), .func1CfgHW = htobe32(0x00004014), |