summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/classes
Commit message (Collapse)AuthorAgeFilesLines
* phosphor-networkd: srcrev bump ad21fc2a86..189d44edddAndrew Geissler2018-08-311-1/+1
| | | | | | | | | | | Patrick Venture (1): reorder headers (From meta-phosphor rev: c37be581778d36913e5398928e91dcc64214f791) Change-Id: I6d8819481f422bbba531709bc96148a94374f58f Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* skeleton: srcrev bump 5da4f4fc17..d7a8ba5b58Brad Bishop2018-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adriana Kobylak (5): fan_control: Move to using xyz.openbmc_project.Sensors configs: Remove BootProgressSensor configs: Remove the OperatingSystemStatus sensor configs: Remove BootCountSensor configs: Remove TurboAllowedSensor Matt Spinler (16): Add function to load in the GPIO data from JSON. Add documentation on GPIO JSON Use cJSON to read the GPIO configuration Use cJSON to get the GPIO definitions Fill in function to convert GPIO pin to a number Fill in the function that finds the GPIO base Remove host control GPIOs from GpioConfigs Call gpio_inits_done() from GPIO consumers Remove unnecessary args from GPIO functions Point obmcutil chassiskill code at the GPIO JSON Remove the GPIOs from Witherspoon.py Remove the GPIOs from Zaius.py Remove the GPIOs from Lanyang.py Remove the GPIOs from Palmetto.py Remove the GPIOs from Romulus.py Remove the GPIOs from S2600wf.py (From meta-phosphor rev: a3c2e523e1cd83b088cb70ccd6d3fdc697785c1f) Change-Id: I847dfae765dfea67738bc93bd589621ab9249849 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* phosphor-software-manager: Add ACTIVE_BMC_MAX_ALLOWED configLei YU2018-08-281-0/+2
| | | | | | | | | | | | | | | | | | For static flash layout, configure ACTIVE_BMC_MAX_ALLOWED to 1, because it has only one active BMC image; For ubi-fs, configure ACTIVE_BMC_MAX_ALLOWED to 2, because ubi-fs assumes there are two BMC images by default. Resolves openbmc/phosphor-bmc-code-mgmt#2 Tested: Verify that ACTIVE_BMC_MAX_ALLOWED is set to 1 for Romulus build, and set to 2 for Witherspoon build. (From meta-phosphor rev: bf3edf1ce09f19836c38c2dd43ab4e50664fc46e) Change-Id: I60e49c14bda25547fde9a2308470ed164ebbd249 Signed-off-by: Lei YU <mine260309@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* phosphor-software-manager: Add MEDIA_DIR configLei YU2018-08-281-0/+10
| | | | | | | | | | | | | | | | Configure MEDIA_DIR to /run/media for static flash layout; Configure MEDIA_DIR to /media which is default for ubi-fs. Resolves openbmc/phosphor-bmc-code-mgmt#3 Tested: Verify that the MEDIA_DIR is set to /run/media for Romulus build, and set to /media for Witherspoon build. (From meta-phosphor rev: f43eb6ee89433e4898cbdb1532963f038419c003) Change-Id: If96c2ee135d314bd6de0cd745c6a871b75183fe1 Signed-off-by: Lei YU <mine260309@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Make obmc-flash-bmc-setenv common for static and ubiLei YU2018-08-281-6/+0
| | | | | | | | | | | | | | | Static flash layout will use obmc-flash-bmc-setenv service to set factory-reset env in u-boot, so make it common for both static and ubi flash layout. Tested: Build the image and verify the service and the obmc-flash-bmc script exist in both static and ubi builds. (From meta-phosphor rev: b2c944f13b0f891a7f569f3a9608e3c0de27a462) Change-Id: Ia067cebfe35a9d2d7d2af8b4d1bd4cb5717372ae Signed-off-by: Lei YU <mine260309@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Use ColdFire FSI interface on Palmetto (P8)Joel Stanley2018-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Moves Palmetto to use the kernel API, and the ColdFire master driver. This change bumps the kernel (with device tree changes) and the skeleton repository for a corresponding op-hostctl (host_control.exe) change. Palmetto is the only system in the tree using this code. Any out of tree systems (such as other P8s) must switch to using the kernel interface as well. Skeleton changes: Joel Stanley (1): hostctl: Move to kernel FSI interface Linux changes: Benjamin Herrenschmidt (2): ARM: dts: aspeed: Add Power8 CFAM description for use by Palmetto ARM: dts: aspeed: Palmetto system can use coprocessor for FSI Change-Id: I43aada22c9d7b21dc24bd5aae3c4dcb77bdaaa8f Signed-off-by: Joel Stanley <joel@jms.id.au>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-08-131-1/+1
| | | | | Change-Id: I5a9f2d8a7fdc37fe65d9bd3408162fb5f88db372 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* recipes-phoshor: fans: add phosphor-pid-controlPatrick Venture2018-07-271-0/+2
| | | | | | | | | Initial phosphor-pid-control recipe. This installs the swampd daemon. It is expected that each platform will provide their own start-up service at present because of current dependencies on dbus. Change-Id: I5ea4b31a99580b42f33488878cc1ec97dd94e582 Signed-off-by: Patrick Venture <venture@google.com>
* Check size of the firmware image partsAlexander Filippov2018-07-251-13/+43
| | | | | | | | | | | | | | Prevent building unbootable firmware images. Resolves: openbmc/openbmc#3314 Tested: I checked builds for `palmetto` and `romulus`. To reproduce the problem I appended a big file to initramfs by modify `meta-phosphor/common/recipes-phosphor/initfs/obmc-phosphor-initfs.bb`. The building process failed with message about too large initramfs image. Change-Id: I0176e9c47a9cb26ce8ba588794e681b6426d567d Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
* Add shadow package to the rootfsTom Joseph2018-07-241-0/+4
| | | | | | | | The binaries of the shadow package like useradd, groupadd is needed for the user management functionality. Change-Id: Idfe506793ac8f452ad4de5589f0de00efaf4ce3b Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* image_type_phosphor: refactor signatures generationLei YU2018-07-171-12/+12
| | | | | | | | | | | There are duplicated code about generating signatures. Combine the duplicated code into a bash function so the code is cleaner and easier to read. Tested: Generated tarball contains the expected files. Change-Id: I4144633f36291329dfc4008bb73482fb5a0d43c1 Signed-off-by: Lei YU <mine260309@gmail.com>
* phosphor-software-manager: ubifs_layout package configLei YU2018-07-171-0/+2
| | | | | | | | | | | | Add ubifs_layout package config and pass --enable-ubifs_layout configuration option when ubi-fs distro feature is enabled. Tested: Verify --enable-ubifs_layout is passed to phosphor-software-manager's config for Witherspoon; And it is not passed for Romulus. Change-Id: I6daa0c565d2c2be980b6292e62654c0a86a69bbc Signed-off-by: Lei YU <mine260309@gmail.com>
* Add manifest and signature for fixed flash layoutLei YU2018-07-161-4/+28
| | | | | | | | | | | | | | In generated fixed flash layout tarball, add manifest and signature which can be used for code update by phosphor-software-manager. Tested: Verify the generated static tar contains image(s), manifest, public key and their signatures. Verify that all.tar can be used to do code update by both legacy method (org.openbmc.control.BmcFlash.service) and phosphor-software-manager. Change-Id: Ib6880c8a6d456cce6b0fd47116960d1d448d5d50 Signed-off-by: Lei YU <mine260309@gmail.com>
* phosphor-software-manager: Create new UBI bbclassAdriana Kobylak2018-07-161-0/+49
| | | | | | | | | | | | | | | Remove from the base phosphor-software-manager recipe everything that is conditional in the ubi-fs distro feature and put it in its own class. This allows for the base recipe to be cleaner and for future specific packages to be added conditionally. Tested: Built witherspoon and romulus and verified only witherspoon contained the UBI-specific files. Booted a witherspoon and a romulus qemu. Change-Id: I2a783abc6152aadcf212a35f0060409f8dac2241 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-06-271-1/+1
| | | | | Change-Id: Ib1abd7f69a8d95bf3ec590e8d55df47eb36d6c65 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* skeleton-rev.bbclass: bump versionAndrew Geissler2018-06-051-1/+1
| | | | | Change-Id: If66c256832291777542563ebe960fb59ef62be3c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-05-301-1/+1
| | | | | Change-Id: Ib7a8b84c0d0e1d7a6cb04ab13b9fad5ad036d52e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-05-301-1/+1
| | | | | Change-Id: I2de4eb8be9e800031baa5c811ddf0aeef87bcd5e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-05-241-1/+1
| | | | | Change-Id: Ib9e1e533d0500170a3d99df47826ec8eaece8461 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* image_types_phosphor: Add UBOOT_SUFFIX defaultBrad Bishop2018-05-221-0/+2
| | | | | | | | Do not rely on the base configuration to set this. Change-Id: I537f08a1834fb2d2a5fd2f73ca73cfc0566464cb Tested: Built a witherspoon image Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-05-151-1/+1
| | | | | Change-Id: Ibfa2b63c28c44e554ddc442f9da5eddf93e03c19 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* mrw-rev.bbclass: bump versionAndrew Geissler2018-04-161-1/+1
| | | | | Change-Id: Iaa61c468bc5deab50c2161e8608c8e6f8525d561 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* skeleton-rev.bbclass: bump versionAndrew Geissler2018-04-111-1/+1
| | | | | Change-Id: Ie97d6c5610eddc15baffc2404e5944c6d53b9777 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-04-101-1/+1
| | | | | Change-Id: I8d78638cda396a75023d08b5b77d8b1d0810638e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* skeleton-rev.bbclass: bump versionAndrew Geissler2018-04-101-1/+1
| | | | | Change-Id: I53153c4efca38ae4931196d1da9897b555d542f0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-04-061-1/+1
| | | | | Change-Id: Iab5aab58848979c304378dd8737e6b3a914cf704 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* skeleton-rev.bbclass: bump versionAndrew Geissler2018-04-061-1/+1
| | | | | Change-Id: I4eeee774c5cb495fafe7ada2ba61f69cb407b042 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-04-041-1/+1
| | | | | Change-Id: I0beb80e564dc3b280ac6d10a5e983055e0b5523b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Remove ipmi distro feature, virtualBrad Bishop2018-04-041-1/+6
| | | | | | | | | | | | | We don't need a distro feature for net IPMI at this point, so simplify things a bit. Additionally, remove the net-ipmi virtual since we don't have any alternative implementations today and it just adds unnecessary complexity. Tested: Built a witherspoon image and validated manifest Change-Id: I2784f13b3e8897e855ac128422081ec3ee207bf1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* logging: virtual refactoringBrad Bishop2018-04-041-1/+1
| | | | | | | | | | | | Remove the phosphor-logging virtuals. They were unused. Add a logging packagegroup so other layers can add additional logging applications predicated on the logging distro feature being enabled. Change-Id: Ic82843cb2b1229df55005bad93576c14f468073b Tested: Built witherspoon, palmetto and qemu images Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-04-031-1/+1
| | | | | Change-Id: I8366fab3ff92e3ad8a42eaf251929c9cc0978978 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* skeleton-rev.bbclass: bump versionAndrew Geissler2018-04-031-1/+1
| | | | | Change-Id: I3bc4ba841168bed8cee3cda19a8113f9326e9b99 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* skeleton-rev.bbclass: bump versionAndrew Geissler2018-03-301-1/+1
| | | | | Change-Id: Ib7726a5249f0d219b888d50ac42b0fa7b40d3c5c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Add image signing framework and open keysEddie James2018-03-301-1/+42
| | | | | | | | | | | | | | | | | | | | | | In order to secure the BMC, we need to sign all the images and include a public key in the package with which to verify future update images. This commit adds a framework to sign the image files with an open private key and generates a corresponding public key added to the image. This isn't secure by itself (since the private key is available), but additional changes can easily provide their own private key, creating a secure BMC. To use a secure private key: export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SIGNING_KEY" SIGNING_KEY=/path/to/secure/key bitbake obmc-phosphor-image Resolves openbmc/openbmc#2835 Resolves openbmc/openbmc#2836 Resolves openbmc/openbmc#2837 Change-Id: I28919b7de54e3a32e5efcbb4522fb39731e68384 Signed-off-by: Eddie James <eajames@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* image_types_phosphor: drop overlayBrad Bishop2018-03-301-3/+2
| | | | | | | | | | | | The overlay image type doesn't have any code behind it and thus selecting it in IMAGE_FSTYPES would result in unexpected behavior. An overlay image type still exists but it was renamed to mtd-static in an earlier refactor, and this cleanup was omitted. Tested: Built witherspoon and palmetto images Change-Id: I7eb41afcf25ae2d251bf671dd0e5a18e1064f7c4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* image_types_phosphor: split make_tar_of_imagesBrad Bishop2018-03-301-7/+13
| | | | | | | | | | | Move image symlink creation for phosphor-bmc-code-mgmt out of make_tar_of_images into its own function, so we can run additional code in between symlink creation and tar file creation. Tested: Built witherspoon and palmetto images Change-Id: I3025db6bb788d7c2bcf5c2a400af647c7c957164 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Revert "meta-phosphor: disable 'uninative' for RHEL6 support"Brad Bishop2018-03-291-4/+0
| | | | | | | | | | | Drop support for RHEL6 which has been unsupported by Poky since 2.1. This reverts commit c83cf1ce570d4771b1e42ded308bf4110e70408b. Tested: Built a witherspoon image Change-Id: Idd8dda940c72a69a7a228733c34018f906ec9b8f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-03-281-1/+1
| | | | | Change-Id: I730378193b83becaa03dcc9484638d716b12a1fc Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* mrw-rev.bbclass: bump versionAndrew Geissler2018-03-231-1/+1
| | | | | Change-Id: I1fa024b3d209d6cc55d6fc1cb70c8aa32a8fc9d1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Clean up stale obmc-phosphor-utils referencesBrad Bishop2018-03-232-0/+3
| | | | | | | | | | | There were a number of places that inherited this class but did not use it. A number of classes that did use it did not inherit it. This was possible because the class was pulled in by the distro configuration but that has been removed here as well. Tested: Built and verified a witherspoon image Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I73511cdcc609875b4fe016967c1b84c5200fb703
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-03-231-1/+1
| | | | | Change-Id: Iab3a24bc5104e8d6ec32eed8b61151c765d75cc0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Make host-check a part of host state functionAndrew Geissler2018-03-151-3/+0
| | | | | | | | | In the previous review it was noted that it didn't make much sense for host-check to be it's own provided function in OpenBMC. It's more of a recommended piece of the base host state function. Change-Id: I024472e96ea00f411e8348e0221c210f84700019 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* mrw-rev.bbclass: bump versionAndrew Geissler2018-03-151-1/+1
| | | | | Change-Id: I1730c97774addf56d7c3928d8c814b06644f2c7f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-03-151-1/+1
| | | | | Change-Id: Ibc37bf5129324cee1e32300d1691a4a2c2c71dca Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Yocto 2.3Brad Bishop2018-03-121-10/+0
| | | | | | | | | Move OpenBMC to Yocto 2.3(pyro). Tested: Built and verified Witherspoon and Palmetto images Change-Id: I50744030e771f4850afc2a93a10d3507e76d36bc Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Resolves: openbmc/openbmc#2461
* Convert obmc-ubi-fs to a distro featureBrad Bishop2018-03-122-4/+5
| | | | | | | | | | | | | | | As with MRW the use of the UBI image scheme is distro policy. Convert the existing machine feature to a distro feature. Enable the new distro feature on the systems that use it(Witherspoon). Add a distro override and fix-up MF checks to use this override instead for improved readability. Tested: Built a Witherspoon image and validated image Change-Id: I8ab03115bbfc2ecc77cff5c9eb8628903ae88051 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* skeleton-rev.bbclass: bump versionAndrew Geissler2018-03-131-1/+1
| | | | | Change-Id: I4be962064668c937fce34b7814378c86a2dc994c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Increase default size of UBI read-write volumeAdriana Kobylak2018-03-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | The default size of the UBI read-write volume is currently set to 4MB. There are no plans to store more than one BMC rootfs image on the chip so in a 32MB flash chip, accounting for the current rootfs image size of ~15MB with plans to grow to ~20MB with the addition of redfish and other packages, it is safe to increase the read-write volume size to 6MB since the current size is already almost completely taken up if there are multiple error logs / dumps on the system. In addition, make the size configurable from a recipe so that the size can be changed in a per-system basis. And during code update, check the current size and update it if it's different, this allows systems to be able to be resized to a new size by performing factory reset after a code update that sets the new size. Tested: - Booted on QEMU and verified non-ubi system (romulus) retains the current 4MB read-write volume, and ubi system (witherspoon) has a 6MB volume. - Code updated to an image that has these changes and verified the rwfs_size env variable changes to 6MB, and that a subsequent factory reset rebuilds the volume with size 6MB. Change-Id: I995eb560c1bd87ee95712c731e3d6e55bc0b2735 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* phosphor-networkd-rev.bbclass: bump versionAndrew Geissler2018-03-011-1/+1
| | | | | Change-Id: Ied6bfe428fe5bc6a19fdb3adf606cbc18b245b3e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* skeleton-rev.bbclass: bump versionAndrew Geissler2018-03-011-1/+1
| | | | | Change-Id: Idcbe38497ff10223faa931853c697c3ae405af0b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
OpenPOWER on IntegriCloud