9
0
Fork 0
Commit Graph

12822 Commits

Author SHA1 Message Date
Jan Luebbe 6825fb5657 sysmobts: use uImages for now
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 17:36:16 +02:00
Jan Luebbe fbb4d9b079 sysmocom-odu: use uImages for now
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 17:35:35 +02:00
Jan Luebbe c0a4bb242b spi: only register enabled child nodes
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:36:12 +02:00
Jan Luebbe d4defe9190 i2c: only register enabled child nodes
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:36:12 +02:00
Jan Luebbe db890a38ca sysmobts: check for an oftree in the rescue image
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:36:12 +02:00
Jan Luebbe e89ca4ac09 sysmocom odu: add support
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:36:03 +02:00
Holger Hans Peter Freyther 389a090997 misc: Save it as defconfig and enable the "login"/"passwd" command
We want to be able to force a token to enable the cli. This is
to avoid accidental interupts of the boot process.

Fixes: SYS#487
2015-06-13 14:35:05 +02:00
Holger Hans Peter Freyther f92eebd3e6 misc: Rename config to show up during make help
Fix the config name so we can save the config and apply it
easily. The meta-sysmocom-bsp file needs to be updated when
the SRCREV is increased.
2015-06-13 14:35:05 +02:00
Holger Hans Peter Freyther 85a5dccd67 pcm051: Add config files as used by the ODU device 2015-06-13 14:35:05 +02:00
Holger Hans Peter Freyther f7322d69ff odu: Enable a login timeout and set a password
The default password is "odu-stop" in this case. The trailing
whitespace is copied from a barebox copy.

Fixes: SYS#487
2015-06-13 14:35:05 +02:00
Jan Luebbe 06a7e44ff5 phytec-phycore: partially move partition setup from dtsi to dts
The partition layout is board-specific, so only the barebox partitions
need to be in the fixed location expected by the MLO code.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:35:05 +02:00
Holger Hans Peter Freyther 4250862671 odu: Send a LLDP frame on boot
We need to wait some time between activating the ethernet and
being able to send the first frame. I have not investigated why
that is the case.

Fixes: SYS#488
2015-06-13 14:35:05 +02:00
Holger Hans Peter Freyther 3fc96457a1 net: Initial frame to be able to send LLDP frames from barebox
Fixes: SYS#488
2015-06-13 14:35:05 +02:00
Jan Luebbe ced914d6ef of/base: fix typo
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:35:04 +02:00
Jan Luebbe b1b62e94a0 sysmobts: add support for the sysmobts v2 2015-06-13 14:35:04 +02:00
Jan Luebbe ae6c55d662 arm: davinci: add dm644x clock and PSC support 2015-06-13 14:35:04 +02:00
Jan Luebbe 3bbe902a1e davinci_emac: add support for version 1 2015-06-13 14:35:04 +02:00
Jan Luebbe ef7649d796 davinci_nand: add support for the NAND controller
This driver is based on the Linux driver (v4.0).

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:35:04 +02:00
Jan Luebbe 7f92f6f135 watchdog: add davinci watchdog driver
This driver is based on the Linux driver (v4.0).

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:35:04 +02:00
Jan Luebbe aa24845e29 partition: do not overwrite an existing DT node pointer
This is necessary to find EEPROM devices using the device tree nodes.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:35:04 +02:00
Jan Luebbe 918e1c52cd state: add support for uint8 variables
Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:35:04 +02:00
Jan Luebbe fa7fc5c957 state: add some more error messages
This helps with finding out why the state cannot be loaded correctly.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:35:04 +02:00
Jan Luebbe d9b09a9a43 gpio-davinci: gpio get should return 0 or 1
Returning other values causes problems for client code which wants to
perform calculations with the returned value.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
2015-06-13 14:35:04 +02:00
Uwe Kleine-König b0a31f0e22 bootstate: probe bootstate later
state must be loaded after the nand driver, otherwise it fails because the
backend is missing. For similar reasons bootstate must come after state.
Move them to the late stage until barebox can do deferred probing.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:04 +02:00
Marc Kleine-Budde 51f97717c8 bootstate: add
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:04 +02:00
Sascha Hauer 42754c2345 mtd: ubi: create device with persistent names
UBI devices used to show up with a dynamically assigned number
which is bad for scripting. After a 'ubiattach' a script cannot
know the number of the ubi to continue with. Change this to use
the parent mtd name and extend it with ".ubi".

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-13 14:35:04 +02:00
Sascha Hauer 824f84b6bc mtd: ubi: Let ubidetach take mtd as argument
The ubi number is a dynamically assigned number, so once multiple
ubis are attached, scripts cannot know the ubi number they want
to detach anymore. Convert the ubidetach command to take the mtd
device file instead which is the same argument that was previously
passed to ubiattach.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-13 14:35:04 +02:00
Sascha Hauer 052d9ac0cf blspec: automatically append bootargs
When bootloader spec is used to boot devices it is often desirable
to boot the same image from different media. Since the fs images
need to contain the root= parameters to tell Linux where to boot
from the images can't be identical on different media.

