[PATCH 1/2] partition: include partuuid string in debug string

2019-10-21 Thread Ahmad Fatoum
When debugging partitions detected by barebox, knowing the partuuid can be useful. Include it in the dev_dbg output. Signed-off-by: Ahmad Fatoum --- common/partitions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/partitions.c b/common/partitions.c index

[PATCH 2/2] fs: devfs-core: do a case-insensitive compare of partuuids

2019-10-21 Thread Ahmad Fatoum
partuuids are represented as hexadecimal strings, where case doesn't matter. barebox formats them as lower case internally, forcing the partuuid device tree property to be lower case too. Use strcasecmp to be case-insensitive. Signed-off-by: Ahmad Fatoum --- fs/devfs-core.c | 2 +- 1 file

[PATCH] sandbox: add_image: output errno string on mmap failure

2019-10-21 Thread Robert Karszniewicz
Signed-off-by: Robert Karszniewicz --- arch/sandbox/os/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c index 86118822a..1b2daa396 100644 --- a/arch/sandbox/os/common.c +++ b/arch/sandbox/os/common.c @@ -264,7 +264,7

[PATCH 1/2] hwrng: dev-random: always use /dev/urandom

2019-10-21 Thread Ahmad Fatoum
/dev/random can block long after boot time. It seems there's a consensus that /dev/urandom is safe to use except for very early boot, which isn't when barebox sandbox is usually run. To make the HWRNG more useful, always use /dev/urandom. Signed-off-by: Ahmad Fatoum ---

[PATCH v3 1/3] MIPS: reloc: remove init of relocated bss

2019-10-21 Thread Oleksij Rempel
It will be done in main_entry() any way. Signed-off-by: Oleksij Rempel --- arch/mips/lib/reloc.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/mips/lib/reloc.c b/arch/mips/lib/reloc.c index 9a9e404f7e..798a68680d 100644 --- a/arch/mips/lib/reloc.c +++

[PATCH v3 3/3] MIPS: reloc: init bss and cpu

2019-10-21 Thread Oleksij Rempel
We need it to make flush_cache_all() work properly. Signed-off-by: Oleksij Rempel --- arch/mips/lib/reloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/lib/reloc.c b/arch/mips/lib/reloc.c index 798a68680d..df9760e38c 100644 --- a/arch/mips/lib/reloc.c +++

[PATCH v3 2/3] MIPS: move r4k_cache_init in to cpu_probe function

2019-10-21 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- arch/mips/boot/main_entry.c | 6 -- arch/mips/include/asm/cache.h | 1 + arch/mips/lib/cpu-probe.c | 5 + 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/mips/boot/main_entry.c b/arch/mips/boot/main_entry.c index

[PATCH 1/2] serial: efi-stdio: replace globals with handles in priv struct

2019-10-21 Thread Ahmad Fatoum
Despite assigning efi_sys_table->{con_in,con_out} to priv->{in,out}, some functions still use the global efi_sys_table->{con_in,con_out}. Let's restrict globals access to the probe function and have the priv struct completely describe input and output used in the callbacks. No functional change.

[PATCH 2/2] serial: efi-stdio: Add simple_text_input_ex_protocol backend

2019-10-21 Thread Ahmad Fatoum
EFI implementations differ in how simple_text_input_protocol treats ctrl+alpha combinations. OVMF (used with QEMU) returns a Unicode control character, the UEFI on the Dell Latitude 7490 on the other hand ignores the ctrl completely and returns just the letter rendering utilities like barebox edit

Re: barebox 2019.07 ubiformat

2019-10-21 Thread Sascha Hauer
Hi Renaud, On Fri, Oct 18, 2019 at 03:09:00PM +, Barbier, Renaud wrote: > Looking at the Linux nand_ecc, there is something specific for512 bytes size > ecc: > > if (eccsize_mult == 2 && (i & 0x4) == 0) > rp16 ^= tmppar; > > code[2] = > +

Re: [PATCH v3] libfile: copy_file: prevent spurious error message

2019-10-21 Thread Sascha Hauer
On Fri, Oct 18, 2019 at 07:15:27PM +0200, Robert Karszniewicz wrote: > In all this haste, I forgot my question. > > What error codes should be used? For each goto its own code, in sequence, > starting from -1? Please propagate the error code returned from the call that failed. i.e. something