| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Bastian Stender <bst@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Bastian Stender <bst@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
|
|
|
|
|
|
| |
This patch fixes commit d4c997a3.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
|
|
|
|
|
|
|
| |
It's used later while setting state variables.
Fixes: feb64890a302 ("barebox-state: fall back to /state if there is no alias defined")
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
state_get() already supports this if no state name is given. This just
removes the default state name to make use of this feature.
Without this, an alias named 'state' is needed for barebox-state work
without specifying the state node.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
| |
Only devices of certain subsystems can have device nodes. Limit
the enumeration to these subsystems, namely platform, i2c, spi
and mtd. pci maybe missing here, but let's see once we are there.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Bastian Stender <bst@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>
|
|
|
|
| |
Signed-off-by: Markus Pargmann <mpa@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>
|
|
|
|
| |
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>
|
|
|
|
| |
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>
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
bootstate.active on the kernel command line
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>
|