[PATCH 2/2] efi-block: detect when the block device is a USB Disk

2017-10-27 Thread Jean-Christophe PLAGNIOL-VILLARD
use usbdisk as a basename This will be usefull as example when we want to search for a usb disk for failsafe update or install. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/block/efi-block-io.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a

[PATCH 1/2] efi-gui: add USB IO Protocol GUID definition

2017-10-27 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/efi-guid.c | 1 + include/efi.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/common/efi-guid.c b/common/efi-guid.c index 71aa21ddd..1e45ccf4d 100644 --- a/common/efi-guid.c +++ b/common/efi-guid.c @@ -35,6 +35,7 @@ const

Re: [PATCH 1/1] EFI: add poweroff support

2017-10-26 Thread Jean-Christophe PLAGNIOL-VILLARD
wrong patch sorry Best Regards, J. > On 26 Oct 2017, at 5:59 PM, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > arch/x86/configs/efi_defconfig | 1 + > common/efi/efi.c | 7 +++ > drivers/efi/Kcon

[PATCH] EFI: add poweroff support

2017-10-26 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/x86/configs/efi_defconfig | 1 + common/efi/efi.c | 10 ++ drivers/efi/Kconfig| 1 + 3 files changed, 12 insertions(+) diff --git a/arch/x86/configs/efi_defconfig b/arch/x86/configs/efi_defconfig index

[PATCH 1/1] EFI: add poweroff support

2017-10-26 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/x86/configs/efi_defconfig | 1 + common/efi/efi.c | 7 +++ drivers/efi/Kconfig| 1 + 3 files changed, 9 insertions(+) diff --git a/arch/x86/configs/efi_defconfig b/arch/x86/configs/efi_defconfig index

Re: move to github

2017-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
> On 18 Sep 2017, at 3:14 PM, Sascha Hauer wrote: > > On Thu, Sep 14, 2017 at 05:46:52PM +0800, zjh wrote: >> I suggest that Barebox migrate to GitHub, which makes it easier to develop. > > Well it makes it easier for some people, but not for others (including > me atm). I may be convinced if I

Re: Observations with AT91SAM9263-EK

2017-07-03 Thread Jean-Christophe PLAGNIOL-VILLARD
> On 4 Jul 2017, at 12:19 AM, Sam Ravnborg wrote: > > Hi all. > > I recently purchased an AT91SAM9263-EK from ebay and > have played around a little with barebox. > For now only some observations. > > I had the impression that I could > drop AT91BootStrap when using barebox. Yes Wrote the sup

Re: [BUG v2017.07.0] readlink -f command broken?

2017-06-30 Thread Jean-Christophe PLAGNIOL-VILLARD
HI, I wrote the symlink support in barebox But I Worte a partial support only end path file not dirs As this is a boot loader not an OS Best Regards, J. > On 30 Jun 2017, at 9:28 PM, Ian Abbott wrote: > > Hi folks, > > I know there were changes to do with links to dir

Re: [PATCH 07/13] go: only use it if boot signature is not required

2017-03-27 Thread Jean-Christophe PLAGNIOL-VILLARD
> On 26 Mar 2017, at 4:23 PM, Michael Olbrich wrote: > > On Sun, Mar 26, 2017 at 04:44:58AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: >> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > Does this realy help? If someone has access to the barebox shell, then

[PATCH 13/13] efi: enable sercure boot support

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
This will ensure that we just start secured binary without user confirmation But for now on we only support EFI correctly signed image to start Later will allow both. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/x86/Kconfig | 1 + common/efi/efi-image.c | 1 + drivers

[PATCH 08/13] boot_verify: allow to force unsigned image to boot

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
request confirmation before booting an unsigned image with a default timeout Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/go.c | 9 +++-- common/Kconfig| 8 common/boot_verify.c | 47 --- common/bootm.c

[PATCH 11/13] efi: fix lds for secure boot support

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
everythink need to be aligned to 4096 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/x86/mach-efi/elf_ia32_efi.lds.S | 10 +++--- arch/x86/mach-efi/elf_x86_64_efi.lds.S | 10 ++ arch/x86/mach-efi/include/mach/barebox.lds.h | 14 +- include/asm

[PATCH 05/13] move boot verify to generic code

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can use it outside of bootm only Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/bootm.c | 6 +++--- common/Kconfig| 4 common/Makefile | 1 + common/boot_verify.c | 35 +++ common/bootm.c| 29

[PATCH 06/13] boot_verify: make it modifiable at start time

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/bootm.c | 2 +- common/boot_verify.c | 39 +-- common/bootm.c| 2 +- include/boot_verify.h | 15 --- 4 files changed, 47 insertions(+), 11 deletions(-) diff --git a

[PATCH 09/13] boot_verify: add password request support

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to let the user enter a password before booting more safe than just a 'y' Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/boot_verify.c | 10 ++ common/password.c| 18 ++ include/password.h | 6 ++ 3 files changed, 34

[PATCH 07/13] go: only use it if boot signature is not required

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/go.c | 4 1 file changed, 4 insertions(+) diff --git a/commands/go.c b/commands/go.c index fb319b320..e0385a977 100644 --- a/commands/go.c +++ b/commands/go.c @@ -26,6 +26,7 @@ #include #include #include +#include

[PATCH 10/13] efi: add more security related guid for the efivars

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/efi-guid.c | 6 ++ include/efi.h | 18 ++ 2 files changed, 24 insertions(+) diff --git a/common/efi-guid.c b/common/efi-guid.c index 71aa21ddd..01b02bbb1 100644 --- a/common/efi-guid.c +++ b/common/efi-guid.c

[PATCH 12/13] efi: fix secure and setup mode report

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/efi/efi-device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/efi/efi-device.c b/drivers/efi/efi-device.c index 6ed7f12b3..998bda7c6 100644 --- a/drivers/efi/efi-device.c +++ b/drivers/efi/efi

[PATCH 03/13] bootm: make security generic

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
so other secure format can be used Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/lib/bootm.c | 1 + common/image-fit.c | 1 + include/bootm.h | 1 + 3 files changed, 3 insertions(+) diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 204344f87..5b90705cd 100644

[PATCH 01/13] bootm: move open to image_handler

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/lib/bootm.c | 2 + arch/blackfin/lib/blackfin_linux.c | 1 + arch/nios2/lib/bootm.c | 1 + arch/ppc/lib/ppclinux.c| 1 + common/bootm.c | 79

[PATCH 04/13] boot: invert the secure boot forcing support

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
Add HAS_SECURE_BOOT as we will add other image format that support secure boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/Kconfig | 12 common/bootm.c | 6 +++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/common/Kconfig b/common/Kconfig index

[PATCH 00/13] add efi secure boot support

2017-03-25 Thread Jean-Christophe PLAGNIOL-VILLARD
-Christophe PLAGNIOL-VILLARD (13): bootm: move open to image_handler boot_verify: use a new error ESECVIOLATION bootm: make security generic boot: invert the secure boot forcing support move boot verify to generic code boot_verify: make it modifiable at start time

Re: [PATCH 3/5] efi: fix secure and setup mode report

2017-03-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:34 Mon 13 Mar , Sascha Hauer wrote: > On Thu, Mar 09, 2017 at 03:34:08PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > > drivers/efi/efi-device.c | 6 +++--- > > 1 file changed

Re: [PATCH 4/5] boot: if we are in secure boot mode

2017-03-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:50 Mon 13 Mar , Sascha Hauer wrote: > On Thu, Mar 09, 2017 at 03:34:09PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > request confirmation before booting an unsigned image > > > > with a default timeout > > > > Signed-off-

Re: [PATCH 4/5] boot: if we are in secure boot mode

2017-03-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:55 Mon 13 Mar , Sascha Hauer wrote: > On Thu, Mar 09, 2017 at 03:34:09PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > request confirmation before booting an unsigned image > > > > with a default timeout > > > > Signed-off-

Re: [PATCH] fixup! efi: clocksoure: add EFI event timer

2017-03-13 Thread Jean-Christophe PLAGNIOL-VILLARD
est solution. > Acked-by: Jean-Christophe PLAGNIOL-VILLARD Best Regards, J. ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH 7/8] efi: clocksoure: use event for timer

2017-03-13 Thread Jean-Christophe PLAGNIOL-VILLARD
> On 13 Mar 2017, at 6:30 PM, Michael Olbrich wrote: > > On Mon, Feb 27, 2017 at 11:19:29AM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: >> with this we can be hw generic >> >> If the EFI implement timestamp protocol we could use instead of event >> but

Re: [PATCH 0/12] EFI: drop arch efi

2017-03-13 Thread Jean-Christophe PLAGNIOL-VILLARD
> On 13 Mar 2017, at 6:27 PM, Michael Olbrich wrote: > > On Sun, Mar 12, 2017 at 01:05:38PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: >> On 17:26 Sat 11 Mar , Michael Olbrich wrote: >>> On Wed, Feb 15, 2017 at 08:29:32PM +0100, Jean-Christophe PLAGNIOL-VIL

Re: [PATCH 0/2] efivarfs: rework the filesystem to make it human readable

2017-03-13 Thread Jean-Christophe PLAGNIOL-VILLARD
> On 13 Mar 2017, at 4:20 PM, Michael Olbrich wrote: > > Hi, > > On Mon, Mar 13, 2017 at 08:24:42AM +0100, Sascha Hauer wrote: >> On Thu, Mar 09, 2017 at 03:38:40PM +0100, Jean-Christophe PLAGNIOL-VILLARD >> wrote: >>> Sascha is this one ok? >>

Re: [PATCH] net/phy: marvell: import support for 88E1111 from the Linux

2017-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, Why 2 patches? Best Regards, J/ On 18:18 Fri 10 Mar , pmamo...@gmail.com wrote: > From: Peter Mamonov > > Signed-off-by: Peter Mamonov > --- > drivers/net/phy/marvell.c | 126 > ++ > 1 file changed, 126 insertions(+) > > diff --git

Re: [PATCH 2/2 v2] efi: add serial driver support

2017-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:23 Sat 11 Mar , Michael Olbrich wrote: > On Mon, Mar 06, 2017 at 10:34:47AM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > So now we can stop to use the efi-stdio as this driver > > print on the Framebuffer and the serial at the same time. > > > > T

Re: [PATCH 0/12] EFI: drop arch efi

2017-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:26 Sat 11 Mar , Michael Olbrich wrote: > On Wed, Feb 15, 2017 at 08:29:32PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > Today the EFI is build as an other ARCH when in fact it's just a boot mode > > > > so move it back to arch/x86 for the spi

[PATCH 1/1] fix: console: expose consoles in devfs

2017-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
mit b4f55fcf355a4d0ac456445a5f42f259f2812b57 By Bastian Stender Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/console.c b/common/console.c index 668c870ab..4127e7617 100644 --- a/common/console.c +++ b/com

Re: [PATCH 3/3] fbcon: use __iowrite{32/64} to speedup the framebuffer console scrolling

2017-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:00 Fri 10 Mar , Sascha Hauer wrote: > On Thu, Mar 09, 2017 at 11:31:11AM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > this devide the time by 4 on x86 > > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > > drivers/video/fbcons

Re: [PATCH 2/5] efi: fix lds for secure boot support

2017-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
On 14:54 Fri 10 Mar , Jean-Christophe PLAGNIOL-VILLARD wrote: > On 12:05 Fri 10 Mar , Lucas Stach wrote: > > Am Freitag, den 10.03.2017, 18:17 +0800 schrieb Jean-Christophe > > PLAGNIOL-VILLARD: > > > > On Mar 10, 2017, at 1:24 AM, Lucas Stach wrote: > >

Re: [PATCH 3/3] fbcon: use __iowrite{32/64} to speedup the framebuffer console scrolling

2017-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:00 Fri 10 Mar , Sascha Hauer wrote: > On Thu, Mar 09, 2017 at 11:31:11AM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > this devide the time by 4 on x86 > > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > > drivers/video/fbcons

Re: [PATCH 2/5] efi: fix lds for secure boot support

2017-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
On 12:05 Fri 10 Mar , Lucas Stach wrote: > Am Freitag, den 10.03.2017, 18:17 +0800 schrieb Jean-Christophe > PLAGNIOL-VILLARD: > > > On Mar 10, 2017, at 1:24 AM, Lucas Stach wrote: > > > > > > Am Donnerstag, den 09.03.2017, 15:34 +0100 schrieb Jean-

Re: [PATCH 2/5] efi: fix lds for secure boot support

2017-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Mar 10, 2017, at 1:24 AM, Lucas Stach wrote: > > Am Donnerstag, den 09.03.2017, 15:34 +0100 schrieb Jean-Christophe > PLAGNIOL-VILLARD: >> everythink need to be aligned to 4096 > > Why? The commit message isn't really telling anything. This is a requie

Re: [PATCH 2/2] video: some framebuffer such as efi does support enable/disable

2017-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Mar 10, 2017, at 3:26 PM, Sascha Hauer wrote: > > On Thu, Mar 09, 2017 at 10:57:21AM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: >> so allow them to do not pass this function via fbops >> and indicate they are always on. >> >> Signed-off-

Re: [PATCH v3 2/3] console_countdown: add possibility to abort countdown by external commands

2017-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Mar 10, 2017, at 2:05 PM, Oleksij Rempel wrote: > > From: Marc Kleine-Budde > > This patch makes it possible to abort a console countdown by an external > command, for example when fastboot is used. This requires additional > modifications in the external commands, a call to "console_coun

Re: [PATCH 0/2] efivarfs: rework the filesystem to make it human readable

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, Sascha is this one ok? Best Regards, J. On 16:27 Fri 03 Mar , Jean-Christophe PLAGNIOL-VILLARD wrote: > Hi, > > efivarfs: rework the filesystem to make it human readable > > today we use - > > such as Boot-8be4df61-93ca-11d2-aa0d-00e098032b8c &

[PATCH 4/5] boot: if we are in secure boot mode

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
request confirmation before booting an unsigned image with a default timeout Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/go.c | 7 +++ common/Kconfig| 8 common/Makefile | 1 + common/bootm.c| 7 +++ common/secure_boot.c | 43

[PATCH 3/5] efi: fix secure and setup mode report

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/efi/efi-device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/efi/efi-device.c b/drivers/efi/efi-device.c index 6ed7f12b3..7029bfb31 100644 --- a/drivers/efi/efi-device.c +++ b/drivers/efi/efi

[PATCH 5/5] efi: enable sercure boot support

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
This will ensure that we just start secured binary without user confirmation But for now on we only support EFI correctly signed image to start Later will allow both. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/x86/Kconfig | 1 + common/efi/efi-image.c | 1 + drivers/efi

[PATCH 2/5] efi: fix lds for secure boot support

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
everythink need to be aligned to 4096 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/x86/mach-efi/elf_ia32_efi.lds.S | 10 +++--- arch/x86/mach-efi/elf_x86_64_efi.lds.S | 10 ++ arch/x86/mach-efi/include/mach/barebox.lds.h | 14 +- include/asm

[PATCH 1/5] efi: add more security related guid for the efivars

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/efi-guid.c | 6 ++ include/efi.h | 18 ++ 2 files changed, 24 insertions(+) diff --git a/common/efi-guid.c b/common/efi-guid.c index 71aa21ddd..01b02bbb1 100644 --- a/common/efi-guid.c +++ b/common/efi-guid.c

[PATCH 0/5] EFI Secure boot support

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
at: git://git.jcrosoft.org/barebox.git delivery/efi-sb for you to fetch changes up to 99e61a9be467fab5b5127b1233c4c4e70288e84c: efi: enable sercure boot support (2017-03-04 13:20:38 +0800) Jean-Christophe PLAGNIOL-VILLARD (2

[PATCH 3/3] fbcon: use __iowrite{32/64} to speedup the framebuffer console scrolling

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
this devide the time by 4 on x86 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/video/fbconsole.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/fbconsole.c b/drivers/video/fbconsole.c index b261f1704..b5e951e23 100644 --- a/drivers/video

[PATCH 2/3] x86: add __raw_read{b,w,l,q} and __raw_write{b,w,l,q}

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can use __iowrite{32/64} to speedup the framebuffer console scrolling Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/x86/include/asm/io.h | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h

[PATCH 1/3] import linux __iowrite32/64_copy support

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/linux/io.h | 27 + lib/Makefile | 1 + lib/iomap_copy.c | 70 ++ 3 files changed, 98 insertions(+) create mode 100644 include/linux/io.h create mode

[PATCH 2/2] video: some framebuffer such as efi does support enable/disable

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
so allow them to do not pass this function via fbops and indicate they are always on. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/video/fb.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/video/fb.c b/drivers/video/fb.c

[PATCH 1/2] parameter: fix read only int support

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
pass PARAM_FLAG_RO flag for read only it so we can not change them Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- lib/parameter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/parameter.c b/lib/parameter.c index 9f96d0760..65d6c7c0d 100644 --- a/lib

Re: [PATCH 1/2] video: add EFI Graphics Output Protocol support

2017-03-09 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Mar 9, 2017, at 4:46 PM, Michael Olbrich wrote: > > On Mon, Mar 06, 2017 at 06:04:10AM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: >> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD >> --- >> drivers/video/Kconfig | 4 + >> drivers/vide

Re: [PATCH 00/45] AT91, at91sam9x5ek updates

2017-03-07 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Mar 8, 2017, at 5:18 AM, Andrey Smirnov wrote: > > On Tue, Mar 7, 2017 at 12:58 PM, Sam Ravnborg wrote: When booting from an SD-Card/NOR-Flash/USB would I then need to use at91bootstrap, or can I use only barebox? If I move forward with this and I can find an 926

Re: [PATCH 00/45] AT91, at91sam9x5ek updates

2017-03-07 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Mar 8, 2017, at 12:34 AM, Sam Ravnborg wrote: > > Hi Andrey. > > On Mon, Mar 06, 2017 at 02:53:11PM -0800, Andrey Smirnov wrote: >> Hi everyone, >> >> I recently had a chance to work with at91sam9x5ek board and as a part >> of that effort I converted the code to support features found in

[PATCH 1/2] x86: efi: fix efiexit support

2017-03-07 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/x86/mach-efi/elf_x86_64_efi.lds.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/mach-efi/elf_x86_64_efi.lds.S b/arch/x86/mach-efi/elf_x86_64_efi.lds.S index e1bc2120f..93d34d17a 100644 --- a/arch/x86/mach-efi

[PATCH 2/2] x86: efi: fix logo support

2017-03-07 Thread Jean-Christophe PLAGNIOL-VILLARD
we need to copy the logo section too Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/x86/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index e837a2df9..6921b10a7 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile

[PATCH 2/2 v2] efi: add serial driver support

2017-03-06 Thread Jean-Christophe PLAGNIOL-VILLARD
will get double printing. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- Fix copyright drivers/serial/Kconfig | 4 + drivers/serial/Makefile | 1 + drivers/serial/serial_efi.c | 221 3 files changed, 226 insertions(+) create mode

[PATCH 1/1] video: sdl fix typo

2017-03-05 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/video/sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/sdl.c b/drivers/video/sdl.c index 5e1dc8e57..8f5b409ef 100644 --- a/drivers/video/sdl.c +++ b/drivers/video/sdl.c @@ -53,7 +53,7 @@ static int

[PATCH 2/2] efi: add serial driver support

2017-03-05 Thread Jean-Christophe PLAGNIOL-VILLARD
will get double printing. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/serial/Kconfig | 4 + drivers/serial/Makefile | 1 + drivers/serial/serial_efi.c | 241 3 files changed, 246 insertions(+) create mode 100644 drivers

[PATCH 1/2] video: add EFI Graphics Output Protocol support

2017-03-05 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/video/Kconfig | 4 + drivers/video/Makefile | 2 + drivers/video/efi_gop.c | 267 3 files changed, 273 insertions(+) create mode 100644 drivers/video/efi_gop.c diff --git a

[PATCH 0/2] add support of efi Serial IO and Graphics Output Protocol

2017-03-05 Thread Jean-Christophe PLAGNIOL-VILLARD
nges up to 6ecbe33539f20076bbc781b9e20a5a54d504fdf3: efi: add serial driver support (2017-03-01 22:11:37 +0800) ---- Jean-Christophe PLAGNIOL-VILLARD (2): video: add EFI Graphics Output Protocol support efi: add serial driver support

[PATCH 2/2] driver: generate hash at runtime to speed up device/driver matching

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
use GNU Hash Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/base/bus.c| 12 drivers/base/driver.c | 27 ++- include/driver.h | 5 + 3 files changed, 39 insertions(+), 5 deletions(-) diff --git a/drivers/base/bus.c b/drivers/base

[PATCH 1/2] driver: remove the const of struct platform_device_id *id_table

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can generate the hash at register time This will allow speed up the device/driver matching as strcmp is slow. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/base/bus.c | 4 ++-- include/driver.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers

[RFC PATCH 0/2] use gnuhash to speed up device/driver match

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
u to fetch changes up to 5ede85afc958bdf488a3c5e56061e7f27c26cbc6: driver: generate hash at runtime to speed up device/driver matching (2017-03-01 03:49:34 +0800) ---- Jean-Christophe PLAGNIOL-VILLARD (2): driver: remove the const

[PATCH 2/2] efivarfs: rework the filesystem to make it human readable

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
14 LoaderTimeInitUSec Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/efi-guid.c | 17 ++- common/efi/efi.c | 2 +- fs/efivarfs.c | 379 ++ include/efi.h | 1 + 4 files changed, 312 insertions(+), 87 deletions(-) dif

[PATCH 1/2] ls: allow to list a symlink ending with '/' as a dir

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/ls.c | 41 +++-- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/commands/ls.c b/commands/ls.c index 331a4d201..3bd5e3ff8 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -64,6 +64,16

[PATCH 0/2] efivarfs: rework the filesystem to make it human readable

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
---- Jean-Christophe PLAGNIOL-VILLARD (2): ls: allow to list a symlink ending with '/' as a dir efivarfs: rework the filesystem to make it human readable commands/ls.c | 41 + common/efi-guid.c | 17 +++-- common/efi/efi.c | 2 +- fs/e

Re: [PATCH 2/3] ARM: correctly identify ARMv6 K/Z

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
On 07:04 Fri 03 Mar , Sascha Hauer wrote: > On Thu, Mar 02, 2017 at 11:42:48AM +0100, Lucas Stach wrote: > > Am Mittwoch, den 01.03.2017, 18:55 +0100 schrieb Jean-Christophe > > PLAGNIOL-VILLARD: > > > On 15:26 Wed 01 MarĀ , Lucas Stach wrote: > > > >

[PATCH 1/9] efi: add prototype and definition for creating and closing event

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/efi.h | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/include/efi.h b/include/efi.h index 5691f4e8f..f65980687 100644 --- a/include/efi.h +++ b/include/efi.h @@ -185,12 +185,25 @@ typedef struct

[PATCH 7/9] efi: move x86 clocksource to device/driver

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
that work on Event (Add Later) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/x86/Kconfig | 2 +- arch/x86/mach-efi/Makefile | 1 + arch/x86/mach-efi/clocksource.c | 11 +++ drivers/clocksource/Kconfig | 6 +++--- dr

[PATCH 8/9] efi: clocksoure: add EFI event timer

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
with this we can be hw generic If the EFI implement timestamp protocol we could use instead of event but even EDK2 Never Ever compile it for any target. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/efi/efi.c | 8 drivers/clocksource/Kconfig | 4 ++ drivers

[PATCH 5/9] clocksource: allow to have multiple device from clock source

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
use the one with the most priority. We can not select the clocksource at user level. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/clock.c | 11 +++ include/clock.h | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/common/clock.c b/common/clock.c

[PATCH 9/9] efi: add veriable to report secure boot support and status

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/efi/efi-device.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/efi/efi-device.c b/drivers/efi/efi-device.c index db8b25147..6ed7f12b3 100644 --- a/drivers/efi/efi-device.c +++ b/drivers

[PATCH 3/9] efi: move LoaderTimeInitUSec and LoaderDevicePartUUID to postcore initcall

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can use device/driver for the timer Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/efi/efi.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/common/efi/efi.c b/common/efi/efi.c index 217a6bea8..1c7aee872 100644 --- a/common/efi/efi.c +++ b

[PATCH 6/9] clocksource: move dummy clock source to init_clock

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
And registered it as soon as possible (at pure initcall). So we not need to check the cs all the time. As get_time_ns() is one of the most called function of barebox at runtime. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/clock.c | 33 - 1 file

[PATCH 4/9] efi: move x86 clocksource init at core initcall level

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can use device/driver model Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/efi/efi.c | 1 - drivers/clocksource/efi.c | 5 - include/efi/efi.h | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/efi/efi.c b/common/efi/efi.c index

[PATCH 2/9] efi: add prototype and definition for setting timer

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/efi.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/efi.h b/include/efi.h index f65980687..e1fc134ee 100644 --- a/include/efi.h +++ b/include/efi.h @@ -171,6 +171,12 @@ struct

[PATCH 0/9] add generic EFI timer

2017-03-03 Thread Jean-Christophe PLAGNIOL-VILLARD
fetch changes up to f14af7444ad9d8ce674382f222119f5fcd3f2576: efi: add veriable to report secure boot support and status (2017-02-28 23:05:31 +0800) -------- Jean-Christophe PLAGNIOL-VILLARD (9): efi: add prototype and definition for creating and closing event

Re: [PATCH 2/3] ARM: correctly identify ARMv6 K/Z

2017-03-01 Thread Jean-Christophe PLAGNIOL-VILLARD
On 15:26 Wed 01 Mar , Lucas Stach wrote: > The ARMv6 K/Z derivatives have a v7 compatible MMU, but all other parts > (including the cache handling) is still at v6. As we don't make use of > the more advanced features of the v7 MMU in Barebox, it's okay to just > override this to properly identi

Re: Zyxel NAS540 bricked?

2017-03-01 Thread Jean-Christophe PLAGNIOL-VILLARD
On 05:03 Mon 27 Feb , AndrewCz wrote: > Hello all, hope you are well. > > Recently, I followed a guide[1] to reflash my Zyxel NAS540[2] in order > to put Debian on it. I'm pretty sure I bricked it and am just looking > for confirmation. > > I seem to be running into a bootloop where it will r

Re: [PATCH 5/8] clocksource: allow to have multiple device from clock source

2017-03-01 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:09 Tue 28 Feb , Sascha Hauer wrote: > On Mon, Feb 27, 2017 at 11:19:27AM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > use the one with the most priority. > > > > We can not select the clocksource at user level. > > > > Signed-off-

[PATCH 5/8] clocksource: allow to have multiple device from clock source

2017-02-27 Thread Jean-Christophe PLAGNIOL-VILLARD
use the one with the most priority. We can not select the clocksource at user level. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/clock.c | 11 +++ include/clock.h | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/common/clock.c b/common/clock.c

[PATCH 8/8] efi: add veriable to report secure boot support and status

2017-02-27 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/efi/efi-device.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/efi/efi-device.c b/drivers/efi/efi-device.c index db8b25147..6ed7f12b3 100644 --- a/drivers/efi/efi-device.c +++ b/drivers

[PATCH 7/8] efi: clocksoure: use event for timer

2017-02-27 Thread Jean-Christophe PLAGNIOL-VILLARD
with this we can be hw generic If the EFI implement timestamp protocol we could use instead of event but even EDK2 Never Ever compile it for any target. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/efi/efi.c | 8 drivers/clocksource/Kconfig | 4 ++ drivers

[PATCH 6/8] efi: move x86 clocksource to device/driver

2017-02-27 Thread Jean-Christophe PLAGNIOL-VILLARD
that work on Event (Add Later) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/x86/Kconfig | 2 +- arch/x86/mach-efi/Makefile | 1 + arch/x86/mach-efi/clocksource.c | 11 +++ drivers/clocksource/Kconfig | 6 +++--- dr

[PATCH 3/8] efi: move LoaderTimeInitUSec and LoaderDevicePartUUID to postcore initcall

2017-02-27 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can use device/driver for the timer Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/efi/efi.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/common/efi/efi.c b/common/efi/efi.c index 217a6bea8..1c7aee872 100644 --- a/common/efi/efi.c +++ b

[PATCH 2/8] efi: add prototype and definition for setting timer

2017-02-27 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/efi.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/efi.h b/include/efi.h index f65980687..e1fc134ee 100644 --- a/include/efi.h +++ b/include/efi.h @@ -171,6 +171,12 @@ struct

[PATCH 4/8] efi: move x86 clocksource init at core initcall level

2017-02-27 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can use device/driver model Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/efi/efi.c | 1 - drivers/clocksource/efi.c | 5 - include/efi/efi.h | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/efi/efi.c b/common/efi/efi.c index

[PATCH 1/8] efi: add prototype and definition for creating and closing event

2017-02-27 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/efi.h | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/include/efi.h b/include/efi.h index 5691f4e8f..f65980687 100644 --- a/include/efi.h +++ b/include/efi.h @@ -185,12 +185,25 @@ typedef struct

[PATCH 0/8] add generic EFI timer

2017-02-27 Thread Jean-Christophe PLAGNIOL-VILLARD
dbfb7ab48ebb: efi: add veriable to report secure boot support and status (2017-02-27 18:20:37 +0800) -------- Jean-Christophe PLAGNIOL-VILLARD (8): efi: add prototype and definition for creating and closing event efi: add prototyp

Re: [PATCH 07/12] efi: move x86 efi boot support to x86 arch

2017-02-23 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:27 Thu 16 Feb , Michael Olbrich wrote: > On Wed, Feb 15, 2017 at 08:34:15PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > prepare to drop the efi arch as efi boot up is not arch sepecific > > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > >

Re: [PATCH] lib: xz: add support for bcj filters

2017-02-21 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Feb 21, 2017, at 10:47 PM, yegorsli...@googlemail.com wrote: > > From: Yegor Yefremov > > Add missing configuration options for various bcj filters. Without > these options the lib/xz/xz_dec_bcj.c file will be compiled, but all > filters will be disabled. > > Signed-off-by: Yegor Yefremov

[PATCH 10/12] efi: add minor and major to the bus and display it at boot

2017-02-19 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/efi/efi-device.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/efi/efi-device.c b/drivers/efi/efi-device.c index 7eb94de45..1877794c6 100644 --- a/drivers/efi/efi-device.c +++ b/drivers/efi/efi

[PATCH 11/12] efi-gui: add Timestamp Protocol GUID definition

2017-02-19 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/efi-guid.c | 1 + include/efi.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/common/efi-guid.c b/common/efi-guid.c index 64f3b1f65..04a00ee87 100644 --- a/common/efi-guid.c +++ b/common/efi-guid.c @@ -75,6 +75,7 @@ const

[PATCH 12/12] efi: add efi handle dump command

2017-02-19 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can inspect easly what is supported by the EFI implementation we running on Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/efi-guid.c| 5 ++ drivers/efi/efi-device.c | 169 +++ include/efi.h| 8 +++ 3 files

[PATCH 08/12] ARCH: efi: Finally drop it as now we can build efi bootup from x86

2017-02-15 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/efi/Kconfig | 53 --- arch/efi/Makefile | 43 --- arch/efi/configs/efi_defconfig | 79 --- arch/efi/include/asm/barebox.h | 1 - arch/efi

[PATCH 07/12] efi: move x86 efi boot support to x86 arch

2017-02-15 Thread Jean-Christophe PLAGNIOL-VILLARD
prepare to drop the efi arch as efi boot up is not arch sepecific Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- Documentation/boards/efi.rst | 2 +- arch/x86/Kconfig | 53 -- arch/x86/Makefile| 74

[PATCH 09/12] efi: bus: add firmware vendor and resision and tables info

2017-02-15 Thread Jean-Christophe PLAGNIOL-VILLARD
This alllow us to known where we boot from Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/efi/efi-device.c | 23 +++ include/efi.h| 7 ++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/efi/efi-device.c b/drivers/efi/efi

[PATCH 05/12] efi: move startup and payload to common/efi

2017-02-15 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/efi/Makefile | 2 +- common/Makefile| 1 + {arch/efi => common}/efi/Makefile | 0 {arch/efi => common}/efi/efi-image.c

  1   2   3   4   5   6   7   8   9   10   >