summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-phosphor/flash
Commit message (Collapse)AuthorAgeFilesLines
* Redirect most of the Phosphor applications from GitHub to the Raptor ↵Raptor Engineering Development Team2018-01-171-1/+1
| | | | Computing Systems GIT repositories
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-12-221-1/+1
| | | | | Change-Id: I65b02c3efc18cffa7dd9b47078f3ccacc602cd83 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-12-111-1/+1
| | | | | Change-Id: I5f7c538a2a1fbc9af90425834a5696b8f21e5a24 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* init: Add init script to setup /etc mount before starting systemdEdward A. James2017-11-283-26/+10
| | | | | | | | | | | | | 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>
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-11-281-1/+1
| | | | | Change-Id: I943bc584bee9c06c3aa98666f88965c6ad6bbc20 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Add missing dependency on sdbus++.Saqib Khan2017-11-271-0/+1
| | | | | | | | 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>
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-10-311-1/+1
| | | | | Change-Id: Ib2f5e2c68100602ea0ac977938f23240ecefa294 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-10-301-1/+1
| | | | | Change-Id: I8c7ffeef9d9b048862cde214d769e052ea36282f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Don't update U-Boot env variables using code update serviceSaqib Khan2017-10-301-1/+0
| | | | | | | | | | 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>
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-10-251-1/+1
| | | | | Change-Id: I5eb6ef62ce934b3ebc120c5b37f82ef6a1cc9ed0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-10-251-1/+1
| | | | | Change-Id: I43dac817cd1972473fd90b30a11fddc3af5a6f9e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-10-241-1/+1
| | | | | Change-Id: I56b700e0a807fc89758b88ba440dd00afa51b9a3 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-10-111-1/+1
| | | | | Change-Id: I7083c2ef6907ca599732069e755030714b74514c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* fstab: require service file to mount /var - fixes BMC factory resetMichael Tritz2017-10-054-5/+28
| | | | | | | | | | | | | | | | 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>
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-10-051-1/+1
| | | | | Change-Id: I775607f139ebf75013511d68817834566aea9088 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-10-041-1/+1
| | | | | Change-Id: Ie3b7a563fb9ebc627a36e5c649490f16d572edff Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-10-041-1/+1
| | | | | Change-Id: Iad26d15cb18b5fb32ef40852c169a4169e90133f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Service files to remove orphaned UBI volumesMichael Tritz2017-10-033-0/+32
| | | | | | | | | | | | | 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>
* phosphor-software-manager.bb: bump versionAndrew Geissler2017-10-031-1/+1
| | | | | Change-Id: I6273a5b55ab8e576084206df5e418f0e894249e6 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* BMC: Block BMC reboot during code updateSaqib Khan2017-10-024-0/+49
| | | | | | | | | | | | - 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>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-09-281-1/+1
| | | | | Change-Id: I108f0c9cc666718d07b67cf74a03330299d360e1 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* BMC: Update u-boot environment variables.Saqib Khan2017-09-284-4/+13
| | | | | | | | | | | - 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>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-09-271-1/+1
| | | | | Change-Id: Ib9f21e92a7329bc3f3603926cc6850e3bcefa9aa Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* obmc-flash-bmc: Fixes to the logic to delete volumesAdriana Kobylak2017-09-261-14/+33
| | | | | | | | | | | | | | | | | | | | | | - 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>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-09-251-1/+1
| | | | | Change-Id: I632f3a0908a70e7f9ee4ba69f9d524a603458e29 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-09-181-1/+1
| | | | | Change-Id: Id230580639cfead7cc80e2054f47059036546883 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Check if the BMC version already exists in /media before mounting.Saqib Khan2017-09-151-3/+6
| | | | | | | | | | | | - 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>
* obmc-flash-bmc: Create a duplicate kernel volume in altAdriana Kobylak2017-09-131-0/+23
| | | | | | | | | | | | 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>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-09-131-1/+1
| | | | | Change-Id: I19a151a2a624b2124f5d66d25a9bcc71985b0c19 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Handle the case where obmc-flash-bmc-ubimount@.service failsSaqib Khan2017-09-121-0/+1
| | | | | | | | | | | - 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>
* obmc-flash-bmc: Add ExecStartPre and Post to update environment variablesAdriana Kobylak2017-09-122-8/+30
| | | | | | | | | | 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>
* Suppress undefined rwreset error in obmc-flash-bmcMichael Tritz2017-09-111-1/+1
| | | | | | | | | | | | | | 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>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-09-081-1/+1
| | | | | Change-Id: I8b244a484d8d33a3c9a9e7aeca47ce5177394a9d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Fix the function that is responsible for deleting bmc ubi volumesSaqib Khan2017-09-071-2/+2
| | | | | | | | | | - 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>
* Get the mtd# that corresponds to bmc and alt-bmc.Saqib Khan2017-09-071-9/+3
| | | | | | | | | | - 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>
* Add "After" mapper to BMC updaterGunnar Mills2017-09-061-0/+2
| | | | | | | | 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>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-09-051-1/+1
| | | | | Change-Id: I309b62e87107923f214abcf98af96ab9e4b31bb4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-09-051-1/+1
| | | | | Change-Id: I0fe6e55309befed48ea7319cd296a1394950506f Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Create dir /usr/local for ubi patch serviceSaqib Khan2017-09-011-0/+2
| | | | | | | | | | | 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>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-08-291-1/+1
| | | | | Change-Id: I3bae95485621c8d5909f070bb04d1316a3e7d5da Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Enable environment variable deletion from obmc-flash-bmc-setenv@.serviceMichael Tritz2017-08-291-3/+7
| | | | | | | | | | | | | | | | | 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>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-08-291-1/+1
| | | | | Change-Id: I3c1c7ef10e6f9100585ecbf55c6696bbb8846048 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-08-291-1/+1
| | | | | Change-Id: Ifa37049a39e5c92577189383e52c840f29be4025 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* obmc-flash-bmc: Remove existing image before updatingAdriana Kobylak2017-08-281-6/+59
| | | | | | | | | | 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>
* obmc-flash-bmc: Set boot env variables with info of new imageAdriana Kobylak2017-08-281-3/+26
| | | | | | | | | | | | | | 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>
* obmc-flash-bmc-setenv: Use unescaped instance nameAdriana Kobylak2017-08-282-3/+3
| | | | | | | | | | 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>
* obmc-flash-bmc: Add u-boot updateAdriana Kobylak2017-08-282-1/+14
| | | | | | | | | 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>
* obmc-flash-bmc: Add support for specifying alternate mtd devicesAdriana Kobylak2017-08-241-2/+26
| | | | | | | | | | | | Add support to be able to specify an alternate mtd device to store a read-only image. The requested mtd devices should be separated by a plus sign. If an alternate mtd device is specified, store the image in the mtd where root is not currently mounted on to be able to alternate storage devices. Change-Id: Ic68584f431a5effe68da3c85b798c5818552108a Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Enable BMC patching from the /usr/local pathMichael Tritz2017-08-2414-16/+30
| | | | | | | | | | | | | | | | | This commit enables patches from the /usr/local path by replacing absolute paths to /usr/sbin or /usr/bin in every service file with "/usr/bin/env ". Additionally, SyslogIdentifier is added to each file to ensure that journal entries are still distinct. In two cases, service files also had to change due to references to ${{PATH}}, which doesn't work with /usr/bin/env. These references - and the corresponding definitions - were changed to ${{DEVPATH}}. Resolves openbmc/openbmc#2149 Change-Id: I12c5c6e5101eef6820b985a563313836250ff2c7 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
* BMC: Make volume names consistentAdriana Kobylak2017-08-245-5/+5
| | | | | | | | | Name the BMC volume names consistently in the build process and applications to be <name>-<id> for readability. For names, use rofs and rwfs instead of ro and rw. Change-Id: I860f740fb7d0292e4ee09493730db1d1f67c2ae5 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
OpenPOWER on IntegriCloud