History log of /openbmc/skeleton/pyflashbmc/ (Results 1 – 18 of 18)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
75fe8cc422-Jul-2022 Patrick Williams <patrick@stwcx.xyz>

python: reformat using black

Code cannot currently be submitted to this repo because it fails
in the unit-test phase. Attempt to reformat the code using `black`
to hopefully make pycodestyle happie

python: reformat using black

Code cannot currently be submitted to this repo because it fails
in the unit-test phase. Attempt to reformat the code using `black`
to hopefully make pycodestyle happier.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I17aa506471ceade224bcab5b2fa0dc8cd7a88c0a

show more ...


/openbmc/skeleton/LICENSE
/openbmc/skeleton/MAINTAINERS
/openbmc/skeleton/Makefile
/openbmc/skeleton/OWNERS
/openbmc/skeleton/bmcctl/control_bmc_obj.c
/openbmc/skeleton/configs/Barreleye.py
/openbmc/skeleton/configs/Firestone.py
/openbmc/skeleton/configs/Garrison.py
/openbmc/skeleton/configs/Lanyang.py
/openbmc/skeleton/configs/Palmetto.py
/openbmc/skeleton/configs/Romulus.py
/openbmc/skeleton/configs/S2600wf.py
/openbmc/skeleton/configs/Witherspoon.py
/openbmc/skeleton/configs/Zaius.py
/openbmc/skeleton/fanctl/fan_control.c
/openbmc/skeleton/ledctl/led_controller.c
/openbmc/skeleton/libopenbmc_intf/GPIOS.md
/openbmc/skeleton/libopenbmc_intf/Makefile
/openbmc/skeleton/libopenbmc_intf/gpio.c
/openbmc/skeleton/libopenbmc_intf/gpio.h
/openbmc/skeleton/libopenbmc_intf/gpio_configs.c
/openbmc/skeleton/libopenbmc_intf/gpio_configs.h
/openbmc/skeleton/libopenbmc_intf/gpio_json.c
/openbmc/skeleton/libopenbmc_intf/gpio_json.h
/openbmc/skeleton/op-hostctl/control_host_obj.c
/openbmc/skeleton/op-pwrctl/power_control_obj.c
/openbmc/skeleton/pychassisctl/chassis_control.py
/openbmc/skeleton/pychassisctl/setup.py
/openbmc/skeleton/pydownloadmgr/download_manager.py
/openbmc/skeleton/pydownloadmgr/setup.py
bmc_update.py
setup.py
/openbmc/skeleton/pyinventorymgr/inventory_items.py
/openbmc/skeleton/pyinventorymgr/obmc/inventory/__init__.py
/openbmc/skeleton/pyinventorymgr/setup.py
/openbmc/skeleton/pyinventorymgr/sync_inventory_items.py
/openbmc/skeleton/pyipmitest/ipmi_debug.py
/openbmc/skeleton/pyipmitest/setup.py
/openbmc/skeleton/pystatemgr/discover_system_state.py
/openbmc/skeleton/pystatemgr/setup.py
/openbmc/skeleton/pysystemmgr/obmc/system/__init__.py
/openbmc/skeleton/pysystemmgr/setup.py
/openbmc/skeleton/pysystemmgr/system_manager.py
/openbmc/skeleton/pytools/gpioutil
/openbmc/skeleton/pytools/setup.py
5a38763f04-Apr-2018 Lei YU <mine260309@gmail.com>

bmc_update.py: Use BMC state manager to reboot BMC

It was using BMC control service to call warmReset() to reboot BMC.
But now legacy BMC control service is removed so the call will fail.

Use BMC s

bmc_update.py: Use BMC state manager to reboot BMC

It was using BMC control service to call warmReset() to reboot BMC.
But now legacy BMC control service is removed so the call will fail.

Use BMC state manager instead to trigger BMC reboot.

Partially resolves openbmc/openbmc#3064.

Tested: Run legacy code update and verify PrepareForupdate() does reboot
the BMC.

Change-Id: I9f0fcddce9fb8f4007db0dd17b3cd3840c8848fc
Signed-off-by: Lei YU <mine260309@gmail.com>

show more ...

d65b2d5027-Feb-2018 CamVan Nguyen <ctnguyen@us.ibm.com>

Port to python 3

Port code to python 3 yet remain backward compatible to python 2.
This port is in preparation for yocto 2.4 upgrade.

Partially resolves openbmc/openbmc#2920

Change-Id: If174ce9444

Port to python 3

Port code to python 3 yet remain backward compatible to python 2.
This port is in preparation for yocto 2.4 upgrade.

Partially resolves openbmc/openbmc#2920

Change-Id: If174ce9444bde4e21fb086764f4def017e423201
Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>

show more ...

24341f9d26-Jan-2018 Adriana Kobylak <anoo@us.ibm.com>

pep8 fixes

Also ignore the configs/ directory since it only contains
system configuration files named <system>.py.

Change-Id: I0416239c4030ce5bc39473e65e560016cd4ffc75
Signed-off-by: Adriana Kobyla

pep8 fixes

Also ignore the configs/ directory since it only contains
system configuration files named <system>.py.

Change-Id: I0416239c4030ce5bc39473e65e560016cd4ffc75
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>

show more ...

7bef82c002-Oct-2017 Adriana Kobylak <anoo@us.ibm.com>

bmc_update.py: Call fw_setenv twice for PrepareForUpdate

Support for u-boot redundant environment variables was
added where u-boot alternates writing to each environment
every time an variable is wr

bmc_update.py: Call fw_setenv twice for PrepareForUpdate

Support for u-boot redundant environment variables was
added where u-boot alternates writing to each environment
every time an variable is written. But initramfs doesn't
know which environment is active so it always reads from
the same one. Therefore need to twice set the
environments that initramfs reads so that they're written
to both environments and initramfs can read it.

Part of openbmc/openbmc#2292

Change-Id: Ifaa9a55067cdd2f42b534b680809552f6574a56a
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>

show more ...

3fc6b79015-Aug-2017 Milton Miller <miltonm@us.ibm.com>

bmc_update: explictly save firmware environment

Find the file to copy from the firmware environent config,
and assume the complete file should be saved as an image
to the u-boot-env mtd partition.

bmc_update: explictly save firmware environment

Find the file to copy from the firmware environent config,
and assume the complete file should be saved as an image
to the u-boot-env mtd partition.

Preserve network settings has worked to save the u-boot-env
by copying the runtime copy of the env saved by the
initramfs init script to /run/fw_env. That copy was
created as a workaround for a flash erase problem that
can not be created with the current driver.

Change-Id: Ie42ddbb4f821447349f70ab21d1333194aba08cf
Signed-off-by: Milton Miller <miltonm@us.ibm.com>

show more ...

62d11c3e15-Aug-2017 Milton Miller <miltonm@us.ibm.com>

pyflashbmc: Remove initramfs from list of expected images

Remove the no longer present initramfs image as the initramfs
is no longer stored in a seperate partition.

Individual flash partition updat

pyflashbmc: Remove initramfs from list of expected images

Remove the no longer present initramfs image as the initramfs
is no longer stored in a seperate partition.

Individual flash partition updates have not worked via rest (Update will
return "Unpack Error") since the switch to storing the initramfs in the
FIT image.

Change-Id: Ie01fc18704fca2296cb7436dfea07ba4773a0ace
Signed-off-by: Milton Miller <miltonm@us.ibm.com>

show more ...

5306675021-Sep-2016 Brad Bishop <bradleyb@fuzziesquirrel.com>

python: add vim modelines

Change-Id: Ic13d79892e3efe6f7bad357ad747e6fd25299d02
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

f47f5faa08-Sep-2016 Brad Bishop <bradleyb@fuzziesquirrel.com>

Use super to construct dbus.service.Object

Change-Id: I830decfc523d435c6b9ecdc9ffffec7956c3b85d
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

34c3bf9e30-Aug-2016 Brad Bishop <bradleyb@fuzziesquirrel.com>

bmcupdate: pep8 fixes

Change-Id: I44b65bc0c22bc137c2e7daf3f5933de3a1fc0063
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

1664c8ee29-Jun-2016 Brad Bishop <bradleyb@fuzziesquirrel.com>

Remove unnecessary InterfacesAdded signals

Remove ObjectManager signals emitted before a bus name is owned.

This isn't necessary now that the system_manager can detect objects via
NameOwnerChanged.

Remove unnecessary InterfacesAdded signals

Remove ObjectManager signals emitted before a bus name is owned.

This isn't necessary now that the system_manager can detect objects via
NameOwnerChanged.

Change-Id: Ia2b626a926392b50d20c26474e6c9a9fdb3ca2f0
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...

f0f3efe129-Jun-2016 Brad Bishop <bradleyb@fuzziesquirrel.com>

Export objects prior to bus name grab

The default behavior in pyphosphor changed such that ObjectManager
and Properties signals are not emitted by default. Enable signals
just prior to bus name gra

Export objects prior to bus name grab

The default behavior in pyphosphor changed such that ObjectManager
and Properties signals are not emitted by default. Enable signals
just prior to bus name grab.

Change-Id: I27a2de4b60482dd843702396f33c7cdccaf17277
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...

70852a3829-Jun-2016 Brad Bishop <bradleyb@fuzziesquirrel.com>

Defer busname ownership until init complete

Avoid race conditions where applications expecting an object to be
present upon recipt of NameOwnerChanged find that the object hasn't
been created yet.

Defer busname ownership until init complete

Avoid race conditions where applications expecting an object to be
present upon recipt of NameOwnerChanged find that the object hasn't
been created yet.

Change-Id: I4236a3898055a84b00e1eaf37f32e0192b683a0f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...

2aa5308806-Jul-2016 Brad Bishop <bradleyb@fuzziesquirrel.com>

pyflashbmc: Remove unused variable

Change-Id: I0c795151f723fdfa41aa24d9213ffb8490b03349
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

0c8c5d4a29-Jun-2016 Milton Miller <miltonm@us.ibm.com>

flash_bmc: Add Apply method to flash updates from runtime

This commit adds methods to Validate (not exposed), Apply,
GetUpdateProgress, and Abort along with an auto_apply attribute.

A PrepareForUpd

flash_bmc: Add Apply method to flash updates from runtime

This commit adds methods to Validate (not exposed), Apply,
GetUpdateProgress, and Abort along with an auto_apply attribute.

A PrepareForUpdate method is also added that will write bootloader
environment to instruct the initramfs init script to copy necessary
file system state into RAM to allow the flash to be updated.

Together these methods take the prior Update method and chain
on the Validate phase which checks the image can be applied
concurrently (and could be extended to check signatures). If
validation fails auto_apply is cleared. If auto_apply remains
true then Apply is called which will perform the check again
(implicitly in the update script) and update the flash contents,
saving its output to a temporary file.

The GetUpdateProgress will return the status variable followed
by the output from the update script, with status that was
overwritten with a carriage return stripped. As each new phase
(erase, write, and verify) of each image is encountered the
message will be extended.

An Abort method will kill an in-progress update, erase the logfile,
and remove any pending images. A new image can be unpacked at this
time.

Note: the current method to clear all persistent files removes the
whitelist and all future calls will clear all files from the read
write layer. This maybe addressed in a future update.

Signed-off-by: Milton Miller <miltonm@us.ibm.com>

show more ...

b6cfc54517-Jun-2016 Milton Miller <miltonm@us.ibm.com>

bmc_update: allow whitelist to be files in a directory

The whitelist is moveing from a file to a set of files in a directory.
Use try when deleting whitelist entries.

It would be better to call upd

bmc_update: allow whitelist to be files in a directory

The whitelist is moveing from a file to a set of files in a directory.
Use try when deleting whitelist entries.

It would be better to call update without saving the files in the
first place but this will suffice for now.

Signed-off-by: Milton Miller <miltonm@us.ibm.com>

show more ...

c809410916-Jun-2016 Milton Miller <miltonm@us.ibm.com>

bmc_update: save runtime modified u-boot environment

Copy the version saved by our initfs and pointed to by our fw_setenv
tools via /etc/fw_setenv. Do this copy by default.

The /etc/fw_env.cnf con

bmc_update: save runtime modified u-boot environment

Copy the version saved by our initfs and pointed to by our fw_setenv
tools via /etc/fw_setenv. Do this copy by default.

The /etc/fw_env.cnf config file points to /run/fw_env in our systems.

The bmc_update object was copying /dev/mtd2. That could be very
system specific, and it misses any changes made from elsewhere
in the system.

This variable causes the u-boot environment to be written back
after writing the whole image. This will save the ethernet mac
which for systems which don't store it elsewhere.

Signed-off-by: Milton Miller <miltonm@us.ibm.com>

show more ...

40a360c228-May-2016 Brad Bishop <bradleyb@fuzziesquirrel.com>

Reorganize directory structure

Moving to directory per-application layout. This facilitates
building single applications which is useful in the Yocto build
environment since different applications

Reorganize directory structure

Moving to directory per-application layout. This facilitates
building single applications which is useful in the Yocto build
environment since different applications satisfy different OpenBMC
build requirements.

A number of issues are also addressed:
- All applications were pulling in libsystemd and the gdbus libs
irrespective of whether or not they were needed.
- gpio.o duplicated in every application - moved to libopenbmc_intf
- Added install target

Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...


