Home
last modified time | relevance | path

Searched full:pnor (Results 1 – 25 of 182) sorted by relevance

12345678

/openbmc/openpower-pnor-code-mgmt/ubi/
H A Dobmc-flash-bios25 # Attach the pnor mtd device to ubi.
27 pnormtd="$(findmtd pnor)"
28 pnor="${pnormtd#mtd}"
29 pnordev="/dev/mtd${pnor}"
31 if [ -d "/sys/class/ubi/ubi${pnor}" ]; then
36 ubiattach /dev/ubi_ctrl -m "${pnor}" -d "${pnor}"
39 # Check the pnor mtd device is formatted as ubi by reading the first 3 byes,
50 ubiattach /dev/ubi_ctrl -m "${pnor}" -d "${pnor}"
56 pnormtd="$(findmtd pnor)"
60 img="/tmp/images/${version}/pnor.xz.squashfs"
[all …]
H A Dobmc-flash-bios-ubimount@.service2 Description=Mount UBIFS volumes pnor-ro-%I, pnor-rw-%I and pnor-prsv
10 ExecStart=/usr/bin/obmc-flash-bios squashfsmount pnor-ro-%i %i
11 ExecStart=/usr/bin/obmc-flash-bios ubimount pnor-rw-%i
12 ExecStart=/usr/bin/obmc-flash-bios ubimount pnor-prsv
H A Dserialize.cpp27 // store one copy in /var/lib/obmc/openpower-pnor-code-mgmt/[versionId] in storeToFile()
35 // store another copy in /media/pnor-rw-[versionId]/[versionId] in storeToFile()
42 // lastly, store the priority as an environment variable pnor-[versionId] in storeToFile()
43 std::string serviceFile = "obmc-flash-bmc-setenv@pnor\\x2d" + versionId + in storeToFile()
95 std::string versionVar = "pnor-" + versionId + "="; in restoreFromFile()
101 // variables follow the format "pnor-[versionId]=[priority]\0" in restoreFromFile()
118 // Clear the environment variable pnor-[versionId]. in removeFile()
120 "obmc-flash-bmc-setenv@pnor\\x2d" + versionId + ".service"; in removeFile()
126 // Delete the file /var/lib/obmc/openpower-pnor-code-mgmt/[versionId]. in removeFile()
128 // so the file /media/pnor-rw-[versionId]/[versionId] will also be deleted in removeFile()
H A Ditem_updater_ubi.hpp22 * @brief GUARD factory reset - clears the PNOR GUARD partition.
82 /** @brief Host factory reset - clears PNOR partitions for each
95 /** @brief Clears read only PNOR partition for
102 /** @brief Clears read write PNOR partition for
109 /** @brief Clears preserved PNOR partition */
/openbmc/openpower-pnor-code-mgmt/
H A Dgenerate-ubi4 help=$'Generate PNOR UBI image from a PNOR SquashFS Tarball
6 Generates a UBI, Unsorted Block Images, PNOR image from a PNOR SquashFS Tarball.
7 The PNOR SquashFS Tarball is generated from the generate-tar script.
9 usage: generate-ubi [OPTION] <PNOR SquashFS Tarball>...
13 $(pwd)/<PNOR Tarball FILE, removing .squashfs.tar>.ubi.mtd
14 (For example, "generate-ubi my.pnor.squashfs.tar"
15 would generate $(pwd)/my.pnor.ubi.mtd output.)
16 -s, --size <MiB> Specify the size of the PNOR UBI image in MiBs.
46 echo "Please enter a PNOR SquashFS Tarball."
47 echo "To generate PNOR SquashFS Tarball see generate-tar"
[all …]
H A Dgenerate-tar4 help=$'Generate Tarball with PNOR image and MANIFEST Script
6 Generates a PNOR SquashFS image from the PNOR image for VPNOR,
7 Or use a static layout raw PNOR image,
11 usage: generate-tar [OPTION] <PNOR FILE>...
15 Generate SquashFS image or use static PNOR
17 $(pwd)/<PNOR FILE>.pnor.<image_type>.tar[.gz] if
20 * "generate-tar -i squashfs my.pnor" would generate
21 $(pwd)/my.pnor.squashfs.tar
22 * "generate-tar -i static my.pnor" would generate
23 $(pwd)/my.pnor.static.tar.gz)
[all …]
H A Dmeson.build2 'openpower-pnor-code-mgmt',
69 subs.set_quoted('PERSIST_DIR', '/var/lib/obmc/openpower-pnor-code-mgmt/')
70 subs.set_quoted('PNOR_ACTIVE_PATH', '/var/lib/phosphor-software-manager/pnor/')
72 subs.set_quoted('PNOR_PRSV', '/media/pnor-prsv')
73 subs.set_quoted('PNOR_PRSV_ACTIVE_PATH', '/var/lib/phosphor-software-manager/pnor/prsv')
74 subs.set_quoted('PNOR_RO_ACTIVE_PATH', '/var/lib/phosphor-software-manager/pnor/ro')
75 subs.set_quoted('PNOR_RO_PREFIX', '/media/pnor-ro-')
76 subs.set_quoted('PNOR_RW_ACTIVE_PATH', '/var/lib/phosphor-software-manager/pnor/rw')
77 subs.set_quoted('PNOR_RW_PREFIX', '/media/pnor-rw-')
79 subs.set_quoted('PNOR_TOC_FILE', 'pnor.toc')
[all …]
H A Ditem_updater.hpp59 * @brief GUARD factory reset - clears the PNOR GUARD partition.
105 * @brief Create and populate the active PNOR Version.
118 * @brief Erases any non-active pnor versions.
122 /** @brief Brings the total number of active PNOR versions to
124 * run before activating a new PNOR version. If this function
125 * needs to delete any PNOR version(s) it will delete the
127 * functional PNOR version.
148 * new "running" PNOR image
218 /** @brief Host factory reset - clears PNOR partitions for each
H A Dmsl_verify.hpp32 /** @brief Verify if the current PNOR version meets the min ship level
45 /** @brief Get the functional PNOR version on the system
46 * @details If the PNOR version file is not found, don't log an error since
47 * all PNOR images may had been deleted. If there is an issue with
/openbmc/openbmc-test-automation/extended/
H A Dtest_bios_update.robot2 Documentation Update the PNOR image on the host for hostboot CI purposes.
32 [Documentation] Update PNOR image and verify.
37 Update PNOR Image
38 Verify PNOR Update
49 [Documentation] Prepare system for PNOR update.
55 Update PNOR Image
56 [Documentation] Copy the PNOR image to the BMC /tmp dir and flash it.
58 Run Key Copy PNOR to BMC
60 Run Key Flash PNOR \ /tmp/${pnor_basename}
61 Run Key Wait Until Keyword Succeeds \ 15 min \ 10 sec \ Is PNOR Flash Done
[all …]
/openbmc/hiomapd/
H A Dconfigure.ac49 AC_ARG_ENABLE([virtual-pnor],
50 AS_HELP_STRING([--disable-virtual-pnor], [Turn off virtual pnor support])
77 AC_DEFINE(PARTITION_TOC_FILE, "pnor.toc", [The basename of the PNOR Table of contents file.])
78 …FILES_RO_LOC, "/var/lib/phosphor-software-manager/pnor/ro", [The path to the directory containing
79 …FILES_RW_LOC, "/var/lib/phosphor-software-manager/pnor/rw", [The path to the directory containing
80 …ES_PRSV_LOC, "/var/lib/phosphor-software-manager/pnor/prsv", [The path to the directory containing…
81 …DEFINE(PARTITION_FILES_PATCH_LOC, "/usr/local/share/pnor", [The path to the directory containing P…
/openbmc/phosphor-mboxd/
H A Dconfigure.ac58 AC_ARG_ENABLE([virtual-pnor],
59 AS_HELP_STRING([--enable-virtual-pnor], [Turn on virtual pnor])
78 AC_DEFINE(PARTITION_TOC_FILE, "pnor.toc", [The basename of the PNOR Table of contents file.])
79 …FILES_RO_LOC, "/var/lib/phosphor-software-manager/pnor/ro", [The path to the directory containing
80 …FILES_RW_LOC, "/var/lib/phosphor-software-manager/pnor/rw", [The path to the directory containing
81 …ES_PRSV_LOC, "/var/lib/phosphor-software-manager/pnor/prsv", [The path to the directory containing…
82 …DEFINE(PARTITION_FILES_PATCH_LOC, "/usr/local/share/pnor", [The path to the directory containing P…
/openbmc/openpower-pnor-code-mgmt/vpnor/
H A Dobmc-vpnor-util10 PNOR_TOC_FILE="pnor.toc"
11 PNOR_RO_ACTIVE_PATH="/var/lib/phosphor-software-manager/pnor/ro/"
12 PNOR_RW_ACTIVE_PATH="/var/lib/phosphor-software-manager/pnor/rw/"
13 PNOR_PRSV_ACTIVE_PATH="/var/lib/phosphor-software-manager/pnor/prsv/"
47 PNOR_ACTIVE_PATH="/var/lib/phosphor-software-manager/pnor/"
49 PNOR_RO_ACTIVE_PATH="/var/lib/phosphor-software-manager/pnor/ro"
50 PNOR_RO_PREFIX="/media/pnor-ro-"
51 PNOR_RW_ACTIVE_PATH="/var/lib/phosphor-software-manager/pnor/rw"
52 PNOR_RW_PREFIX="/media/pnor-rw-"
53 PNOR_PRSV_ACTIVE_PATH="/var/lib/phosphor-software-manager/pnor/prsv"
[all …]
/openbmc/openbmc-test-automation/extended/code_update/
H A Dhost_code_update.robot2 Documentation Update the PNOR code on a target BMC.
42 ${cache_files_dir_path} /var/lib/phosphor-software-manager/pnor/prsv/
47 [Documentation] Do a PNOR code update by uploading image on BMC via REST.
77 [Documentation] After having done a PNOR update and
107 [Documentation] Do a PNOR code update while the host is running.
124 [Template] Temporarily Set PNOR Attribute
170 [Documentation] Upload another PNOR image and verify that its state is
181 [Documentation] Attempt to set the priority to be the same for two PNOR
191 [Documentation] Delete a PNOR image from the BMC and PNOR flash chip.
199 ... msg=There are no PNOR images on the BMC to delete.
[all …]
/openbmc/hiomapd/vpnor/
H A Dtable.hpp32 * @param[in] src - reference to the pnor partition table
81 * @brief Generates virtual PNOR partition table.
83 * Generates virtual PNOR partition table upon construction. Reads
84 * the PNOR information generated by this tool :
85 * github.com/openbmc/openpower-pnor-code-mgmt/blob/master/generate-tar,
88 * these help form the "virtual" PNOR, which is typically a subset of the full
89 * PNOR image.
90 * These files are stored in a well-known location on the PNOR.
94 * The virtual PNOR supports 4KB erase blocks - partitions must be aligned to
101 * that houses the PNOR partition files.
[all …]
H A Dffs.h8 /* There are two structures outlined here - one that represents the PNOR
9 * partition table (or header) - this appears first in the PNOR image.
10 * The last field of the PNOR partition table structure is an array
14 * https://github.com/open-power/hostboot/blob/master/src/usr/pnor/ffs.h */
40 …/open-power/hostboot/blob/9acfce99596f12dcc60952f8506a77e542609cbf/src/usr/pnor/common/ffs_hb.H#L81
70 * @base: The offset in the PNOR, in block-size (1 block = 4KB),
114 * @block_size: Size of an erase-block on the PNOR (in bytes)
115 * @block_count: Number of blocks on the PNOR
/openbmc/phosphor-mboxd/vpnor/
H A Dpnor_partition_table.hpp25 * @param[in] src - reference to the pnor partition table
71 * @brief Generates virtual PNOR partition table.
73 * Generates virtual PNOR partition table upon construction. Reads
74 * the PNOR information generated by this tool :
75 * github.com/openbmc/openpower-pnor-code-mgmt/blob/master/generate-squashfs,
78 * these help form the "virtual" PNOR, which is typically a subset of the full
79 * PNOR image.
80 * These files are stored in a well-known location on the PNOR.
84 * The virtual PNOR supports 4KB erase blocks - partitions must be aligned to
91 * that houses the PNOR partition files.
[all …]
H A Dpnor_partition_defs.h8 /* There are two structures outlined here - one that represents the PNOR
9 * partition table (or header) - this appears first in the PNOR image.
10 * The last field of the PNOR partition table structure is an array
14 * https://github.com/open-power/hostboot/blob/master/src/usr/pnor/ffs.h */
40 …/open-power/hostboot/blob/9acfce99596f12dcc60952f8506a77e542609cbf/src/usr/pnor/common/ffs_hb.H#L81
70 * @base: The offset in the PNOR, in block-size (1 block = 4KB),
114 * @block_size: Size of an erase-block on the PNOR (in bytes)
115 * @block_count: Number of blocks on the PNOR
/openbmc/qemu/hw/ppc/
H A Dpnv_bmc.c156 static int hiomap_erase(PnvPnor *pnor, uint32_t offset, uint32_t size) in hiomap_erase() argument
162 result = memory_region_dispatch_write(&pnor->mmio, offset + i * 4, in hiomap_erase()
175 PnvPnor *pnor = PNV_PNOR(object_property_get_link(OBJECT(ibs), "pnor", in hiomap_cmd() local
177 uint32_t pnor_size = pnor->size; in hiomap_cmd()
191 if (hiomap_erase(pnor, blocks_to_bytes(cmd[5] << 8 | cmd[4]), in hiomap_cmd()
216 memory_region_set_readonly(&pnor->mmio, readonly); in hiomap_cmd()
217 memory_region_set_enabled(&pnor->mmio, true); in hiomap_cmd()
228 memory_region_set_enabled(&pnor->mmio, false); in hiomap_cmd()
252 void pnv_bmc_set_pnor(IPMIBmc *bmc, PnvPnor *pnor) in pnv_bmc_set_pnor() argument
258 object_ref(OBJECT(pnor)); in pnv_bmc_set_pnor()
[all …]
/openbmc/openbmc-test-automation/redfish/update_service/
H A Dtest_redfish_image_upload.robot8 ... pnor_bad_manifest.pnor.squashfs.tar
9 ... pnor_nokernel_image.pnor.squashfs.tar
10 ... pnor_invalid_key.pnor.squashfs.tar
64 [Documentation] Upload a PNOR firmware with a bad MANIFEST file.
69 pnor_bad_manifest.pnor.squashfs.tar
73 [Documentation] Upload a PNOR firmware with no kernel Image.
78 pnor_nokernel_image.pnor.squashfs.tar
100 [Documentation] Upload a PNOR firmware with a bad MANIFEST file via TFTP.
105 pnor_bad_manifest.pnor.squashfs.tar
109 [Documentation] Upload a PNOR firmware with no kernel Image via TFTP.
[all …]
/openbmc/openbmc/meta-phosphor/recipes-phosphor/mboxd/
H A Dmboxd_git.bb10 # Enable virtual-pnor by DISTRO_FEATURE openpower-virtual-pnor.
11 PACKAGECONFIG:append:df-openpower-virtual-pnor = " virtual-pnor"
12 PACKAGECONFIG[virtual-pnor] = "--enable-virtual-pnor,--disable-virtual-pnor"
/openbmc/openbmc/meta-openpower/recipes-phosphor/flash/
H A Dopenpower-software-manager_git.bb5 HOMEPAGE = "https://github.com/openbmc/openpower-pnor-code-mgmt"
29 # Virtual PNOR
30 inherit ${@bb.utils.contains('DISTRO_FEATURES', 'openpower-virtual-pnor', \
31 'openpower-software-manager-virtual-pnor', \
68 SRC_URI = "git://github.com/openbmc/openpower-pnor-code-mgmt;branch=master;protocol=https"
75 op-pnor-msl.service \
/openbmc/qemu/include/hw/ppc/
H A Dpnv_pnor.h2 * QEMU PowerNV PNOR simple model
16 * PNOR offset on the LPC FW address space
20 #define TYPE_PNV_PNOR "pnv-pnor"
/openbmc/openpower-hw-diags/attn/
H A Dti_handler.hpp88 // HBFW::PNOR::RC_BASE_EXT_MISMATCH
91 // HBFW::PNOR:RC_ECC_UE
94 // HBFW::PNOR:RC_UNSUPPORTED_MODE
97 // HBFW::PNOR:RC_UNSUPPORTED_SFCRANGE
100 // HBFW::PNOR:RC_PARTITION_TABLE_INVALID
103 // HBFW::PNOR:RC_UNSUPPORTED_HARDWARE
106 // HBFW::PNOR:RC_PNOR_CORRUPTION
/openbmc/openbmc/meta-ibm/recipes-phosphor/mboxd/mboxd/
H A Dcheck_pnor_format.sh11 pnormtd="$(findmtd pnor)"
12 pnor="${pnormtd#mtd}"
13 pnordev="/dev/mtd${pnor}"

12345678