Age | Commit message (Collapse) | Author | Files | Lines |
|
Bump IPMI version for v1.0-stable
|
|
Pick up support for versioned libraries.
Closes openbmc/openbmc#423
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
Bump skeleton version for v1.0-stable
|
|
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>
|
|
Update flash update to be useable at runtime for v1.0-stable
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Create a cpio containing the base read-only image, and create a
single combined initramfs image consisting of the image-rofs
and the existing initramfs.
There has been a desire to have a self contained netboot image present
for developer testing and experimentation. The init script already
supports having the rofs layer sourced from a file packaged into the
initramfs, and will use it if found.
While this image will not fit in the current flash layout in
the initrd space, it will load over the network. This method
leaves the squashfs compressed in RAM, decompreses is invoked as
needed at runtime, trading boot time and memory space for runtime
decompress on demand. This will also give similar file access
overheads and performance to reading the data from flash.
Because the rofs is already compressed with xz compression,
don't try to compress this cpio (the cpio packaging adds about 40
bytes of ascii before and after, plus some alignment padding).
Because the kernel requires uncompressed cpios to appear on a
4-byte boundary with 0 byte fill between archives, place this
cpio first in the combined image.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Bump versions for skeleton, IPMI, obmc-mapper
|
|
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>
|
|
Add pflash parallel build fix patch
|
|
This resolves https://github.com/openbmc/openbmc/issues/325
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Update recipe and service file for phosphor-networkd
|
|
Bump versions for skeleton, rest, inarp, event
|
|
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 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>
|
|
Remove rest-dbus from Barreleye
|
|
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>
|
|
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>
|
|
support for building witherspoon images
|
|
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>
|
|
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>
|
|
Add build time dependencies to python for skeleton
|
|
Fix Garrison/Firestone build breaks
|
|
A number of skeleton patches no longer applied due to 40a360c
and 54decc8.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
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>
|
|
Add shared library versioning for host-ipmid-fru
|
|
Bump pyphosphor, host-ipmid versions
|
|
Add virtual workbook / config-in-skeleton classes
|
|
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>
|
|
Ignore build*, not just 'build'
|
|
No functional changes.
Replace tab with spaces.
Removed dead code.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Remove openpower inventory upload systemd startup
|
|
This picks up a couple fixes that addresses non-standard DBUS naming
conventions.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
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>
|
|
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>
|
|
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>
|