Re: Do I really need 3 buckets for state?

2019-01-24 Thread Ulrich Ölmann
Hi Ian, On Thu, Jan 24 2019 at 16:28 +0100, Ian Abbott wrote: > Back when I was determining how to partition the spi-nor flash on my > embedded device, I reserved two erase blocks (each of size 65536) for > use as a barebox state partition. I wasn't using it for anything at the > time. Now I wa

[PATCH] lib: image-sparse: Mark sparse_seek() as static

2019-01-24 Thread Andrey Smirnov
Mark sparse_seek() as static to avoid -Wmissing-prototypes warnings Signed-off-by: Andrey Smirnov --- lib/image-sparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/image-sparse.c b/lib/image-sparse.c index 7137d15fd..0c31742ab 100644 --- a/lib/image-sparse.c +++ b/li

Re: [PATCH 6/7] fs: Add support for files larger than MAX_LFS_FILESIZE

2019-01-24 Thread Andrey Smirnov
On Thu, Jan 24, 2019 at 12:48 AM Sascha Hauer wrote: > > On Tue, Jan 22, 2019 at 05:13:37PM -0800, Andrey Smirnov wrote: > > On 64-bit platforms /dev/mem exceeds the size supported by loff_t and > > needs special treatment within the rest of FS API. Specifically > > lseek() needs to be modified to

Re: [PATCH 5/7] fs: Calculate new position before validtiy check in lseek()

2019-01-24 Thread Andrey Smirnov
On Wed, Jan 23, 2019 at 11:52 PM Sascha Hauer wrote: > > On Tue, Jan 22, 2019 at 05:13:36PM -0800, Andrey Smirnov wrote: > > Calculate new position before validtiy check in lseek() to simplify > > code a bit as well as make following commit simpler. This should be > > harmless thing to do, since w

Re: [PATCH 4/7] fs: Change error checking logic for fsdrv->lseek() call

2019-01-24 Thread Andrey Smirnov
On Wed, Jan 23, 2019 at 11:44 PM Sascha Hauer wrote: > > On Tue, Jan 22, 2019 at 05:13:35PM -0800, Andrey Smirnov wrote: > > On 32-bit systems, cheking for IS_ERR_VALUE(pos) is not > > correct. Expanding that code we get (loff_t cast is added for clarity): > > > > (loff_t)pos >= (unsigned long)-M

[PATCH] rpi: completed new revision scheme

2019-01-24 Thread Moritz Augsburger
I took the new raspi hw rev definitions from https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md and completed rpi_models_old_scheme and rpi_models_new_scheme. Lookint at the "New-style revision codes in use:" list you can see that there is a22042 2B (with BCM

Do I really need 3 buckets for state?

2019-01-24 Thread Ian Abbott
Hi, Back when I was determining how to partition the spi-nor flash on my embedded device, I reserved two erase blocks (each of size 65536) for use as a barebox state partition. I wasn't using it for anything at the time. Now I want to use it to hold bootstate information for barebox bootcho

initrd problem

2019-01-24 Thread Alexander Shiyan
Hello. I successfully use the barebox with custom board based on CC-i.MX51 module. I am using 30MB UBI volume as initrd for root filesystem. This configuration is works fine for me. I decided to change the size of the UBI volume for the root file system to 60 MB. Now I get a weird OOM error. Tur

Re: [PATCH 6/7] fs: Add support for files larger than MAX_LFS_FILESIZE

2019-01-24 Thread Sascha Hauer
On Tue, Jan 22, 2019 at 05:13:37PM -0800, Andrey Smirnov wrote: > On 64-bit platforms /dev/mem exceeds the size supported by loff_t and > needs special treatment within the rest of FS API. Specifically > lseek() needs to be modified to make sure it does the right thing. > > Prievious attempt at fi