summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes
AgeCommit message (Collapse)AuthorFilesLines
2018-08-16Use ColdFire FSI interface on Palmetto (P8)Joel Stanley1-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>
2018-08-13phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I5a9f2d8a7fdc37fe65d9bd3408162fb5f88db372 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-07-27recipes-phoshor: fans: add phosphor-pid-controlPatrick Venture1-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>
2018-07-25Check size of the firmware image partsAlexander Filippov1-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>
2018-07-24Add shadow package to the rootfsTom Joseph1-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>
2018-07-17image_type_phosphor: refactor signatures generationLei YU1-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>
2018-07-17phosphor-software-manager: ubifs_layout package configLei YU1-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>
2018-07-16Add manifest and signature for fixed flash layoutLei YU1-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>
2018-07-16phosphor-software-manager: Create new UBI bbclassAdriana Kobylak1-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>
2018-06-28phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ib1abd7f69a8d95bf3ec590e8d55df47eb36d6c65 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-06-05skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: If66c256832291777542563ebe960fb59ef62be3c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-30phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ib7a8b84c0d0e1d7a6cb04ab13b9fad5ad036d52e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-30phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I2de4eb8be9e800031baa5c811ddf0aeef87bcd5e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-24phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ib9e1e533d0500170a3d99df47826ec8eaece8461 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-22image_types_phosphor: Add UBOOT_SUFFIX defaultBrad Bishop1-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>
2018-05-15phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ibfa2b63c28c44e554ddc442f9da5eddf93e03c19 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-16mrw-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Iaa61c468bc5deab50c2161e8608c8e6f8525d561 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-11skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ie97d6c5610eddc15baffc2404e5944c6d53b9777 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-10phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I8d78638cda396a75023d08b5b77d8b1d0810638e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-10skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I53153c4efca38ae4931196d1da9897b555d542f0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-06phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Iab5aab58848979c304378dd8737e6b3a914cf704 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-06skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I4eeee774c5cb495fafe7ada2ba61f69cb407b042 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-04phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I0beb80e564dc3b280ac6d10a5e983055e0b5523b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-04Remove ipmi distro feature, virtualBrad Bishop1-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>
2018-04-04logging: virtual refactoringBrad Bishop1-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>
2018-04-03phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I8366fab3ff92e3ad8a42eaf251929c9cc0978978 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-03skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I3bc4ba841168bed8cee3cda19a8113f9326e9b99 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-30skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ib7726a5249f0d219b888d50ac42b0fa7b40d3c5c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-30Add image signing framework and open keysEddie James1-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>
2018-03-30image_types_phosphor: drop overlayBrad Bishop1-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>
2018-03-30image_types_phosphor: split make_tar_of_imagesBrad Bishop1-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>
2018-03-29Revert "meta-phosphor: disable 'uninative' for RHEL6 support"Brad Bishop1-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>
2018-03-28phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I730378193b83becaa03dcc9484638d716b12a1fc Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-23mrw-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I1fa024b3d209d6cc55d6fc1cb70c8aa32a8fc9d1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-23Clean up stale obmc-phosphor-utils referencesBrad Bishop2-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
2018-03-23phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Iab3a24bc5104e8d6ec32eed8b61151c765d75cc0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-15Make host-check a part of host state functionAndrew Geissler1-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>
2018-03-15mrw-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I1730c97774addf56d7c3928d8c814b06644f2c7f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-15phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ibc37bf5129324cee1e32300d1691a4a2c2c71dca Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-13Yocto 2.3Brad Bishop1-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
2018-03-13Convert obmc-ubi-fs to a distro featureBrad Bishop2-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>
2018-03-13skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I4be962064668c937fce34b7814378c86a2dc994c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-02Increase default size of UBI read-write volumeAdriana Kobylak1-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>
2018-03-01phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ied6bfe428fe5bc6a19fdb3adf606cbc18b245b3e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-01skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Idcbe38497ff10223faa931853c697c3ae405af0b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-28Remove legacy settings serviceAndrew Geissler1-4/+2
xyz.openbmc_project.Settings has replaced this function Resolves openbmc/openbmc#2339 Change-Id: Ifec6a2fda088c4631e3835d3276a54e09b5d7147 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-27mrw-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ib78452fd969b0b2718551a8ff1b6a279624ceb6a Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-23image_version: Add missing os-release dependencyBrad Bishop1-1/+3
Any recipe inheriting image_version must have a dependency on os-release to ensure the sysroot is populated before attempting to get the version out of it. Also read the version out of the target sysroot rather than the host sysroot. os-release does not have a native variant. Tested: Built image and verified in witherspoon qemu Change-Id: I8d79280a75577eff48314f0f57c0015e1d6738ef Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-02-23phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: If87a597dd1298289846240c5c566e77ccb1bc770 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-21phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I19a7253fdeabbef63bd7421ea50843e74c8c7f8b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>