/openbmc/skeleton/.gitignore
/openbmc/skeleton/Makefile
/openbmc/skeleton/Makefile.python
/openbmc/skeleton/bmcctl-barreleye/Makefile
/openbmc/skeleton/bmcctl-barreleye/control_bmc_barreleye.c
/openbmc/skeleton/bmcctl/Makefile
/openbmc/skeleton/bmcctl/control_bmc_obj.c
/openbmc/skeleton/boardvpd/Makefile
/openbmc/skeleton/boardvpd/board_vpd_obj.c
/openbmc/skeleton/configs/Barreleye.py
/openbmc/skeleton/configs/Firestone.py
/openbmc/skeleton/configs/Garrison.py
/openbmc/skeleton/configs/Makefile
/openbmc/skeleton/configs/Palmetto.py
/openbmc/skeleton/configs/setup.py
/openbmc/skeleton/fanctl/Makefile
/openbmc/skeleton/fanctl/fan_generic_obj.c
/openbmc/skeleton/flashbios/Makefile
/openbmc/skeleton/flashbios/flash_bios_obj.c
/openbmc/skeleton/gdbus.mk
/openbmc/skeleton/gdbus/codegen
/openbmc/skeleton/gdbus/interfaces/openbmc_intf.c
/openbmc/skeleton/gdbus/interfaces/openbmc_intf.h
/openbmc/skeleton/gdbus/xml/openbmc_intf.xml
/openbmc/skeleton/hacks/Makefile
/openbmc/skeleton/hacks/startup_hacks.sh
/openbmc/skeleton/hostwatchdog/Makefile
/openbmc/skeleton/hostwatchdog/host_watchdog_obj.c
/openbmc/skeleton/hwmon-barreleye/Makefile
/openbmc/skeleton/hwmon-barreleye/hwmons_barreleye.c
/openbmc/skeleton/hwmon/Makefile
/openbmc/skeleton/hwmon/hwmons_palmetto.c
/openbmc/skeleton/ledctl/Makefile
/openbmc/skeleton/ledctl/led_controller.c
/openbmc/skeleton/libopenbmc_intf/Makefile
/openbmc/skeleton/libopenbmc_intf/gpio.c
/openbmc/skeleton/libopenbmc_intf/gpio.h
/openbmc/skeleton/libopenbmc_intf/openbmc.h
/openbmc/skeleton/libopenbmc_intf/openbmc_intf.c
/openbmc/skeleton/libopenbmc_intf/openbmc_intf.h
/openbmc/skeleton/op-flasher/Makefile
/openbmc/skeleton/op-flasher/flasher_obj.c
/openbmc/skeleton/op-flasher/pflash/Makefile
/openbmc/skeleton/op-flasher/pflash/TODO
/openbmc/skeleton/op-flasher/pflash/arm_io.c
/openbmc/skeleton/op-flasher/pflash/ast-sf-ctrl.c
/openbmc/skeleton/op-flasher/pflash/ast.h
/openbmc/skeleton/op-flasher/pflash/ccan/Makefile.inc
/openbmc/skeleton/op-flasher/pflash/ccan/array_size/LICENSE
/openbmc/skeleton/op-flasher/pflash/ccan/array_size/_info
/openbmc/skeleton/op-flasher/pflash/ccan/array_size/array_size.h
/openbmc/skeleton/op-flasher/pflash/ccan/array_size/test/compile_fail-function-param.c
/openbmc/skeleton/op-flasher/pflash/ccan/array_size/test/compile_fail.c
/openbmc/skeleton/op-flasher/pflash/ccan/array_size/test/run.c
/openbmc/skeleton/op-flasher/pflash/ccan/build_assert/LICENSE
/openbmc/skeleton/op-flasher/pflash/ccan/build_assert/_info
/openbmc/skeleton/op-flasher/pflash/ccan/build_assert/build_assert.h
/openbmc/skeleton/op-flasher/pflash/ccan/build_assert/test/compile_fail-expr.c
/openbmc/skeleton/op-flasher/pflash/ccan/build_assert/test/compile_fail.c
/openbmc/skeleton/op-flasher/pflash/ccan/build_assert/test/compile_ok.c
/openbmc/skeleton/op-flasher/pflash/ccan/build_assert/test/run-BUILD_ASSERT_OR_ZERO.c
/openbmc/skeleton/op-flasher/pflash/ccan/built-in.o
/openbmc/skeleton/op-flasher/pflash/ccan/check_type/LICENSE
/openbmc/skeleton/op-flasher/pflash/ccan/check_type/_info
/openbmc/skeleton/op-flasher/pflash/ccan/check_type/check_type.h
/openbmc/skeleton/op-flasher/pflash/ccan/check_type/test/compile_fail-check_type.c
/openbmc/skeleton/op-flasher/pflash/ccan/check_type/test/compile_fail-check_type_unsigned.c
/openbmc/skeleton/op-flasher/pflash/ccan/check_type/test/compile_fail-check_types_match.c
/openbmc/skeleton/op-flasher/pflash/ccan/check_type/test/run.c
/openbmc/skeleton/op-flasher/pflash/ccan/container_of/LICENSE
/openbmc/skeleton/op-flasher/pflash/ccan/container_of/_info
/openbmc/skeleton/op-flasher/pflash/ccan/container_of/container_of.h
/openbmc/skeleton/op-flasher/pflash/ccan/container_of/test/compile_fail-bad-type.c
/openbmc/skeleton/op-flasher/pflash/ccan/container_of/test/compile_fail-types.c
/openbmc/skeleton/op-flasher/pflash/ccan/container_of/test/compile_fail-var-types.c
/openbmc/skeleton/op-flasher/pflash/ccan/container_of/test/run.c
/openbmc/skeleton/op-flasher/pflash/ccan/endian/LICENSE
/openbmc/skeleton/op-flasher/pflash/ccan/endian/_info
/openbmc/skeleton/op-flasher/pflash/ccan/endian/endian.h
/openbmc/skeleton/op-flasher/pflash/ccan/endian/test/compile_ok-constant.c
/openbmc/skeleton/op-flasher/pflash/ccan/endian/test/run.c
/openbmc/skeleton/op-flasher/pflash/config.h
/openbmc/skeleton/op-flasher/pflash/get_arch.sh
/openbmc/skeleton/op-flasher/pflash/io.h
/openbmc/skeleton/op-flasher/pflash/libflash/ffs.h
/openbmc/skeleton/op-flasher/pflash/libflash/libffs.c
/openbmc/skeleton/op-flasher/pflash/libflash/libffs.h
/openbmc/skeleton/op-flasher/pflash/libflash/libflash-priv.h
/openbmc/skeleton/op-flasher/pflash/libflash/libflash.c
/openbmc/skeleton/op-flasher/pflash/libflash/libflash.h
/openbmc/skeleton/op-flasher/pflash/libflash/test/Makefile
/openbmc/skeleton/op-flasher/pflash/libflash/test/test-flash.c
/openbmc/skeleton/op-flasher/pflash/pflash.c
/openbmc/skeleton/op-flasher/pflash/powerpc_io.c
/openbmc/skeleton/op-flasher/pflash/progress.c
/openbmc/skeleton/op-flasher/pflash/progress.h
/openbmc/skeleton/op-flasher/pflash/sfc-ctrl.c
/openbmc/skeleton/op-flasher/pflash/sfc-ctrl.h
/openbmc/skeleton/op-hostctl/Makefile
/openbmc/skeleton/op-hostctl/control_host_obj.c
/openbmc/skeleton/op-pwrctl/Makefile
/openbmc/skeleton/op-pwrctl/power_control_obj.c
/openbmc/skeleton/pciedetect/Makefile
/openbmc/skeleton/pciedetect/pcie_slot_present_obj.c
/openbmc/skeleton/pwrbutton/Makefile
/openbmc/skeleton/pwrbutton/button_power_obj.c
/openbmc/skeleton/py.mk
/openbmc/skeleton/pychassisctl/Makefile
/openbmc/skeleton/pychassisctl/chassis_control.py
/openbmc/skeleton/pychassisctl/setup.cfg
/openbmc/skeleton/pychassisctl/setup.py
/openbmc/skeleton/pydownloadmgr/Makefile
/openbmc/skeleton/pydownloadmgr/download_manager.py
/openbmc/skeleton/pydownloadmgr/setup.cfg
/openbmc/skeleton/pydownloadmgr/setup.py
/openbmc/skeleton/pyfanctl/Makefile
/openbmc/skeleton/pyfanctl/fan_control.py
/openbmc/skeleton/pyfanctl/setup.cfg
/openbmc/skeleton/pyfanctl/setup.py
Makefile
bmc_update.py
setup.cfg
setup.py
/openbmc/skeleton/pyhwmon/Makefile
/openbmc/skeleton/pyhwmon/hwmon.py
/openbmc/skeleton/pyhwmon/setup.cfg
/openbmc/skeleton/pyhwmon/setup.py
/openbmc/skeleton/pyinventorymgr/Makefile
/openbmc/skeleton/pyinventorymgr/inventory_items.py
/openbmc/skeleton/pyinventorymgr/setup.cfg
/openbmc/skeleton/pyinventorymgr/setup.py
/openbmc/skeleton/pyipmitest/Makefile
/openbmc/skeleton/pyipmitest/ipmi_debug.py
/openbmc/skeleton/pyipmitest/setup.cfg
/openbmc/skeleton/pyipmitest/setup.py
/openbmc/skeleton/pysensormgr/Makefile
/openbmc/skeleton/pysensormgr/sensor_manager2.py
/openbmc/skeleton/pysensormgr/setup.cfg
/openbmc/skeleton/pysensormgr/setup.py
/openbmc/skeleton/pystatemgr/Makefile
/openbmc/skeleton/pystatemgr/discover_system_state.py
/openbmc/skeleton/pystatemgr/goto_system_state.py
/openbmc/skeleton/pystatemgr/setup.cfg
/openbmc/skeleton/pystatemgr/setup.py
/openbmc/skeleton/pysystemmgr/Makefile
/openbmc/skeleton/pysystemmgr/setup.cfg
/openbmc/skeleton/pysystemmgr/setup.py
/openbmc/skeleton/pysystemmgr/system_manager.py
/openbmc/skeleton/pytools/Makefile
/openbmc/skeleton/pytools/gpioutil
/openbmc/skeleton/pytools/obmcutil
/openbmc/skeleton/pytools/setup.cfg
/openbmc/skeleton/pytools/setup.py
/openbmc/skeleton/rstbutton/Makefile
/openbmc/skeleton/rstbutton/button_reset_obj.c
/openbmc/skeleton/rules.mk
/openbmc/skeleton/sdbus.mk
/openbmc/skeleton/setup.cfg