Commit graph

125 commits

Author SHA1 Message Date
Bastian Stender
31f9cb8646 Release v2016.12.0
Signed-off-by: Bastian Stender <bst@pengutronix.de>
2016-12-08 15:42:48 +01:00
Bastian Stender
0ff7da7e2e barebox-state: fix typo
Signed-off-by: Bastian Stender <bst@pengutronix.de>
2016-12-08 14:35:42 +01:00
Michael Grzeschik
3c4b24e451 libdt: take the parent to search for block devices
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
2016-09-22 18:07:27 +02:00
Michael Grzeschik
29d2ac62e2 barebox-state: only set state->name by state->state if valid
This patch fixes commit d4c997a3.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
2016-09-22 16:56:52 +02:00
Michael Grzeschik
bbafbee713 backend_storage: add fs.h for BLKGETSIZE64
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
2016-09-22 15:17:13 +02:00
Michael Olbrich
d4c997a301 barebox-state: make sure state->name is valid
It's used later while setting state variables.

Fixes: feb64890a3 ("barebox-state: fall back to /state if there is no alias defined")
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
2016-09-14 08:32:05 +02:00
Michael Olbrich
feb64890a3 barebox-state: fall back to /state if there is no alias defined
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>
2016-09-12 10:10:34 +02:00
Sascha Hauer
8a2a5d1604 libdt: only enumerate devices we are interested in
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>
2016-08-24 11:32:44 +02:00
Sascha Hauer
2e58d1beba libdt: cache of_find_device_by_node_path results
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>
2016-08-24 11:32:44 +02:00
Bastian Stender
3491b5af59 Release v2016.08.0
Signed-off-by: Bastian Stender <bst@pengutronix.de>
2016-08-22 11:17:43 +02:00
Enrico Jorns
fb310f588a barebox-state: return non-zero exit code for missing or invalid arg
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>
2016-08-08 14:32:59 +02:00
Bastian Stender
bb064d3858 barebox-state: fix print variable on --get
676e2a13e9 accidentally
removed the printf call.

Signed-off-by: Bastian Stender <bst@pengutronix.de>
2016-08-04 15:05:22 +02:00
Markus Pargmann
8141576d1a Release v2016.07.2
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-07-22 13:11:04 +02:00
Bastian Stender
d83976b816 libdt: add block devicepath extraction
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>
2016-07-22 13:08:58 +02:00
Markus Pargmann
b8d0b6f718 barebox-state: Fix prefix removal of variables
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-07-13 12:58:09 +02:00
Markus Pargmann
b82665f303 barebox-state: Fix default state
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-07-13 12:10:02 +02:00
Markus Pargmann
477a2ea4d8 Release v2016.07.1
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-07-12 10:49:50 +02:00
Markus Pargmann
28186768fc dtblint: Add dtblint.h to sources
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-07-12 10:49:50 +02:00
Markus Pargmann
676e2a13e9 barebox-state: Add possibility to specify multiple state names
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-07-11 14:53:53 +02:00
Uwe Kleine-König
92be9966a1 dtblint: check for fec reset gpio polarity mismatch 2016-07-09 00:46:38 +02:00
Uwe Kleine-König
d51d45fc6a dtblint: imx-pinmux: mention bit that is wrongly set 2016-07-08 23:30:07 +02:00
Uwe Kleine-König
375be20f4e dtblint: imx-pinmux: add support for imx6q 2016-07-08 23:30:07 +02:00
Uwe Kleine-König
53b85765d1 dtblint: split out imx-pinmux checks 2016-07-08 23:30:07 +02:00
Markus Pargmann
6f38fb2af7 Release v2016.07.0
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-07-08 12:34:57 +02:00
Uwe Kleine-König
3b275d64a5 dtblint: fix a few swpad reset values
The reset values had bits set that were not in the writeable mask.
2016-07-05 22:23:55 +02:00
Markus Pargmann
2839d4f6f4 Update barebox-state
Fixed direct bucket

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-07-05 16:05:21 +02:00
Markus Pargmann
10c085e428 Release v2016.05.2
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-06-16 09:18:32 +02:00
Markus Pargmann
17cd966279 pr_info: In userspace this should be redirected to stderr
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>
2016-06-16 09:17:18 +02:00
Markus Pargmann
d82d827d08 v2016.05.1
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-06-02 13:06:20 +02:00
Markus Pargmann
e8ca79a73c barebox-state: write of_property only if backend storage name is set
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-06-02 12:59:56 +02:00
Markus Pargmann
890345d672 barebox-state: Check ECC stats for circular buckets
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-06-02 12:59:32 +02:00
Markus Pargmann
8bd83fe242 Release v2016.05.0
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-05-30 09:47:19 +02:00
Markus Pargmann
93b1762610 barebox-state: Add locking file
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-05-30 09:29:40 +02:00
Markus Pargmann
a6eb5350be barebox-state: Import updated state code
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
2016-05-27 14:49:03 +02:00
Markus Pargmann
959aaab971 Revert "libdt: add block devicepath extraction"
This reverts commit 6e91248941.
It currently breaks barebox-state. /dev/loop0 is always selected.
2016-05-27 13:56:26 +02:00
Bastian Stender
6e91248941 libdt: add block devicepath extraction
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>
2016-03-15 13:37:23 +01:00
Marc Kleine-Budde
fb48280edc v2016.02.0 2016-02-24 12:37:59 +01:00
Marc Kleine-Budde
1919c8fef6 keystore-blob: use system independent path to blob_gen
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2016-02-24 12:35:52 +01:00
Marc Kleine-Budde
f0bddb4f82 v2015.10.0 2015-10-16 14:14:15 +02:00
Marc Kleine-Budde
c56aaa8a91 keystore: add imx6 caam based keystore implementation
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-10-16 14:12:41 +02:00
Marc Kleine-Budde
f54a00e158 barebox-state: make state_get() state_get_var() non static
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-10-16 14:12:19 +02:00
Marc Kleine-Budde
e329d7d087 base64: import from barebox
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-10-16 14:10:36 +02:00
Marc Kleine-Budde
a83f37795b barebox-mark-successful-boot: adopt to new barebox method providing bootstate.active on the kernel command line
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-10-01 10:15:24 +02:00
Marc Kleine-Budde
996b4d581e barebox-state: import from barebox 2015-09-30 17:02:45 +02:00
Marc Kleine-Budde
f6117bb806 common: import is_zero_ether_addr() and EPROBE_DEFER from barebox
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-09-30 17:02:45 +02:00
Marc Kleine-Budde
43f9010008 barebox-state: add double underscore to get, send and info callbacks in struct variable_type
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-09-30 16:10:15 +02:00
Uwe Kleine-König
71584f82f7 dtblint: don't accept 0 as config for a pad without config
The Linux driver fails on pinctrls that specify 0 as config, so
consequently flag this as error.
2015-09-29 11:12:36 +02:00
Uwe Kleine-König
c3d53e1668 dtblint: fix test for non-existent config register
When off_t is a bigger data type than u32 the check (conf_reg ==
(uint32_t)-1) never triggers.
2015-09-29 11:12:36 +02:00
Sascha Hauer
4090e4e367 barebox-state: make state alias work again
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>
2015-09-10 15:02:34 +02:00
Sascha Hauer
bfc8c4f2fb barebox-state: Add missing break
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-09-10 15:00:31 +02:00