Re: [RFC 2/4] Add rsa support

2015-03-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:35 Fri 13 Mar , Jan Lübbe wrote: On Do, 2015-03-12 at 18:47 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: as state in my previous e-mail I will a keystore support but this dt format to handle no please we need to use the standard format as in the kernel or openssl DER

Re: [RFC 2/4] Add rsa support

2015-03-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:10 Fri 13 Mar , Jan Lübbe wrote: On Fr, 2015-03-13 at 10:56 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: Having an ASN1 parser for DER/x509 is a huge amount of complexity I would not want in a bootloader. Just take a look at the problems the SSL-CAs and browsers had

Re: [RFC 3/4] FIT: add FIT image support

2015-03-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:21 Fri 13 Mar , Jan Lübbe wrote: On Fr, 2015-03-13 at 11:05 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 10:28 Fri 13 Mar , Jan Lübbe wrote: On Do, 2015-03-12 at 19:19 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: please do not send a new version except for fix

Re: [RFC 2/4] Add rsa support

2015-03-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:43 Fri 13 Mar , Jan Lübbe wrote: On Fr, 2015-03-13 at 11:25 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 11:10 Fri 13 Mar , Jan Lübbe wrote: On Fr, 2015-03-13 at 10:56 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: Having an ASN1 parser for DER/x509 is a huge amount

Re: [RFC 3/4] FIT: add FIT image support

2015-03-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On 12:33 Fri 13 Mar , Marc Kleine-Budde wrote: On 03/13/2015 11:05 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 10:28 Fri 13 Mar , Jan Lübbe wrote: On Do, 2015-03-12 at 19:19 +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: please do not send a new version except for fix I'm

Re: [RFC 3/4] FIT: add FIT image support

2015-03-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:06 Fri 13 Mar , Marc Kleine-Budde wrote: On 03/13/2015 04:54 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: if you can break rsa4096, the chance you can break ECC are high too If you want to open the box, today you would probably not break rsa2048/sha1 (unless you have huge

Re: [PATCH 7/8] digest: add HMAC support for md5, sha1, sha224, sha256, sha384, sha512

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:17 Thu 12 Mar , Sascha Hauer wrote: On Wed, Mar 11, 2015 at 05:53:08PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: the hmac algo will be registered as hmac(%s) such as hmac(sha256) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- +static int

Re: git fetch issue

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 12:05 Thu 12 Mar , Antony Pavlov wrote: Hi All! I have a problem with git-fetch. Here is the log: antony@puro:~/barebox$ git remote show pengutronix | grep Fetch URL Fetch URL: git://git.pengutronix.de/git/barebox.git antony@puro:~/barebox$ git fetch pengutronix remote:

[PATCH 1/1] gitignore: only ignore include/config.h

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- include/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/.gitignore b/include/.gitignore index 0e56cf2..18e58a7 100644 --- a/include/.gitignore +++ b/include/.gitignore @@ -1 +1

[PATCH 8/8] command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
)= c297473e9bb221c5dc51d47ad75c76095f1bdc4ca9dff1d5931c2e22bf11a0de Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/digest.c | 34 +- crypto/digest.c | 10 -- include/digest.h | 3 +++ 3 files changed, 40 insertions(+), 7 deletions

[PATCH 1/2] digest: fix and add missing copyright

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- crypto/hmac.c | 6 ++ crypto/internal.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/crypto/hmac.c b/crypto/hmac.c index b04dff1..8d07a61 100644 --- a/crypto/hmac.c +++ b/crypto/hmac.c

[PATCH 7/7] command: add generic digest command

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
That can be used for digest calculation and verify Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/Kconfig| 12 +++- commands/Makefile | 1 + commands/digest.c | 195 commands/hashsum.c | 68

[PATCH 6/7] command: rename digest.c to hashsum.c

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
as I'll add a new generic command named digest Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/Kconfig | 14 +++--- commands/Makefile| 2 +- commands/{digest.c = hashsum.c} | 0 3 files changed, 8 insertions(+), 8