This patch changes this by introducing a 'appendroot' option for
bootloader spec. If set to true, barebox will construct a Linux
commandline option for the device the bootloader spec entry is found
on.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-13 14:35:03 +02:00
Sascha Hauer f8cc8d3b0a blspec: honour default/once entries again and move them to a different place
Support for default/once entries was lost earlier. This fixes this
and also looks for default/once entries in the loader directory instead
of the loader parent directory. This keeps the bootloader spec files
together under a common loader directory.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde 4cf630e244 watchdog: add static inline no-ops if WD is disabled
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Applied-Upstream: next, commit:91936ddc4485
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde 294c1d0bba mtd: of_mtd_fixup(): fix given DT not the default one
We have to start searching for the mtd node starting in the given root node not
the defaukt (= barebox internal) one. This means the internal DT is always
fixed up. This leads to booting not fixed up DT when using external DTs.

This patch fixes the problem.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Applied-Upstream: v2015.06.0, commit:6da925f87c66cd9132018b4b08a84fa98c382aa7
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde cbded3f539 state: backend_raw: update documentation of struct state_backend_raw members
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde c028c09a4b state: backend_raw: add sanity check of data_len during load
The length of the data must fit into the remaining available space until the
next copy of the data.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde 3d809e6595 state: backend_raw: rename backend_raw_write_one() -> backend_raw_save_one()
Use a consistent naming scheme: backend_raw_save_one() is called from
backend_raw_save().

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde cba8ec9e57 state: backend_raw: factor out state_backend_raw_file_get_size() into separate function
This patch factors out the state_backend_raw_file_get_size() into a separate
function and adds some ifdefs to make this code work under Linux aswell.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde e5ec09d771 state: backend_raw: properly align write and erase size
This patch makes it easier to share the code with linux, on Linux the ease and
write size have to be aligned. Use stride (which is already aligned to erase
block size) during erase, align size_full to writesize and use it while
writing.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde 0e7a86744a state: backend_raw: rename struct state_backend_raw::step -> stride
This patch renames the member "step" of the struct state_backend_raw to
"stride" and tries to clarifies its meaning.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde 633d92e709 state: backend_raw: remove hard coded limit of two copies
Although there is the define RAW_BACKEND_COPIES, the state_backend_raw_save()
function silently assumes exactly two copies. This patch removes that assumtion
by looping over all copies, but saving the one we're read from at the end.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde a8a3c2de5b state: mtd_get_meminfo: make usage of mtd's meminfo compatible to linux
This patch makes it possible to share the code with linux.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde 6fecafad03 state: mtd_get_meminfo: open path readonly instead of readwrite
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde a571c94254 crypto: digest: mark signature argument as const
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde f25cc8d880 state: print name of property of size mismatch is detected
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:03 +02:00
Marc Kleine-Budde 0caa4b8075 state: print proper error message, if reg property is not found
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-06-13 14:35:02 +02:00
Uwe Kleine-König 23f5b62169 state: return -EPROBE_DEFER if the backend isn't available 2015-06-13 14:35:02 +02:00
Marc Kleine-Budde 177c5b7739 state: add fixup to copy state from barebox to kernel device tree
This patch registeres a DT fixup, that copies the statate nodes from the active
to the kernel DT. The backend reference will be a phandles.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
[ukl: add call to of_unregister_fixup]
2015-06-13 14:35:02 +02:00
Marc Kleine-Budde 4e26c8c6d9 state: backend: support phandle and of_path references
This patch improves the backend property, it can be either a phandle or a
of_path. During probe() of the state driver the backend property is
dereferenced and the resulting of_path is saved in the state context. In a
later patch it will be used to generate a phandle reference to the backend
during DT fixup.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-05-17 20:43:40 +02:00
Marc Kleine-Budde 1c3c233a93 state: add functionality to export state description
This patch adds the functionality to export the description of the state, but
not the contents of the variables to a DT node. This will be used in a later
patch to "copy" the state description to the kernel device tree during DT
fixup.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-05-17 20:43:40 +02:00
Marc Kleine-Budde 02c6da8d85 state: make state_release() non static
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2015-05-17 20:43:40 +02:00
Marc Kleine-Budde 618d712f91 state: state_new_from_fdt(): remove unused function
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Applied-Upstream: next, commit:9a6dc0376add
2015-05-17 20:43:40 +02:00
Marc Kleine-Budde f56fea8e5a state: documentation: add anchor so that state can be referenced later
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Applied-Upstream: next, commit:c58d1c95a2b1
2015-05-17 20:43:39 +02:00