#
ce0e9e39 |
|
14-Oct-2023 |
Simon Glass <sjg@chromium.org> |
binman: Move stage header into a CBFS attribute cbfsutil completely changed the way that stages are formatted in CBFS. Adjust the binman implementation to do the same. This mirrors commit 81dc20e744 in coreboot. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
fe35c2f0 |
|
14-Oct-2023 |
Simon Glass <sjg@chromium.org> |
binman: Rename TYPE_STAGE to TYPE_LEGACY_STAGE In preparation for changing how stages are stored, rename the existing stage tag. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
ab326010 |
|
14-Oct-2023 |
Simon Glass <sjg@chromium.org> |
binman: Replace FILENAME_ALIGN 16 with ATTRIBUTE_ALIGN 4 cbfsutil changed to 4-byte alignment for filenames instead of 16. Adjust the binman implementation to do the same. This mirrors commit 5779ca718c in coreboot. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
bd13255a |
|
14-Oct-2023 |
Simon Glass <sjg@chromium.org> |
binman: Don't add compression attribute for uncompressed files cbfsutil changed to skip adding a compression attribute if there is no compression. Adjust the binman implementation to do the same. This mirrors commit 105cdf5625 in coreboot. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Neha Malcom Francis <n-francis@ti.com> |
#
4583c002 |
|
23-Feb-2023 |
Simon Glass <sjg@chromium.org> |
patman: Move library functions into a library directory The patman directory has a number of modules which are used by other tools in U-Boot. This makes it hard to package the tools using pypi since the common files must be copied along with the tool that uses them. To address this, move these files into a new u_boot_pylib library. This can be packaged separately and listed as a dependency of each tool. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
edafeb8d |
|
19-Aug-2022 |
Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> |
binman: Select compression bintools in cbfs_util class Select the lz4 and lzma_alone bintools in cbfs_util class to centralize the supported compression algorithm evaluation inside the class and over multiple classes. Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
#
c1aa66e7 |
|
29-Jan-2022 |
Simon Glass <sjg@chromium.org> |
patman: Convert camel case in tools.py Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
33ce3515 |
|
09-Jan-2022 |
Simon Glass <sjg@chromium.org> |
binman: Convert to using the lz4 bintool Update the code to use this bintool, instead of running lz4 directly. This simplifies the code and provides more consistency. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5417da57 |
|
09-Jan-2022 |
Simon Glass <sjg@chromium.org> |
binman: Convert to using the CBFS bintool Update the CBFS tests to use this bintool, instead of running cbfstool directly. This simplifies the overall code and provides more consistency, as well as supporting missing bintools. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
bf776679 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
patman: Move to absolute imports At present patman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move patman to use absolute imports. This requires changes in tools which use the patman libraries (which is most of them). Signed-off-by: Simon Glass <sjg@chromium.org> |
#
16287933 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
binman: Move to absolute imports At present binman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move binman to use absolute imports. This enables removable of the path adjusting in Entry also. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
83a45187 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
patman: Drop references to __future__ We don't need these now that the tools using Python 3. Drop them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
3b3e3c0f |
|
31-Oct-2019 |
Simon Glass <sjg@chromium.org> |
patman: Adjust 'command' to return strings instead of bytes At present all the 'command' methods return bytes. Most of the time we actually want strings, so change this. We still need to keep the internal representation as bytes since otherwise unicode strings might break over a read() boundary (e.g. 4KB), causing errors. But we can convert the end result to strings. Add a 'binary' parameter to cover the few cases where bytes are needed. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
17a7421f |
|
20-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a prefix before CBFS hex offsets Add a 0x prefix to these errors to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
e073d4e1 |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add support for fixed-offset files in CBFS A feature of CBFS is that it allows files to be positioned at particular offset (as with binman in general). This is useful to support execute-in-place (XIP) code, since this may not be relocatable. Add a new cbfs-offset property to control this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7c173ced |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Pad empty areas of the CBFS with files When there is lots of open space in a CBFS it is normally padded with 'empty' files so that sequentially scanning the CBFS can skip from one to the next without a break. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
4997a7ed |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a utility library for coreboot CBFS Coreboot uses a simple flash-based filesystem called Coreboot Filesystem (CBFS) to organise files used during boot. This allows files to be named and their position in the flash to be set. It has special features for dealing with x86 devices which typically memory-map their SPI flash to the top of 32-bit address space and need a 'boot block' ending there. Create a library to help create and read CBFS files. This includes a writer class, a reader class and associated other helpers. Only a subset of features are currently supported. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
4583c002 |
|
23-Feb-2023 |
Simon Glass <sjg@chromium.org> |
patman: Move library functions into a library directory The patman directory has a number of modules which are used by other tools in U-Boot. This makes it hard to package the tools using pypi since the common files must be copied along with the tool that uses them. To address this, move these files into a new u_boot_pylib library. This can be packaged separately and listed as a dependency of each tool. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
edafeb8d |
|
19-Aug-2022 |
Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> |
binman: Select compression bintools in cbfs_util class Select the lz4 and lzma_alone bintools in cbfs_util class to centralize the supported compression algorithm evaluation inside the class and over multiple classes. Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
#
c1aa66e7 |
|
29-Jan-2022 |
Simon Glass <sjg@chromium.org> |
patman: Convert camel case in tools.py Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
33ce3515 |
|
09-Jan-2022 |
Simon Glass <sjg@chromium.org> |
binman: Convert to using the lz4 bintool Update the code to use this bintool, instead of running lz4 directly. This simplifies the code and provides more consistency. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5417da57 |
|
09-Jan-2022 |
Simon Glass <sjg@chromium.org> |
binman: Convert to using the CBFS bintool Update the CBFS tests to use this bintool, instead of running cbfstool directly. This simplifies the overall code and provides more consistency, as well as supporting missing bintools. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
bf776679 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
patman: Move to absolute imports At present patman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move patman to use absolute imports. This requires changes in tools which use the patman libraries (which is most of them). Signed-off-by: Simon Glass <sjg@chromium.org> |
#
16287933 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
binman: Move to absolute imports At present binman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move binman to use absolute imports. This enables removable of the path adjusting in Entry also. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
83a45187 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
patman: Drop references to __future__ We don't need these now that the tools using Python 3. Drop them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
3b3e3c0f |
|
31-Oct-2019 |
Simon Glass <sjg@chromium.org> |
patman: Adjust 'command' to return strings instead of bytes At present all the 'command' methods return bytes. Most of the time we actually want strings, so change this. We still need to keep the internal representation as bytes since otherwise unicode strings might break over a read() boundary (e.g. 4KB), causing errors. But we can convert the end result to strings. Add a 'binary' parameter to cover the few cases where bytes are needed. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
17a7421f |
|
20-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a prefix before CBFS hex offsets Add a 0x prefix to these errors to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
e073d4e1 |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add support for fixed-offset files in CBFS A feature of CBFS is that it allows files to be positioned at particular offset (as with binman in general). This is useful to support execute-in-place (XIP) code, since this may not be relocatable. Add a new cbfs-offset property to control this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7c173ced |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Pad empty areas of the CBFS with files When there is lots of open space in a CBFS it is normally padded with 'empty' files so that sequentially scanning the CBFS can skip from one to the next without a break. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
4997a7ed |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a utility library for coreboot CBFS Coreboot uses a simple flash-based filesystem called Coreboot Filesystem (CBFS) to organise files used during boot. This allows files to be named and their position in the flash to be set. It has special features for dealing with x86 devices which typically memory-map their SPI flash to the top of 32-bit address space and need a 'boot block' ending there. Create a library to help create and read CBFS files. This includes a writer class, a reader class and associated other helpers. Only a subset of features are currently supported. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
edafeb8d |
|
19-Aug-2022 |
Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> |
binman: Select compression bintools in cbfs_util class Select the lz4 and lzma_alone bintools in cbfs_util class to centralize the supported compression algorithm evaluation inside the class and over multiple classes. Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
#
c1aa66e7 |
|
29-Jan-2022 |
Simon Glass <sjg@chromium.org> |
patman: Convert camel case in tools.py Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
33ce3515 |
|
09-Jan-2022 |
Simon Glass <sjg@chromium.org> |
binman: Convert to using the lz4 bintool Update the code to use this bintool, instead of running lz4 directly. This simplifies the code and provides more consistency. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5417da57 |
|
09-Jan-2022 |
Simon Glass <sjg@chromium.org> |
binman: Convert to using the CBFS bintool Update the CBFS tests to use this bintool, instead of running cbfstool directly. This simplifies the overall code and provides more consistency, as well as supporting missing bintools. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
bf776679 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
patman: Move to absolute imports At present patman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move patman to use absolute imports. This requires changes in tools which use the patman libraries (which is most of them). Signed-off-by: Simon Glass <sjg@chromium.org> |
#
16287933 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
binman: Move to absolute imports At present binman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move binman to use absolute imports. This enables removable of the path adjusting in Entry also. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
83a45187 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
patman: Drop references to __future__ We don't need these now that the tools using Python 3. Drop them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
3b3e3c0f |
|
31-Oct-2019 |
Simon Glass <sjg@chromium.org> |
patman: Adjust 'command' to return strings instead of bytes At present all the 'command' methods return bytes. Most of the time we actually want strings, so change this. We still need to keep the internal representation as bytes since otherwise unicode strings might break over a read() boundary (e.g. 4KB), causing errors. But we can convert the end result to strings. Add a 'binary' parameter to cover the few cases where bytes are needed. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
17a7421f |
|
20-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a prefix before CBFS hex offsets Add a 0x prefix to these errors to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
e073d4e1 |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add support for fixed-offset files in CBFS A feature of CBFS is that it allows files to be positioned at particular offset (as with binman in general). This is useful to support execute-in-place (XIP) code, since this may not be relocatable. Add a new cbfs-offset property to control this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7c173ced |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Pad empty areas of the CBFS with files When there is lots of open space in a CBFS it is normally padded with 'empty' files so that sequentially scanning the CBFS can skip from one to the next without a break. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
4997a7ed |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a utility library for coreboot CBFS Coreboot uses a simple flash-based filesystem called Coreboot Filesystem (CBFS) to organise files used during boot. This allows files to be named and their position in the flash to be set. It has special features for dealing with x86 devices which typically memory-map their SPI flash to the top of 32-bit address space and need a 'boot block' ending there. Create a library to help create and read CBFS files. This includes a writer class, a reader class and associated other helpers. Only a subset of features are currently supported. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
c1aa66e7 |
|
29-Jan-2022 |
Simon Glass <sjg@chromium.org> |
patman: Convert camel case in tools.py Convert this file to snake case and update all files which use it. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
33ce3515 |
|
09-Jan-2022 |
Simon Glass <sjg@chromium.org> |
binman: Convert to using the lz4 bintool Update the code to use this bintool, instead of running lz4 directly. This simplifies the code and provides more consistency. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5417da57 |
|
09-Jan-2022 |
Simon Glass <sjg@chromium.org> |
binman: Convert to using the CBFS bintool Update the CBFS tests to use this bintool, instead of running cbfstool directly. This simplifies the overall code and provides more consistency, as well as supporting missing bintools. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
bf776679 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
patman: Move to absolute imports At present patman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move patman to use absolute imports. This requires changes in tools which use the patman libraries (which is most of them). Signed-off-by: Simon Glass <sjg@chromium.org> |
#
16287933 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
binman: Move to absolute imports At present binman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move binman to use absolute imports. This enables removable of the path adjusting in Entry also. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
83a45187 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
patman: Drop references to __future__ We don't need these now that the tools using Python 3. Drop them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
3b3e3c0f |
|
31-Oct-2019 |
Simon Glass <sjg@chromium.org> |
patman: Adjust 'command' to return strings instead of bytes At present all the 'command' methods return bytes. Most of the time we actually want strings, so change this. We still need to keep the internal representation as bytes since otherwise unicode strings might break over a read() boundary (e.g. 4KB), causing errors. But we can convert the end result to strings. Add a 'binary' parameter to cover the few cases where bytes are needed. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
17a7421f |
|
20-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a prefix before CBFS hex offsets Add a 0x prefix to these errors to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
e073d4e1 |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add support for fixed-offset files in CBFS A feature of CBFS is that it allows files to be positioned at particular offset (as with binman in general). This is useful to support execute-in-place (XIP) code, since this may not be relocatable. Add a new cbfs-offset property to control this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7c173ced |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Pad empty areas of the CBFS with files When there is lots of open space in a CBFS it is normally padded with 'empty' files so that sequentially scanning the CBFS can skip from one to the next without a break. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
4997a7ed |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a utility library for coreboot CBFS Coreboot uses a simple flash-based filesystem called Coreboot Filesystem (CBFS) to organise files used during boot. This allows files to be named and their position in the flash to be set. It has special features for dealing with x86 devices which typically memory-map their SPI flash to the top of 32-bit address space and need a 'boot block' ending there. Create a library to help create and read CBFS files. This includes a writer class, a reader class and associated other helpers. Only a subset of features are currently supported. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
33ce3515 |
|
09-Jan-2022 |
Simon Glass <sjg@chromium.org> |
binman: Convert to using the lz4 bintool Update the code to use this bintool, instead of running lz4 directly. This simplifies the code and provides more consistency. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
5417da57 |
|
09-Jan-2022 |
Simon Glass <sjg@chromium.org> |
binman: Convert to using the CBFS bintool Update the CBFS tests to use this bintool, instead of running cbfstool directly. This simplifies the overall code and provides more consistency, as well as supporting missing bintools. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
bf776679 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
patman: Move to absolute imports At present patman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move patman to use absolute imports. This requires changes in tools which use the patman libraries (which is most of them). Signed-off-by: Simon Glass <sjg@chromium.org> |
#
16287933 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
binman: Move to absolute imports At present binman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move binman to use absolute imports. This enables removable of the path adjusting in Entry also. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
83a45187 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
patman: Drop references to __future__ We don't need these now that the tools using Python 3. Drop them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
3b3e3c0f |
|
31-Oct-2019 |
Simon Glass <sjg@chromium.org> |
patman: Adjust 'command' to return strings instead of bytes At present all the 'command' methods return bytes. Most of the time we actually want strings, so change this. We still need to keep the internal representation as bytes since otherwise unicode strings might break over a read() boundary (e.g. 4KB), causing errors. But we can convert the end result to strings. Add a 'binary' parameter to cover the few cases where bytes are needed. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
17a7421f |
|
20-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a prefix before CBFS hex offsets Add a 0x prefix to these errors to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
e073d4e1 |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add support for fixed-offset files in CBFS A feature of CBFS is that it allows files to be positioned at particular offset (as with binman in general). This is useful to support execute-in-place (XIP) code, since this may not be relocatable. Add a new cbfs-offset property to control this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7c173ced |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Pad empty areas of the CBFS with files When there is lots of open space in a CBFS it is normally padded with 'empty' files so that sequentially scanning the CBFS can skip from one to the next without a break. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
4997a7ed |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a utility library for coreboot CBFS Coreboot uses a simple flash-based filesystem called Coreboot Filesystem (CBFS) to organise files used during boot. This allows files to be named and their position in the flash to be set. It has special features for dealing with x86 devices which typically memory-map their SPI flash to the top of 32-bit address space and need a 'boot block' ending there. Create a library to help create and read CBFS files. This includes a writer class, a reader class and associated other helpers. Only a subset of features are currently supported. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
bf776679 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
patman: Move to absolute imports At present patman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move patman to use absolute imports. This requires changes in tools which use the patman libraries (which is most of them). Signed-off-by: Simon Glass <sjg@chromium.org> |
#
16287933 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
binman: Move to absolute imports At present binman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move binman to use absolute imports. This enables removable of the path adjusting in Entry also. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
83a45187 |
|
17-Apr-2020 |
Simon Glass <sjg@chromium.org> |
patman: Drop references to __future__ We don't need these now that the tools using Python 3. Drop them. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
3b3e3c0f |
|
31-Oct-2019 |
Simon Glass <sjg@chromium.org> |
patman: Adjust 'command' to return strings instead of bytes At present all the 'command' methods return bytes. Most of the time we actually want strings, so change this. We still need to keep the internal representation as bytes since otherwise unicode strings might break over a read() boundary (e.g. 4KB), causing errors. But we can convert the end result to strings. Add a 'binary' parameter to cover the few cases where bytes are needed. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
17a7421f |
|
20-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a prefix before CBFS hex offsets Add a 0x prefix to these errors to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
e073d4e1 |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add support for fixed-offset files in CBFS A feature of CBFS is that it allows files to be positioned at particular offset (as with binman in general). This is useful to support execute-in-place (XIP) code, since this may not be relocatable. Add a new cbfs-offset property to control this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7c173ced |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Pad empty areas of the CBFS with files When there is lots of open space in a CBFS it is normally padded with 'empty' files so that sequentially scanning the CBFS can skip from one to the next without a break. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
4997a7ed |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a utility library for coreboot CBFS Coreboot uses a simple flash-based filesystem called Coreboot Filesystem (CBFS) to organise files used during boot. This allows files to be named and their position in the flash to be set. It has special features for dealing with x86 devices which typically memory-map their SPI flash to the top of 32-bit address space and need a 'boot block' ending there. Create a library to help create and read CBFS files. This includes a writer class, a reader class and associated other helpers. Only a subset of features are currently supported. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
3b3e3c0f |
|
31-Oct-2019 |
Simon Glass <sjg@chromium.org> |
patman: Adjust 'command' to return strings instead of bytes At present all the 'command' methods return bytes. Most of the time we actually want strings, so change this. We still need to keep the internal representation as bytes since otherwise unicode strings might break over a read() boundary (e.g. 4KB), causing errors. But we can convert the end result to strings. Add a 'binary' parameter to cover the few cases where bytes are needed. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
17a7421f |
|
20-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a prefix before CBFS hex offsets Add a 0x prefix to these errors to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
e073d4e1 |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add support for fixed-offset files in CBFS A feature of CBFS is that it allows files to be positioned at particular offset (as with binman in general). This is useful to support execute-in-place (XIP) code, since this may not be relocatable. Add a new cbfs-offset property to control this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7c173ced |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Pad empty areas of the CBFS with files When there is lots of open space in a CBFS it is normally padded with 'empty' files so that sequentially scanning the CBFS can skip from one to the next without a break. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
4997a7ed |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a utility library for coreboot CBFS Coreboot uses a simple flash-based filesystem called Coreboot Filesystem (CBFS) to organise files used during boot. This allows files to be named and their position in the flash to be set. It has special features for dealing with x86 devices which typically memory-map their SPI flash to the top of 32-bit address space and need a 'boot block' ending there. Create a library to help create and read CBFS files. This includes a writer class, a reader class and associated other helpers. Only a subset of features are currently supported. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
17a7421f |
|
20-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a prefix before CBFS hex offsets Add a 0x prefix to these errors to avoid confusion. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
e073d4e1 |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add support for fixed-offset files in CBFS A feature of CBFS is that it allows files to be positioned at particular offset (as with binman in general). This is useful to support execute-in-place (XIP) code, since this may not be relocatable. Add a new cbfs-offset property to control this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
7c173ced |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Pad empty areas of the CBFS with files When there is lots of open space in a CBFS it is normally padded with 'empty' files so that sequentially scanning the CBFS can skip from one to the next without a break. Add support for this. Signed-off-by: Simon Glass <sjg@chromium.org> |
#
4997a7ed |
|
08-Jul-2019 |
Simon Glass <sjg@chromium.org> |
binman: Add a utility library for coreboot CBFS Coreboot uses a simple flash-based filesystem called Coreboot Filesystem (CBFS) to organise files used during boot. This allows files to be named and their position in the flash to be set. It has special features for dealing with x86 devices which typically memory-map their SPI flash to the top of 32-bit address space and need a 'boot block' ending there. Create a library to help create and read CBFS files. This includes a writer class, a reader class and associated other helpers. Only a subset of features are currently supported. Signed-off-by: Simon Glass <sjg@chromium.org> |