/openbmc/linux/Documentation/devicetree/bindings/mtd/partitions/ |
H A D | tplink,safeloader-partitions.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mtd/partitions/tplink,safeloader-partitions.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TP-Link SafeLoader partitions 10 TP-Link home routers store various data on flash (e.g. bootloader, 14 Flash space layout of TP-Link devices is stored on flash itself using 15 a custom ASCII-based format. That format was first found in TP-Link 17 CFE and U-Boot bootloaders. 19 Partitions specified in partitions table cover whole flash space. Some [all …]
|
H A D | fixed-partitions.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mtd/partitions/fixed-partitions.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Fixed partitions 12 on-flash partition table such as RedBoot. 14 The partition table should be a node named "partitions". Partitions are then 18 - Rafał Miłecki <rafal@milecki.pl> 23 - const: fixed-partitions 24 - items: [all …]
|
/openbmc/linux/drivers/mtd/parsers/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 11 This provides partitions parser for devices based on BCM47xx 24 tristate "Broadcom's U-Boot partition parser" 27 Broadcom uses a custom way of storing U-Boot environment variables. 28 They are placed inside U-Boot partition itself at unspecified offset. 34 tristate "Command line partition table parsing" 49 <mtddef> := <mtd-id>:<partdef>[,<partdef>] 50 <partdef> := <size>[@offset][<name>][ro] 51 <mtd-id> := unique id used in mapping driver/device 52 <size> := standard linux memsize OR "-" to denote all [all …]
|
H A D | tplink_safeloader.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/mtd/partitions.h> 27 u32 offset; in mtd_parser_tplink_safeloader_read_table() local 35 np = of_get_child_by_name(np, "partitions"); in mtd_parser_tplink_safeloader_read_table() 37 if (of_property_read_u32(np, "partitions-table-offset", &offset)) { in mtd_parser_tplink_safeloader_read_table() 38 pr_err("Failed to get partitions table offset\n"); in mtd_parser_tplink_safeloader_read_table() 42 err = mtd_read(mtd, offset, sizeof(hdr), &bytes_read, (uint8_t *)&hdr); in mtd_parser_tplink_safeloader_read_table() 44 pr_err("Failed to read from %s at 0x%x\n", mtd->name, offset); in mtd_parser_tplink_safeloader_read_table() 54 err = mtd_read(mtd, offset + sizeof(hdr), size, &bytes_read, buf); in mtd_parser_tplink_safeloader_read_table() 56 pr_err("Failed to read from %s at 0x%zx\n", mtd->name, offset + sizeof(hdr)); in mtd_parser_tplink_safeloader_read_table() [all …]
|
H A D | qcomsmempart.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/mtd/partitions.h> 28 * struct smem_flash_pentry - SMEM Flash partition entry 30 * @offset: Offset in blocks 36 __le32 offset; member 42 * struct smem_flash_ptable - SMEM Flash partition table 43 * @magic1: Partition table Magic 1 44 * @magic2: Partition table Magic 2 45 * @version: Partition table version 46 * @numparts: Number of partitions in this ptable [all …]
|
H A D | cmdlinepart.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Read flash partition table from command line 5 * Copyright © 2002 SYSGO Real-Time Solutions GmbH 6 * Copyright © 2002-2010 David Woodhouse <dwmw2@infradead.org> 11 * <mtddef> := <mtd-id>:<partdef>[,<partdef>] 12 * <partdef> := <size>[@<offset>][<name>][ro][lk][slc] 13 * <mtd-id> := unique name used in mapping driver/device (mtd->name) 14 * <size> := standard linux memsize OR "-" to denote all remaining space 17 * <offset> := standard linux memsize 23 * <size> and <offset> can be specified such that the parts are out of order [all …]
|
H A D | redboot.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Parse RedBoot-style Flash Image System (FIS) tables and 7 * Copyright © 2001-2010 David Woodhouse <dwmw2@infradead.org> 16 #include <linux/mtd/partitions.h> 26 unsigned char _pad[256 - (16 + 7 * sizeof(u32))]; 56 npart = of_get_child_by_name(np, "partitions"); in parse_redboot_of() 60 ret = of_property_read_u32(npart, "fis-index-block", &dirblock); in parse_redboot_of() 87 unsigned long offset; in parse_redboot_partitions() local 95 offset = master->size + directory * master->erasesize; in parse_redboot_partitions() 96 while (mtd_block_isbad(master, offset)) { in parse_redboot_partitions() [all …]
|
/openbmc/openbmc/poky/scripts/lib/wic/plugins/imager/ |
H A D | direct.py | 4 # SPDX-License-Identifier: GPL-2.0-only 36 An image file is formatted with a partition table, each partition 64 self.name = "%s-%s" % (os.path.splitext(os.path.basename(wks_file))[0], 69 self.parts = self.ks.partitions 72 # instead of forcing it to be set via bootloader --source 127 device_name = "UUID=%s-%s" % \ 136 # mmc device partitions are named mmcblk0p1, mmcblk0p2.. 158 return os.path.join(path, "%s-%s.%s" % (self.name, name, extention)) 165 For 'wic', we already have our build artifacts - we just create 192 Assemble partitions into disk image [all …]
|
/openbmc/u-boot/disk/ |
H A D | Kconfig | 4 config PARTITIONS config 14 - CONFIG_MAC_PARTITION Apple's MacOS partition table. 15 - CONFIG_DOS_PARTITION MS Dos partition table, traditional on the 17 - CONFIG_ISO_PARTITION ISO partition table, used on CDROM etc. 18 - CONFIG_EFI_PARTITION GPT partition table, common when EFI is the 21 - CONFIG_MTD_PARTITIONS Memory Technology Device partition table. 23 you must configure support for at least one non-MTD partition type 27 bool "Enable Apple's MacOS partition table" 28 depends on PARTITIONS 30 Say Y here if you would like to use device under U-Boot which [all …]
|
H A D | part_efi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 32 * efi_crc32() - EFI version of crc32 function 34 * @len - length of buf 36 * Description: Returns EFI-style CRC32 value for @buf 61 c = pte->partition_name[i] & 0xff; in print_efiname() 73 return p->attributes.fields.legacy_bios_bootable || in is_bootable() 74 !memcmp(&(p->partition_type_guid), &system_guid, in is_bootable() 85 if (le64_to_cpu(gpt_h->signature) != GPT_HEADER_SIGNATURE_UBOOT) { in validate_gpt_header() 87 "GUID Partition Table Header", in validate_gpt_header() 88 le64_to_cpu(gpt_h->signature), in validate_gpt_header() [all …]
|
/openbmc/phosphor-mboxd/vpnor/ |
H A D | pnor_partition_table.cpp | 1 // SPDX-License-Identifier: Apache-2.0 7 #include <phosphor-logging/elog-errors.hpp> 25 Table::Table(const struct mbox_context* ctx) : in Table() function in openpower::virtual_pnor::partition::Table 27 blockSize(1 << ctx->erase_size_shift), pnorSize(ctx->flash_size) in Table() 34 void Table::prepareHeader() in prepareHeader() 36 decltype(auto) table = getNativeTable(); in prepareHeader() local 37 table.data.magic = PARTITION_HEADER_MAGIC; in prepareHeader() 38 table.data.version = PARTITION_VERSION_1; in prepareHeader() 39 table.data.size = blocks(); in prepareHeader() 40 table.data.entry_size = sizeof(pnor_partition); in prepareHeader() [all …]
|
H A D | pnor_partition_table.hpp | 1 /* SPDX-License-Identifier: Apache-2.0 */ 23 /** @brief Convert the input partition table to big endian. 25 * @param[in] src - reference to the pnor partition table 27 * @returns converted partition table 34 * @param[in] line - The ToC line to parse 35 * @param[in] blockSize - The flash block size in bytes 36 * @param[out] part - The partition object to populate with the information 47 /** @brief Compute XOR-based checksum, by XORing consecutive words 50 * @param[in] data - input data on which checksum is computed 70 /** @class Table [all …]
|
H A D | pnor_partition_defs.h | 1 /* SPDX-License-Identifier: Apache-2.0 */ 8 /* 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 11 * of another structure - which represents the partition. 14 * https://github.com/open-power/hostboot/blob/master/src/usr/pnor/ffs.h */ 32 * whether a partition is ECC protected, is read-only, is preserved across 40 …* [1] https://github.com/open-power/hostboot/blob/9acfce99596f12dcc60952f8506a77e542609cbf/src/usr… 69 * @name: Name of the partition - a null terminated string 70 * @base: The offset in the PNOR, in block-size (1 block = 4KB), [all …]
|
/openbmc/hiomapd/vpnor/ |
H A D | table.cpp | 1 // SPDX-License-Identifier: Apache-2.0 11 #include "vpnor/table.hpp" 19 #include <phosphor-logging/elog-errors.hpp> 33 Table::Table(const struct backend* be) : in Table() function in openpower::virtual_pnor::partition::Table 35 blockSize(1 << be->erase_size_shift), pnorSize(be->flash_size) in Table() 37 preparePartitions((const struct vpnor_data*)be->priv); in Table() 42 void Table::prepareHeader() in prepareHeader() 44 decltype(auto) table = getNativeTable(); in prepareHeader() local 45 table.data.magic = PARTITION_HEADER_MAGIC; in prepareHeader() 46 table.data.version = PARTITION_VERSION_1; in prepareHeader() [all …]
|
H A D | table.hpp | 1 /* SPDX-License-Identifier: Apache-2.0 */ 30 /** @brief Convert the input partition table to big endian. 32 * @param[in] src - reference to the pnor partition table 34 * @returns converted partition table 41 * @param[in] line - The ToC line to parse 42 * @param[in] blockSize - The flash block size in bytes 43 * @param[out] part - The partition object to populate with the information 54 /** @brief Compute XOR-based checksum, by XORing consecutive words 57 * @param[in] data - input data on which checksum is computed 80 /** @class Table [all …]
|
H A D | ffs.h | 1 /* SPDX-License-Identifier: Apache-2.0 */ 8 /* 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 11 * of another structure - which represents the partition. 14 * https://github.com/open-power/hostboot/blob/master/src/usr/pnor/ffs.h */ 32 * whether a partition is ECC protected, is read-only, is preserved across 40 …* [1] https://github.com/open-power/hostboot/blob/9acfce99596f12dcc60952f8506a77e542609cbf/src/usr… 69 * @name: Name of the partition - a null terminated string 70 * @base: The offset in the PNOR, in block-size (1 block = 4KB), [all …]
|
/openbmc/linux/block/partitions/ |
H A D | msdos.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * fs/partitions/msdos.c 6 * Copyright (C) 1991-1998 Linus Torvalds 9 * in the early extended-partition checks and added DM partitions 16 * More flexible handling of extended partitions - aeb, 950831 18 * Check partition table on IDE disks for common CHS translations 20 * Re-organised Feb 1998 Russell King 36 * the nr_sects and start_sect partition table entries are 43 return (sector_t)get_unaligned_le32(&p->nr_sects); in nr_sects() 48 return (sector_t)get_unaligned_le32(&p->start_sect); in start_sect() [all …]
|
/openbmc/u-boot/drivers/smem/ |
H A D | msm_smem.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. 21 * The Qualcomm shared memory system is an allocate-only heap structure that 26 * with a table of contents data structure (@smem_header) at the beginning of 38 * These partitions are referenced from an optional partition table 40 * partition table entries (@smem_ptable_entry) lists the involved processors 45 * two regions are cached and non-cached memory respectively. Each region 49 * Items in the non-cached region are allocated from the start of the partition 51 * is hence the region between the cached and non-cached offsets. The header of 89 * struct smem_proc_comm - proc_comm communication struct (legacy) [all …]
|
/openbmc/linux/drivers/soc/qcom/ |
H A D | smem.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. 25 * with a table of contents data structure (@smem_header) at the beginning of 37 * These partitions are referenced from an optional partition table 39 * partition table entries (@smem_ptable_entry) lists the involved processors 44 * two regions are cached and non-cached memory respectively. Each region 48 * Items in the non-cached region are allocated from the start of the partition 50 * is hence the region between the cached and non-cached offsets. The header of 59 * be held - currently lock number 3 of the sfpb or tcsr is used for this on all 92 * struct smem_proc_comm - proc_comm communication struct (legacy) [all …]
|
/openbmc/u-boot/doc/ |
H A D | README.gpt | 1 # SPDX-License-Identifier: GPL-2.0+ 9 - UUID -(Universally Unique Identifier) 10 - GUID - (Globally Unique ID) 11 - EFI - (Extensible Firmware Interface) 12 - UEFI - (Unified EFI) - EFI evolution 13 - GPT (GUID Partition Table) - it is the EFI standard part 14 - partitions - lists of available partitions (defined at u-boot): 19 This document describes the GPT partition table format and usage of 20 the gpt command in u-boot. 25 GPT for marking disks/partitions is using the UUID. It is supposed to be a [all …]
|
H A D | README.mediatek | 1 # SPDX-License-Identifier: GPL-2.0+ 7 This document describes how to compile the U-Boot and how to change U-Boot 13 -Set the cross compiler: 15 # export CROSS_COMPILE=/path/to/toolchain/arm-linux-gnueabi- 17 -Clean-up old residuals: 21 -Configure the U-Boot: 26 - For the MT7623n bananapi R2 board use "mt7623n_bpir2_defconfig" 27 - For the MT7629 reference board use "mt7629_rfb_defconfig" 32 -Bootrom -> MTK preloader -> U-Boot 34 - MT7623n [all …]
|
/openbmc/linux/drivers/mtd/ |
H A D | mtdpart.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org> 17 #include <linux/mtd/partitions.h> 31 kfree(mtd->name); in free_partition() 37 WARN_ON(!list_empty(&mtd->part.node)); in release_mtd_partition() 46 int wr_alignment = (parent->flags & MTD_NO_ERASE) ? in allocate_partition() 47 master->writesize : master->erasesize; in allocate_partition() 49 parent->part.size : parent->size; in allocate_partition() 57 name = kstrdup(part->name, GFP_KERNEL); in allocate_partition() 59 printk(KERN_ERR"memory allocation error while creating partitions for \"%s\"\n", in allocate_partition() [all …]
|
/openbmc/linux/Documentation/admin-guide/device-mapper/ |
H A D | unstriped.rst | 2 Device-mapper "unstriped" target 8 The device-mapper "unstriped" target provides a transparent mechanism to 9 unstripe a device-mapper "striped" target to access the underlying disks 10 without having to touch the true backing block-device. It can also be 11 used to unstripe a hardware RAID-0 to access backing disks. 14 <number of stripes> <chunk size> <stripe #> <dev_path> <offset> 33 An example of undoing an existing dm-stripe 34 ------------------------------------------- 47 SEQ_END=$((${NUM}-1)) 56 dd if=/dev/zero of=member-${i} bs=${MEMBER_SIZE} count=1 oflag=direct [all …]
|
/openbmc/openbmc/poky/documentation/ref-manual/ |
H A D | kickstart.rst | 1 .. SPDX-License-Identifier: CC-BY-SA-2.0-UK 7 .. _openembedded-kickstart-wks-reference: 27 https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html 44 - ``/path``: For example, "/", "/usr", or "/home" 46 - ``swap``: The created partition is used as swap space 49 Wic achieves this by adding entries to the filesystem table (fstab) 51 must also provide one of the ``--ondrive``, ``--ondisk``, or 52 ``--use-uuid`` partition options as part of the command. 57 ``--use-uuid`` and non-root *mountpoint*, including swap. The default 62 ``--ondisk`` to force the partition onto the ``sdb`` disk:: [all …]
|
/openbmc/u-boot/cmd/ |
H A D | gpt.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * cmd_gpt.c -- GPT (GUID Partition Table) handling command 31 * @param str - pointer to string 32 * @param env - pointer to pointer to extracted env 34 * @return - zero on successful expand and env is set 38 int ret = -1; in extract_env() 45 return -1; in extract_env() 47 if (!((strncmp(str, "${", 2) == 0) && (str[strlen(str) - 1] == '}'))) in extract_env() 48 return -1; in extract_env() 52 return -1; in extract_env() [all …]
|