| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
A number of skeleton recipes were missing pkgconfig dependencies.
Exposed by Yocto 2.3 per-recipe sysroots feature.
Change-Id: I514a95d08e199b395355341fec586b2af11428b5
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
| |
Change-Id: I32faf5f69d201f62fada9b73ab50b33aa29deb4d
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
| |
Change-Id: I1c2addee189482d0aa59daa2b4d3bc840c13980b
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The U-Boot environment maintains two banks of environment variables. The
banks need to be consistent with each other to ensure that these
variables can be reliably read from file, as they would be in the
context of a C++ program. In order to guarantee that the two banks are
both correct, we need to run fw_setenv twice when writing environment
variables.
This change accompanies a change to phosphor-bmc-code-mgmt for
openbmc/openbmc#2666.
Change-Id: I72d7fd79faf271d017703464fd9ad0cd20f4e2a0
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I65b02c3efc18cffa7dd9b47078f3ccacc602cd83
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
| |
Change-Id: I5f7c538a2a1fbc9af90425834a5696b8f21e5a24
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Systemd requires /etc mounted and ready at init time. Previously, we
were mounting /etc as an overlay from the persistant filesystem after
systemd started. This caused a variety of issues with systemd and
associated applications (journal, etc).
This change also adds factory reset functionality.
Resolves openbmc/openbmc#2542
Change-Id: Ib8a38e99df39f833026fe4475670a7ec2b9c8d4d
Signed-off-by: Edward A. James <eajames@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I943bc584bee9c06c3aa98666f88965c6ad6bbc20
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
|
|
|
| |
These receipes failed to build with yocto-2.3 with the
error message "configure: error: Cannot find sdbus++".
Change-Id: I11867fcb6cc12e2eb4adfe64b7181757cc985fea
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
|
|
|
| |
Change-Id: Ib2f5e2c68100602ea0ac977938f23240ecefa294
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
| |
Change-Id: I8c7ffeef9d9b048862cde214d769e052ea36282f
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
|
|
|
|
|
| |
The U-Boot env variables are updated using the BMC itemUpdater
once the code update completes succesfully.
Partially resolves openbmc/openbmc#2535
Change-Id: Ic3a937c053748ae77a22d0e11b5ea786582a3937
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I5eb6ef62ce934b3ebc120c5b37f82ef6a1cc9ed0
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
| |
Change-Id: I43dac817cd1972473fd90b30a11fddc3af5a6f9e
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
| |
Change-Id: I56b700e0a807fc89758b88ba440dd00afa51b9a3
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
| |
Change-Id: I7083c2ef6907ca599732069e755030714b74514c
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit adds a service file requirement to fstab for mounting
the ubi0:rwfs volume to /var. The required file is
obmc-flash-bmc-reset.service, which, when called, will perform a
BMC factory reset if the corresponding environment variable is set.
This functionality was moved out of obmc-flash-bmc-ubirw.service because
the factory reset is not the only procedure that calls that service.
Moving this function to a new service avoids unexpected behaviors.
Resolves openbmc/openbmc#2326
Change-Id: If2a9c650f315cff23040194ec87f16c05622c85e
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I775607f139ebf75013511d68817834566aea9088
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
| |
Change-Id: Ie3b7a563fb9ebc627a36e5c649490f16d572edff
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
| |
Change-Id: Iad26d15cb18b5fb32ef40852c169a4169e90133f
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit provides supplementary service files for
openbmc/openbmc#2264, which adds a function to delete all versions to
each of the BMC and host updaters.
The service files introduced in this change will locate any "orphaned"
BMC or host volumes - that is to say, volumes which do not correspond to
a current version on the system.
Change-Id: If324d24f66ba08fb0b76ca5873addb6bf2446f97
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I6273a5b55ab8e576084206df5e418f0e894249e6
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Create functions inside obmc-flash-bmc script to enable
and disable reboots from command line.
- Create service files for enabling and disabling BMC reboots.
- The enable service will be called during the constructor of
ActivationBlockTransition and disable service will be run during
the destructor of ActivationBlockTransition.
Change-Id: Idcec12b2c1126e212ee861150c92aaacd23a1ace
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I108f0c9cc666718d07b67cf74a03330299d360e1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
|
|
|
|
|
|
|
|
|
| |
- Create a service file that can update the u-boot variables
(kernelname, root and ubiblock) to point to a different
BMC version.
- This service file will be called by the BMC ItemUpdater
if a user sets BMC version priority to the lowest value.
Change-Id: Ic83c7e7a1c36eefc6c0b1b12b2077f5a866db36c
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
|
|
|
| |
Change-Id: Ib9f21e92a7329bc3f3603926cc6850e3bcefa9aa
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- The current logic was preventing deleting the volume based on the
kernelname environment variable, but this variable changes during a
code update, and doesn't reflect the current running version. Change
that to create the kernelname based on the current running version
since it prevents users from doing back-to-back updates with no BMC
reboot in between.
- Check the mtd of the volume to be deleted against the currently
running mtd, because the version name may be the same. This is the
case when the 2 chips have the same version as when the come out of
manufacturing.
- Enhance the remove function to accept an mtd parameter, so that it
deletes the volume on the specified mtd instead of the first one that
it finds. This is to support duplicate version as well.
- Clear the priority env variable when a volume is deleted as part
of the cleanup.
Change-Id: I5725bb71ac2b75abaf3e2b365fbd18f116651c7b
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I632f3a0908a70e7f9ee4ba69f9d524a603458e29
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
|
|
|
| |
Change-Id: Id230580639cfead7cc80e2054f47059036546883
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
|
|
|
|
|
|
|
|
|
|
| |
- When a system is first flashed, it has 2 rofs-0 mounts, since both
chips have the same version.
- This change would help prevent the 2nd mount since the BMC version
is already mounted.
Resolves openbmc/openbmc#2307
Change-Id: I50c7df3deb953b411aa6ff9929907f3879c6e130
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Create a backup copy of the kernel volume in the alt mtd.
This requires allowing a duplicate volume with the same
name to be created, and perform two deletes to remove
the original and duplicate kernel volumes.
Resolves openbmc/openbmc#2200
Change-Id: I5dd57c1e3319705be9f0766d72ba9f6f3b94f22e
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I19a151a2a624b2124f5d66d25a9bcc71985b0c19
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
|
|
|
|
|
|
|
|
|
| |
- If the ubi volume creation fails then delete any mount
points that were created during activation and remove
the ubi volumes ro-<versionId> and kernel-<versionId>
Resolves openbmc/openbmc#1616
Change-Id: Ifea1188831590a8372ff5f57c6ee6e3230c8ba82
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
Backup the environment variables before performing an update.
Update the environment variables that point to the new volumes only
if all the ExecStart commands are successful. Also ensure that the
volumes exist so that the env variables point to an existing volume.
Change-Id: I4f63076730f0843677b6ac8bf166c02ae36eaf2e
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit tweaks obmc-flash-bmc to suppress the error message
produced when the environment variable rwreset is undefined. In
context, this variable is checked to verify if a factory reset
should be performed. If the variable is not set, or if it's set
to anything other than true, we don't perform the reset - this is
not an error, so no need to log one to the journal.
Resolves openbmc/openbmc#2249
Change-Id: Ibe595f3ca879afc141bed2b7b186233ea2db9d14
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I8b244a484d8d33a3c9a9e7aeca47ce5177394a9d
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
|
|
|
|
|
|
|
|
| |
- The current script was checking for ubi4:rofs-<versionId>
inside /proc/mount but it is listed as /media/rofs-<versionId>.
Therefore the service files that removes the ubi volumes were
failing.
Change-Id: Ie715e4b82d1e9c15708318cae367636d26642af3
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
- The mtds that corresponds to bmc and alt-bmc holds the
correct ubi volumes for rofs-<versionId>.
Resolves openbmc/openbmc#2266
Change-Id: I27c6dba21ead40572403d05d63c89461825ea6a4
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
|
|
|
|
|
|
| |
The BMC updater needs to start after the mapper since it
uses the mapper to get the BMC inventory path.
Change-Id: I5c79c8162a948a8ddcafc2816fcd65c5d6f2407d
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I309b62e87107923f214abcf98af96ab9e4b31bb4
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
|
|
|
| |
Change-Id: I0fe6e55309befed48ea7319cd296a1394950506f
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
|
|
|
|
|
|
|
|
|
| |
Since /usr will be a read-only file system, we need to create
a dir before the service usr-local.mount can mount tmpfs onto
that dir.
Resolves openbmc/openbmc#2199
Change-Id: I0277ca343081581a1359d20687997dd573fa65b0
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I3bae95485621c8d5909f070bb04d1316a3e7d5da
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit extends the functionality of obmc-flash-bmc-setenv@.service,
which calls upon the obmc-flash-bmc script to set an environment
variable.
When working with environment variables in the shell, one can set OR
clear a particular variable using the fw_setenv command. This commit
expands the functionality of the service file to match.
If a name-value pair is specified, this script will set the environment
variable as given. If a name is supplied with no value, the environment
variable with that name will be cleared.
Change-Id: I2eed0148957363668600986f56cb9e678caf855c
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I3c1c7ef10e6f9100585ecbf55c6696bbb8846048
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
|
|
|
| |
Change-Id: Ifa37049a39e5c92577189383e52c840f29be4025
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
|
|
|
|
|
|
|
|
| |
Delete any existing non-current image on the requested mtd
device before updating a new one to make space.
Resolves openbmc/openbmc#2114
Change-Id: I4dd4a3881bc5c3fb65a753e043fd1e6187967808
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When an image is updated, update the env variables to indicate
u-boot and kernel the ubi information to find the new image.
Store their current values to the alternate env variable before
updating in case the there chips switch due to a failure,
there is a pointer to an existing version.
Update the env variable if the volume was succesfully updated,
create the ubiblock after the successful volume update.
Change-Id: Ia6e3eb133a6535b5de6ecbba4af262c63f2dc140
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
Use the unescaped character in the service file (%I) to be able
to check for the ascii character which is more intuitive. That
way the function in the script can be used by other functions
and just pass the ascii character.
Change-Id: Ie07f33faaccc42eb7fd574fe6d72dac7858c380e
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
|
|
|
|
|
|
|
| |
Add function to update the u-boot mtd by doing a direct flash write.
Add it to the read-only function since u-boot is considered a
non-writable partition.
Change-Id: I73e76ba7153f18b03418ac9b181abc5d31f61f17
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|