summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common
Commit message (Collapse)AuthorAgeFilesLines
* Bump skeleton version for v1.0-stableAdriana Kobylak2016-07-011-1/+1
| | | | | | | Pick up fixes and the ability to update at runtime and get the bmc code update progress. Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* initfs: Store whiltelist in a directory of filesMilton Miller2016-06-303-5/+8
| | | | | | | | | | | | | | Change the whiltelist definition to be files in a directory instead of a single file. This will allow us to store which files should be saved in individual recipes and also supports comments in the whitelist. The actual split into separate files is deferred for prototyping what assistance classes should look like to make the whitelist (eg systemd service files); also the packages will need to be added to the package list for the initramfs image. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: whitelist: Sanitize obmc events whitelist entryMilton Miller2016-06-301-1/+1
| | | | | | | | | | Remove the trailing / so that the update script doesn't have to loop. It was determined the trailing slash confused the code that makes the save subdirectory. The update script was fixed but this removes the extra work needed. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: update: Sanitize whitelist directory entriesMilton Miller2016-06-301-2/+13
| | | | | | | | | | | | | | | | Repeatedly strip trailing "/" and "/." from whitelist entries and fail if an entry includes "/../", ends with "/..", or doesn't start with a "/". Also use the entries quoted to avoid any glob. It was noticed the save code was saving directories that ended in "/" into a subdirectory of the last component name. This was traced the the code creating the directory just stripping the last "/" and then copying to the directory. Choose to sanitize the entry where possible for ease of use verses a small performance penalty. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: update: handle no images to updateMilton Miller2016-06-301-2/+11
| | | | | | | | | | | Notify the user if image wildcard expansion fails instead of printing message about failing to find partition to flash. The update script errors with the message that it can't figure out what partition to flash for /run/initramfs/image-* if there are no images pending. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: init: add file for base optionsMilton Miller2016-06-301-1/+9
| | | | | | | | | | | | Allow an initrd image to include options for init while still allowing additional options to come from the kernel command line and/or u-boot environment variables. This will allow building a netboot image that can specify to run from RAM while allowing the command line to initiate debug or skip copying files from the read-write overlay file system. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: update: add --help messageMilton Miller2016-06-301-1/+19
| | | | | | | | Now that update is intended for use at runtime and not just by the init and shutdown scripts, add a short help message listing the options so people don't have to understand how to read shell. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: update: add check for image size vs mtd sizeMilton Miller2016-06-301-0/+17
| | | | | | | | | | | | The flashcp command will check the file size vs the partition size, so add a check when looking at images. Use stat -L -c "%s" to get the file size, and compare it to the mtd size from the sysfs size attribute. If this check is suppressed the enforcement is left to flashcp. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: update: check individual mtd partitions for mountsMilton Miller2016-06-301-5/+41
| | | | | | | | | | | | Instead of checking for any mtd device, only check mtd devices that are to be updated. Include child mtd devices when looking for mounted filesystems. If this check is suppressed flash updates are suppressed. Suppressing the check may be useful to verify a update could succeed at shutdown. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: update: add option to perform checks but skip actual updateMilton Miller2016-06-301-12/+19
| | | | | | | | | | | | | | Provide a way to check if update is likely to succeed without attempting actual updates. This will check the image names correspond to mtd partition names, and will be enhanced with additional checking for file size and individual partition mounts. This is not called --dry-run because it will still do file save and restore if those are enabled. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: update: Consistently add ERROR: and print to stderrMilton Miller2016-06-301-3/+7
| | | | | | | | | | Make sure all error messages start with the tag ERROR and its printed to stderr by creating an echoerr function. Previously one case had the file descriptors backwards in the redirection. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: update: Do not cause an error if no files were savedMilton Miller2016-06-301-1/+1
| | | | | | | | | If there were no files in the read-write overlay file system that were in the persistent file list, then the save directory will not be created and therefore not exist. Skip attempting copying the non-existent directory in that case to avoid the error message. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: update: Don't exec sh or sulogin on error just exit 1Milton Miller2016-06-301-17/+6
| | | | | | | | | | | | | | | When update was written it was exec'd from the shutdown script and hence took over pid 1. Since exiting in that environment was a panic situation, the script instead started a rescue shell with its output presumably on the console. The calling convention was updated to be a simple invocation in commit dbacf104885c ("obmc-initfs: run update as a sub-script") but the error handling was not updated. That error handling is now becoming a hindrance to use from additional environments so change it. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: shutdown: comment on update successMilton Miller2016-06-301-0/+8
| | | | | | | | | | | | | | Print an error from the shutdown script when the update fails. Update is changing to return codes when its preconditions are not met, so be more verbose about its success to provide a means to debug flash updates not occurring. We could add a sulogin or sushell but its not clear what would be desired here. If so the message should include "rmdir /oldroot to get a PID 1 shell" like /takever works in init. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* initfs: Fix recipe, remove unnecessary classMilton Miller2016-06-301-1/+0
| | | | | | | | | Because the recipe was named with trailing part init instead of initfs, the package didn't match the package name requiring PROVIDES, RPROVIDES and other bitbake workarounds. Fix the recipe name to match the package removing the overly verbose packaging. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* Bump versions for skeleton, IPMI, obmc-mapperAdriana Kobylak2016-06-244-3/+4
| | | | | | | | | | Pick changes for: Encoding firmware version in BCD format Handle floating point sensor values Performance improvements Extend the mapper service startup timeout Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Merge pull request #394 from vishwabmc/masterPatrick Williams2016-06-202-1/+15
|\ | | | | Update recipe and service file for phosphor-networkd
| * Update recipe and service file for phosphor-networkdvishwa2016-06-202-1/+15
| | | | | | | | | | | | | | | | Commit c69c3d3 for phosphor-netword introduced DNS support. This change will update the bitbake file to point to correct commit and also creates the service file to start DNS updater. Fixes openbmc/openbmc#134
* | Bump versions for skeleton, rest, inarp, eventAdriana Kobylak2016-06-185-5/+6
|/ | | | | | | | | | Bump recipe versions and add python dependencies. The rest-dbus recipe was adding pythong packages needed by other processes, so when rest-dbus was removed from the Barreleye image, these processes (skeleton and obmc-rest) would fail, so adding the python dependencies to those recipes. Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Move rest-dbus to development packageAdriana Kobylak2016-06-171-1/+6
| | | | | | | | The rest-dbus package is a lightweight REST interface intended for development debug. Classify it as a dev package so that it is easy to remove from production images. Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Add build time dependencies to python for skeletonBrad Bishop2016-06-151-1/+1
| | | | | | | | | | | | Skeleton now invokes python setuptools to install its python applications in a top level makefile, so a build time dependency on native-python is required. It should be noted that skeleton invoking python from make is an interim thing until its python applications get their own repository. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Merge pull request #326 from bradbishop/host-ipmidPatrick Williams2016-06-151-12/+9
|\ | | | | Add shared library versioning for host-ipmid-fru
| * Bump host-ipmid versionBrad Bishop2016-06-151-3/+4
| | | | | | | | | | | | | | This picks up a ipmi-fru-parser update that addresses a bitbake warning message about missing runtime shared library dependencies. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
| * Whitespace fixes for host-ipmid-fru recipeBrad Bishop2016-06-151-9/+5
| | | | | | | | | | | | | | | | No functional changes. Replace tab with spaces. Removed dead code. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* | Merge pull request #369 from bradbishop/pyphosphor-bumpPatrick Williams2016-06-153-4/+4
|\ \ | | | | | | Bump pyphosphor, host-ipmid versions
| * | Bump pyphosphor, host-ipmid versionsBrad Bishop2016-06-153-4/+4
| |/ | | | | | | | | | | | | This picks up a couple fixes that addresses non-standard DBUS naming conventions. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* | Add virtual workbook / config-in-skeleton classesBrad Bishop2016-06-152-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces a new abstraction 'skeleton-workbook' for representing a system configuration. At present it is pulled in by the skeleton recipe so the requirement on what is implemented by a package providing obmc-phosphor-workbook is something compatible with the existing System.py python modules in skeleton. Additionally this patch adds a new recipe for each system using a configuration file from skeleton today, and a class for common configuration. This enables a couple of things: - No need to patch skeleton.service for each system. - New systems don't have to put their configuration in the skeleton repository. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* | Bump skeleton versionBrad Bishop2016-06-151-14/+17
|/ | | | | | | | This bump picks up a refactored version of skeleton with a new directory layout, and a couple of hwmon regression fixes for the Barreleye system. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Turn on socket activation for rest-dbusBrad Bishop2016-06-133-5/+11
| | | | | | Defer starting of rest-dbus until a client connects. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Support multiple systemd service filesBrad Bishop2016-06-131-0/+0
| | | | | | | Enhance obmc-phosphor-systemd such that an array of service/template socket files in SYSTEMD_SERVICES_${PN} works. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Merge pull request #312 from bradbishop/ast2500Patrick Williams2016-06-137-26/+121
|\ | | | | initial ast2500 stubs
| * AST2500: Initial AST2500 BSP layerBrad Bishop2016-06-103-3/+3
| | | | | | | | | | | | | | | | | | The AST2500 is an ARM SOC made by Aspeed. This is only a stub; there are a couple missing bits of support from the kernel/uboot. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
| * Add a u-boot 2016.05 recipeBrad Bishop2016-06-103-0/+87
| | | | | | | | | | | | | | Adding a 2016.05 u-boot for the AST2500. AST2400 remains on 2013.07. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
| * Add a kernel 4.6 recipeBrad Bishop2016-06-101-0/+5
| | | | | | | | | | | | | | Adding a 4.6 kernel recipe for the AST2500. AST2400 remains on 4.4. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
| * AST2400: Set kernel preferred provider versionBrad Bishop2016-06-102-26/+28
| | | | | | | | | | | | In preparation for supporting AST2500 with a different branch. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
| * Add recipes-bsp to recipes.txtBrad Bishop2016-06-081-0/+1
| | | | | | | | | | | | This was missed when the u-boot recipe was added. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* | Bump phosphor recipe versionsAdriana Kobylak2016-06-107-7/+7
|/ | | | | | | | | Enable one-time vs permanent host boot option Handle endianness in IPMI eSEL function Improve IPMI error handling Add IPMI Travis CI Fix host hanging due to inventory upload Performance improvements
* meta-phosphor: Move to openbmc-20160606-1Joel Stanley2016-06-061-1/+1
| | | | | | | | - Stable release 4.4.12 - Jeremy's i2c completion fix - Ken's power button debounce code for Barreleye Signed-off-by: Joel Stanley <joel@jms.id.au>
* Merge pull request #275 from bradbishop/out-of-treePatrick Williams2016-06-061-0/+10
|\ | | | | Re-enable out of tree device trees
| * Re-enable out of tree device treesBrad Bishop2016-05-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | This snippet was mistakenly removed with 8ef9fee. Note that this isn't a matter of policy, it simply enables the option to do it. The in-tree device tree is still the default. This enables things like workbook or schematic generated device trees. It also addresses the inevitable fact that the upstream kernel will probably not want device trees for every board in the world. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* | Add autostart policy for these services of the openbmc repo.Nan Li2016-06-0617-0/+17
| | | | | | | | Signed-off-by: Nan Li <bjlinan@cn.ibm.com>
* | Merge pull request #305 from kc8apf/i2c_tools_srcuriPatrick Williams2016-05-281-1/+2
|\ \ | | | | | | Fix i2c-tools SRCURI syntax
| * | Fix i2c-tools SRCURI syntaxRick Altherr2016-05-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Override syntax (FOO_append, FOO_prepend) doesn't insert spaces to separate the append from the original value. This caused the two URIs to be incorrectly merged into one and caused a download failure. It happens that the fallback in that case is to use the Yocto mirror so it kept working other than emitting a warning. Using =+ prepend syntax correctly adds the separating space. Change-Id: I36f48cb53aa29ea9a4bde738c975784f6ce24250 Signed-off-by: Rick Altherr <raltherr@google.com>
* | | Pin host-ipmi-hw-example to a specific Git SRCREVRick Altherr2016-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AUTOREV assumes you can reach the remote repository to lookup the most recent commit. When setting up a hermetic build, that will fail even though a local mirror tarball exists. Pinning the recipe to a specific revision skips the lookup and just checks out the specified commit from the local mirror tarball. Change-Id: I05cfa67dfcd321ff28a93453df5ce1c82666e6c1 Signed-off-by: Rick Altherr <raltherr@google.com>
* | | Merge pull request #304 from mdmillerii/update-ubootPatrick Williams2016-05-261-2/+1
|\ \ \ | |/ / |/| | Update u-boot to pick up memory corruption fix
| * | meta-phosphor/u-boot: Move to newer versionJoel Stanley2016-04-041-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes from Milton for u-boot leaving ethernet device running after loading linux: net: aspeednic: Create aspeed_write_hwaddr from set_mac_address net: aspeednic: Do not start hardware in initialize net: aspeednic: Remove extra spaces before assignments net: aspeednic: Do not fill in a random MAC address net: Implement random ethaddr fallback in eth.c Backports from upstream from me to support building under modern GCC versions: common: main.c: make show_boot_progress __weak ARM:asm:io.h use static inline arm: board: use __weak net: Implement random ethaddr fallback in eth.c compiler*.h: sync include/linux/compiler*.h with Linux 4.5-rc6 Signeo-off-by: Joel Stanley <joel@jms.id.au>
* | | Bump IPMI, networkd, REST, and skeleton versionsv0.8.1Adriana Kobylak2016-05-246-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pick up: Fix FRU VPD error messages Add REST interface to update BMC via local file Add Barreleye motherboard VPD to the inventory Handle parallel IPMI SEL reservation requests Add support to stream the journald log to a remote syslog Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* | | Bump skeleton versionAdriana Kobylak2016-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix OCC hardcoded sensor Add adm1278 sensors Fix preserving u-boot env variables during BMC updates Add gpio Q7 handling Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* | | Release openbmc-20160521-1Joel Stanley2016-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | | - Enable shmem in config, fixing qemu booting - Add latest version of Yi's OCC hwmon driver to support barreleye Signed-off-by: Joel Stanley <joel@jms.id.au>
* | | Bump pyphosphor versionBrad Bishop2016-05-191-1/+1
| | | | | | | | | | | | | | | | | | This picks up a new enum for dbus - UnknownService. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud