| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Scanning udev for devices with a OF_FULLNAME property can take
a long time. Since we may do this multiple times cache the results
during first run to speed up subsequent runs.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
This make barebox-state return non-zero exit-code in case of a missing
parameter (':') or an invalid/unknown argument ('?').
No extra printing of error messages is performed as this is handled by
getopt itself in this configuration.
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Tested-by: Bastian Stender <bst@pengutronix.de>
|
|
|
|
|
|
|
| |
676e2a13e90fb8bf37d6777dc3d21d2406916885 accidentally
removed the printf call.
Signed-off-by: Bastian Stender <bst@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows barebox state to find the backend node on block
devices.
This is a reworked version of the patch. The outdated patch
did not specify the parent correctly resulting in an
incorrect subtree. This lead to the wrong block device
being returned.
Signed-off-by: Bastian Stender <bst@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
The reset values had bits set that were not in the writeable mask.
|
|
|
|
|
|
| |
Fixed direct bucket
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
|
|
|
|
|
|
|
| |
barebox-state outputs should be parsable by other applications.
Therefore normal info outputs should be redirected to stderr.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
|
|
|
|
|
| |
This reverts commit 6e912489417b93528d1e963f47e1f5d4773a3775.
It currently breaks barebox-state. /dev/loop0 is always selected.
|
|
|
|
|
|
|
| |
This allows barebox state to find the backend node on block devices.
Signed-off-by: Bastian Stender <bst@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
| |
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
struct variable_type
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
| |
The Linux driver fails on pinctrls that specify 0 as config, so
consequently flag this as error.
|
|
|
|
|
| |
When off_t is a bigger data type than u32 the check (conf_reg ==
(uint32_t)-1) never triggers.
|
|
|
|
|
|
|
|
| |
Since commit 14617d (barebox-state: fix default, so that it works without
an explicid alias node) aliases no longer work at all. This is because "/state"
cannot be interpreted as an alias. Fix this.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
|
|
|
|
|
| |
state_find_type can fail in which case it returns NULL. Check the return
value before dereferencing the pointer.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
|
|
|
|
|
| |
When a enum32 state variable node does not have a "names" property bail
out gracefully instead of crashing.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
If nodepath can directly be translated to a device, the device can also
be a eeprom. Set default size to 0. The real size can be got from the
path.
Signed-off-by: Jan Remmet <j.remmet@phytec.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
improve fixed string support, trailing zero is not needed.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
barebox functions
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
src/dtblint.c: In function ‘parse_function’:
src/dtblint.c:1153:12: warning: variable ‘input_val’ set but not used [-Wunused-but-set-variable]
uint32_t input_val;
^
src/dtblint.c:1152:12: warning: variable ‘input_reg’ set but not used [-Wunused-but-set-variable]
uint32_t input_reg;
^
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
src/dtblint.c: At top level:
./src/dt/common.h:324:12: warning: ‘of_register_fixup’ defined but not used [-Wunused-function]
static int of_register_fixup(int (*fixup)(struct device_node *, void *), void *context)
^
Fixes: f2243552be90 ("barebox-state: import from barebox")
|
| |
|
|
|
|
|
| |
Currently it checks iomux nodes on i.MX25 only, but adding other i.MX SoCs
is just a matter of adding the corresponding table
|
|
|
|
|
|
|
|
|
| |
This fixes:
./src/dt/common.h: In function ‘read_file’:
./src/dt/common.h:177:6: warning: unused variable ‘ret’ [-Wunused-variable]
int ret;
^
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|
|
|
|
|
|
| |
...othweise the shell variable may start with /.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
|