[PATCH 2/7] digest: hmac: fix set_key prototype

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- crypto/hmac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/hmac.c b/crypto/hmac.c index 8d07a61..1462730 100644 --- a/crypto/hmac.c +++ b/crypto/hmac.c @@ -57,7 +57,8 @@ static void

[PATCH 0/7] prepare for rsa support

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
changes up to 1807649fab2109a962415e1ba5651d9d7c385e08: command: add generic digest command (2015-03-12 16:34:23 +0800) Jean-Christophe PLAGNIOL-VILLARD (7): digest: fix and add missing copyright digest: hmac: fix set_key

[PATCH 3/7] crypto: add pbkdf2 hmac key generator

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
this will allow to generate a KEY + IV based on a password and salt for AES encryption/decryption as example or simply the key for hmac or rsa from text password Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- crypto/Kconfig | 5 crypto/Makefile

Re: [RFC 2/4] Add rsa support

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 15:39 Thu 12 Mar , Jan Luebbe wrote: From: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- crypto/Kconfig | 3 + crypto/Makefile | 1 + crypto/rsa.c| 411

Re: [RFC] digest: Add enum

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 15:51 Thu 12 Mar , Jan Luebbe wrote: From: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- This is also needed as the first patch for the FIT support series. It seems I can't count to 5. common/digest.c | 12

Re: [RFC 3/4] FIT: add FIT image support

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On 15:39 Thu 12 Mar , Jan Luebbe wrote: The FIT image format was defined for U-Boot and has been adopted by the depthcharge project as well. It is intended to be a replacement for the uimage format and has been extended to support signing of kernel, initramfs and devicetree images. This

Re: [PATCH 4/7] digest: add verify callback

2015-03-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On Mar 13, 2015, at 1:41 AM, Sascha Hauer s.ha...@pengutronix.de wrote: On Thu, Mar 12, 2015 at 03:22:23PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: this will allow to compare a md with the original one When calling this do not call final For RSA_SIGN verification final does

[PATCH 1/1] crypto: add pbkdf2 hmac key generator

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
this will allow to generate a KEY + IV based on a password and salt for AES encryption/decryption as example or simply the key for hmac or rsa from text password Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- This depends on hmac patch series crypto/Kconfig

[PATCH 1/8] digest: move digest.c to crypto

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
with not the rest of the implementation Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/Makefile | 1 - crypto/Makefile | 1 + {common = crypto}/digest.c | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {common = crypto

[PATCH 1/1] crypto: add pbkdf2 hmac key generator

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
this will allow to generate a KEY + IV based on a password and salt for AES encryption/decryption as example or simply the key for hmac or rsa from text password Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- This depends on hmac patch series crypto/Kconfig

[PATCH 0/8 v3] add sha384/sha512 and hmac support

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
, sha512 (2015-03-11 22:36:42 +0800) Jean-Christophe PLAGNIOL-VILLARD (8): digest: move digest.c to crypto digest: introduce digest_{init/update/final/length} digest: make it multi-instance crypto: add sha384 sha512

[PATCH 5/8] command: add sha384sum and sha512sum support

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/Kconfig | 24 commands/digest.c | 42 ++ 2 files changed, 66 insertions(+) diff --git a/commands/Kconfig b/commands/Kconfig index e4f68e7..8fa2178

[PATCH 2/8] digest: introduce digest_{init/update/final/length}

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to move from a one at a time digest to a multi-instance with too much impact on the code using it Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/digest.c | 4 ++-- common/password.c | 26 +- crypto/digest.c | 6

[PATCH 6/8] password: add support for sha512

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/Kconfig| 4 common/password.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index 8a8912a..68b20b7 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -449,6 +449,10

[PATCH 4/8] crypto: add sha384 sha512 support

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- crypto/Kconfig | 6 + crypto/Makefile | 2 + crypto/sha4.c | 340 3 files changed, 348 insertions(+) create mode 100644 crypto/sha4.c diff --git a/crypto

[PATCH 7/8] digest: add HMAC support for md5, sha1, sha224, sha256, sha384, sha512

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
the hmac algo will be registered as hmac(%s) such as hmac(sha256) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- crypto/Kconfig| 3 ++ crypto/Makefile | 1 + crypto/hmac.c | 152 ++ crypto/internal.h

[PATCH 3/8] digest: make it multi-instance

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
Now you need to call digest_alloc and when you finish to use it digest_free. We need this for upcomming aes encryption support and secure boot as we will need multiple instance of the same digest. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/digest.c | 3

Re: [PATCH 2/7] digest: make it multi-instance

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
On 06:32 Wed 11 Mar , Sascha Hauer wrote: On Tue, Mar 10, 2015 at 03:28:12PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: Now you need to call digest_alloc and when you finish to use it digest_free. We need this for upcomming aes encryption support and secure boot as we will need

Re: [PATCH 7/7] command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
On 06:43 Wed 11 Mar , Sascha Hauer wrote: On Tue, Mar 10, 2015 at 03:28:17PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: pass the key via -k param Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/digest.c | 26

Re: [PATCH 7/7] command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:52 Wed 11 Mar , Jean-Christophe PLAGNIOL-VILLARD wrote: On 06:43 Wed 11 Mar , Sascha Hauer wrote: On Tue, Mar 10, 2015 at 03:28:17PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: pass the key via -k param Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn

Re: [PATCH 6/7] digest: add HMAC support for md5, sha1, sha224, sha256, sha384, sha512

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
On 06:40 Wed 11 Mar , Sascha Hauer wrote: On Tue, Mar 10, 2015 at 03:28:16PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/digest.c | 51 +++ crypto

[PATCH 0/8] add sha384/sha512 and hmac support

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
to fetch changes up to b92e8460facf9bc65ec511a44a305e4273a31d70: command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512 (2015-03-11 18:45:59 +0800) Jean-Christophe PLAGNIOL-VILLARD (8): digest: move

[PATCH 1/8] digest: move digest.c to crypto

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
with not the rest of the implementation Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/Makefile | 1 - crypto/Makefile | 1 + {common = crypto}/digest.c | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {common = crypto

[PATCH 3/8] digest: make it multi-instance

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
Now you need to call digest_alloc and when you finish to use it digest_free. We need this for upcomming aes encryption support and secure boot as we will need multiple instance of the same digest. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/digest.c | 3

[PATCH 0/8 v2] add sha384/sha512 and hmac support

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
/hmac for you to fetch changes up to b92e8460facf9bc65ec511a44a305e4273a31d70: command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512 (2015-03-11 18:45:59 +0800) Jean-Christophe PLAGNIOL-VILLARD (8): digest

[PATCH 4/8] crypto: add sha384 sha512 support

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- crypto/Kconfig | 6 + crypto/Makefile | 2 + crypto/sha4.c | 340 3 files changed, 348 insertions(+) create mode 100644 crypto/sha4.c diff --git a/crypto

[PATCH 5/8] command: add sha384sum and sha512sum support

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/Kconfig | 24 commands/digest.c | 42 ++ 2 files changed, 66 insertions(+) diff --git a/commands/Kconfig b/commands/Kconfig index e4f68e7..8fa2178

[PATCH 2/8] digest: introduce digest_{init/update/final/length}

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to move from a one at a time digest to a multi-instance with too much impact on the code using it Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/digest.c | 4 ++-- common/password.c | 26 +- crypto/digest.c | 6

[PATCH 6/8] password: add support for sha512

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/Kconfig| 4 common/password.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index 8a8912a..68b20b7 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -449,6 +449,10

[PATCH 7/8] digest: add HMAC support for md5, sha1, sha224, sha256, sha384, sha512

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
the hmac algo will be registered as hmac(%s) such as hmac(sha256) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- crypto/Kconfig| 3 ++ crypto/Makefile | 1 + crypto/hmac.c | 129 ++ crypto/internal.h

[PATCH 8/8] command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512

2015-03-11 Thread Jean-Christophe PLAGNIOL-VILLARD
)= c297473e9bb221c5dc51d47ad75c76095f1bdc4ca9dff1d5931c2e22bf11a0de Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/digest.c | 34 +- crypto/digest.c | 10 -- include/digest.h | 3 +++ 3 files changed, 40 insertions(+), 7 deletions

[PATCH 0/7] add sha384/sha512 and hmac support

2015-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
-Christophe PLAGNIOL-VILLARD (7): digest: introduce digest_{init/update/final/length} digest: make it multi-instance crypto: add sha384 sha512 support command: add sha384sum and sha512sum support password: add support for sha512 digest: add HMAC support for md5

[PATCH 6/7] digest: add HMAC support for md5, sha1, sha224, sha256, sha384, sha512

2015-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/digest.c | 51 +++ crypto/md5.c | 1 + crypto/sha1.c| 1 + crypto/sha2.c| 2 ++ crypto/sha4.c| 2 ++ include/digest.h | 16 6

[PATCH 4/7] command: add sha384sum and sha512sum support

2015-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/Kconfig | 24 commands/digest.c | 42 ++ 2 files changed, 66 insertions(+) diff --git a/commands/Kconfig b/commands/Kconfig index e4f68e7..8fa2178

Re: [PATCH 0/3] sandbox cleanups

2015-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
On 15:36 Thu 05 Mar , Marc Kleine-Budde wrote: Hey Sascha, three patches for next, please fixup into the for-next/sandbox-of banch. I test the new sanbox on next when you pass -i the file is not present in the /dev now I'm working on secure boot and I use sandbox qemu to test it can

[PATCH 2/7] digest: make it multi-instance

2015-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
Now you need to call digest_alloc and when you finish to use it digest_free. We need this for upcomming aes encryption support and secure boot as we will need multiple instance of the same digest. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/digest.c | 3

[PATCH 5/7] password: add support for sha512

2015-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/Kconfig| 4 common/password.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index 8a8912a..68b20b7 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -449,6 +449,10

[PATCH 3/7] crypto: add sha384 sha512 support

2015-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- crypto/Kconfig | 6 + crypto/Makefile | 2 + crypto/sha4.c | 340 3 files changed, 348 insertions(+) create mode 100644 crypto/sha4.c diff --git a/crypto

[PATCH 7/7] command: add hmac sum supportfor md5, sha1, sha224, sha256, sha384, sha512

2015-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
pass the key via -k param Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/digest.c | 26 ++ common/digest.c | 22 +- include/digest.h | 3 +++ 3 files changed, 42 insertions(+), 9 deletions(-) diff --git

[PATCH 1/7] digest: introduce digest_{init/update/final/length}

2015-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to move from a one at a time digest to a multi-instance with too much impact on the code using it Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/digest.c | 4 ++-- common/digest.c | 6 +++--- common/password.c | 26

Re: [PATCH 0/3] sandbox cleanups

2015-03-10 Thread Jean-Christophe PLAGNIOL-VILLARD
On Mar 10, 2015, at 10:32 PM, Marc Kleine-Budde m...@pengutronix.de wrote: On 03/10/2015 03:24 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: I'm working on secure boot and I use sandbox qemu to test it BTW: what's your target ARCH, as I'm working on secure boot, too. 6 different one IMX6

Re: [PATCH 2/2] remove unnecessary device pointer argument

2015-03-04 Thread Jean-Christophe PLAGNIOL-VILLARD
On Mar 4, 2015, at 6:45 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Wed, Mar 04, 2015 at 04:43:13PM +0800, Jean-Christophe PLAGNIOL-VILLARD wrote: On Mar 4, 2015, at 3:49 PM, Sascha Hauer s.ha...@pengutronix.de wrote: The struct device_d * argument is not necessary, it can

Re: [PATCH 2/2] remove unnecessary device pointer argument

2015-03-04 Thread Jean-Christophe PLAGNIOL-VILLARD
On Mar 4, 2015, at 3:49 PM, Sascha Hauer s.ha...@pengutronix.de wrote: The struct device_d * argument is not necessary, it can be retrieved from the FILE *. This adds a convenience function for doing this and removes the struct device_d * argument from the the filesystem drivers functions.

Re: on barebox logo

2015-02-26 Thread Jean-Christophe PLAGNIOL-VILLARD
On Feb 27, 2015, at 2:57 PM, Antony Pavlov antonynpav...@gmail.com wrote: Hi! In this patch you have added barebox logo: http://lists.infradead.org/pipermail/barebox/2012-September/009184.html Does the cat on the logo have a proper name? I never thought about it but it’s not a

Re: [PATCH] ARM i.MX: Add I2C EEPROM

2015-02-20 Thread Jean-Christophe PLAGNIOL-VILLARD
On Feb 20, 2015, at 5:22 AM, Sascha Hauer s.ha...@pengutronix.de wrote: On Thu, Feb 19, 2015 at 09:38:27PM +0100, Michael Grzeschik wrote: From: Jan Luebbe j...@pengutronix.de Signed-off-by: Jan Luebbe j...@pengutronix.de Signed-off-by: Michael Grzeschik m.grzesc...@pengutronix.de ---

[PATCH 2/3] imx6q-embedsky-e9: the debug port is on uart1 not uart4

2015-02-17 Thread Jean-Christophe PLAGNIOL-VILLARD
the uart4 is on the extention header Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/dts/imx6q-embedsky-e9.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/imx6q-embedsky-e9.dts b/arch/arm/dts/imx6q-embedsky-e9.dts index

[PATCH 3/3] imx6q-embedsky-e9: there is not PCIe on this hardware

2015-02-17 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/dts/imx6q-embedsky-e9.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/dts/imx6q-embedsky-e9.dtsi b/arch/arm/dts/imx6q-embedsky-e9.dtsi index a29de9f..060d103 100644 --- a/arch/arm/dts/imx6q

[PATCH 1/3] imx_v7_defconfig: enable at least PNG support for splash

2015-02-17 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/configs/imx_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v7_defconfig b/arch/arm/configs/imx_v7_defconfig index 755217f..c4c28a0 100644 --- a/arch/arm/configs

[PATCH 1/1] imx6q-embedsky-e9: we use the i2c2 for hdmi

2015-02-17 Thread Jean-Christophe PLAGNIOL-VILLARD
with this the splash work Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/dts/imx6q-embedsky-e9.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imx6q-embedsky-e9.dtsi b/arch/arm/dts/imx6q-embedsky-e9.dtsi index 060d103..f117cae 100644

Re: [PATCH 2/2] Switched SAMA5D4EK development board to the newer environment method.

2015-02-11 Thread Jean-Christophe PLAGNIOL-VILLARD
On Feb 11, 2015, at 4:35 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Wed, Feb 11, 2015 at 03:26:46PM +0800, Bo Shen wrote: Hi J, On 02/11/2015 01:06 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: Hi, as state before I use the atmel board for bootp everyday as the defaultenv-2

Re: [PATCH 2/2] Switched SAMA5D4EK development board to the newer environment method.

2015-02-11 Thread Jean-Christophe PLAGNIOL-VILLARD
On Feb 11, 2015, at 5:19 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Wed, Feb 11, 2015 at 04:54:09PM +0800, Jean-Christophe PLAGNIOL-VILLARD wrote: On Feb 11, 2015, at 4:35 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Wed, Feb 11, 2015 at 03:26:46PM +0800, Bo Shen wrote

Re: [PATCH 2/2] Switched SAMA5D4EK development board to the newer environment method.

2015-02-10 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, as state before I use the atmel board for bootp everyday as the defaultenv-2 does not support this Nack until it’s fixed I did send patch for this in the past but they did not hit the mainline Best Regards, J. On Feb 11, 2015, at 12:00 PM, Doug Brainard

Re: [PATCH 1/2] SAMA5D4EK - Now mostly supports booting Android from NAND.

2015-02-10 Thread Jean-Christophe PLAGNIOL-VILLARD
Nack I use those board everyday on nfs boot the boot choice is user specific Best Regards, J. On Feb 10, 2015, at 10:28 PM, Doug Brainard dbrain...@brainardinsight.com wrote: --- arch/arm/boards/sama5d4ek/env/config | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-)

Re: [PATCH 1/3] dhcp: fix request packet's requested IP option

2015-01-30 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 29, 2015, at 7:37 AM, Eric Bénard e...@eukrea.com wrote: In the request packet, we are supposed to copy the IP that the DHCP server provided in the offer packet so that dhcp_extended can fill the option 50. There is actually an error in barebox as the pointer to the packet currently

Re: picopng does not support big-endian CPUs

2015-01-26 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 26, 2015, at 3:58 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Sun, Jan 25, 2015 at 10:26:29PM +0400, Antony Pavlov wrote: Hi All! Current lib/gui/picopng.c has problems on big-endian CPUs. Here are two examples from PNG_readPngHeader(): if (*(uint64_t *) in !=

Re: [PATCH] ARM: atmel: sama5d3xek: fix conflict between w1 and led

2015-01-23 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 21, 2015, at 6:03 PM, Bo Shen voice.s...@atmel.com wrote: Hi J, On 01/21/2015 05:56 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On Jan 21, 2015, at 5:41 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Tue, Jan 20, 2015 at 03:31:25PM +0800, Bo Shen wrote: As the 1-wire

Re: [PATCH] ARM: atmel: sama5d3xek: fix conflict between w1 and led

2015-01-23 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 23, 2015, at 4:35 PM, Bo Shen voice.s...@atmel.com wrote: Hi J, On 01/23/2015 03:58 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On Jan 21, 2015, at 6:03 PM, Bo Shen voice.s...@atmel.com wrote: Hi J, On 01/21/2015 05:56 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On Jan

Re: [PATCH] ARM: atmel: sama5d3xek: let emac auto detect phy addr

2015-01-23 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 23, 2015, at 4:04 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Fri, Jan 23, 2015 at 03:53:48PM +0800, Jean-Christophe PLAGNIOL-VILLARD wrote: On Jan 23, 2015, at 3:51 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Thu, Jan 22, 2015 at 03:26:53PM +0800, Bo Shen wrote

Re: [PATCH] ARM: atmel: sama5d3xek: let gmac auto detect phy id

2015-01-23 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 23, 2015, at 3:36 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Thu, Jan 22, 2015 at 12:35:17PM +0800, Jean-Christophe PLAGNIOL-VILLARD wrote: On Jan 21, 2015, at 11:07 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Mon, Jan 19, 2015 at 12:39:39PM +0100, Jean-Christophe

Re: [PATCH] ARM: atmel: sama5d3xek: let emac auto detect phy addr

2015-01-22 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 23, 2015, at 3:51 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Thu, Jan 22, 2015 at 03:26:53PM +0800, Bo Shen wrote: On the SAMA5D35 the EMAC phy addr is 1 while not 0. So, let the EMAC auto detect phy addr, or else hard code to 0, the ethernet can not work on SAMA5D35 board.

Re: [PATCH] ARM: atmel: sama5d3xek: let gmac auto detect phy id

2015-01-21 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 21, 2015, at 11:07 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Mon, Jan 19, 2015 at 12:39:39PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 17:54 Mon 19 Jan , Bo Shen wrote: On the SAMA5D33 and SAMA5D35 the GMAC PHY ID is 1 while not 7. So, let the GMAC auto detect

Re: [PATCH] ARM: atmel: sama5d3xek: fix conflict between w1 and led

2015-01-21 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 21, 2015, at 5:41 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Tue, Jan 20, 2015 at 03:31:25PM +0800, Bo Shen wrote: As the 1-wire and LED d2 use the same pin (PE25) on the EK board. So, make LED enable only when the 1-wire is disabled. Signed-off-by: Bo Shen

Re: [PATCH 0/5] rafactor _*MAX, *_MIN macros

2015-01-20 Thread Jean-Christophe PLAGNIOL-VILLARD
Ack common.h should nearly been drop ASAP Best Regards, J. On Jan 21, 2015, at 1:09 PM, Masahiro Yamada yamad...@jp.panasonic.com wrote: Masahiro Yamada (5): fs: ubifs: remove redundant macro defines lib: decompress: remove redundant INT_MAX define linux/kernel.h: move *_MAX,

Re: [PATCH 1/1] raspberry-pi: mac address detection support

2015-01-19 Thread Jean-Christophe PLAGNIOL-VILLARD
On 18:22 Mon 19 Jan , Antony Pavlov wrote: On Mon, 19 Jan 2015 13:29:44 +0100 Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: increase the mbox timeout as it take more time to retreive the mac fix led register too Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD

Re: [PATCH] ARM: atmel: sama5d3xek: let gmac auto detect phy id

2015-01-19 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:54 Mon 19 Jan , Bo Shen wrote: On the SAMA5D33 and SAMA5D35 the GMAC PHY ID is 1 while not 7. So, let the GMAC auto detect phy id, or else hard code to 7, it can not work on these two boards. Signed-off-by: Bo Shen voice.s...@atmel.com --- arch/arm/boards/sama5d3xek/init.c | 2

Re: [PATCH 2/6] raspberry-pi: add leds support

2015-01-19 Thread Jean-Christophe PLAGNIOL-VILLARD
On 02:08 Mon 19 Jan , Antony Pavlov wrote: On Tue, 13 Jan 2015 07:33:06 +0100 Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/boards/raspberry-pi/rpi.c | 55

Re: [PATCH] fixup! raspberry-pi: add board model detection

2015-01-19 Thread Jean-Christophe PLAGNIOL-VILLARD
On 02:15 Mon 19 Jan , Antony Pavlov wrote: --- The 'has_onboard_eth' field is unused. nack it I need for the next patch dont remove it Best REgards, J. --- arch/arm/boards/raspberry-pi/rpi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boards/raspberry-pi/rpi.c

[PATCH 1/1] raspberry-pi: mac address detection support

2015-01-19 Thread Jean-Christophe PLAGNIOL-VILLARD
increase the mbox timeout as it take more time to retreive the mac fix led register too Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/boards/raspberry-pi/rpi.c| 44 --- arch/arm/mach-bcm2835/include/mach/mbox.h | 14

Re: [PATCH] add support for the haba-knx-lite controller

2015-01-17 Thread Jean-Christophe PLAGNIOL-VILLARD
a/arch/arm/boards/haba-knx/init.c b/arch/arm/boards/haba-knx/init.c new file mode 100644 index 000..f9d8f0f --- /dev/null +++ b/arch/arm/boards/haba-knx/init.c @@ -0,0 +1,348 @@ +/* + * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD + * Copyright (C) 2014 Gregory Hermant

Re: [PATCH 2/6] raspberry-pi: add leds support

2015-01-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 13, 2015, at 3:58 PM, Antony Pavlov antonynpav...@gmail.com wrote: On Tue, 13 Jan 2015 07:26:12 +0100 Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: I have planned to switch raspberry pi to device tree support as Linux does. but as I do not want to build multi

Re: [PATCH v2] kbuild: add KBUILD_DEFCONFIG

2015-01-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 13, 2015, at 4:14 PM, Masahiro Yamada yamad...@jp.panasonic.com wrote: This allows make ARCH=... defconfig. Fox example, you can type make defconfig instead of make sandbox_defconfig. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Ack --- Changes in v2: - Add

Re: [PATCH 2/3] defaultenv-2: introduce /env/rc.d

2015-01-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 13, 2015, at 4:25 PM, Sascha Hauer s.ha...@pengutronix.de wrote: On Tue, Jan 13, 2015 at 07:21:09AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: as we now will use symlink on /env/rc.d to specify init order the script will be store in /env/init so any board can overwrite

Re: [PATCH 2/3] defaultenv-2: introduce /env/rc.d

2015-01-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 13, 2015, at 5:12 PM, Jan Lübbe j...@pengutronix.de wrote: Hi Jean-Christophe, On Tue, 2015-01-13 at 16:29 +0800, Jean-Christophe PLAGNIOL-VILLARD wrote: and this will allow also to have the same script at different order based on the board requirement. So without links you

[PATCH 2/2] command/splash: fix return value

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
return errno when possible otherwise return 0 for ok or 1 for error Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- commands/splash.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/commands/splash.c b/commands/splash.c index 2ce1bdd

[PATCH 1/2] kconfig/menu.c:590: fix warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized]

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- scripts/kconfig/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index a26cc5d..584e0fc 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig

[PATCH 5/6] regulator: allow to use it with non DT device

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
this will use the device name as regulator name with the same Algo as clkdev for lookup Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- drivers/regulator/Kconfig | 2 +- drivers/regulator/core.c | 98 +++ include

[PATCH 1/6] raspberry-pi: add board model detection

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
as the name is very long, return ps1 to the next line Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/boards/raspberry-pi/env/init/ps1 | 7 +++ arch/arm/boards/raspberry-pi/rpi.c| 83 ++- arch/arm/mach-bcm2835/include/mach

[PATCH 0/6 v2] raspberry-pi: updates

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
in the git repository at: git://git.jcrosoft.org/barebox.git delivery/rpi for you to fetch changes up to 70d2d564af770d99c0e8a4fbfa314e6d55d58629: regulator: add bcm2835 driver (2015-01-11 19:04:06 +0800) Jean-Christophe PLAGNIOL

[PATCH 6/6] regulator: add bcm2835 driver

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
this will allow to handle IP power automatically and not at board level Mainline kernel need this as they do not have the regulator driver support as some IP such as USB are not power on at boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/mach-bcm2835

[PATCH 2/6] raspberry-pi: add leds support

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/boards/raspberry-pi/rpi.c | 55 ++ 1 file changed, 55 insertions(+) diff --git a/arch/arm/boards/raspberry-pi/rpi.c b/arch/arm/boards/raspberry-pi/rpi.c index ae1e92a..81b485e

[PATCH 3/6] amba: pl011: add support for regulator

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- drivers/serial/amba-pl011.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c index fc7723e..4c4067d 100644 --- a/drivers/serial/amba-pl011.c +++ b

[PATCH 1/6] raspberry-pi: add board model detection

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
as the name is very long, return ps1 to the next line Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/boards/raspberry-pi/env/init/ps1 | 7 +++ arch/arm/boards/raspberry-pi/rpi.c| 83 ++- arch/arm/mach-bcm2835/include/mach

[PATCH 3/6] amba: pl011: add support for regulator

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- drivers/serial/amba-pl011.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c index fc7723e..4c4067d 100644 --- a/drivers/serial/amba-pl011.c +++ b

[PATCH 5/6] regulator: allow to use it with non DT device

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
this will use the device name as regulator name with the same Algo as clkdev for lookup Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- drivers/regulator/Kconfig | 2 +- drivers/regulator/core.c | 98 +++ include

Re: [PATCH] kbuild: add KBUILD_DEFCONFIG

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
On Jan 13, 2015, at 2:46 PM, Masahiro Yamada yamad...@jp.panasonic.com wrote: This allows make ARCH=... defconfig. Fox example, you can type make defconfig instead of make sandbox_defconfig. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com --- arch/arm/Makefile | 1 +

[PATCH v2] console: allow to specify the device id

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can use dynamic number id with specific devname Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- v2: add missing imx Best Regards, J. common/console.c | 2 +- drivers/serial/serial_imx.c | 4 +++- drivers/usb/gadget/u_serial.c | 1 + include

[PATCH 3/3] defaultenv-2: create a specific defaultenv for splash

2015-01-12 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to factorize splash init Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- arch/arm/boards/at91sam9m10ihd/env/init/splash | 8 common/Kconfig | 5 + defaultenv/Makefile| 1

<    1   2   3   4   5   6   7   8   9   10   >