ses another bucket
as backend device and caches all accesses.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
common/Makefile|2 +-
common/state.c | 1720
common/state/Makefile
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
.../devicetree/bindings/barebox/barebox,state.rst | 7 +++-
Documentation/user/state.rst | 46 ++
Documentation/user/user-manual.rst | 1 +
3 files changed, 53 insertions
write() uses a const pointer so write_full should do the same.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
include/libfile.h | 2 +-
lib/libfile.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/libfile.h b/include/libfile.h
index de4f42
From: Michael Grzeschik
Signed-off-by: Michael Grzeschik
---
common/state/backend_storage.c | 1 +
common/state/state.c | 7 +++
common/state/state.h | 2 ++
3 files changed, 10 insertions(+)
diff --git
Changes in v3:
- A central cache implementation bucket data. This is implemented as another
bucket (backend_bucket_cached) which can access other buckets. See the
updated diagram in the second patch.
- Fixup flush usage
- lazy initialization of buckets
Best Regards,
Markus
Markus Pargmann
ion.
* *
* *
* *
.---. .-.
| backend_bucket_direct | | backend_bucket_circular |
'---' '-'
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
common/Makefile|2 +-
commo
to the direct bucket.
Best Regards,
Markus
Markus Pargmann (3):
libfile: Change write_full to be have const buf
state: Refactor state framework
docs: Add/Update state documentation
Michael Grzeschik (3):
state: also append backend storage stridesize
state: backend_storage_direct: also use
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
.../devicetree/bindings/barebox/barebox,state.rst | 7 +++-
Documentation/user/state.rst | 46 ++
Documentation/user/user-manual.rst | 1 +
3 files changed, 53 insertions
From: Michael Grzeschik <m.grzesc...@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de>
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
common/state/backend_bucket_direct.c | 55
1 file changed, 55 inserti
From: Michael Grzeschik <m.grzesc...@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de>
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
common/state/backend_storage.c | 1 +
common/state/state.c | 7 +++
common/state/state.h
write() uses a const pointer so write_full should do the same.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
include/libfile.h | 2 +-
lib/libfile.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/libfile.h b/include/libfile.h
index de4f42
From: Michael Grzeschik <m.grzesc...@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzesc...@pengutronix.de>
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
common/state/backend_bucket_circular.c | 13 ++---
common/state/backend_bucket_direct.c | 11 ++
Hi,
On Friday 17 June 2016 11:14:34 Markus Pargmann wrote:
> The state framework grew organically over the time. Unfortunately the
> architecture and abstractions disappeared during this period.
>
> This patch refactors the framework to recreate the abstractions. The
> main focus
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
.../devicetree/bindings/barebox/barebox,state.rst | 4 +-
Documentation/user/state.rst | 46 ++
Documentation/user/user-manual.rst | 1 +
3 files changed, 50 insertions
ion.
* *
* *
* *
.---. .-.
| backend_bucket_direct | | backend_bucket_circular |
'---' '-'
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
common/Makefile|2 +-
commo
ubi_num_get_by_mtd() searches for attached ubi devices for the given mtd
and returns the number of the ubi device.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
drivers/mtd/ubi/build.c | 35 ++-
include/mtd/ubi-user.h | 1 +
2 files chang
cdev is used in a future commit to find the mounted filesystems.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
drivers/mtd/ubi/kapi.c | 5 +
include/linux/mtd/ubi.h | 2 ++
2 files changed, 7 insertions(+)
diff --git a/drivers/mtd/ubi/kapi.c b/drivers/mtd/ubi/kapi.c
To find all the ubi volume ids on a given UBI, we need a helper. The
added functions allow to use ubi_volume_for_each() to get each volume id
of a UBI.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
drivers/mtd/ubi/kapi.c | 42 ++
include
was detached
previously, the code tries to reattach the ubi. Filesystems are not
remounted.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
commands/ubiformat.c | 29 +++--
1 file changed, 27 insertions(+), 2 deletions(-)
diff --git a/commands/ubiformat.c b/co
We may don't know which UBI is attached on a given MTD device. This adds
a function to detach a UBI given a MTD device.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
drivers/mtd/ubi/build.c | 21 +
include/mtd/ubi-user.h | 1 +
2 files changed, 22 inse
This patch iterates through all ubi volumes and umounts all filesystems
that are mounted.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
drivers/mtd/ubi/build.c | 29 +
1 file changed, 29 insertions(+)
diff --git a/drivers/mtd/ubi/build.c b/drivers/m
umount on Linux can be used on a mount pathes and device pathes. This
patch adds this functionality to barebox.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
commands/umount.c | 2 +-
fs/fs.c | 47 ---
include/fs.h |
We need to be able to umount specific filesystems while iterating all of
them. This helper gives us a safe macro to do so.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
include/fs.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/fs.h b/include/fs.h
index 9ac455
Before flashing data to some device, we should check whether this device
is in use. If it is mounted it is umounted and flashed afterwards.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
Hi,
This patch requires the for_each_fs_device_safe() macro which was sent as a
patch yes
cdev is used in a future commit to find the mounted filesystems.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
drivers/mtd/ubi/kapi.c | 5 +
include/linux/mtd/ubi.h | 2 ++
2 files changed, 7 insertions(+)
diff --git a/drivers/mtd/ubi/kapi.c b/drivers/mtd/ubi/kapi.c
was detached
previously, the code tries to reattach the ubi. Filesystems are not
remounted.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
commands/ubiformat.c | 87 ++--
1 file changed, 85 insertions(+), 2 deletions(-)
diff --git a/co
To find all the ubi volume ids on a given UBI, we need a helper. The
added functions allow to use ubi_volume_for_each() to get each volume id
of a UBI.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
drivers/mtd/ubi/kapi.c | 42 ++
include
ubi_num_get_by_mtd() searches for attached ubi devices for the given mtd
and returns the number of the ubi device.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
drivers/mtd/ubi/build.c | 30 +-
include/mtd/ubi-user.h | 1 +
2 files changed, 22 inse
Add some documentation about fastboot 'flash' command and some useful
example how to use it to boot an initrd.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
Documentation/user/usb.rst | 52 ++
1 file changed, 52 insertions(+)
diff
olute path
back to the device within the devfs.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
common/imx-bbu-nand-fcb.c | 6 +++---
fs/devfs-core.c | 25 +
fs/fs.c | 12
include/driver.h | 1
This will automatically call barebox_update for the transfered file if
it is an ARM Barebox image and the destination file is defined by some
update handler.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
common/filetype.c | 13 +
drivers/usb/
if the destination file is a MTD device by opening it
and calling an ioctl MEMGETINFO. Only for MTD devices, ubiformat is
called.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
drivers/usb/gadget/f_fastboot.c | 17 -
1 file changed, 16 insertions(+), 1 deletion(-)
diff
This adds a function to check for the existence of an update handler
based on the supplied bbu_data.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
common/bbu.c | 14 ++
include/bbu.h | 2 ++
2 files changed, 16 insertions(+)
diff --git a/common/bbu.c b/common
On Wednesday, February 17, 2016 08:37:49 AM Sascha Hauer wrote:
> On Tue, Feb 16, 2016 at 07:54:48PM +0100, Markus Pargmann wrote:
> > This will automatically call barebox_update for the transfered file if
> > it is an ARM Barebox image and the destination file is defined by
Hi,
On Wednesday, February 17, 2016 08:29:14 AM Sascha Hauer wrote:
> On Tue, Feb 16, 2016 at 07:54:47PM +0100, Markus Pargmann wrote:
> > Currently all fastboot flash commands with UBI images are handled by a
> > final call to 'ubiformat'. This only makes sense for flash com
bbu_data includes a devicefile information. Add the possibility to make
an update based on the given devicefile. This is in addition to the
normal search for a barebox update handler by its name.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
common/bbu.c | 20 +
This adds a function to check for the existence of an update handler
based on the supplied bbu_data.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
common/bbu.c | 14 ++
include/bbu.h | 2 ++
2 files changed, 16 insertions(+)
diff --git a/common/bbu.c b/common
if the destination file is a MTD device by opening it
and calling an ioctl MEMGETINFO. Only for MTD devices, ubiformat is
called.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
drivers/usb/gadget/f_fastboot.c | 17 -
1 file changed, 16 insertions(+), 1 deletion(-)
diff
This will automatically call barebox_update for the transfered file if
it is an ARM Barebox image and the destination file is defined by some
update handler.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
drivers/usb/gadget/f_fastboot.c | 29 +
This adds the bitflip check helper functions from the kernel. They are
used to check for bitflips in erased pages and correct them in the
buffer so that UBI can work with it. Unfortunately most nand controllers
do not have ECC for erased pages and don't do this on their own.
Signed-off-by: Markus
is below the ecc_strength.
We need to move the memcpy above the for loop to be able to access the
buffer directly.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
drivers/mtd/nand/nand_mxs.c | 42 --
1 file changed, 40 insertions(+), 2 del
Add some documentation about behaviour and setup of pstore/RAMOOPS.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
Documentation/filesystems/pstore.rst | 76
1 file changed, 76 insertions(+)
create mode 100644 Documentation/filesystems/psto
DIV_ROUND_UP is defined in include/linux/kernel.h. Use that instead.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
arch/arm/boards/karo-tx6x/board.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boards/karo-tx6x/board.c
b/arch/arm/boards/kar
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
include/linux/log2.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/include/linux/log2.h b/include/linux/log2.h
index d9913f06bd09..36519e3aa38b 100644
--- a/include/linux/log2.h
+++ b/include/linux/log2.h
@@ -63,6
reed solomon code is used by RAMOOPS to check and fix data stored in
volatile memory.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
Notes:
Changes in v2:
- Removed fine control over parts of the code. Reduced to one config symbol.
include/linux/rslib.h
This helps to understand and find problems with the memory layout of
barebox. It adds another entry for the board data that barebox
allocated.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
arch/arm/cpu/start.c | 19 ++-
1 file changed, 18 insertions(+), 1 de
adds proper handling of different barebox/board data
sizes. Currently only 1MB+Alignment of RAM is reserved for Barebox and
board data. This could be too small for bigger devicetrees and barebox.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
Notes:
Changes in v2:
There are functions or structs used that do need these.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
include/printk.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/printk.h b/include/printk.h
index a27ad514cfe1..822f64c61f7d 100644
--- a/include/printk.h
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
include/stdio.h | 1 +
lib/vsprintf.c | 24
2 files changed, 25 insertions(+)
diff --git a/include/stdio.h b/include/stdio.h
index f1909117621d..d0817bd0715a 100644
--- a/include/stdio.h
+++ b/include/s
a way to
extract essential data from the last running kernel.
Most of the code is copied from the kernel. However this is only a
lightweight implementation without real write support yet.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
Notes:
Changes in v2:
- Moved the
Hi,
This is v2 with some smaller fixes. Changes are described at the individual
patches.
Best Regards,
Markus
Markus Pargmann (9):
arm: boards: karo-tx6x remove definition of DIV_ROUND_UP
log2: Add missing __rounddown_pow_of_two()
printk: Add missing include/declaration
vsprintf: Add
of the RAM right after barebox and
before the STACK. This ensures that changing barebox sizes do not
interfere with RAMOOPS.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
arch/arm/cpu/start.c | 6 ++
arch/arm/include/asm/barebox-arm.h | 14 +-
2
Hi,
On Friday 04 December 2015 08:12:55 Sascha Hauer wrote:
> On Wed, Dec 02, 2015 at 02:48:47PM +0100, Markus Pargmann wrote:
> > reed solomon code is used by RAMOOPS to check and fix data stored in
> > volatile memory.
> >
> > Signed-off-by: Markus Pa
Hi,
On Wednesday 02 December 2015 21:37:13 Antony Pavlov wrote:
> On Wed, 2 Dec 2015 14:48:51 +0100
> Markus Pargmann <m...@pengutronix.de> wrote:
>
> > pstore is a persistent storage filesystem used for RAMOOPS. It is used
> > to store console logs, panics, ftrace an
Hi,
On Friday 04 December 2015 08:07:40 Sascha Hauer wrote:
> On Wed, Dec 02, 2015 at 02:48:50PM +0100, Markus Pargmann wrote:
> > RAMOOPS is a driver that uses a reserved static memory region to store
> > the data from the last panic or boot. This helps to debug crashes at th
reed solomon code is used by RAMOOPS to check and fix data stored in
volatile memory.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
include/linux/rslib.h | 109
lib/Kconfig | 15 ++
lib/Makefile| 1 +
lib/reed_s
DIV_ROUND_UP is defined in include/linux/kernel.h. Use that instead.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
arch/arm/boards/karo-tx6x/board.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boards/karo-tx6x/board.c
b/arch/arm/boards/kar
the actual implementation of pstore and RAMOOPS as filesystem. It
is based on the kernel implementation but lots of code was removed and the
filesystem layer rewritten for barebox. The files are available in the
automounted filesystem /pstore.
Best Regards,
Markus
Markus Pargmann (9):
arm
This helps to understand and find problems with the memory layout of
barebox. It adds another entry for the board data that barebox
allocated.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
arch/arm/cpu/start.c | 19 ++-
1 file changed, 18 insertions(+), 1 de
a way to
extract essential data from the last running kernel.
Most of the code is copied from the kernel. However this is only a
lightweight implementation without real write support yet.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
common/startup.c | 5 +
fs/K
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
include/stdio.h | 1 +
lib/vsprintf.c | 24
2 files changed, 25 insertions(+)
diff --git a/include/stdio.h b/include/stdio.h
index f1909117621d..d0817bd0715a 100644
--- a/include/stdio.h
+++ b/include/s
of the RAM right after barebox and
before the STACK. This ensures that changing barebox sizes do not
interfere with RAMOOPS.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
arch/arm/cpu/start.c | 6 ++
arch/arm/include/asm/barebox-arm.h | 14 +-
2
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
include/linux/log2.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/include/linux/log2.h b/include/linux/log2.h
index d9913f06bd09..36519e3aa38b 100644
--- a/include/linux/log2.h
+++ b/include/linux/log2.h
@@ -63,6
There are functions or structs used that do need these.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
include/printk.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/printk.h b/include/printk.h
index a27ad514cfe1..822f64c61f7d 100644
--- a/include/printk.h
Use an 'initramfs' file if it exists instead of nfsroot. This offers the
possibility to quickly boot complete filesystems as initramfs without
the need to flash an SD-card or similar. If the initramfs does not
exist, it uses the default nfsroot mechanism.
Signed-off-by: Markus Pargmann &l
Use an 'initrd' file if it exists instead of nfsroot. This offers the
possibility to quickly boot complete filesystems as initramfs without
the need to flash a SD-card or similar. If the initrd does not exist,
it uses the default nfsroot mechanism.
Signed-off-by: Markus Pargmann &l
On Wed, Oct 07, 2015 at 08:34:51AM +0200, Sascha Hauer wrote:
> Hi Markus,
>
> On Fri, Oct 02, 2015 at 02:35:01PM +0200, Markus Pargmann wrote:
> > This patch adds the proper inline function for CONFIG_PARAMETER && !
> > CONFIG_NET.
> >
> > Signed-off
This patch adds the proper inline function for CONFIG_PARAMETER && !
CONFIG_NET.
Signed-off-by: Markus Pargmann <m...@pengutronix.de>
---
include/param.h | 21 +
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/include/param.h b/include
it jumped directly to serial downloader mode.
This patch executes the PFD workaround only for i.MX6Q and i.MX6D which
fixes the issues I saw.
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
arch/arm/mach-imx/imx6.c | 48 +---
1 file changed, 25
RGMII-ID just defines transmitter internal delays. Otherwise it is the
same as RGMII. As the differences only influence the behaviour of the
phy, the fec driver should handle it the same way as RGMII.
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
drivers/net/fec_imx.c | 5 -
1 file
Replace the set_timeout function in the device platform data by an ops
struct which stores a set_timeout and init function.
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
Notes:
Changes in v2:
- Compile fix for !CONFIG_WATCHDOG_IMX. watchdog_deregister is using
Replace the set_timeout function in the device platform data by an ops
struct which stores a set_timeout and init function.
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
drivers/watchdog/imxwd.c | 54 +---
1 file changed, 42 insertions(+), 12
Disable the watchdog powerdown counter at start. Otherwise this may
trigger a reset or poweroff over the WDOG_B line to a PMIC. This counter
is set to 16 seconds after poweron.
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
drivers/watchdog/imxwd.c | 6 ++
1 file changed, 6
Add some code to parse and enable vbus supply when probing.
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
drivers/usb/imx/chipidea-imx.c | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/imx/chipidea-imx.c b/drivers/usb/imx/chipidea
This code is partly backported from the linux kernel which also uses
some defaults to setup the USB ports.
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
drivers/usb/imx/imx-usb-misc.c | 44 +-
1 file changed, 5 insertions(+), 39 deletions(-)
diff
Add a compatible to this driver so it can be added through devicetree.
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
drivers/mfd/mc34704.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/mfd/mc34704.c b/drivers/mfd/mc34704.c
index 9afab07a2df5..3dc85f5474dd 100644
Add some code to parse and enable vbus supply when probing.
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
drivers/usb/imx/chipidea-imx.c | 12
1 file changed, 12 insertions(+)
diff --git a/drivers/usb/imx/chipidea-imx.c b/drivers/usb/imx/chipidea-imx.c
index 9b6829b8f59f
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
include/bbu.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/bbu.h b/include/bbu.h
index 095eebcf4afa..adb52b0dec42 100644
--- a/include/bbu.h
+++ b/include/bbu.h
@@ -1,6 +1,8 @@
#ifndef __INCLUDE_BBU_H
#define
On Mon, Jul 28, 2014 at 10:45:57PM +0200, Sebastian Hesselbarth wrote:
On 07/28/2014 10:23 PM, Markus Pargmann wrote:
Add some code to parse and enable vbus supply when probing.
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
drivers/usb/imx/chipidea-imx.c | 12
KSZ8031 is similar to KSZ8021. It can use the same functions.
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
drivers/net/phy/micrel.c | 9 +
include/linux/micrel_phy.h | 1 +
2 files changed, 10 insertions(+)
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
On Tue, Oct 22, 2013 at 04:26:33PM +0200, Jean-Christophe PLAGNIOL-VILLARD
wrote:
On 12:46 Tue 22 Oct , Markus Pargmann wrote:
KSZ8031 is similar to KSZ8021. It can use the same functions.
Signed-off-by: Markus Pargmann m...@pengutronix.de
---
drivers/net/phy/micrel.c | 9
81 matches
Mail list logo