New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random MAC address on each boot #68
Comments
This init script is what's supposed to read and set the MAC address: https://github.com/facebook/openbmc/blob/aafbf45898f59df72be389bf5a21bc821db9f00d/meta-facebook/meta-cmm/recipes-utils/openbmc-utils/files/eth0_mac_fixup.sh Maybe you could run it manually with |
This can be closed - was my issue. EEPROM was not programmed. |
facebook-github-bot
pushed a commit
that referenced
this issue
Aug 9, 2018
Summary: 1. Add support Murata PSU D1U54P-W-1500-12-HC4TC 2. Modify psu driver power value 3. Remove I2C_CLIENT_PEC flag to avoid kenel panic issue Pull Request resolved: facebookexternal/openbmc.accton#68 Test Plan: Test on Minipack:pass Reviewed By: mikechoifb fbshipit-source-id: 79fe5b14d
facebook-github-bot
pushed a commit
that referenced
this issue
Aug 20, 2019
Summary: Utility for pem to show pem's information Pull Request resolved: facebookexternal/openbmc.celestica#68 Test Plan: root@bmc-oob:~# pem-util pem2 --get_pem_info PEM Information : PEM2 (Bus:23 Addr:0x58) --------------- : ----------------------- Version : 3 Product Name : WEDGE400-AC-F Product Part Number : 20-002230 Product Version : 1 Product Sub-Version : 255 Product Serial Number : F0A1119160001 System Manufacturer : CLS System Manufacturing Date : 04-19-19 PEM Hot Swap status : PEM2 (Bus:23 Addr:0x58) --------------- : ----------------------- PEM2_IN_VOLT : 12.14 Volts PEM2_OUT_VOLT : 12.14 Volts PEM2_CURR : 12.10 Amps PEM2_POWER : 147.66 Watts PEM2_FAN1_SPEED : 8228.00 RPM PEM2_FAN2_SPEED : 7200.00 RPM PEM2_HOT_SWAP_TEMP : 28.80 C PEM2_AIR_INLET_TEMP : 9.38 C PEM2_AIR_OUTLET_TEMP : 28.62 C ON_STATUS : 1 FET_BAD_COOLDOWN_STATUS : 0 FET_SHORT_PRESENT : 0 ON_PIN_STATUS : 1 POWER_GOOD_STATUS : 1 OC_COOLDOWN_STATUS : 0 UV_STATUS : 0 OV_STATUS : 0 GPIO3_STATUS : 0 GPIO2_STATUS : 1 GPIO1_STATUS : 1 ALERT_STATUS : 1 EEPROM_BUSY : 0 ADC_IDLE : 0 TICKER_OVERFLOW_PRESENT : 0 METER_OVERFLOW_PRESENT : 0 EEPROM Done : 0 FET Bad Fault : 0 FET Short Fault : 0 On Fault : 0 Power Bad Fault : 0 OC Fault : 0 UV Fault : 0 OV Fault : 0 Power Alarm High : 0 Power Alarm Low : 1 Vsense Alarm High : 0 Vsense Alarm Low : 1 VSourve Alarm High : 0 VSourve Alarm Low : 0 VGPIO Alarm High : 1 VGPIO Alarm Low : 0 root@bmc-oob:~# root@bmc-oob:~# pem-util pem2 --get_eeprom_info --clear Hot Swap EEPROM Default Information: PEM2 (Bus:23 Addr:0x58) --------------- : ----------------------- On Fault Mask : 0 On Delay : 0 On/Enb : 1 Mass Write Enable : 1 Fet on : 1 OC Autoretry : 1 UV Autoretry : 1 OV Autoretry : 1 On FB Mode : external On UV Mode : external On OV Mode : external On Vin Mode : 12V EEPROM Done Alert : 0 FET Bad Fault Alert : 0 FET Short Alert : 0 On Alert : 0 PB Alert : 0 OC Alert : 0 UV Alert : 0 OV Alert : 0 Power Alarm High : 0 Power Alarm Low : 0 Vsense Alarm High : 0 Vsense Alarm Low : 0 VSourve Alarm High : 0 VSourve Alarm Low : 0 VGPIO Alarm High : 0 VGPIO Alarm Low : 0 EEPROM Done : 0 FET Bad Fault : 0 FET Short Fault : 0 On Fault : 0 Power Bad Fault : 0 OC Fault : 0 UV Fault : 0 OV Fault : 0 Power Alarm High : 0 Power Alarm Low : 0 Vsense Alarm High : 0 Vsense Alarm Low : 0 VSourve Alarm High : 0 VSourve Alarm Low : 0 VGPIO Alarm High : 0 VGPIO Alarm Low : 0 GPIO3 PD : 0 GPIO2 PD : 1 GPIO1 Config : Power Good GPIO1 Output : 0 ADC Conv Alert : 0 Stress to GPIO2 : 0 Meter Overflow Alert : 0 Coulomb Meter : 0 Tick Out : 0 Int Clock Out : 0 Clock Divider : 8 ILIM Adjust : 1 Foldback Mode : 2 Vsource/VDD : 1 GPIO Mode : 0 ADC 16-BIT/12-BIT : 16-bit root@bmc-oob:~# root@bmc-oob:~# pem-util pem2 --get_eeprom_info --print FRU Information : PEM2 (Bus:23 Addr:0x58) --------------- : ----------------------- Version : 3 Product Name : WEDGE400-AC-F Product Part Number : 20-002230 System Assembly Part Number : N/A- Facebook PCBA Part Number : 132-000094-01 Facebook PCB Part Number : 131-000072-01 ODM PCBA Part Number : R1149G000101 ODM PCBA Serial Number : G011219140030 Product Production State : 1 Product Version : 1 Product Sub-Version : 255 Product Serial Number : F0A1119160001 Product Asset Tag : 5850014 System Manufacturer : CLS System Manufacturing Date : 04-19-19 PCB Manufacturer : WUS Assembled At : CLS Local MAC : 00:E0:EC:DC:70:1C Extended MAC Base : 00:E0:EC:DC:70:1D Extended MAC Address Size : 143 Location on Fabric : SMB CRC8 : 0x9 Hot Swap EEPROM Information : PEM2 (Bus:23 Addr:0x58) --------------- : ----------------------- On Fault Mask : 0 On Delay : 0 On/Enb : 1 Mass Write Enable : 1 Fet on : 1 OC Autoretry : 1 UV Autoretry : 1 OV Autoretry : 1 On FB Mode : external On UV Mode : external On OV Mode : external On Vin Mode : 12V EEPROM Done Alert : 0 FET Bad Fault Alert : 0 FET Short Alert : 0 On Alert : 0 PB Alert : 0 OC Alert : 0 UV Alert : 0 OV Alert : 0 Power Alarm High : 0 Power Alarm Low : 0 Vsense Alarm High : 0 Vsense Alarm Low : 0 VSourve Alarm High : 0 VSourve Alarm Low : 0 VGPIO Alarm High : 0 VGPIO Alarm Low : 0 EEPROM Done : 1 FET Bad Fault : 0 FET Short Fault : 0 On Fault : 0 Power Bad Fault : 0 OC Fault : 0 UV Fault : 0 OV Fault : 0 Power Alarm High : 0 Power Alarm Low : 0 Vsense Alarm High : 0 Vsense Alarm Low : 0 VSourve Alarm High : 0 VSourve Alarm Low : 0 VGPIO Alarm High : 0 VGPIO Alarm Low : 0 GPIO3 PD : 0 GPIO2 PD : 1 GPIO1 Config : Power Good GPIO1 Output : 0 ADC Conv Alert : 0 Stress to GPIO2 : 0 Meter Overflow Alert : 0 Coulomb Meter : 0 Tick Out : 0 Int Clock Out : 0 Clock Divider : 8 ILIM Adjust : 1 Foldback Mode : 2 Vsource/VDD : 1 GPIO Mode : 0 ADC 16-BIT/12-BIT : 16-bit root@bmc-oob:~# root@bmc-oob:~# pem-util pem2 --get_blackbox_info --print FRU Information : PEM2 (Bus:23 Addr:0x58) --------------- : ----------------------- Version : 3 Product Name : WEDGE400-AC-F Product Part Number : 20-002230 System Assembly Part Number : N/A- Facebook PCBA Part Number : 132-000094-01 Facebook PCB Part Number : 131-000072-01 ODM PCBA Part Number : R1149G000101 ODM PCBA Serial Number : G011219140030 Product Production State : 1 Product Version : 1 Product Sub-Version : 255 Product Serial Number : F0A1119160001 Product Asset Tag : 5850014 System Manufacturer : CLS System Manufacturing Date : 04-19-19 PCB Manufacturer : WUS Assembled At : CLS Local MAC : 00:E0:EC:DC:70:1C Extended MAC Base : 00:E0:EC:DC:70:1D Extended MAC Address Size : 143 Location on Fabric : SMB CRC8 : 0x9 Hot Swap EEPROM Information : PEM2 (Bus:23 Addr:0x58) --------------- : ----------------------- On Fault Mask : 0 On Delay : 0 On/Enb : 1 Mass Write Enable : 1 Fet on : 1 OC Autoretry : 1 UV Autoretry : 1 OV Autoretry : 1 On FB Mode : external On UV Mode : external On OV Mode : external On Vin Mode : 12V EEPROM Done Alert : 0 FET Bad Fault Alert : 0 FET Short Alert : 0 On Alert : 0 PB Alert : 0 OC Alert : 0 UV Alert : 0 OV Alert : 0 Power Alarm High : 0 Power Alarm Low : 0 Vsense Alarm High : 0 Vsense Alarm Low : 0 VSourve Alarm High : 0 VSourve Alarm Low : 0 VGPIO Alarm High : 0 VGPIO Alarm Low : 0 EEPROM Done : 1 FET Bad Fault : 0 FET Short Fault : 0 On Fault : 0 Power Bad Fault : 0 OC Fault : 0 UV Fault : 0 OV Fault : 0 Power Alarm High : 0 Power Alarm Low : 0 Vsense Alarm High : 0 Vsense Alarm Low : 0 VSourve Alarm High : 0 VSourve Alarm Low : 0 VGPIO Alarm High : 0 VGPIO Alarm Low : 0 GPIO3 PD : 0 GPIO2 PD : 1 GPIO1 Config : Power Good GPIO1 Output : 0 ADC Conv Alert : 0 Stress to GPIO2 : 0 Meter Overflow Alert : 0 Coulomb Meter : 0 Tick Out : 0 Int Clock Out : 0 Clock Divider : 8 ILIM Adjust : 1 Foldback Mode : 2 Vsource/VDD : 1 GPIO Mode : 0 ADC 16-BIT/12-BIT : 16-bit PEM Hot Swap status : PEM2 (Bus:23 Addr:0x58) --------------- : ----------------------- PEM2_IN_VOLT : 12.14 Volts PEM2_OUT_VOLT : 12.14 Volts PEM2_CURR : 12.16 Amps PEM2_POWER : 146.98 Watts PEM2_FAN1_SPEED : 7200.00 RPM PEM2_FAN2_SPEED : 7200.00 RPM PEM2_HOT_SWAP_TEMP : 29.33 C PEM2_AIR_INLET_TEMP : 9.50 C PEM2_AIR_OUTLET_TEMP : 29.00 C ON_STATUS : 1 FET_BAD_COOLDOWN_STATUS : 0 FET_SHORT_PRESENT : 0 ON_PIN_STATUS : 1 POWER_GOOD_STATUS : 1 OC_COOLDOWN_STATUS : 0 UV_STATUS : 0 OV_STATUS : 0 GPIO3_STATUS : 0 GPIO2_STATUS : 1 GPIO1_STATUS : 1 ALERT_STATUS : 1 EEPROM_BUSY : 0 ADC_IDLE : 0 TICKER_OVERFLOW_PRESENT : 0 METER_OVERFLOW_PRESENT : 0 EEPROM Done : 0 FET Bad Fault : 0 FET Short Fault : 0 On Fault : 0 Power Bad Fault : 0 OC Fault : 0 UV Fault : 0 OV Fault : 0 Power Alarm High : 0 Power Alarm Low : 1 Vsense Alarm High : 0 Vsense Alarm Low : 1 VSourve Alarm High : 0 VSourve Alarm Low : 0 VGPIO Alarm High : 1 VGPIO Alarm Low : 0 root@bmc-oob:~# Reviewed By: benwei13 fbshipit-source-id: a83c304508
facebook-github-bot
pushed a commit
that referenced
this issue
Aug 26, 2020
Summary: ELBERT: Update fpga_util.sh to support all programmable fpga images - Latest fpga_util script - Also peutil script is added here to avoid merge conflict in makefile This includes: - SCM FPGA (JTAG) - SMB FPGA (JTAG) - SMB CPLD (JTAG) - FAN FPGA (JTAG) - PIM SPI Image (SPI) - TH4 QSPI Image (SPI) For SPI programming, we only program the first 1MB of 32 MB device. The images are only around ~350KB at the moment so this speeds things ups. The utility will zero fill the image to 1MB and program this. Note: This requires flashrom1.2 to detech and talk to the devices used on Elbert PIM/TH4_QSPI Testing: Successfully upgraded all programmables using: fpga_util.sh scm program <file> fpga_util.sh smb program <file> fpga_util.sh smb_cpld program <file> fpga_util.sh fan program <file> fpga_util.sh pim program <file> fpga_util.sh th4_qspi program <file> Pull Request resolved: facebookexternal/openbmc.arista#68 Reviewed By: mikechoifb fbshipit-source-id: fef7a0c304
facebook-github-bot
pushed a commit
that referenced
this issue
Nov 15, 2022
Summary: ``` root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --list-test --platform sandia tests.sandia.test_bmc_mac_address.bmc_mac_address.test_bmc_mac_address tests.sandia.test_emmc.SandiaEmmcTest.test_emmc tests.sandia.test_fw_util_bios_version.fw_util_bios_version.test_fw_util_bios_version tests.sandia.test_interface.InterfaceTest.test_eth0_v4_interface tests.sandia.test_interface.InterfaceTest.test_eth0_v6_interface tests.sandia.test_kernel_module_presence.KernelModulePresenceTest.test_installed_kmods tests.sandia.test_mTerm.mTerm.test_mTerm tests.sandia.test_sys_network_config.sys_networkd_config.test_pid tests.sandia.test_sys_network_config.sys_networkd_config.test_serial_num tests.sandia.test_uboot_version_check.UbootVersionCheck.test_uboot_version_check tests.sandia.test_wedge_power.WedgePowerTest.test_wedge_power_off tests.sandia.test_wedge_power.WedgePowerTest.test_wedge_power_on tests.sandia.test_wedge_power.WedgePowerTest.test_wedge_power_on_force tests.sandia.test_wedge_power.WedgePowerTest.test_wedge_power_reset tests.sandia.test_wedge_power.WedgePowerTest.test_wedge_power_status tests.sandia.test_weutil.Weutil.test_weutil tests.sandia.test_x86_mac_address.x86_mac_address.test_x86_mac_address ���========================================================================================� ��root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_bmc_mac_address.bmc_mac_address.test_bmc_mac_address test_bmc_mac_address (tests.sandia.test_bmc_mac_address.bmc_mac_address) ... ok ---------------------------------------------------------------------- Ran 1 test in 1.714s OK �========================================================================================� root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_emmc.SandiaEmmcTest.test_emmc� test_emmc (tests.sandia.test_emmc.SandiaEmmcTest) ... ok ---------------------------------------------------------------------- Ran 1 test in 0.023s OK��� ========================================================================================� root@bmc-oob:/usr/local/bin/tests2# root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_fw_util_bios_version.fw_util_bios_version.test_fw_util_bios_version test_fw_util_bios_version (tests.sandia.test_fw_util_bios_version.fw_util_bios_version) ... ok ---------------------------------------------------------------------- Ran 1 test in 0.164s OK ���========================================================================================� root@bmc-oob:/usr/local/bin/tests2# root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_interface.InterfaceTest.test_eth0_v4_interface test_eth0_v4_interface (tests.sandia.test_interface.InterfaceTest) Tests eth0 v4 interface ... ok ---------------------------------------------------------------------- Ran 1 test in 0.027s OK ���========================================================================================� root@bmc-oob:/usr/local/bin/tests2# root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_interface.InterfaceTest.test_eth0_v6_interface test_eth0_v6_interface (tests.sandia.test_interface.InterfaceTest) Tests eth0 v6 interface ... ok ---------------------------------------------------------------------- Ran 1 test in 0.028s OK ���========================================================================================� root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_kernel_module_presence.KernelModulePresenceTest.test_installed_kmods test_installed_kmods (tests.sandia.test_kernel_module_presence.KernelModulePresenceTest) ... ok ---------------------------------------------------------------------- Ran 1 test in 0.025s OK ��========================================================================================� �root@bmc-oob:/usr/local/bin/tests2# root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_mTerm.mTerm.test_mTerm test_mTerm (tests.sandia.test_mTerm.mTerm) ... ok ---------------------------------------------------------------------- Ran 1 test in 0.028s OK ���========================================================================================� root@bmc-oob:/usr/local/bin/tests2# root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_sys_network_config.sys_networkd_config.test_pid test_pid (tests.sandia.test_sys_network_config.sys_networkd_config) ... ok ---------------------------------------------------------------------- Ran 1 test in 1.712s OK ���========================================================================================� root@bmc-oob:/usr/local/bin/tests2# root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_sys_network_config.sys_networkd_config.test_serial_num test_serial_num (tests.sandia.test_sys_network_config.sys_networkd_config) ... ok ---------------------------------------------------------------------- Ran 1 test in 1.714s OK ���========================================================================================� root@bmc-oob:/usr/local/bin/tests2# root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_uboot_version_check.UbootVersionCheck.test_uboot_version_check test_uboot_version_check (tests.sandia.test_uboot_version_check.UbootVersionCheck) ... ok ---------------------------------------------------------------------- Ran 1 test in 0.006s OK ���========================================================================================� root@bmc-oob:/usr/local/bin/tests2# root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_weutil.Weutil.test_weutil test_weutil (tests.sandia.test_weutil.Weutil) ... ok ---------------------------------------------------------------------- Ran 1 test in 1.700s OK ���========================================================================================� root@bmc-oob:/usr/local/bin/tests2# root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_x86_mac_address.x86_mac_address.test_x86_mac_address test_x86_mac_address (tests.sandia.test_x86_mac_address.x86_mac_address) ... ok ---------------------------------------------------------------------- Ran 1 test in 3.429s OK ���========================================================================================� root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_wedge_power.WedgePowerTest.test_wedge_power_off test_wedge_power_off (tests.sandia.test_wedge_power.WedgePowerTest) Tests wedge power off ... ok ---------------------------------------------------------------------- Ran 1 test in 20.209s OK��� ========================================================================================� root@bmc-oob:/usr/local/bin/tests2# root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_wedge_power.WedgePowerTest.test_wedge_power_status test_wedge_power_status (tests.sandia.test_wedge_power.WedgePowerTest) Tests wedge power status ... ok ---------------------------------------------------------------------- Ran 1 test in 0.043s OK ���========================================================================================� root@bmc-oob:/usr/local/bin/tests2# root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_wedge_power.WedgePowerTest.test_wedge_power_on test_wedge_power_on (tests.sandia.test_wedge_power.WedgePowerTest) Tests wedge power on ... ok ---------------------------------------------------------------------- Ran 1 test in 12.133s OK ���========================================================================================� root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_wedge_power.WedgePowerTest.test_wedge_power_status test_wedge_power_status (tests.sandia.test_wedge_power.WedgePowerTest) Tests wedge power status ... ok ---------------------------------------------------------------------- Ran 1 test in 0.043s OK��� ========================================================================================� root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_wedge_power.WedgePowerTest.test_wedge_power_on_force test_wedge_power_on_force (tests.sandia.test_wedge_power.WedgePowerTest) Tests wedge power on ... ok ---------------------------------------------------------------------- Ran 1 test in 10.107s OK ��========================================================================================� root@bmc-oob:/usr/local/bin/tests2# python cit_runner.py --platform sandia --run-test tests.sandia.test_wedge_power.WedgePowerTest.test_wedge_power_reset test_wedge_power_reset (tests.sandia.test_wedge_power.WedgePowerTest) Tests wedge power reset ... ok ---------------------------------------------------------------------- Ran 1 test in 22.234s OK root@bmc-oob:/usr/local/bin/tests2# ���========================================================================================� ``` X-link: facebookexternal/openbmc.cisco#68 Reviewed By: tao-ren fbshipit-source-id: c5777f81979694e9f9e001c2ed09f0648a4a301e
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wrote a local mac into the board id eeprom (wedge_eeprom) and expected that to be used to configure eth0 but on each boot I see a different, presumably randomly generated MAC being used. Can someone help resolve this please?
The text was updated successfully, but these errors were encountered: