Re: [OpenWrt-Devel] [PATCH/RFC 0/3] UBI: unify mouting rootfs based on cmdline parameter

2016-08-27 Thread Daniel Golle
Hi Richard, On Sat, Aug 27, 2016 at 11:23:14PM +0200, Richard Weinberger wrote: > Daniel, > > On 27.08.2016 23:06, Daniel Golle wrote: > > Hi Richard, > > > > thanks for the quick reply! > > > > On Sat, Aug 27, 2016 at 10:43:45PM +0200, Richard Weinberger wrote: > >> Daniel, > >> > >> On

Re: [OpenWrt-Devel] [PATCH/RFC 0/3] UBI: unify mouting rootfs based on cmdline parameter

2016-08-27 Thread Daniel Golle
Hi Richard, thanks for the quick reply! On Sat, Aug 27, 2016 at 10:43:45PM +0200, Richard Weinberger wrote: > Daniel, > > On 27.08.2016 21:43, Daniel Golle wrote: > > Hi! > > > > In an attempts to fix the flaws of the current set of UBI-related > > patches we are carrying in OpenWrt, I

Re: [OpenWrt-Devel] [PATCH v2 0/2] kernel: add kmod-ubi and kmod-fs-ubifs

2016-08-27 Thread Daniel Golle
On Fri, Aug 26, 2016 at 04:13:53PM +0200, Ralph Sennhauser wrote: > Hi Daniel, > > On Fri, 26 Aug 2016 15:05:58 +0200 > Daniel Golle wrote: > > > Hi Ralph, > > > > the use of global variable ROOT_DEV is not guarded properly in the > > patch auto-creating a ubiblock

[OpenWrt-Devel] [PATCH 2/3] mtd: ubiblock: introduce ubiblock_create_dev

2016-08-27 Thread Daniel Golle
Define function ubiblock_create_dev(char *name, dev_t *bdev) which returns the created device by setting the point bdev. This is useful for in-kernel users creating a ubiblock device in order to mount the root filesystem. Signed-off-by: Daniel Golle ---

[OpenWrt-Devel] [PATCH 1/3] UBIFS, UBI: move volume string parser from UBIFS to UBI

2016-08-27 Thread Daniel Golle
Signed-off-by: Daniel Golle --- drivers/mtd/ubi/kapi.c | 65 + fs/ubifs/super.c| 64 +--- include/linux/mtd/ubi.h | 1 + 3 files changed, 67 insertions(+), 63 deletions(-)

[OpenWrt-Devel] [PATCH/RFC 0/3] UBI: unify mouting rootfs based on cmdline parameter

2016-08-27 Thread Daniel Golle
Hi! In an attempts to fix the flaws of the current set of UBI-related patches we are carrying in OpenWrt, I re-wrote the way mounting the rootfs from UBI in OpenWrt/LEDE works. The main requirement I face which cannot be easily addressed using other means which are already available in the kernel

Re: [OpenWrt-Devel] [PATCH v2 0/2] kernel: add kmod-ubi and kmod-fs-ubifs

2016-08-27 Thread Ralph Sennhauser
On Fri, 26 Aug 2016 15:05:58 +0200 Daniel Golle wrote: > Hi Ralph, > > the use of global variable ROOT_DEV is not guarded properly in the > patch auto-creating a ubiblock though this code needs to be > prevented from running when built as a module. > Please try rebuilding