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

2016-08-28 Thread Daniel Golle
Hi Boris, On Sun, Aug 28, 2016 at 05:00:54PM +0200, Boris Brezillon wrote: > On Sun, 28 Aug 2016 16:40:14 +0200 > Daniel Golle wrote: > > > On Sun, Aug 28, 2016 at 11:25:54AM -0300, Ezequiel Garcia wrote: > > > On 28 August 2016 at 11:20, Boris Brezillon > > >

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

2016-08-28 Thread Daniel Golle
On Sun, Aug 28, 2016 at 11:25:54AM -0300, Ezequiel Garcia wrote: > On 28 August 2016 at 11:20, Boris Brezillon > wrote: > > On Sun, 28 Aug 2016 11:12:50 -0300 > > Ezequiel Garcia wrote: > > > >> Daniel, > >> > >> Let's try to

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

2016-08-28 Thread Daniel Golle
On Sun, Aug 28, 2016 at 04:20:59PM +0200, Boris Brezillon wrote: > I think Daniel wants something like: > > ubi.mtd=1 root=ubi0:rootfs Yes, this is what I want :) > > or > > ubi.mtd=1 root=/dev/ubiblock0_1 This would already be a bit worse, as then I need to refer to the rootfs volume using

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

2016-08-28 Thread Daniel Golle
Hi Ezequiel, On Sun, Aug 28, 2016 at 11:12:50AM -0300, Ezequiel Garcia wrote: > Daniel, > > Let's try to tackle this from a different angle. > > On 27 August 2016 at 16:43, Daniel Golle wrote: > > Hi! > > > > In an attempts to fix the flaws of the current set of

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

2016-08-28 Thread Daniel Golle
Hi Richard, On Sun, Aug 28, 2016 at 01:57:40PM +0200, Richard Weinberger wrote: > Daniel, > > On 28.08.2016 13:44, Daniel Golle wrote: > > Hi Richard, > > > > On Sun, Aug 28, 2016 at 11:28:18AM +0200, Richard Weinberger wrote: > >> Ralph, > >> > >> On 28.08.2016 11:19, Ralph Sennhauser wrote: >

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

2016-08-28 Thread Ralph Sennhauser
On Sun, 28 Aug 2016 13:44:48 +0200 Daniel Golle wrote: > Hi Richard, > > On Sun, Aug 28, 2016 at 11:28:18AM +0200, Richard Weinberger wrote: > > Ralph, > > > > On 28.08.2016 11:19, Ralph Sennhauser wrote: > > >>> On the other hand an initramfs can carry the logic to

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

2016-08-28 Thread Daniel Golle
Hi Richard, On Sun, Aug 28, 2016 at 11:28:18AM +0200, Richard Weinberger wrote: > Ralph, > > On 28.08.2016 11:19, Ralph Sennhauser wrote: > >>> On the other hand an initramfs can carry the logic to figure out > >>> which to mount and is what I use for my self. The busybox based > >>>

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

2016-08-28 Thread Ralph Sennhauser
Hi Richard, On Sun, 28 Aug 2016 10:12:31 +0200 Richard Weinberger wrote: > Ralph, > > On 28.08.2016 09:10, Ralph Sennhauser wrote: > > Using CONFIG_CMDLINE or the dtb isn't an option either for dual > > firmware devices. You'd have to provide two images, one for each > >

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

2016-08-28 Thread Ralph Sennhauser
Hi Richard, On Sat, 27 Aug 2016 22:43:45 +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-wrote the way mounting

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

[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