-
Notifications
You must be signed in to change notification settings - Fork 39
Comparing changes
Open a pull request
base repository: sbabic/libubootenv
base: v0.3.4
head repository: sbabic/libubootenv
compare: master
Commits on Jun 15, 2023
-
Revert "fw_setenv: fix bug when SPI flash write size != sector size"
This reverts commit 44ecc1c. mtd writesize was errouneously interpreted as maximum allowed size, but it is the minimum size. The patch raises performance issues because on NOR flashes single bytes are written. Signed-off-by: Stefano Babic <sbabic@denx.de>
Configuration menu - View commit details
-
Copy full SHA for 9f17a00 - Browse repository at this point
Copy the full SHA 9f17a00View commit details
Commits on Aug 14, 2023
-
validate_flags: Bugfix for TYPE_ATTR_HEX
value should start with the '0' character, corresponding to 0x30. Before this patch we checked for 0x00 instead. Reviewed-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Philip Oberfichtner <pro@denx.de>
Configuration menu - View commit details
-
Copy full SHA for 3e450ba - Browse repository at this point
Copy the full SHA 3e450baView commit details -
validate_flags: Use isdigit() instead of strtoull()
Using strtoull() is unreliable for testing if the input is a number. It is implementation-defined, whether or not errno is set. Furthermore, the decimal type has to be handled separately from the hex type. U-Boot will reject an "0x10" entry as decimal, "16" is expected instead. Reviewed-by: Stefano Babic <sbabic@denx.de> Signed-off-by: Philip Oberfichtner <pro@denx.de>
Configuration menu - View commit details
-
Copy full SHA for 1105150 - Browse repository at this point
Copy the full SHA 1105150View commit details
Commits on Sep 2, 2023
-
Try to autoselect namespace based on DT property
The bootloader might be able to tell us where the currently used environment is located. Use the string from the "/chosen/u-boot,env-config" devicetree property as namespace selector if available. Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de> Reviewed-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for 3210931 - Browse repository at this point
Copy the full SHA 3210931View commit details -
docs: fw_env_config.md: Limit line length
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Configuration menu - View commit details
-
Copy full SHA for 13db287 - Browse repository at this point
Copy the full SHA 13db287View commit details -
docs: fw_env_config.md: Add info about namespace selection in YAML co…
…nfig Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Configuration menu - View commit details
-
Copy full SHA for eac01b4 - Browse repository at this point
Copy the full SHA eac01b4View commit details -
Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for 3a9e42f - Browse repository at this point
Copy the full SHA 3a9e42fView commit details
Commits on Sep 20, 2023
-
Add libuboot_namespace_from_dt
Move code from fw_printenv to library. libuboot_namespace_from_dt looks into DT and reads the namespace for the bootloader, if any. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> Suggested-by: Frieder Schrempf <frieder.schrempf@kontron.de> Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Configuration menu - View commit details
-
Copy full SHA for beb2dc8 - Browse repository at this point
Copy the full SHA beb2dc8View commit details
Commits on Oct 6, 2023
-
Allow specifying UBI Volumes by MTD path
In cases where the env is in an unattached UBI volume we may need to specify the volume name via the MTD path to attach. For this to work correctly we should first scan for any already attached UBI devices to see if they correspond to the mtd partition number in our configuration, if no corresponding attached mtd devices are found we should attempt to ubiattach to the configured MTD path. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fc9a399 - Browse repository at this point
Copy the full SHA fc9a399View commit details
Commits on Oct 8, 2023
-
Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for 3f4d15e - Browse repository at this point
Copy the full SHA 3f4d15eView commit details
Commits on Nov 28, 2023
-
Move MTD related function to separate file
This is to support other OS that do not have MTD support like Linux. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for 86421eb - Browse repository at this point
Copy the full SHA 86421ebView commit details
Commits on Dec 6, 2023
-
uboot_env: Make consume_event static
consume_event() is only used locally in the same compilation unit and needn't be exported. Signed-off-by: Christian Storm <christian.storm@siemens.com>
Configuration menu - View commit details
-
Copy full SHA for 9c8fb7f - Browse repository at this point
Copy the full SHA 9c8fb7fView commit details -
uboot_env: Emulate %ms in sscanf()
Signed-off-by: Christian Storm <christian.storm@siemens.com>
Configuration menu - View commit details
-
Copy full SHA for c478e8d - Browse repository at this point
Copy the full SHA c478e8dView commit details
Commits on Jan 22, 2024
-
Use stdint.h integer types on FreeBSD
FreeBSD and other BSDs have not defined u{8,32,64}, so use their stdint.h pendants. This is in the BSD #ifdef path providing a shim for MTD which is not available on BSDs anyway. Signed-off-by: Christian Storm <christian.storm@siemens.com> Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for 0efb622 - Browse repository at this point
Copy the full SHA 0efb622View commit details
Commits on Apr 21, 2024
-
Handle race conditions in UBI_IOCATT
If UBI_IOCATT was called while the attachment was already in progress we may get an EEXIST error. If this happens get the ubi_num with ubi_get_dev_id_from_mtd instead. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Acked-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for 5a6f16a - Browse repository at this point
Copy the full SHA 5a6f16aView commit details
Commits on May 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 248ae58 - Browse repository at this point
Copy the full SHA 248ae58View commit details
Commits on May 29, 2024
-
Factorize function to set variables's flags
Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for 07ea1db - Browse repository at this point
Copy the full SHA 07ea1dbView commit details -
Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for e4d6ae5 - Browse repository at this point
Copy the full SHA e4d6ae5View commit details -
Let set a list of writable variables
In U-Boot, it is possible to list which variables could be changed via CONFIG_ENV_WRITEABLE_LIST. This was not supported by this library, but it does not raise a security leak. In fact, U-Boot will simply discard if a variable is not in the list. However, in user space any variable can be set, and the output of fw_printenv is not what the bootloader really accepts. This patch fills the gap and let add (just for YML configuration) a list of variables that can be set and their flags. The default policy is that all variables are accepted, exactly as it is done in U-Boot, and check is done only if the list is found in the configuration file. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for 6b1c689 - Browse repository at this point
Copy the full SHA 6b1c689View commit details
Commits on Jul 6, 2024
-
src/uboot_env.c: Increase line length
Increase LINE_LENGTH from 1024 to 2048 because nowadays for some boards U-Boot CONFIG_SYS_CBSIZE (and CONFIG_SYS_PBSIZE respectively) is greater than 1024. This leads to truncating longer lines which can be fatal in specific cases, for example with a long bootcmd. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Acked-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for 123383e - Browse repository at this point
Copy the full SHA 123383eView commit details
Commits on Oct 17, 2024
-
Update mail address in sources
Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for 676208e - Browse repository at this point
Copy the full SHA 676208eView commit details
Commits on Oct 18, 2024
-
Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for 5507339 - Browse repository at this point
Copy the full SHA 5507339View commit details
Commits on Oct 29, 2024
-
NewYAML format is required for extended features because the format foreseen by U-Boot is very limited. However, some systems due to low resources don't want to link to libyaml. Add the option NO_YML_SUPPORT to disable YAML configuration file and just use fw_env.config in the U-Boot format. There are no functional changes in this patch - function depending on YML are moved in a separate file, and some functions are factorized. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
Configuration menu - View commit details
-
Copy full SHA for 0052cdc - Browse repository at this point
Copy the full SHA 0052cdcView commit details
There are no files selected for viewing