Commit graph

24 commits

Author SHA1 Message Date
Sascha Hauer
6db96942dc Release v2014.11.0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 12:02:45 +01:00
Sascha Hauer
1c48165e0a Makefile.am: remove non existing tests
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:52:28 +01:00
Sascha Hauer
4d7b52b919 Makefile.am: remove non existing src/libdt-private.h
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:51:05 +01:00
Sascha Hauer
2b39a38942 COPYING: Change to GPLv2
The code is based on Kernel code, so we can't license it under LGPL.
Change to GPLv2 instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:38:07 +01:00
Sascha Hauer
dbabfd7440 state: always store state when --init is given
When asked to initialize the state with the --init option
actually store the state, even when no variable is modified.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-03 16:34:13 +02:00
Sascha Hauer
53df62ae2f state: describe backend with phandle
We used to describe the backend with a combination of a nodepath
and partname:<name>. This is cumbersome and error prone to parse.
Instead, describe the backend with a phandle that directly points
to the partition. The resulting code is easier to read and the
devicetrees are easier to understand. Tested with both mtd and
EEPROM device, both with partitions with an offset != 0.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-03 16:31:28 +02:00
Sascha Hauer
1b60cd5b63 scan_proc_dir: Add missing phandle initialization
node->phandle was not set when /proc/device-tree was read.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-03 15:47:19 +02:00
Juergen Beisert
3fb4172ede libdt: error handling: output error messages to stderr
Error handling in scripts cannot work correctly when error messages are
sent to stdout. Send them to stderr instead where they belong to.

To not confuse scripts by debug output, sent this type of messages to stderr as
well.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-19 14:01:50 +01:00
Juergen Beisert
8b08f6cf03 libdt: remove a leftover from somewhere
This implementation of 'pr_debug' does not need a device...

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-19 14:01:50 +01:00
Juergen Beisert
c8e38efc6e libdt: fix enabling debug output
In order to enable more debug output the symbol DEBUG must be defined and
not ENABLE_DEBUG.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-19 14:01:49 +01:00
Juergen Beisert
1ecf326f66 libtd: fix typo
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-19 14:01:49 +01:00
Sascha Hauer
cb61b15ac3 Add some comments
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-18 15:39:43 +01:00
Sascha Hauer
b070f43be9 remove dos partition parser
Instead of matching DOS partitions with partname:<number> this
should be made explicit with a different type parser, like dospartid:<id>.
Since this is unused just remove it for now.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-18 15:38:17 +01:00
Sascha Hauer
a11bd0015c document of_parse_partition_from_path
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-18 15:36:05 +01:00
Michael Grzeschik
2f46c8f9e5 state: fix state handling for devices without needed erase
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 09:56:30 +01:00
Steffen Trumtrar
415e438072 state: also test if S_ISBLK
st_size for mmcblkX devices is 0, the offset + size check will therefore fail.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 09:52:44 +01:00
Steffen Trumtrar
41e87301c8 libdt: fix whitespace damage
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 09:52:44 +01:00
Steffen Trumtrar
c6fcd3e5f2 libdt: add sysattr for partition
mmc devices only have a "name" property that reads 00000.
The partitions have a property "partition" telling the
partition index.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 09:52:44 +01:00
Steffen Trumtrar
2950db40e9 libdt: refactor partition parsing
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 09:52:43 +01:00
Steffen Trumtrar
8f0ce9db68 libdt: search for devnode if partition not found
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 09:52:43 +01:00
Steffen Trumtrar
29577082ac libdt: add function to search the devicenode in subdirs
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 09:52:43 +01:00
Steffen Trumtrar
18dba42c06 libdt: fix segfault
strdup will segfault, if udev_device_get_devnode does not find the part.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-02-27 09:52:43 +01:00
Sascha Hauer
136ce91fb5 2nd commit
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-27 11:52:06 +01:00
Sascha Hauer
6c37a935b8 initial commit
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-11-13 14:42:27 +01:00