Re: [yocto] #yocto bootchooser: Cannot get state 'state'

2020-01-21 Thread Ahmad Fatoum
Hello Hans-Ulrich, On 1/21/20 7:28 PM, Hans-Ulrich Schlieben wrote: > Hi Ahmad, > >> git clone >>

Re: [yocto] #yocto bootchooser: Cannot get state 'state'

2020-01-21 Thread Ahmad Fatoum
Hi, On 1/21/20 6:51 PM, Hans-Ulrich Schlieben wrote: > Hi Ahmad, > > thank you for the great help. There's a lot to learn for me here. >> Does it come from the phytec git directly? Upstream barebox has this: > The zeus image I build here includes layer meta-phytec branch zeus and a > custom

[PATCH] param: Make enum param_tristate always visible

2020-01-21 Thread Christian Eggers
When disabling CONFIG_SHELL_HUSH, also CONFIG_PARAMETER may be disabled. In this case, the definition "enum param_tristate" is not reachable from watchdog.h. I also considered moving almost everything in watchdog.h inside the CONFIG_WATCHDOG guard. But this doesn't work for me because

Re: Configuring for secure boot

2020-01-21 Thread Ahmad Fatoum
Hello, On 1/20/20 8:53 PM, Sascha Hauer wrote: > Disabling the shell entirely with CONFIG_SHELL_NONE is the best you can > do. This also forces you to program your boot process in C which helps > you to get a well defined boot without diving into potentially unsafe > shell commands. > > To state

[PATCH] watchdog: Fix error path

2020-01-21 Thread Christian Eggers
In case of an error (e.g. dev_add_param_tristate_ro() returns -ENOSYS), device registration must be reverted. Signed-off-by: Christian Eggers --- drivers/watchdog/wd_core.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git

Re: Configuring for secure boot

2020-01-21 Thread Sascha Hauer
On Tue, Jan 21, 2020 at 11:52:02AM +0100, Ahmad Fatoum wrote: > Hello, > > On 1/20/20 8:53 PM, Sascha Hauer wrote: > > Disabling the shell entirely with CONFIG_SHELL_NONE is the best you can > > do. This also forces you to program your boot process in C which helps > > you to get a well defined

[PATCH 1/3] watchdog: Select CONFIG_PARAMETER

2020-01-21 Thread Christian Eggers
Without CONFIG_PARAMETER, watchdog_register() will always fail. Signed-off-by: Christian Eggers --- drivers/watchdog/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 45dd41a2a..34b7fea39 100644 --- a/drivers/watchdog/Kconfig

[PATCH 2/3] usb: otg: Select CONFIG_PARAMETER

2020-01-21 Thread Christian Eggers
Without CONFIG_PARAMETER, usb_register_otg_device() will always fail. Signed-off-by: Christian Eggers --- drivers/usb/otg/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/otg/Kconfig b/drivers/usb/otg/Kconfig index 2c094452b..20b4d7f8c 100644 --- a/drivers/usb/otg/Kconfig

[PATCH 3/3] globalvar: Select CONFIG_PARAMETER

2020-01-21 Thread Christian Eggers
Without CONFIG_PARAMETER, __nvar_add() will always fail. Signed-off-by: Christian Eggers --- common/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/common/Kconfig b/common/Kconfig index 60237d305..c2ec995f1 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -166,6 +166,7 @@ config

Re: [RFC PATCH 0/7] usb: dwc2 host driver

2020-01-21 Thread Michael Grzeschik
Hi Jules, On Thu, Jan 16, 2020 at 06:25:08PM +0100, Jules Maselbas wrote: > On Thu, Jan 16, 2020 at 07:50:27AM +0100, Sascha Hauer wrote: > > > > Well, USB gadget support would be a strong argument for your version ;) > I am going to send a new version for the host driver alongside the gadget >

[PATCH] Partly revert "globalvar: fix crash if CONFIG_NVVAR is not set"

2020-01-21 Thread Christian Eggers
This partly reverts commit 804770590556be5c922c9fb7e779e72805911e57. Checking for CONFIG_NVVAR is not required in nvvar_device_dispatch() as nv_device is not used in this function (only the address is compared). After fixing this, globalvar_simple_set() works again if CONFIG_NVVAR is disabled.

RE: [yocto] #yocto bootchooser: Cannot get state 'state'

2020-01-21 Thread Hans-Ulrich Schlieben
Hi Ahmad, thank you for the great help. There's a lot to learn for me here. > Does it come from the phytec git directly? Upstream barebox has this: The zeus image I build here includes layer meta-phytec branch zeus and a custom layer from phytec called meta-ksp0663. On the custom layer I created

RE: [yocto] #yocto bootchooser: Cannot get state 'state'

2020-01-21 Thread Hans-Ulrich Schlieben
Hi Ahmad, > git clone >