Age | Commit message (Collapse) | Author | Files | Lines |
|
Update flash update to be useable at runtime.
|
|
A number of classes to be used by recipes pointing to the skeleton
project.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.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>
|
|
Per Yocto commit 3341f3fb, we should depend on do_image_complete
instead of do_rootfs for the initrd images.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
The use of the DATETIME variable has issues with the sstate cache
because of the variable changing values, and therefore the checksum
used for sstate calculation also changing.
Other existing recipes add DATETIME to the 'vardepsexclude' list.
This case is glossed over very rapidly in section 21.3.2 "Checksums"
of the Mega Manual.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Previously, obmc-bsp-common.inc added "overlay" to the IMAGE_FSTYPES
but this only has meaning if the 'image-overlay' class is used. The
obmc-phosphor-image class explicitly includes 'image-overlay' when
appropriate but no other images (ie. ones that come with yocto) do.
Changed obmc-bsp-common to instead enable an obmc-phosphor-image feature
by setting OBMC_PHOSPHOR_IMAGE_OVERLAY=1. Then in obmc-phosphor-image we
add "overlay" to the IMAGE_FSTYPES only when the feature is enabled.
This will fix both non-phosphor images on hardware platforms and all images
on simulation platforms.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
The issue that prevented obmc-console from compiling was has been fixed
in f5858b5bf, so bump to a recent obmc-console version, and reenable.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
|
|
See openbmc/obmc-console#2 for failure details.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
This change introduces obmc-console, a little daemon to handle the UART
data and multiplex it to a log and client processes.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
|
|
Add the inarp package to the base image. If users later want
to turn it off and not have it be part of the base image,
it can be changed to a distro spec then.
|
|
This attempts to address a race condition in the build where
we attempt to build a complete flash image before all the sub-images
are available (specifically the initramfs image).
Any classes in IMAGE_CLASSES are inherited by all image recipes, including
the initramfs image. OE-Core's live/hddimg recipes address this
by pulling in the class configuration in recipe scope, rather than
global scope. Copy that behavior here.
|
|
Indent was only seven spaces. No functional changes.
|
|
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
|
Moves the ext4-specific mkfs options out to configuration variables.
OVERLAY_MKFS_OPTS can be overridden using the usual bitbake OVERRIDES
mechanism, where the override postfix is 'rwfs-${OVERLAY_BASETYPE}',
e.g. rwfs-ext4.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
|
An erased NOR partition is considered to be a valid JFFS2 filesystem
(i.e. can be successfully mounted as JFFS2). As such there's no need to
execute mkfs to produce an empty JFFS2 image if the target partition is
in the erased state. Thus, when generating the flash-palmetto and
image-rwfs image files, start with a base image file in the erased state
(with all bits set).
The change shifts the common logic to generate the base image files into
a shell function.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
|
It was inconsistent with the rest of the file, which seems to use 7
spaces. In particular, vim-sleuth was detecting the indentation style
from the first indent(s) in the file, which were in the oe_mkimage
function.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
|
Create virtual class to include user management in the image
Add the systemd patch for network support to the systemd recipe
Update the IPMI recipe to pickup the support for network configuration
|
|
|
|
Signed-off-by: Norman James <nkskjames@gmail.com>
|
|
This commit creates a new class image-overlay based on how the
image-live class is structured. It takes parameters for the base
and overlayed file system types but the initfs only support ext4
over squashfs presently.
It then moves invoking the generation of the flash image from a
post image creation command to a separate task invoked from the
overlay image so that building the initramfs image by itself does
not try to create a flash image.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
|
|
This recipe holds the key scripts for an initramfs image.
Written in sh to run with busybox, these three scripts handle
mounting, unmounting, and updating a set of mtd partitions to
form a read-write overlay on a read-only compressed base.
The init script will mount the base sysfs, proc, and devtmpfs as
well as run. It copies the filesystem to run/initramfs to create
the shutdown and update environment. It then mounts a base
read-only and read-write file system and then an overlay of them
combined, then continues with chroot into the overlay and execute
the normal /sbin/init.
The shutdown script will unmount the remaining nodev and root
filesystems from oldroot where systemd-shutdown pivots the old
file system, then looks for image- files. If any are found it
invokes update otherwise it performs the final reboot, powerdown,
or kexec, or halt.
The update script will attempt to mount the read/write overlay
and preserve selected files and directories based on a whitelist.
It then unmounts that fs and writes all image files to their
named mtd partition using flashcp, mounts and restores the saved
files, and finally unmounts the fs and performs the final reboot,
shutdown, kexec, or halt.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
|
|
The cuimage is used in the install task so it must be
generated by then.
|
|
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
|
|
When multiple recipes provide a package PREFERRED_PROVIDER
is used to pick one. However bitbake doesn't look at
RPROVIDES when it figures this out.
|
|
Initially this could be done in one place but as
sources move to git repositories this can't be done
in a generic manner.
Adapted existing recipes to this class change.
|
|
Initially this could be done in one place but as
sources move to git repositories this can't be done
in a generic manner.
Adapted existing recipes to this class change.
|
|
We should use the 'bare' package name BPN instead of PN for finding the
service file. Otherwise, a -nativesdk package cannot be created because
we get a file-not-found error on the service file.
|
|
sdbus-service.bbclass currently depends on c-daemon.bbclass, which is
used for samples that have their code and makefiles in the repository.
Removed this inherit to make the sdbus-service class more generally
applicable.
|
|
Using the same address as:
http://github.com/facebook/openbmc
|
|
Combines all the build artifacts into a single flash image.
|
|
Combined kernel / device tree kernel target emulation.
Copied from kernel-uimage.
|
|
Make wide open during prototyping phase.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Without this, subsequent prepend/appends to SRC_URI don't work.
|
|
Added obmc-phosphor-example-sdbus.
Added sdbus-service class for common logic.
|
|
|
|
|
|
Provided an example service implementation in obmc-phosphor-qemu
|
|
|
|
git-subtree-dir: meta-phosphor
git-subtree-mainline: 21f9b84b4b729fbd7acbd465e7a3f726e4d20f91
git-subtree-split: 93fb535853a24d4c3c42ec425ac92c9d3de13294
|