summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-phosphor/flash
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* witherspoon: Update image location for software managerAdriana Kobylak2017-08-241-5/+3
| | | | | | | | | | | | Update witherspoon to store new software bmc images in the bmc and alternate chip, use the plus sign (+) as separator since that one doesn't conflict with the build substitution function and shell scripting. Set the default location for bmc images to the bmc chip now that the listed issues have been resolved. Change-Id: I7cfe9977bde580f571418d5ea450e58b562d2799 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-08-231-1/+1
| | | | | Change-Id: I9bd29858be06fb982ba1faa0ff21e85862714ced Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Delete kernel as part of ubi volume deleteSaqib Khan2017-08-221-1/+2
| | | | | Change-Id: I8d843c146cea4ba845246078be2ab6e84f65bdc6 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-08-221-1/+1
| | | | | Change-Id: Idd29f81761ea29899d1a16ddc036a1120ac9e81b Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-08-211-1/+1
| | | | | Change-Id: I62a8c0956a7526a727c9691d94e3794eaf2cc935 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-08-191-1/+1
| | | | | Change-Id: I4c83e40ec602fd19e2972e0eeb1640ecd6d9dffa Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-08-181-1/+1
| | | | | Change-Id: I0ffbff93a06638179a8c896c56a265430e8258fc Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* BMC: Mount ubi volume on BMC rebootSaqib Khan2017-08-163-0/+53
| | | | | | | | | | | | - Create a static service file that will be run on all BMC boot to remount the bmc ubi volume. - Read the ubinfo for all available volumes from obmc-flash-bmc script. - Re-Mount the available volumes on /media/ dir using the volume names. Change-Id: I8f3a0b41257927fa0e69001278cc836ba0a52dda Signed-off-by: Saqib Khan <khansa@us.ibm.com>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-08-141-1/+1
| | | | | Change-Id: I4a74c8f651dc3bd064701c24560fde6e89eb2bbc Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager: make version a virtual pkgPatrick Williams2017-08-101-0/+5
| | | | | | | | | | | | | phosphor-software-manager-version provides a set of dbus interfaces that are only useful if there is an 'updater' package also installed. Rather than explicitly install phosphor-software-manager-version, have it RPROVIDE a virtual package and set up RDEPENDS correctly so it is added to the image whenever an 'updater' package is installed. Change-Id: Id6850aca023bb546881fe1583c57d9a24405e25a Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* meta-openpower: Convert MACHINE_FEATURE openpower-pflash to openpower-ubi-fsPatrick Williams2017-08-101-3/+2
| | | | | | | | | | Since pflash is no longer used when openpower-ubi-fs is enabled and the only use of the openpower-pflash feature was to enable a pflash dependency in obmc-op-flasher, remove obmc-op-flasher when openpower-ubi-fs is enabled (thus removing pflash from the machine). Change-Id: Ia11d2b11ac201a139e1c4d014d539d346e0c2479 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-08-021-1/+1
| | | | | Change-Id: I3c0e329e11da97b4c6bc8a1569b6c42303833c22 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager: Create /usr/local mount pointAdriana Kobylak2017-08-022-0/+8
| | | | | | | | | | Mount /usr/local as a tmpfs to be used as a patch location for the host bios code and (eventually) the bmc. Add a dependency to it to the pnor updater service starts since that's a service that will use it. Change-Id: I41cf3f4f536bad4b3966503953f79db2d052022d Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-08-011-1/+1
| | | | | Change-Id: Iee2ffb01fe6532fa1d207338d8c6cc57ec9d38da Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-07-281-1/+1
| | | | | Change-Id: I905448e30d3b9afeef3a722c031f02ae0453eda5 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-07-251-1/+1
| | | | | Change-Id: I3b5d9c5c97ccfc3ce555c97e352ece75fb0c4a00 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* BMC Code Mgmt: Service files to delete ro and rw partitionsLeonel Gonzalez2017-07-243-0/+16
| | | | | | | | Adds service files to delete read only and read write partitions. Change-Id: Ia0101b53defc9a92097d7c15f3c3b7bd7a8e5cd7 Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
* BMC Code Mgmt: Service files for factory resetMichael Tritz2017-07-243-0/+43
| | | | | | | | | | | | This commit extends the obmc-flash-bmc script and includes a pair of service files. A U-Boot environment variable will be set to indicate that the BMC read-write volume needs to be reset. When this variable is present, the read-write volume will be removed and recreated. Change-Id: I6e39727cd3898d66bdbc63e9071f3a8b20a77673 Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
* phosphor-software-manager: New service file to create ubi ro volumesAdriana Kobylak2017-07-193-0/+65
| | | | | | | | | | | | | | | | | Add service file and script to create ubi read-only volumes to store the rofs and kernel. Default the sizes to the current corresponding mtd size. Create a ubi block for the read-only image which is a squashfs. The mtd device locations can be passed through the recipe. Set it to the "pnor" mtd as the default. This can be changed via a per-system bbappend to other chips if desired, such as the alternate bmc chip. Resolves openbmc/openbmc#1651 Change-Id: I76aa9021a2bb5462c0e4c2efef99728d26873df0 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* phosphor-software-manager: New service file to create ubi rw volumeAdriana Kobylak2017-07-193-1/+71
| | | | | | | | | | | | | | | | | Add service file and script to create a ubi read-write volume to store the rwfs. The volume would be 4MB as that's the current size of the rwfs image. The volume is not tied to a version so that read-write data is persisted through bmc code updates. The mtd device location can be passed through the recipe. Set it to the "pnor" mtd as the default. This can be changed via a per-system bbappend to other chips if desired, such as the alternate bmc chip. Change-Id: Id3e40e28eaf60c9fdccdca1484d144014f2bc8df Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-07-171-1/+1
| | | | | Change-Id: I261b5b666ecea4ec3d447d43e0aa970b3eaa0ea6 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-07-071-1/+1
| | | | | Change-Id: I9d98125e9edb0d652563cbd2fb8ab75bc2b92b50 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-07-061-1/+1
| | | | | Change-Id: I1f96ea606220f10dd4e726aeb7c67a167e6cf567 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-06-261-1/+1
| | | | | Change-Id: I7d667da9e04409be3a22805b38d1a16a833d4aae Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-06-261-1/+1
| | | | | Change-Id: Ia68928aa67cc3f6c9e268aba6c7f853158794491 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-06-051-1/+1
| | | | | Change-Id: I25ad23024e76343fb64aab236289a4ce6a88601e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-06-021-1/+1
| | | | | Change-Id: I476af7f5ceed60a4b0320e50c12b07954f02d035 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-05-311-1/+1
| | | | | Change-Id: Ieb957e69be8329706edc77ee19107c5b45489db1 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-05-301-1/+1
| | | | | Change-Id: Ic49806c164623757ee0723a98cf0e59f67085414 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionGunnar Mills2017-05-241-1/+2
| | | | | | | Includes additional dependencies needed for the bump. Change-Id: I889b7e5a1c5ccc926022f12185101e3cfec9e36e Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Create a new package for the phosphor-image-updaterGunnar Mills2017-05-243-1/+21
| | | | | Change-Id: I9a5b8977072c30d7c2c8a8402ca5bf627d8b79bd Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-05-241-1/+1
| | | | | Change-Id: Ieb62bac3e2007ec27f946cd659b782480b888b70 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* openpower-pnor-code-mgmt: Initial recipeAdriana Kobylak2017-05-194-38/+0
| | | | | | | | | | Create recipe for the openpower-pnor-code-mgmt repo. Move the pnor-specific service files from the phosphor layer to the open-power one. Add the new openpower-software-manager to packagegroups. Change-Id: Iab47b82e6872f7f92aed6260c51eaf0acf744aeb Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* BUSNAME rename for Phosphor Version Software ManagerGunnar Mills2017-05-112-1/+1
| | | | | | | Resolves openbmc/openbmc#1595 Change-Id: I7347636a2d02f94b5ccf48ba924525c6737bdce9 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-05-111-1/+1
| | | | | Change-Id: Id389d44adc11f382b1457070586660e4467dcd01 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-05-081-1/+1
| | | | | Change-Id: I6eddf8bd38bbbc6c6534ab4af7edcb1570b5de5e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* phosphor-software-manager.bb: create new packageDeepak Kodihalli2017-05-053-7/+34
| | | | | | | | | Create a new package for the phosphor-download-manager. Update dependencies for phosphor-software-manager.bb. Change-Id: Ieb44e0e7314ec30c1cdb2d7e9d05931b0674eff6 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Create SquashFS mount template serviceAdriana Kobylak2017-04-273-4/+19
| | | | | | | | | | | | | | | | | | | | This service will mount a SquashFS image to a read-only partition. 1. Create a read-only UBI volume named pnor-ro-%i with an arbitrary size of 32MB. The volume will shrink to the size of the squashfs image, and the current pnor squashfs image is about 20MB. 2. Save the ubivolume id in a unique env variable $volumeid%i. Unlike ubifs, squashfs requires the volume id instead of the name. 3. Create a read-only ubi block device on the ubi volume, this is where read-only filesystems can reside. 4. Update the ubi block with the squashfs image. 5. Mount. The contents of the squashfs image will be available under /media/pnor-ro-%i. Add a couple fixes to the ubimount service to make it more readable and match the new squashfsmount service. Change-Id: I38c6f7a123c1b79fb82905c161f8c2ba796820ca Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* phosphor-software-manager.bb: bump versionPatrick Williams2017-03-291-1/+1
| | | | | Change-Id: I7579e2ae1ee3354ca6ad0e030bf554a1dc72342f Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
OpenPOWER on IntegriCloud