Merged
Conversation
bbinxie
pushed a commit
that referenced
this pull request
Aug 29, 2019
Summary: 1. Set uart baud rate 2. Adding uart using description 3. Set compiling and install module in wedge400 file system Pull Request resolved: https://github.com/facebookexternal/openbmc.celestica/pull/5 Test Plan: Compiling is OK. Reviewed By: vineelasmile fbshipit-source-id: eb191615a7
bbinxie
pushed a commit
that referenced
this pull request
Aug 29, 2019
Summary: Add common and platform restful API for Wedge400 Currently, /api/sys/gpios and /api/sys/psu_update not work Pull Request resolved: https://github.com/facebookexternal/openbmc.celestica/pull/54 Test Plan: tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 115 100 115 0 0 537 0 --:--:-- --:--:-- --:--:-- 539 { "Actions": [], "Information": { "Description": "Wedge RESTful API Entry", "version": "v0.1" }, "Resources": [ "sys" ] } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 231 100 231 0 0 1540 0 --:--:-- --:--:-- --:--:-- 1550 { "Actions": [], "Information": { "Description": "Wedge System" }, "Resources": [ "server", "mb", "gpios", "presence", "usb2i2c_reset", "bmc", "sensors", "slotid", "psu_update", "mTerm_status", "seutil", "firmware_info", "fc_present" ] } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys/server | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 116 100 116 0 0 14 0 0:00:08 0:00:08 --:--:-- 24 { "Actions": [ "power-on", "power-off", "power-reset" ], "Information": { "BIC_ok": 1, "status": "on" }, "Resources": [] } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys/mb | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 93 100 93 0 0 404 0 --:--:-- --:--:-- --:--:-- 406 { "Actions": [], "Information": { "Description": "System Motherboard" }, "Resources": [ "fruid" ] } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys/mb/fruid | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 800 100 800 0 0 1059 0 --:--:-- --:--:-- --:--:-- 1061 { "Actions": [], "Information": { "Assembled At": "CTH", "CRC8": "0x9", "Extended MAC Address Size": "2", "Extended MAC Base": "AA:BB:CC:DD:EE:00", "Facebook PCB Part Number": "123-456789-ab", "Facebook PCBA Part Number": "ABC-DEFGHI-JK", "Local MAC": "AA:BB:CC:DD:AA:FF", "Location on Fabric": "SMB", "ODM PCBA Part Number": "abcdefghijklm", "ODM PCBA Serial Number": "ABCDEFGHIJKLM", "PCB Manufacturer": "ABCDEFGH", "Product Asset Tag": "ABCDEFGHIJKL", "Product Name": "WEDGE400-SMB", "Product Part Number": "12-345678", "Product Production State": "1", "Product Serial Number": "123456789abcd", "Product Sub-Version": "0", "Product Version": "1", "System Assembly Part Number": "abc-defghi-jk", "System Manufacturer": "CTH", "System Manufacturing Date": "03-29-19", "Version": "3" }, "Resources": [] } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys/presence | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 171 100 171 0 0 64 0 0:00:02 0:00:02 --:--:-- 64 { "Actions": [], "Information": [ { "scm ": "1" }, { "fan1 ": "1", "fan2 ": "1", "fan3 ": "1", "fan4 ": "1" }, { "psu1 ": "0", "psu2 ": "1" } ], "Resources": [ "scm", "fan", "psu" ] } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys/usb2i2c_reset | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 43 100 43 0 0 175 0 --:--:-- --:--:-- --:--:-- 175 { "status": "usb to i2c device reset done " } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys/bmc | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 867 100 867 0 0 443 0 0:00:01 0:00:01 --:--:-- 443 { "Actions": [], "Information": { "At-Scale-Debug Running": false, "CPU Usage": "CPU: 47% usr 52% sys 0% nic 0% idle 0% io 0% irq 0% sirq", "Description": "wedge400 BMC", "MAC Addr": "AA:BB:CC:DD:AA:FF", "Memory Usage": "Mem: 131696K used, 882692K free, 6372K shrd, 20K buff, 73072K cached", "OpenBMC Version": "1.2.0", "Reset Reason": "User Initiated Reset or WDT Reset", "SPI0 Vendor": "Unknown", "SPI1 Vendor": "Unknown", "TPM FW version": "133.32", "TPM TCG version": "1.2", "Uptime": "00:07:19 up 4:29, load average: 2.36, 2.12, 2.04", "kernel version": "4.18.16 #5 Fri Apr 26 17:57:04 CST 2019", "load-1": "2.36", "load-15": "2.05", "load-5": "2.13", "open-fds": "542", "u-boot version": "U-Boot 2016.07 wedge400-v1.0.0 (May 05 2019 - 15:41:05 +0800)", "uptime": "16151.12", "vboot": { "status": "-1", "status_text": "Unsupported" } }, "Resources": [] } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys/sensors | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2532 100 2532 0 0 1462 0 0:00:01 0:00:01 --:--:-- 1461 { "Actions": [], "Information": [ { "1V05MIX_VR_CURR": "1.8799999999999999", "1V05MIX_VR_OUT_POWER": "2.3799999999999999", "1V05MIX_VR_TEMP": "34.0", "1V05MIX_VR_VOLT": "1.05", "Adapter": "util", "FAN1_FRONT_SPEED": "3900.0", "FAN1_REAR_SPEED": "3750.0", "FAN2_FRONT_SPEED": "3750.0", "FAN2_REAR_SPEED": "3750.0", "FAN3_FRONT_SPEED": "3900.0", "FAN3_REAR_SPEED": "3750.0", "FAN4_FRONT_SPEED": "3750.0", "FAN4_REAR_SPEED": "3750.0", "FCM_HSC_CURR": "0.34000000000000002", "FCM_HSC_POWER": "8.6999999999999993", "FCM_HSC_VOLT": "12.050000000000001", "FCM_TEMP1": "26.120000000000001", "FCM_TEMP2": "25.75", "INA230_POWER": "12.0", "INA230_VOLT": "12.01", "MB_INLET_TEMP": "27.0", "MB_OUTLET_TEMP": "29.0", "P12V_MB_VOLT": "12.01", "P1V05_MIX_VOLT": "1.05", "P1V05_PCH_VOLT": "1.05", "P3V3_MB_VOLT": "3.2999999999999998", "P3V3_STBY_MB_VOLT": "3.2999999999999998", "P5V_STBY_MB_VOLT": "4.9900000000000002", "PCH_TEMP": "31.0", "PSU2_12V_CURR": "6.5599999999999996", "PSU2_12V_POWER": "78.25", "PSU2_12V_VOLT": "11.970000000000001", "PSU2_FAN_SPEED": "5824.0", "PSU2_IN_CURR": "0.45000000000000001", "PSU2_IN_POWER": "92.75", "PSU2_IN_VOLT": "221.0", "PSU2_STBY_CURR": "0.23000000000000001", "PSU2_STBY_POWER": "0.75", "PSU2_STBY_VOLT": "3.29", "PSU2_TEMP1": "32.0", "PSU2_TEMP2": "32.0", "PSU2_TEMP3": "35.0", "PVDDR_VOLT": "1.23", "PV_BAT_VOLT": "3.1600000000000001", "SCM_HSC_CURR": "0.94999999999999996", "SCM_HSC_POWER": "9.9000000000000004", "SCM_HSC_VOLT": "12.02", "SCM_INLET_TEMP": "27.5", "SCM_OUTLET_TEMP": "27.620000000000001", "SMB_TEMP1": "25.620000000000001", "SMB_TEMP2": "30.25", "SMB_TEMP3": "28.879999999999999", "SMB_TEMP4": "26.379999999999999", "SMB_TEMP5": "27.309999999999999", "SMB_TEMP6": "26.809999999999999", "SOC_DIMMA0_TEMP": "26.0", "SOC_DIMMB0_TEMP": "26.0", "SOC_PACKAGE_POWER": "9.0", "SOC_TEMP": "34.0", "SOC_TJMAX_TEMP": "104.0", "SYSTEM_AIRFLOW": "57.170000000000002", "TH3_CORE_CURR": "32.0", "TH3_CORE_POWER": "28.0", "TH3_CORE_TEMP1": "36.0", "TH3_CORE_VOLT": "0.90000000000000002", "TH3_DIE_TEMP1": "34.189999999999998", "TH3_DIE_TEMP2": "34.880000000000003", "TH3_SERDES_L_CURR": "0.5", "TH3_SERDES_L_POWER": "1.0", "TH3_SERDES_L_VOLT": "3.3100000000000001", "TH3_SERDES_R_CURR": "0.25", "TH3_SERDES_R_POWER": "1.0", "TH3_SERDES_R_VOLT": "3.3100000000000001", "VCCIN_VR_CURR": "3.0", "VCCIN_VR_OUT_POWER": "5.0", "VCCIN_VR_TEMP": "34.0", "VCCIN_VR_VOLT": "1.8", "VDDR_VR_CURR": "0.75", "VDDR_VR_OUT_POWER": "0.75", "VDDR_VR_TEMP": "29.0", "VDDR_VR_VOLT": "1.21", "name": "util" } ], "Resources": [] } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys/slotid | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 13 100 13 0 0 18 0 --:--:-- --:--:-- --:--:-- 18 { "slotid": 1 } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys/mTerm_status | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 83 100 83 0 0 202 0 --:--:-- --:--:-- --:--:-- 202 { "Actions": [], "Information": { "mTerm Server Status": "Running" }, "Resources": [] } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys/seutil | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 800 100 800 0 0 389 0 0:00:02 0:00:02 --:--:-- 389 { "Actions": [], "Information": { "Assembled At": "CTH", "CRC8": "0x9", "Extended MAC Address Size": "2", "Extended MAC Base": "AA:BB:CC:DD:EE:00", "Facebook PCB Part Number": "123-456789-ab", "Facebook PCBA Part Number": "ABC-DEFGHI-JK", "Local MAC": "AA:BB:CC:DD:AA:FF", "Location on Fabric": "SCM", "ODM PCBA Part Number": "abcdefghijklm", "ODM PCBA Serial Number": "ABCDEFGHIJKLM", "PCB Manufacturer": "ABCDEFGH", "Product Asset Tag": "ABCDEFGHIJKL", "Product Name": "WEDGE400-SCM", "Product Part Number": "12-345678", "Product Production State": "1", "Product Serial Number": "123456789abcd", "Product Sub-Version": "0", "Product Version": "1", "System Assembly Part Number": "abc-defghi-jk", "System Manufacturer": "CTH", "System Manufacturing Date": "03-29-55", "Version": "3" }, "Resources": [] } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys/firmware_info | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 185 100 185 0 0 81 0 0:00:02 0:00:02 --:--:-- 81 { "Actions": [], "Information": [ { "FCMCPLD": "1.0", "SCMCPLD": "2.2", "SMB_PWRCPLD": "1.0", "SMB_SYSCPLD": "1.0" }, { "DOMFPGA1": "0.9", "DOMFPGA2": "0.9" } ], "Resources": [ "cpld", "fpga" ] } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ curl -g http://10.204.28.249:8080/api/sys/fc_present | python -m json.tool % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 174 100 174 0 0 225 0 --:--:-- --:--:-- --:--:-- 225 { "Actions": [], "Information": { "Description": "Slotid indicates monitored slotid's status", "Monitored Slotid": 0, "Slotid": 1, "Status": "Not Applicable" }, "Resources": [] } tianhui@cshcomms01:~/git/facebook/openbmc.celestica$ Pass Reviewed By: sammyblueeyes fbshipit-source-id: bf57abaca7
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.