[PATCH 4/5] efi: include and execute exit calls

2017-01-23 Thread Michael Olbrich
Signed-off-by: Michael Olbrich --- arch/efi/Makefile | 4 ++-- arch/efi/efi/efi-image.c | 2 ++ arch/efi/lib/elf_x86_64_efi.lds.S | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/efi/Makefile b/arch/efi/Makefile index b078bd0e356d..32a1c152b791 1

[PATCH 5/5] efi: don't unload drivers

2017-01-23 Thread Michael Olbrich
EFI applications should be unloaded to avoid leaking memory. However, boot or runtime services continue in the background. So they must not be unloaded. Signed-off-by: Michael Olbrich --- arch/efi/efi/efi-image.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/efi/

[PATCH 3/5] output: use '[0m' to reset colors

2017-01-23 Thread Michael Olbrich
'[m' is supposed to have the same effect as '[0m'. However, some EFI implementations seem to ignore '[m', so use '[0m' everywhere to avoid rendering issues. Signed-off-by: Michael Olbrich --- commands/2048.c | 2 +- common/menu.c | 2 +- include/readkey.h | 4 ++-- 3 files changed, 4 inser

[PATCH 1/5] readkey: keys are unsigned char

2017-01-23 Thread Michael Olbrich
Otherwise values > 127 will become negative and are dropped. Signed-off-by: Michael Olbrich --- lib/readkey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/readkey.c b/lib/readkey.c index 2870a5a9fee5..e72da0066bdc 100644 --- a/lib/readkey.c +++ b/lib/readkey.c @@ -

[PATCH 0/5] EFI fixes

2017-01-23 Thread Michael Olbrich
A few small fixes to improve the barebox experience on EFI. Not all are strictly EFI specific, but that's where I came across the problems. Regards, Michael Michael Olbrich (5): readkey: keys are unsigned char serial: efi: improve input handling output: use '[0m' to reset colors efi: incl

[PATCH 2/5] serial: efi: improve input handling

2017-01-23 Thread Michael Olbrich
0x08 is the scan-code for 'backspace' not 'delete'. 0x17 indicates the start of an escape sequence, such as "[3~" for 'delete'. Signed-off-by: Michael Olbrich --- drivers/serial/efi-stdio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/serial/efi-stdio.c b/drivers

Re: tftp get and last ack hanlding

2017-01-23 Thread Yegor Yefremov
On Mon, Jan 23, 2017 at 10:01 AM, Yegor Yefremov wrote: > I'm using dnsmaq as tftp server. When I execute tftp file on barebox > 2016.07.0 I get the required file, but dnsmasq complains about missing > ACK (my interpretation of dnsmaq source code). If I'm performing the > same operation in Linux u

tftp get and last ack hanlding

2017-01-23 Thread Yegor Yefremov
I'm using dnsmaq as tftp server. When I execute tftp file on barebox 2016.07.0 I get the required file, but dnsmasq complains about missing ACK (my interpretation of dnsmaq source code). If I'm performing the same operation in Linux using busybox ftfp - everything is OK, i.e. instead of "failed sen