| 1 |
dt-utils 2021.03.0 |
| 2 |
================== |
| 3 |
|
| 4 |
This release includes contributions from Ahmad Fatoum, Andrey Smirnov, Enrico |
| 5 |
Jorns, Jan Luebbe, Jan Remmet, Jookia, Juergen Borleis, Kim Christensen, Lucas |
| 6 |
Stach, Roland Hieber, Sascha Hauer, Stefan Agner, Steffen Trumtrar, Ulrich |
| 7 |
Ölmann, Uwe Kleine-König and Xogium. Thanks to all contributors! |
| 8 |
|
| 9 |
Possibly breaking changes |
| 10 |
------------------------- |
| 11 |
|
| 12 |
* commit a6ca873a368d "Don't install a pkg-config file for libdt" |
| 13 |
libdt isn't supposed to be installed as a system library as nobody wants to care about things like |
| 14 |
a stable API. Also the generated .pc file was completely bogus as it added "-labc" to the linker |
| 15 |
instead of -ldt-utils. |
| 16 |
|
| 17 |
* commit 2dbca4c3284b "state: keep backward compatibility" |
| 18 |
This changes barebox-state's default behaviour. |
| 19 |
Previous variants of the state variable set did not contain metadata. The read function in the |
| 20 |
'direct' storage backend honors this, but the write function doesn't, which makes an update of the |
| 21 |
state variable set impossible. |
| 22 |
This commit introduces the new compile time option '--enable-state-backward-compatibility' to |
| 23 |
./configure, which is disabled by default. If this compile time option is enabled, barebox-state |
| 24 |
will keep the storage in a format that can be read by barebox <= v2016.08.0 when writing variables |
| 25 |
into a 'direct' storage backend, or fail if this requirement cannot be guaranteed. |
| 26 |
|
| 27 |
* commit d1e4783c0051 "follow the Developer's Certificate of Origin", |
| 28 |
commit 886f13aa31a6 "Makefile: add ./DCO to the dist tarball" |
| 29 |
(see files README and DCO) |
| 30 |
|
| 31 |
New features |
| 32 |
------------ |
| 33 |
|
| 34 |
* libdt: |
| 35 |
- commit af85ab844b1d "libdt: support finding devices by partuuid", |
| 36 |
commit 9f3915824bc7 "libdt: support upper-case hexadecimals in value of partuuid property" |
| 37 |
This allows specifying partitions in devicetree that are actually not described in the |
| 38 |
devicetree to allow referencing them, e.g.: |
| 39 |
partitions { |
| 40 |
compatible = "fixed-partitions"; |
| 41 |
#address-cells = <1>; |
| 42 |
#size-cells = <1>; |
| 43 |
state_part: state { |
| 44 |
partuuid = "21367da7-c51f-499f-9aad-e1f366992365"; |
| 45 |
}; |
| 46 |
}; |
| 47 |
- commit 4826dcbce749 "libdt: enumerate amba bus as well" |
| 48 |
Make barebox-state usable on STM32MP1, which probes the SD/MMC host controller over amba, not |
| 49 |
the platform bus as most other ARM systems. |
| 50 |
|
| 51 |
* barebox-state: |
| 52 |
- add new options --quiet, --force, and --version |
| 53 |
. commit 52221e50b0df "barebox-state: complete cmdline options" |
| 54 |
. commit 15786485ab8b "barebox-state: add cmdline option "--version"" |
| 55 |
- commit 74cd46affa37 "barebox-state: get devicetree from file" |
| 56 |
Adds an -i/--input argument to barebox-state to allow passing a devicetree as a file instead of |
| 57 |
using it from the system. This can be used for example on systems that do not use device trees |
| 58 |
(such as x86) but where we want to use a dtb blob for describing the state storage and format. |
| 59 |
- commit 0a75604bc61f "barebox-state: have the --set option to avoid writes if possible" |
| 60 |
Previously, barebox-state --set would always dirty the state when successful. Users seeking to |
| 61 |
conserve write cycles thus have to --get the variable in question first to check whether to |
| 62 |
write it. Make life of such users easier by having barebox-state support this out-of-the-box. |
| 63 |
|
| 64 |
* dtblint: |
| 65 |
- commit 38d7af00e6cb "dtblint: check reset-gpio-active-high + reset-gpio for matching polarity" |
| 66 |
- commit 8498644efe82 "dtblint: add support for fsl,imx6dl-iomuxc" |
| 67 |
- commit a75ea34157c5 "dtblint: fsl,iomuxc: improve check for reserved bits" |
| 68 |
|
| 69 |
Bug Fixes |
| 70 |
--------- |
| 71 |
|
| 72 |
* barebox-state: |
| 73 |
- commit 99918b8f3ad2 "barebox-state: fix usage of multiple state instances" |
| 74 |
This makes concurrent calls to barebox-state with the following syntax possible: |
| 75 |
$ barebox-state --get blue.x & |
| 76 |
$ barebox-state --get yellow.y & |
| 77 |
- commit 634317cc9120 "state: backend_bucket_circular: fix double free()" |
| 78 |
- commit ef7355cccc3a "state: Fix lseek error check in state_backend_bucket_direct_read()" |
| 79 |
- commit d59af7f22ab4 "state: Fix lseek error check in state_backend_bucket_direct_write()" |
| 80 |
- commit f234f3ec9498 "state: Fix lseek error check in state_mtd_peb_read()" |
| 81 |
- commit b85142e1cbd4 "state: Fix lseek error check in state_mtd_peb_write()" |
| 82 |
- commit a1fe3159ca2a "state: check length" |
| 83 |
- commit b548f61a0460 "state: backend_bucket_circular: mark block as bad if mtd_peb_torture() failed" |
| 84 |
- commit fd48fe4efb40 "state: use /run to store lockfile" |
| 85 |
The old location /var/lock is considered legacy, and might no longer exist on all systems. |
| 86 |
|
| 87 |
* dtblint: |
| 88 |
- commit 1ec150f6927f "dtblint-imx-pinmux: fix wrong table entry" |
| 89 |
- commit 218b148b284c "dtblint-imx-pinmux: fix another set of wrong table entries" |
| 90 |
- commit 186ff7702c66 "dtblint-imx-pinmux: fix swmux suggested values" |
| 91 |
- commit 5b58e1fc72e9 "dtblint-imx-pinmux: fix another set of wrong table entries" |
| 92 |
|
| 93 |
Refactoring |
| 94 |
----------- |
| 95 |
|
| 96 |
* state: harmonise our code with barebox |
| 97 |
- commit 6ae166207bc8 "common: align declarations of dev_add_param_*() functions with barebox" |
| 98 |
|
| 99 |
* several smaller bugfixes, typo fixes, and cleanup: |
| 100 |
- commit 0cd8a9b06523 "of_get_devicepath: again correct comment" |
| 101 |
- commit 8c3b39c89307 "barebox-state: fix error message" |
| 102 |
- commit a927ee527036 "state: fix typo" |
| 103 |
- commit 9106360a3c85 "barebox-state: remove declaration of __state_uint8_get()" |
| 104 |
- commit e210e3b79be8 "barebox-state: remove unused variables" |
| 105 |
- commit 338b9962e28a "keystore-blob: remove unused variable" |
| 106 |
- commit 949bab33700e "base64: remove unused variable" |
| 107 |
- commit fc86ad03b4dc "base64: remove duplicate ‘const’ declaration specifier" |
| 108 |
- commit 89d033284cb6 "state: fix formatting of "off_t" variables" |
| 109 |
- commit 5588a6c32d54 "state: fix formatting of "uint32_t" variables" |
| 110 |
- commit 4bfd158f068d "remove leftovers from libabc skeleton" |
| 111 |
- commit baee943b2c98 "state: drop unused code and declarations for non-existing functions" |
| 112 |
- commit 20fb10ce5d55 "state: backend_storage: harmonize code with barebox" |
| 113 |
- commit e267c877e2ee "state: harmonize code with barebox" |
| 114 |
- commit 1aeb1e4fdff0 "state: harmonize code with barebox" |
| 115 |
- commit 81c542966f99 "configure: remove build time option '--disable-logging'" |
| 116 |
(which wasn't used anywhere) |
| 117 |
- commit 8874600851ac "configure: remove build time option '--enable-debug'" |
| 118 |
(which wasn't used anywhere) |
| 119 |
- commit 5f1eb84d2364 "configure: update repository URL" |
| 120 |
|
| 121 |
|
| 122 |
dt-utils 2019.01.0 |
| 123 |
================== |
| 124 |
This release includes contributions from Andrey Smirnov, Antony Pavlov, Daniel Schultz, Enrico |
| 125 |
Jorns, Ian Abbott, Juergen Borleis, Ladislav Michl, Lucas Stach, Michael Olbrich, Philipp Zabel, |
| 126 |
Roland Hieber, Sam Ravnborg, Sascha Hauer, Ulrich Ölmann, and Uwe Kleine-König. Thanks to all |
| 127 |
contributors! |
| 128 |
|
| 129 |
Changes: |
| 130 |
* libdt: fix leaks of memory returned by read_file() calls |
| 131 |
* libdt: xzalloc: die on failure, like the similar-named kernel function |
| 132 |
* libdt: add of_property_write_string() as a convenience function to set a property to a string |
| 133 |
* libdt: add dev_set_name() as a convenience function to set a device's name |
| 134 |
* state: harmonize our implementation with upstream barebox: |
| 135 |
- Fixes: |
| 136 |
. backend_bucket_circular: fix the case when write size is not a power of 2 |
| 137 |
. backend_bucket_circular: fix length check when reading old state format |
| 138 |
. backend_bucket_circular: fix two memory leaks |
| 139 |
. backend_storage: don't refresh the storage needlessly |
| 140 |
. fix error return value when state_new_from_node() cannot resolve a phandle |
| 141 |
. fix use-after-free in state_backend_format_dtb_pack() |
| 142 |
. make finding the backend node more robust by using its reproducible name |
| 143 |
. remove checks for xzalloc() returning NULL, which cannot happen |
| 144 |
. do not complain about missing backend-storage-type, which is irrelevant for mtd devices |
| 145 |
- Potentially breaking changes: |
| 146 |
. make pointing to the backend using a phandle the only supported method |
| 147 |
. state nodes without an alias in the /aliases/ node now lead to an error. barebox already creates |
| 148 |
a missing alias in the fixupped device tree automatically since v2017.06.0. |
| 149 |
. refuse to set the read-only 'dirty' state variable |
| 150 |
. remove unused arguments from state_new_from_node() |
| 151 |
- New features: |
| 152 |
. add new 'init_from_defaults' state variable to allow detection whether a state has been |
| 153 |
initialized from default values, i.e. state_load() failed. |
| 154 |
. add an internal variable to protect existing data in a state bucket and make updates of the |
| 155 |
state implementation more robust |
| 156 |
. add new function state_read_mac() to read a MAC address from state |
| 157 |
. notify when the old state format is detected (this was previously a debugging message) |
| 158 |
. provide an error message when an error occurs in state_convert_node_variable() |
| 159 |
. add more debugging messages |
| 160 |
- port several changes to barebox's fixup functions, but since device trees are already fixupped at |
| 161 |
boot time, this code is never used by dt-utils |
| 162 |
- some further minor refactoring as well fixing some typos and documentation comments |
| 163 |
|
| 164 |
dt-utils 2018.05.1 |
| 165 |
================== |
| 166 |
change project mail to [email protected] |
| 167 |
fix compilation for glibc version 2.27.9000-36.fc29 and newer ("redefinition of 'struct statx'") |
| 168 |
fix compiler warnings on gcc >= 6 about wrong type conversion in messages |
| 169 |
|
| 170 |
dt-utils 2018.05.0 |
| 171 |
================== |
| 172 |
|
| 173 |
barebox-state: block while waiting for file lock |
| 174 |
barebox-state: Fail for unhandled arguments |
| 175 |
barebox-state: fix termination of long_options[] to fix segfault |
| 176 |
common: Include sys/types.h header to fix build with musl |
| 177 |
common: Rename strlcpy to DT_strlcpy to fix build with uClibc |
| 178 |
barebox-state: backend_raw: init digest earlier |
| 179 |
|
| 180 |
dt-utils 2017.03.0 |
| 181 |
================== |
| 182 |
barebox-state: Support new OF partition binding with partitions node |
| 183 |
barebox-state: Support reading state even when it can't be authenticated (-f) |
| 184 |
barebox-state: Fix -EUCLEAN handling: Data is valid when -EUCLEAN is returned |
| 185 |
barebox-state: Sync with barebox codebase |
| 186 |
|
| 187 |
dt-utils 2016.12.0 |
| 188 |
================== |
| 189 |
libdt: cache udev scan results |
| 190 |
libdt: limit device enumeration |
| 191 |
barebox-state: fall back to /state if there is no alias defined |
| 192 |
backend_storage: fix missing include |
| 193 |
libdt: take the parent to search for block devices |
| 194 |
|
| 195 |
dt-utils 2016.08.0 |
| 196 |
================== |
| 197 |
barebox-state: Fix printing variable on get. |
| 198 |
barebox-state: Fix exit code for missing or invalid argument. |
| 199 |
|
| 200 |
dt-utils 2016.07.2 |
| 201 |
================== |
| 202 |
barebox-state: Restore backwards compatibility with older versions and add |
| 203 |
blockdevice detection. |
| 204 |
|
| 205 |
dt-utils 2016.07.1 |
| 206 |
================== |
| 207 |
barebox-state: Support to use multiple state frameworks at for the same call. |
| 208 |
dtblint: new checks for pinctrl-imx6q and imx*-fec. |
| 209 |
|
| 210 |
dt-utils 2016.07.0 |
| 211 |
================== |
| 212 |
barebox-state: Update to latest mainline state. This also speeds up reading of |
| 213 |
state. |
| 214 |
|
| 215 |
dt-utils 2016.05.2 |
| 216 |
================== |
| 217 |
barebox-state: Fix info outputs to be on stderr |
| 218 |
|
| 219 |
dt-utils 2016.05.1 |
| 220 |
================== |
| 221 |
barebox-state: Update bitflip handling |
| 222 |
|
| 223 |
dt-utils 2016.05.0 |
| 224 |
================== |
| 225 |
barebox-state: Update to refactored state code from barebox |
| 226 |
barebox-state: Add a global lock |
| 227 |
|
| 228 |
dt-utils 2016.02.0 |
| 229 |
================== |
| 230 |
keystore-blob: Uses system independent path to blob_gen |
| 231 |
|
| 232 |
dt-utils 2015.10.0 |
| 233 |
================== |
| 234 |
Resync with barebox. |
| 235 |
Add support for imx6 based caam keystore |
| 236 |
|
| 237 |
dt-utils 2015.06.1 |
| 238 |
================== |
| 239 |
Resync with barebox. |
| 240 |
- string support: trailing zero not needed |
| 241 |
|
| 242 |
dt-utils 2015.06.0 |
| 243 |
================== |
| 244 |
Resync with barebox. |
| 245 |
- add hmac support |
| 246 |
- add uint8 and string support |
| 247 |
|
| 248 |
dt-utils 2015.05.1 |
| 249 |
================== |
| 250 |
Resync with barebox. |
| 251 |
|
| 252 |
dt-utils 2015.05.0 |
| 253 |
================== |
| 254 |
Renamed to dt-utils. |
| 255 |
|
| 256 |
libdt 2014.11.0 |
| 257 |
=============== |
| 258 |
Initial release. |