summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* configs: Remove gpio code from config filesBrad Bishop2016-09-239-69/+16
| | | | | | | Move to a new obmc.system module. Change-Id: Ie02a4b2c14cfcf272d8823d44fb9d7c03b796c87 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: Move INVENTORY_ROOT to inventory moduleBrad Bishop2016-09-2310-13/+8
| | | | | Change-Id: Ic68d4a48ff46002858934e0b9c9b1694a2a17a08 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* configs: Remove unused variablesBrad Bishop2016-09-235-33/+0
| | | | | Change-Id: I95992741e5b2da4678bc0a12f8afcbe88e318a03 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* python: add vim modelinesBrad Bishop2016-09-2316-0/+32
| | | | | Change-Id: Ic13d79892e3efe6f7bad357ad747e6fd25299d02 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* palmetto: remove frusBrad Bishop2016-09-233-57/+25
| | | | | | | These are now provided in a json file. Change-Id: Ib0491399df797a728c7a71118f7d54a07eb3a466 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Fix some hardcoded inventory pathsMatt Spinler2016-09-211-22/+21
| | | | | | | | | | | | | Modify hardcoded inventory paths to match the ones generated by the machine readable workbook. Note the FRU_INSTANCES array is no longer used and will be removed with a separate commit. Resolves openbmc/openbmc#563. Change-Id: I7af395f08551692f03c95c151bfbbae9e33dee00 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Remove explicit vuart enable from startup_hacks.shTimothy Pearson2016-09-161-1/+0
| | | | | | | | Newer kernels always enable the vuart device and do not expose the enable file for the vuart device. Change-Id: Id8d341322f19112d102c9df8a9e6bdb7e2ef6337 Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
* inventory: add missing json importBrad Bishop2016-09-131-0/+1
| | | | | Change-Id: I89215bdaf5aa02d0063b6164454b56a7cc19cb37 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Use super to construct dbus.service.ObjectBrad Bishop2016-09-126-22/+21
| | | | | Change-Id: I830decfc523d435c6b9ecdc9ffffec7956c3b85d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* chassis: pep8 fixesBrad Bishop2016-09-121-11/+7
| | | | | Change-Id: I6dc52616ce30660f2e6992f6e1a52d44dfec1cd7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* hwmon: pep8 fixesBrad Bishop2016-09-121-1/+1
| | | | | Change-Id: I7ffedd4592dd3efbf1b531ecf3b7fbfd1f95bc0c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* flash_bios: reap childrenBrad Bishop2016-09-121-1/+1
| | | | | Change-Id: Id8d341322f19112d102c9df8a9e6bdb7e2ef6341 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* op-flasher: Remove pflash treeBrad Bishop2016-09-1255-6205/+0
| | | | | | | No longer needed with the move to the shared object. Change-Id: I36f7d7ba8b3df5ebae67a93ae18f1fa2d5c4d29a Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* op-flasher: use dynamic libflashBrad Bishop2016-09-122-100/+20
| | | | | | | | | Replace the old statically linked snapshot of libflash with the real shared library. Resolves: openbmc/openbmc#542 Change-Id: I3b6f634d17951c714ebc571518ad5067eaf44e97 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* gdbus: Append LDLIBSBrad Bishop2016-09-121-1/+1
| | | | | | | Allow makefiles to add additional libraries. Change-Id: Ia09e9de2dd1c49d92512bed87bb5d906b258316f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: add missing module importsBrad Bishop2016-09-081-0/+2
| | | | | Change-Id: I9df7e3917c3107356b67d2f59301a8bd42f59cc1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add ability to load inventory from file instead of hardcoding.Matt Spinler2016-09-081-0/+11
| | | | | | | | | | | | | | | | | | This commit allows inventory_items.py to load the inventory from /usr/share/inventory/inventory.json instead of using the hardcoded array in <System>.py. A future commit will generate inventory.json from the machine readable workbook XML for at least one system. If the code can't load the json file, it will fall back to the hardcoded array, which at this point we know is always present. Even though pyinventorymgr will probably be rewritten in C++ at some point, this series of commits illustrates how the OpenBMC can utilize a data-driven design, and this component was chosen as it takes a minimal amount of changes. Change-Id: Ie749a068d6f47c5671677b21ff3ef5418739f161 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Remove goto_system_stateBrad Bishop2016-09-062-62/+1
| | | | | | | With the move to systemd this script isn't needed anymore. Change-Id: I90e481ccd720492fce25b62edc5e47d36d6d5a7c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* configs: remove interpreterBrad Bishop2016-09-065-10/+0
| | | | | | | Remove /usr/bin/python as these are not runnable scripts. Change-Id: I2b84748a17be45e99dcbe2d82932c96015b569ce Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* system_manager: cleanupBrad Bishop2016-09-061-1/+1
| | | | | | | select python via /usr/bin/env Change-Id: I426a8947e277892c3084ef08c246e98b625c3d10 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* bmcupdate: pep8 fixesBrad Bishop2016-09-061-263/+265
| | | | | Change-Id: I44b65bc0c22bc137c2e7daf3f5933de3a1fc0063 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* discover_system_state: pep8 fixesBrad Bishop2016-09-061-48/+48
| | | | | Change-Id: I8ef7c3024c2330acffa7603aee4c7ef295aea1b0 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: allow missing config fileBrad Bishop2016-09-061-2/+11
| | | | | | | | Allow the inventory manager to start with a missing board config file. Change-Id: Ifd0e2080348de6ed802505a26c85ddebf355d3c4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: pep8 fixesBrad Bishop2016-09-061-65/+60
| | | | | Change-Id: Ib27c332db35a9e3d5e0bba9d56d5b48966eef9a6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* hwmon: allow missing config fileBrad Bishop2016-09-061-3/+10
| | | | | | | Allow hwmon to at least start without a board config file. Change-Id: I53114671d91f887be1bf4a4b9207ece68fa2d0ce Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* hwmon: pep8 fixesBrad Bishop2016-09-061-140/+137
| | | | | Change-Id: I94fa21938796a694d8bb653b45b7f5379c7e6bc4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* download_mgr: pep8 fixesBrad Bishop2016-09-061-55/+58
| | | | | Change-Id: I7707fa2d76e4ebc07729e5c95038ef57e2ded626 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* chassis_control: remove unused modulesBrad Bishop2016-09-061-3/+1
| | | | | Change-Id: I65d56a5597c5e79d4ac48d90b5d7437f50cc8023 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* chassis_control: remove execute permissionsBrad Bishop2016-09-061-0/+0
| | | | | Change-Id: I6ba0bfe7463cf8647d07218174d578f2c96e076a Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* sensor_mgr: allow missing config fileBrad Bishop2016-09-061-8/+14
| | | | | | | | Allow sensor_mgr to at least start without a board config file. Change-Id: I30d7cc7ec10f6d398236245e28192a20ae4f5125 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* sensor_mgr: pep8 fixesBrad Bishop2016-09-061-51/+47
| | | | | Change-Id: I67dbe7831e63ffa7729bead55eae01aa2e9d8371 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* fanctl: pep8 fixesBrad Bishop2016-09-061-42/+38
| | | | | Change-Id: I7e3113bae4dba0b1d2973df0f2659d3cc33f587f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Remove APPS and CALLBACKS from board config filesBrad Bishop2016-08-315-765/+0
| | | | | | | No longer required with the switch to systemd for state management. Change-Id: I34047f948a92cb996a6926765b9a4d8df9f8d1f2 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* systemmgr: Remove state managementBrad Bishop2016-08-311-52/+0
| | | | | | | | | | With the switch to systemd this isn't needed anymore. A small bit remains allowing the obmcutil cmdline to continue reporing the familiar states for now. Change-Id: I4c9a0201e0237fdcbd4f69f0de05c92f223827f0 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* chassis: Use systemd for chassis on/offBrad Bishop2016-08-311-16/+11
| | | | | | | Start a systemd target for chassis state changes. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I3f02360aeec35ff451d4da8a087c1aeb1e7709e0
* pwrctl: add pgood state switching applicationBrad Bishop2016-08-305-1/+201
| | | | | | | | | | pgood_wait simply blocks until the power state changes to the requested state. The intent is for use from a systemd unit similar to nm-online. Change-Id: Icf1e18f5d47d6eb2fc424b4614fd196ef3dfd6ee Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* gpio: Avoid glitching 'out'-direction GPIOsPatrick Williams2016-08-241-3/+21
| | | | | Change-Id: I42dafd3235d13ec57f7b15e043bc3fe82fdb4665 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* gpio: Fix sprintf to uninitialized pointerPatrick Williams2016-08-241-1/+3
| | | | | Change-Id: Ife1759b1533b37e0a8c94748334ea2c5f02ba873 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* gpio: Clean trailing whitespacePatrick Williams2016-08-241-6/+6
| | | | | Change-Id: I359e5bab739e3b029a3331b0acfbf54e8db1120c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* pysystemmgr: Handling SIGCHLD signalYi Li2016-08-221-0/+3
| | | | | | | | | | | SystemManager starts multiple child processes when system state changes. Set parent process to ignore the SIGCHLD signal, to prevent child processes transforming into zombies when they terminate. Resolves openbmc/openbmc#206 Change-Id: Ic8baa0cbb97f2df8fcc462a732a4194e4a6d3f8c Signed-off-by: Yi Li <adamliyi@msn.com>
* fix sensor scales for HWMON devicesEdward A. James2016-08-226-265/+267
| | | | | | | | | | | | | - should only use exponential (10^x) scaling - purpose of the scale is to identify units - need adjustment factor for some sensors; internal use only depends on Id4e1dfad0def21f9f1d341d859c3b2c237dea080 resolves openbmc/openbmc#412 Change-Id: Iaf2d5e30df620212dd3c9e821d6462964520dc44 Signed-off-by: Edward A. James <eajames@us.ibm.com>
* Start host watchdog after magic sequenceAdriana Kobylak2016-08-192-16/+55
| | | | | | | | | | | | The magic sequence triggers the host to boot, so start the host watchdog timer (which monitors for the host hanging) right after that. There's no need to port the check for debug flag because it's checked as part of the magic sequence. Resolves openbmc/skeleton#127 Change-Id: Ibad7b73c795c6cc8971bb99b755c8fce2c859f97 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Power button power off behaviorAdriana Kobylak2016-08-171-5/+6
| | | | | | | | | | | Change the power button behavior to mirror the current behavior on Power and x86 systems: On short press: soft power off On long press: hard power off Resolves openbmc/openbmc#485 Change-Id: I436c364f6ed072474f942f80d98428df11b4c666 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Cache inventory properties fault and presentAdriana Kobylak2016-08-151-1/+3
| | | | | | | | | | | The inventory properties 'fault' and 'present' were the only inventory propertiess that were not being cached, so during a cache restore, these values would be set to default instead of being restored to their last value. Resolves openbmc/openbmc#487 Change-Id: I0bab765e45193635872d465b89fa2e19f3111fa0 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Removing extra Double quotes while displaying firmware versionRatan Gupta2016-08-101-0/+1
| | | | | | | Fixes openbmc/openbmc#453 Change-Id: Ia57f5628be0e99e41b3088643c75ce6fa790282a Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Fixing WhiteSpace ErrorRatan Gupta2016-08-101-51/+51
| | | | | Change-Id: I81e847076deffbb191dc9db8503ae11dc555eb2d Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* chassis_control: Log an event when emergency shutdown hostYi Li2016-08-081-1/+16
| | | | | | | | | | | According to BMC Firmware Specification, on occasion the BMC will be required to shut down the host due to high ambient or fan fails. A SEL must be present in this case. Fixes openbmc/skeleton#64 Change-Id: I3d779fc597961821a7a7f1b0f147314072ae8802 Signed-off-by: Yi Li <adamliyi@msn.com>
* Add logic to sync/preserve MAC and UUIDAdriana Kobylak2016-08-083-1/+145
| | | | | | | | | | | | | | The MAC and UUID values are written in the VPD eeprom by the manufacturer. These values are mirrored to u-boot. During BMC boot, check that the values in the VPD eeprom and u-boot are the same. If they are different, use the VPD eeprom value to update u-boot. Exception is the MAC when it's been set by the admin to have a locally administered address. In this case the MAC is not updated. Updating the MAC takes effect immediately, updating the UUID requires a BMC reboot. Change-Id: Ied0f308ed06cd6a45bd618bbb307b2483c6b5b61 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Load inventory from cacheAdriana Kobylak2016-08-081-2/+4
| | | | | | | | | | | | | | The inventory is persisted across BMC reboots, so load this data at BMC startup to not need a system power off/on to load the inventory. Load the cached values after setting the property values to default, so that the cached value (if any) overwrites the default value and the properties return to the same state they were prior to BMC reboot. Fixes openbmc/openbmc#487 Change-Id: I9e40b2af6880dbaa4ccc0f7e93c74ecf63a51d6f Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Remove unused CACHE_PATH variable from configsBrad Bishop2016-07-266-9/+0
| | | | | | | | | The library function doing the caching now makes the parent directory if it doesn't exist so also removing that bit of code from the system manager. Change-Id: I30a55737a51e698d977dbc3f30208db1d4e0e87e Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud