Re: Load environment variables earlier

2017-09-14 Thread Oleksij Rempel
Am 15.09.2017 um 04:33 schrieb zjh: > think the environment variables should be loaded before the device is > registered, > so when the device is registered, it can be initialized according to the > environment variable. Please take look at drivers/usb/gadget/f_fastboot.c. it is already using

Load environment variables earlier

2017-09-14 Thread zjh
think the environment variables should be loaded before the device is registered, so when the device is registered, it can be initialized according to the environment variable. ___ barebox mailing list barebox@lists.infradead.org

Re: [PATCH v1 1/2] commands: writef write variable contents to file

2017-09-14 Thread Oleksij Rempel
Hi, Am 14.09.2017 um 14:29 schrieb g...@high-consulting.de: > From: Gerd Pauli please add comment here how it should be used. > Signed-off-by: Gerd Pauli > --- > commands/Kconfig | 10 > commands/Makefile | 1 + > commands/writef.c

[PATCH v1 3/3] yubikey authentication in login, ykpasswd command to manage the database

2017-09-14 Thread gp
From: Gerd Pauli Signed-off-by: Gerd Pauli --- commands/Kconfig |8 + commands/Makefile|1 + commands/ykpasswd.c | 236 + common/Makefile |1 + common/password.c

[PATCH v1 2/2] command: ccrypt Crypt and Decrypt Files uses keystore for passwords compatible with https://sourceforge.net/projects/ccrypt/ keystore_init Simple Keystore initializer

2017-09-14 Thread gp
From: Gerd Pauli Signed-off-by: Gerd Pauli --- commands/Kconfig | 14 + commands/Makefile | 2 + commands/ccrypt.c | 247 +++ commands/keystore_init.c | 79 + include/ccryptlib.h | 98 ++

[PATCH v1 1/2] commands: writef write variable contents to file

2017-09-14 Thread gp
From: Gerd Pauli Signed-off-by: Gerd Pauli --- commands/Kconfig | 10 commands/Makefile | 1 + commands/writef.c | 68 +++ 3 files changed, 79 insertions(+) create mode 100644

Re: move to github

2017-09-14 Thread zjh
>If I pull request to https://github.com/saschahauer/barebox, >it will merge to https://git.pengutronix.de/cgit/barebox? On Thu, Sep 14, 2017 at 12:52:32PM +0300, Alexander Shiyan wrote: > Hello. > > >Четверг, 14 сентября 2017, 12:48 +03:00 от zjh : > > > >I suggest

Re: move to github

2017-09-14 Thread Alexander Shiyan
Hello. >Четверг, 14 сентября 2017, 12:48 +03:00 от zjh : > >I suggest that Barebox migrate to GitHub, which makes it easier to develop. https://github.com/saschahauer/barebox --- ___ barebox mailing list

move to github

2017-09-14 Thread zjh
I suggest that Barebox migrate to GitHub, which makes it easier to develop. ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

[PATCH v3 10/10] MIPS: dts: ar9344: add APB bus

2017-09-14 Thread Oleksij Rempel
and move nodes which belong to APB. Signed-off-by: Oleksij Rempel --- arch/mips/dts/ar9344.dtsi | 42 +- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/arch/mips/dts/ar9344.dtsi b/arch/mips/dts/ar9344.dtsi index

[PATCH v3 09/10] MIPS: tplink-wdr4300_defconfig: add network support

2017-09-14 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- arch/mips/configs/tplink-wdr4300_defconfig | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/mips/configs/tplink-wdr4300_defconfig b/arch/mips/configs/tplink-wdr4300_defconfig index b5be221f6..46093d243

[PATCH v3 02/10] add ar9331.dtsi and enable mac0

2017-09-14 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- arch/mips/dts/ar9331.dtsi | 12 arch/mips/dts/tplink-mr3020.dts | 5 + 2 files changed, 17 insertions(+) create mode 100644 arch/mips/dts/ar9331.dtsi diff --git a/arch/mips/dts/ar9331.dtsi

[PATCH v3 05/10] MIPS: dts: tl_wdr4300: add alias for spiflash

2017-09-14 Thread Oleksij Rempel
to unify the naming with TP-Link TL-MR3020. Signed-off-by: Oleksij Rempel --- arch/mips/dts/ar9344_tl_wdr4300.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/dts/ar9344_tl_wdr4300.dts b/arch/mips/dts/ar9344_tl_wdr4300.dts index 5a4a6f379..c784e6cb4

[PATCH v3 04/10] MIPS: dts: tl_wdr4300: enable mac0

2017-09-14 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- arch/mips/dts/ar9344_tl_wdr4300.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/mips/dts/ar9344_tl_wdr4300.dts b/arch/mips/dts/ar9344_tl_wdr4300.dts index b02c1d730..5a4a6f379 100644 ---

[PATCH v3 06/10] MIPS: dts: tl_wdr4300: remove RO flag from barebox partition

2017-09-14 Thread Oleksij Rempel
we need it RW for barebox updates. Signed-off-by: Oleksij Rempel --- arch/mips/dts/ar9344_tl_wdr4300.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/dts/ar9344_tl_wdr4300.dts b/arch/mips/dts/ar9344_tl_wdr4300.dts index c784e6cb4..139717a6b 100644 ---

[PATCH v3 08/10] MIPS: dts: tl_wdr4300: rename it to tl_wdr4300 v1.7

2017-09-14 Thread Oleksij Rempel
The minor version of TP-Link are usually big enough that it need extra vendor partition on the flash with additional configurations like PLL, CPU and RAM freqs. Visually I was able to confirm at least different SPI Flash and RAM chips. Signed-off-by: Oleksij Rempel ---

[PATCH v3 07/10] add phy: ar8327 driver

2017-09-14 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- drivers/net/phy/Kconfig | 5 + drivers/net/phy/Makefile | 1 + drivers/net/phy/ar8327.c | 280 +++ 3 files changed, 286 insertions(+) create mode 100644 drivers/net/phy/ar8327.c diff

[PATCH v3 03/10] MIPS: dts: ar9344: add mac0 node

2017-09-14 Thread Oleksij Rempel
this node is supported by ag71xx driver Signed-off-by: Oleksij Rempel --- arch/mips/dts/ar9344.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/mips/dts/ar9344.dtsi b/arch/mips/dts/ar9344.dtsi index 0838e8d7f..858751112 100644 ---

[PATCH v3 01/10] net: ath79: add ag71xx Ethernet driver

2017-09-14 Thread Oleksij Rempel
From: Yegor Yefremov Signed-off-by: Yegor Yefremov Signed-off-by: Antony Pavlov Signed-off-by: Oleksij Rempel --- arch/mips/mach-ath79/include/mach/ar71xx_regs.h | 12 +

[PATCH v3 00/10] provide ethernet support for ar9344 and ar9331

2017-09-14 Thread Oleksij Rempel
changes v3: - ag71xx_ether_halt had wrong timeout test. - ag71xx_ether_init should return 0 changes v2: - merge all ag71xx in to one patch - make sere all new driver use dev_* instead of printk - rework miibus functions. - use it_timedout instead of own implementation - add comments to the

Re: yubikey and aes support for barebox

2017-09-14 Thread Oleksij Rempel
Hi On 14.09.2017 10:02, Gerd Pauli wrote: Hi, i'm currently working with barebox and added some ( for me ) usefull commands and additions: - yubikey password authentication for barebox (OTP ) - command writef - command ccrypt ( compatible with https://sourceforge.net/projects/ccrypt/ ) -

yubikey and aes support for barebox

2017-09-14 Thread Gerd Pauli
Hi, i'm currently working with barebox and added some ( for me ) usefull commands and additions: - yubikey password authentication for barebox (OTP ) - command writef - command ccrypt ( compatible with https://sourceforge.net/projects/ccrypt/ ) - CRYPTO_AES Support wana share this stuff with

Re: [PATCH 1/5] commands: nv: argc cannot be < 1

2017-09-14 Thread Enrico Joerns
On 09/14/2017 08:27 AM, Sascha Hauer wrote: On Wed, Sep 13, 2017 at 02:23:28PM +0200, Enrico Jorns wrote: argc == 1 will only contain the name of the program itself which must be present when invoking nv command code. This reasoning is not quite right. You miss the argc -= optind above the

Re: [PATCH v2 01/10] net: ath79: add ag71xx Ethernet driver

2017-09-14 Thread Sascha Hauer
On Wed, Sep 13, 2017 at 04:15:57PM +0200, Oleksij Rempel wrote: > +static void ag71xx_ether_halt(struct eth_device *edev) > +{ > + struct ag71xx *priv = edev->priv; > + struct device_d *dev = priv->dev; > + uint64_t start; > + > + ag71xx_wr(priv, AG71XX_REG_RX_CTRL, 0); > +

Re: [PATCH 1/5] commands: nv: argc cannot be < 1

2017-09-14 Thread Sascha Hauer
On Wed, Sep 13, 2017 at 02:23:28PM +0200, Enrico Jorns wrote: > argc == 1 will only contain the name of the program itself which must be > present when invoking nv command code. This reasoning is not quite right. You miss the argc -= optind above the argc < 1 test. In fact in patch 4/5 you re-add