| 8b4919ed | 18-Sep-2016 |
Simon Glass <sjg@chromium.org> |
patman: Flush output when there is no newline
Output which does not include a newline will not be displayed unless flushed. Add a flush to ensure that it becomes visible.
Signed-off-by: Simon Glass
patman: Flush output when there is no newline
Output which does not include a newline will not be displayed unless flushed. Add a flush to ensure that it becomes visible.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 24307d63 | 29-Aug-2016 |
Andreas Fenkart <andreas.fenkart@digitalstrom.com> |
Suspected Spam: Do not open attachements![PATCH 4/6] tools/env: flash_write_buf: enforce offset to be start of environment
This allows to take advantage of the environment being block aligned. This
Suspected Spam: Do not open attachements![PATCH 4/6] tools/env: flash_write_buf: enforce offset to be start of environment
This allows to take advantage of the environment being block aligned. This is not a new constraint. Writes always start at the begin of the environment, since the header with CRC/length as there. Every environment modification requires updating the header
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
show more ...
|
| ff95e579 | 29-Aug-2016 |
Andreas Fenkart <andreas.fenkart@digitalstrom.com> |
tools/env: lookup dev_type directly from flash_read_buf/flash_write_buf
flash_write_buf already looks up size/offset/#sector from struct envdev_s. It can look up mtd_type as well. Same applies to fl
tools/env: lookup dev_type directly from flash_read_buf/flash_write_buf
flash_write_buf already looks up size/offset/#sector from struct envdev_s. It can look up mtd_type as well. Same applies to flash_read_buf. Makes the interface simpler
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
show more ...
|
| c6012bbc | 29-Aug-2016 |
Andreas Fenkart <andreas.fenkart@digitalstrom.com> |
tools/env: pass bad block offset by value
the offset is not modified by linux ioctl call see mtd_ioctl{drivers/mtd/mtdchar.c} Makes the interface less ambiguous, since the caller can now exclude a m
tools/env: pass bad block offset by value
the offset is not modified by linux ioctl call see mtd_ioctl{drivers/mtd/mtdchar.c} Makes the interface less ambiguous, since the caller can now exclude a modification of blockstart
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
show more ...
|
| da5f7499 | 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Support packing the device tree
After any node/property deletion the device tree can be packed to remove spare space. Add a way to perform this operation.
Note that for fdt_fallback, fdtput a
dtoc: Support packing the device tree
After any node/property deletion the device tree can be packed to remove spare space. Add a way to perform this operation.
Note that for fdt_fallback, fdtput automatically packs the device tree after deletion, so no action is required here.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 0170804f | 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Move to using bytearray
Since we want to be able to change the in-memory device tree using libfdt, use a bytearray instead of a string. This makes interfacing from Python easier.
Signed-off-b
dtoc: Move to using bytearray
Since we want to be able to change the in-memory device tree using libfdt, use a bytearray instead of a string. This makes interfacing from Python easier.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 346179f0 | 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Prepare for supporting changing of device trees
For binman we need to support deleting properties in the device tree. This will change the offsets of nodes after the deletion. In preparation,
dtoc: Prepare for supporting changing of device trees
For binman we need to support deleting properties in the device tree. This will change the offsets of nodes after the deletion. In preparation, add code to keep track of when the offsets are invalid, and regenerate them.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 355c67c3 | 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Allow the device tree to be compiled from source
If a source device tree is provide to the Fdt() constructors, compile it automatically. This will be used in tests, where we want to build a pa
dtoc: Allow the device tree to be compiled from source
If a source device tree is provide to the Fdt() constructors, compile it automatically. This will be used in tests, where we want to build a particular test .dts file and check that it works correctly in binman.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 0faf6144 | 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
patman: Add a library to handle logging and progress
When tools want to display information of varying levels of importance, it helps to provide the user with control over the verbosity of these mes
patman: Add a library to handle logging and progress
When tools want to display information of varying levels of importance, it helps to provide the user with control over the verbosity of these messages. Progress messages work best if they are displayed and then removed from the display when no-longer relevant.
Add a new tout library (terminal out) to handle these tasks.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 1f1864b4 | 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
patman: Add a tools library for using temporary files
For tools which want to use input files and temporary output, it is useful to have the handling of these dealt with in one place. Add a new libr
patman: Add a tools library for using temporary files
For tools which want to use input files and temporary output, it is useful to have the handling of these dealt with in one place. Add a new library which allows input files to be read, and output files to be written, all based on a common directory structure.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| c322a850 | 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Move Widen() and GetPhandle() into the base class
These functions are identical in both subclasses. Move them into the base class.
Note: In fact there is a bug in one version, which was fixed
dtoc: Move Widen() and GetPhandle() into the base class
These functions are identical in both subclasses. Move them into the base class.
Note: In fact there is a bug in one version, which was fixed by this patch:
https://patchwork.ozlabs.org/patch/651697/
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| bc1dea36 | 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Move BytesToValue() and GetEmpty() into PropBase
These functions are currently in a separate fdt_util file. Since they are only used from PropBase and subclasses, it makes sense for them to be
dtoc: Move BytesToValue() and GetEmpty() into PropBase
These functions are currently in a separate fdt_util file. Since they are only used from PropBase and subclasses, it makes sense for them to be in the PropBase class.
Move these functions into fdt.py along with the list of types.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| a06a34b2 | 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Create a base class for Fdt
At present we have two separate implementations of the Fdt library, one which uses fdtget/fdtput and one which uses libfdt (via swig).
Before adding more functiona
dtoc: Create a base class for Fdt
At present we have two separate implementations of the Fdt library, one which uses fdtget/fdtput and one which uses libfdt (via swig).
Before adding more functionality it makes sense to create a base class for these. This will allow common functions to be shared, and make the Fdt API a little clearer.
Create a new fdt.py file with the base class, and adjust fdt_normal.py and fdt_fallback.py to use it.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|