summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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-302-5/+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>
* image_types_uboot: Don't truncate when assembling flashMilton Miller2016-06-301-5/+5
| | | | | | | | | | The generate_flash_image step was creating a file then using dd to fill in the pieces, but missed adding the conv=notrunc flag, so each step was shortening the file to its output. Add the forgotten conversion flag to each dd command. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
* Merge pull request #414 from anoo1/0624v1.0.1Patrick Williams2016-06-264-3/+4
|\ | | | | Bump versions for skeleton, IPMI, obmc-mapper
| * 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 #402 from bradbishop/pflash-buildPatrick Williams2016-06-212-0/+29
|\ | | | | Add pflash parallel build fix patch
| * Add pflash parallel build fix patchBrad Bishop2016-06-212-0/+29
|/ | | | | | This resolves https://github.com/openbmc/openbmc/issues/325 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.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
* | Merge pull request #393 from anoo1/0617v1.0Patrick Williams2016-06-207-7/+8
|\ \ | |/ |/| Bump versions for skeleton, rest, inarp, event
| * Bump versions for skeleton, rest, inarp, eventAdriana Kobylak2016-06-187-7/+8
|/ | | | | | | | | | 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>
* Merge pull request #379 from anoo1/portPatrick Williams2016-06-173-1/+11
|\ | | | | Remove rest-dbus from Barreleye
| * Remove rest-dbus from Barreleye imageAdriana Kobylak2016-06-171-0/+4
| | | | | | | | | | | | | | | | The rest-dbus is a package intended for development debug. Remove it from the Barreleye image now that Barreleye is entering production. The rest-dbus packages in part of the development package. Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
| * Move rest-dbus to development packageAdriana Kobylak2016-06-172-1/+7
|/ | | | | | | | 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>
* Merge pull request #373 from bradbishop/witherspoonPatrick Williams2016-06-1715-0/+208
|\ | | | | support for building witherspoon images
| * Add 4.7 kernel recipeBrad Bishop2016-06-161-0/+6
| | | | | | | | | | | | | | Using this kernel tree for Witherspoon until the necessary support is backported to 4.6 or 4.7 is released. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
| * Initial Witherspoon layerBrad Bishop2016-06-1614-0/+202
|/ | | | | | | | | | Witherspoon is an IBM branded OpenPOWER system aimed at the HPC market. It should be noted that this doesn't boot cleanly with the current 4.6 branch. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Merge pull request #371 from bradbishop/skeleton-pythonPatrick Williams2016-06-162-1/+3
|\ | | | | Add build time dependencies to python for skeleton
| * Add build time dependencies to python for skeletonBrad Bishop2016-06-152-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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 #372 from bradbishop/garrisonPatrick Williams2016-06-167-28/+20
|\ \ | |/ |/| Fix Garrison/Firestone build breaks
| * Fix Garrison/Firestone build breaksBrad Bishop2016-06-157-28/+20
|/ | | | | | | A number of skeleton patches no longer applied due to 40a360c and 54decc8. 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>
* | | Merge pull request #324 from bradbishop/dir-structurePatrick Williams2016-06-1517-60/+89
|\ \ \ | | | | | | | | Add virtual workbook / config-in-skeleton classes
| * | | Add virtual workbook / config-in-skeleton classesBrad Bishop2016-06-1514-43/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | Add OBMC_IMAGE_EXTRA_INSTALL variableBrad Bishop2016-06-143-6/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this patch packagegroup-core-boot was not being pulled in. core-boot is what brings in the init_manager (systemd) but somehow systemd was added as a dependency by OE for the skeleton package so the missing core-boot packagegroup went unnoticed. core-boot was not being pulled in because of an assignment to IMAGE_INSTALL in the global configuration. Yocto core provides a mechanism to do the same thing safely - CORE_IMAGE_EXTRA_INSTALL; use this and also adopt a similar approach for adding extra packages to image recipes using obmc-phosphor-image. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* | | Merge pull request #331 from kc8apf/gitignore-buildsPatrick Williams2016-06-151-1/+1
|\ \ \ | |_|/ |/| | Ignore build*, not just 'build'
| * | Ignore any build directory, not just 'build'Rick Altherr2016-06-141-1/+1
| |/ | | | | | | | | Change-Id: I958fb5d0d5cff35829b22b5d3e15e2d94356e62c Signed-off-by: Rick Altherr <raltherr@google.com>
* | Merge pull request #368 from bradbishop/upload-statePatrick Williams2016-06-152-11/+0
|\ \ | |/ |/| Remove openpower inventory upload systemd startup
| * Remove openpower inventory upload systemd startupBrad Bishop2016-06-142-11/+0
|/ | | | | | | | The launching of this application is temporarily being moved to the skeleton state management framework to avoid race conditions with the host power-on process. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Merge pull request #323 from bradbishop/rest-dbus-socketPatrick Williams2016-06-135-14/+58
|\ | | | | Turn on socket activation for rest-dbus
| * 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-132-9/+47
|/ | | | | | | 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 #316 from bradbishop/pflash-bumpPatrick Williams2016-06-137-4/+428
|\ | | | | Bump pflash version
| * Bump pflash versionBrad Bishop2016-06-087-4/+428
| | | | | | | | | | | | | | | | | | Move to pflash 5.2.2. Pick up a couple patches that allow building a shared library and dynamically linked pflash binary. Add pflash to SDK. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* | Merge pull request #312 from bradbishop/ast2500Patrick Williams2016-06-1334-46636/+475
|\ \ | | | | | | initial ast2500 stubs
| * | AST2500: Add AST2500 evaluation board layerBrad Bishop2016-06-107-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | The AST2500 is an ARM SOC made by Aspeed. This layer is a stub; there are a couple missing bits of support from the kernel and u-boot. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
| * | AST2500: Initial AST2500 BSP layerBrad Bishop2016-06-1011-3/+279
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | AST2400: Set u-boot preferred provider versionRick Altherr2016-06-101-0/+2
| | | | | | | | | | | | | | | | | | In preparation for supporting AST2500 with a different branch. Signed-off-by: Rick Altherr <raltherr@google.com>
| * | AST2400: Use Palmetto as the default uboot targetBrad Bishop2016-06-101-1/+1
| | | | | | | | | | | | | | | | | | | | | An evaluation board target would be nice here but at least Palmetto is an improvement over the generic ARM target. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud