[PATCH] cp: complete command help

2019-10-16 Thread Robert Karszniewicz
Signed-off-by: Robert Karszniewicz --- commands/cp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/cp.c b/commands/cp.c index 54934dd..845dae6 100644 --- a/commands/cp.c +++ b/commands/cp.c @@ -100,13 +100,14 @@ BAREBOX_CMD_HELP_START(cp)

[PATCH v4] readline: make ctrl-u to work like linux console

2019-10-16 Thread sendpatch
From: DU HUANPENG currtly, the ctrl-u discards the whole line, in most linux boxes, ctrl-u just erase characters before cursor to the begginning of the line. this patch make ctrl-u to do this. Signed-off-by: DU HUANPENG --- lib/readline.c | 8 1 file changed, 8 insertions(+) diff

Re: readling, ctrl-u is not working like linux console

2019-10-16 Thread duhuanpeng
> > In some shells, like mksh, the default behaviour of ctrl-u is to kill the > whole line. But then it's not called unix-line-discard, and I don't think > mksh uses readline, either. The "standard" is probably just readline, though > it makes me wonder where the "unix" came from… Hi, to avoid

Re: readling, ctrl-u is not working like linux console

2019-10-16 Thread Robert Karszniewicz
On 10/16/19 10:57 AM, Roland Hieber wrote: On Wed, Oct 16, 2019 at 04:57:45AM +0800, duhuanpeng wrote: Hi, I find it the barebox console's ctrl-u is not working like my linux host. for now, the barebox's ctrl-u discard the whole line. but the linux consle just remove characters before cursor.

Re: readling, ctrl-u is not working like linux console

2019-10-16 Thread duhuanpeng
> > FWIW, in bash on both my tty2 and urxvt, Ctrl-U clears the whole line. did you try to move your cursor in the middle of a line. I guess my bash use this keybinds: [1] https://www.gnu.org/software/bash/manual/bash.html#Bindable-Readline-Commands 8.4.4 Killing And Yanking kill-line

Re: MFGTools from NXP

2019-10-16 Thread Ahmad Fatoum
On 10/16/19 2:44 PM, Mihaita Ivascu wrote: > 2018.04.0 I've v2019.09.0 and did the same steps you described and it works for me. Can you try with a newer version? > > On Wed, Oct 16, 2019 at 2:41 PM Ahmad Fatoum wrote: >> >> On 10/16/19 2:35 PM, Mihaita Ivascu wrote: >>> No it does not. Still

Re: MFGTools from NXP

2019-10-16 Thread Mihaita Ivascu
2018.04.0 On Wed, Oct 16, 2019 at 2:41 PM Ahmad Fatoum wrote: > > On 10/16/19 2:35 PM, Mihaita Ivascu wrote: > > No it does not. Still no devices listed. > > Strange. What barebox version? > > > > > Thanks, > > Mihaita > > > > On Wed, Oct 16, 2019 at 1:36 PM Ahmad Fatoum > > wrote: > >>

Re: MFGTools from NXP

2019-10-16 Thread Ahmad Fatoum
On 10/16/19 2:35 PM, Mihaita Ivascu wrote: > No it does not. Still no devices listed. Strange. What barebox version? > > Thanks, > Mihaita > > On Wed, Oct 16, 2019 at 1:36 PM Ahmad Fatoum wrote: >> >> On 10/16/19 1:28 PM, Mihaita Ivascu wrote: >>> On Wed, Oct 16, 2019 at 11:53 AM Ahmad

Re: MFGTools from NXP

2019-10-16 Thread Mihaita Ivascu
No it does not. Still no devices listed. Thanks, Mihaita On Wed, Oct 16, 2019 at 1:36 PM Ahmad Fatoum wrote: > > On 10/16/19 1:28 PM, Mihaita Ivascu wrote: > > On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum > > wrote: > >> > >> > >> On 10/16/19 11:48 AM, Mihaita Ivascu wrote: > >>> On

Re: MFGTools from NXP

2019-10-16 Thread Ahmad Fatoum
On 10/16/19 1:28 PM, Mihaita Ivascu wrote: > On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum > wrote: >> >> >> On 10/16/19 11:48 AM, Mihaita Ivascu wrote: >>> On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum > wrote: On 10/16/19 11:21 AM, Mihaita Ivascu wrote: > Hello, > >

Re: MFGTools from NXP

2019-10-16 Thread Mihaita Ivascu
On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum wrote: > > > On 10/16/19 11:48 AM, Mihaita Ivascu wrote: > > On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum > > wrote: > >> > >> On 10/16/19 11:21 AM, Mihaita Ivascu wrote: > >>> Hello, > >>> > >>>Thanks for your answer. Yes i am able to connect

[PATCH v2] libfile: copy_file: prevent spurious error message

2019-10-16 Thread Robert Karszniewicz
Before this, if the function bails out somewhere at a later point, this return value will be outdated and will produce a misleading error message down the line. Signed-off-by: Robert Karszniewicz --- Changes from v1: - commit message lib/libfile.c | 1 + 1 file changed, 1 insertion(+) diff

Re: MFGTools from NXP

2019-10-16 Thread Ahmad Fatoum
On 10/16/19 11:48 AM, Mihaita Ivascu wrote: > On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum wrote: >> >> On 10/16/19 11:21 AM, Mihaita Ivascu wrote: >>> Hello, >>> >>>Thanks for your answer. Yes i am able to connect via PUTTY to the target. >>>Then I should use some adb commands in

Re: MFGTools from NXP

2019-10-16 Thread Mihaita Ivascu
On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum wrote: > > On 10/16/19 11:21 AM, Mihaita Ivascu wrote: > > Hello, > > > >Thanks for your answer. Yes i am able to connect via PUTTY to the target. > >Then I should use some adb commands in order to push the new > > barebox/firmware ? do you

[PATCH] ARM: stm32mp: select ARCH_HAS_RESET_CONTROLLER

2019-10-16 Thread Ahmad Fatoum
Many STM32 peripherals, including I2C, SPI, USB and SDMMC use the RCC reset controller for reset. Enable ARCH_HAS_RESET_CONTROLLER, so drivers depending on RESET_CONTROLLER become available for selection. Signed-off-by: Ahmad Fatoum --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)

[PATCH] fixup! mci: add support for stm32mp sd/mmc controller

2019-10-16 Thread Ahmad Fatoum
We need reset controller support in the driver, depend on it. --- drivers/mci/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mci/Kconfig b/drivers/mci/Kconfig index 5b560310136a..4a71a4609763 100644 --- a/drivers/mci/Kconfig +++ b/drivers/mci/Kconfig @@ -156,6 +156,7 @@

Re: MFGTools from NXP

2019-10-16 Thread Ahmad Fatoum
On 10/16/19 11:21 AM, Mihaita Ivascu wrote: > Hello, > >Thanks for your answer. Yes i am able to connect via PUTTY to the target. >Then I should use some adb commands in order to push the new > barebox/firmware ? do you know where I could find some examples? fastboot device -l works

Re: MFGTools from NXP

2019-10-16 Thread Mihaita Ivascu
Hello, Thanks for your answer. Yes i am able to connect via PUTTY to the target. Then I should use some adb commands in order to push the new barebox/firmware ? do you know where I could find some examples? Also I have a question: purpose of this activity is for me to be able to flash

Re: readling, ctrl-u is not working like linux console

2019-10-16 Thread Ulrich Ölmann
On Wed, Oct 16 2019 at 10:57 +0200, Roland Hieber wrote: > On Wed, Oct 16, 2019 at 04:57:45AM +0800, duhuanpeng wrote: >> Hi, >> >> I find it the barebox console's ctrl-u is not working like my >> linux host. >> for now, the barebox's ctrl-u discard the whole line. but the >> linux consle just

Re: readling, ctrl-u is not working like linux console

2019-10-16 Thread Roland Hieber
On Wed, Oct 16, 2019 at 04:57:45AM +0800, duhuanpeng wrote: > Hi, > > I find it the barebox console's ctrl-u is not working like my > linux host. > for now, the barebox's ctrl-u discard the whole line. but the > linux consle just remove characters before cursor. > is the barebox ctrl-u follows

Re: MFGTools from NXP

2019-10-16 Thread Ahmad Fatoum
On 10/16/19 10:40 AM, Mihaita Ivascu wrote: > Hello again, > >I have the target in otg peripheral mode, ADB and fastboot drivers > installed but fastboot does not list any device. The board is detected > in device manager Try enabling the ACM gadget in barebox and connect with PuTTY and see

Re: MFGTools from NXP

2019-10-16 Thread Mihaita Ivascu
Hello again, I have the target in otg peripheral mode, ADB and fastboot drivers installed but fastboot does not list any device. The board is detected in device manager Please see attachment. Any ideas how should I proceed? Thanks for the support. Thanks, Mihaita On Wed, Oct 16,

Re: [PATCH v3] readline: make ctrl-u to work like linux console

2019-10-16 Thread Oleksij Rempel
Am 16.10.19 um 09:25 schrieb sendpa...@qq.com: > From: DU HUANPENG > > currtly, the ctrl-u discards the whole line, in most linux > boxes, ctrl-u just erase characters before cursor to the > begginning of the line. this patch make ctrl-u to do this. > > Signed-off-by: DU HUANPENG > --- >

Re: MFGTools from NXP

2019-10-16 Thread Mihaita Ivascu
Thanks. I have installed ADB and fastboot drivers for Win from https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/ I have installed according to the attachment. But is not recognized in Windows. I did reboot the system after installation but did not add any new env variable.

[PATCH v3] readline: make ctrl-u to work like linux console

2019-10-16 Thread sendpatch
From: DU HUANPENG currtly, the ctrl-u discards the whole line, in most linux boxes, ctrl-u just erase characters before cursor to the begginning of the line. this patch make ctrl-u to do this. Signed-off-by: DU HUANPENG --- lib/readline.c | 26 -- 1 file changed, 24

[PATCH 3/5] efi: use efi_guidcmp helper where appropriate

2019-10-16 Thread Ahmad Fatoum
We have a helper for it. Let's use it. Signed-off-by: Ahmad Fatoum --- drivers/efi/efi-device.c | 2 +- fs/efivarfs.c| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/efi/efi-device.c b/drivers/efi/efi-device.c index 305d337aabf5..68d81caf010b 100644 ---

[PATCH 4/5] x86: include: add asmlinkage 'storage class'

2019-10-16 Thread Ahmad Fatoum
We've a number of C functions with external linkage that are only called from assembly. -Wmissing-prototypes warns about these unless they have a prototype that goes unused. Let's standardize on using the asmlinkage 'storage class' to mark such declarations. As defines asmlinkage to naught

[PATCH 2/5] efi: retire efi_compare_guid in favor of efi_guidcmp

2019-10-16 Thread Ahmad Fatoum
Both functions wrap the same memcmp except that one uses pointers to GUIDs and the other passes the GUIDs by value. The function is static inline, so it doesn't really matter which one we keep. We'll drop efi_compare_guid because it's been used once only in the code base so far. Signed-off-by:

[PATCH 5/5] efi: silence warning about un-prototyped assembly-called functions

2019-10-16 Thread Ahmad Fatoum
Both _relocate and efi_main are only called from assembly, but -Wmissing-prototypes doesn't know that and warns about them. Pre-declare prototypes to silence the warnings. Signed-off-by: Ahmad Fatoum --- arch/x86/mach-efi/reloc_x86_64.c | 3 +++ common/efi/efi.c | 3 +++ 2 files

[PATCH 1/5] efi: Fix typo in description string

2019-10-16 Thread Ahmad Fatoum
s/Conosle/Console/ Signed-off-by: Ahmad Fatoum --- common/efi-guid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/efi-guid.c b/common/efi-guid.c index 1e45ccf4d238..2bf2395e8540 100644 --- a/common/efi-guid.c +++ b/common/efi-guid.c @@ -52,7 +52,7 @@ const char

Re: [PATCH] readline: make ctrl-u to work like linux console

2019-10-16 Thread Oleksij Rempel
Hi, Am 16.10.19 um 07:34 schrieb sendpa...@qq.com: > From: DU HUANPENG > > currtly, the ctrl-u discards the whole line, in most linux > boxes, ctrl-u just erase characters before cursor to the > begginning of the line. this patch make ctrl-u to do this. Cool, didnÄt know i can use ctrl-u like