[PATCH] pinctrl: aspeed: add pass-through pins and siopbi/siopbo

2024-01-20 Thread Ivan Mikhaylov
Add THRU0-3 and SIOPBI/SIOPBO pin groups/functions. Signed-off-by: Ivan Mikhaylov --- arch/arm/dts/ast2600.dtsi| 20 drivers/pinctrl/aspeed/pinctrl_ast2600.c | 30 2 files changed, 50 insertions(+) diff --git a/arch/arm/dts/ast2600.dtsi

Re: [PATCH 1/1] tools/fdt_add_pubkey: error handling in add_pubkey

2023-07-31 Thread Ivan Mikhaylov
On Sun, 2023-07-30 at 10:15 +0200, Heinrich Schuchardt wrote: > * If info is NULL, do not dereference it. > * If mmap fails, print an error message. > > Fixes: 30238e99619c ("tools: add fdt_add_pubkey") > Signed-off-by: Heinrich Schuchardt > > --- >  tools/fdt_add_pubkey.c | 6 -- >  1 file

Re: Binman signing

2023-04-27 Thread Ivan Mikhaylov
-r image.fit > > > > Could not find it in the documentation,  I only saw pre-load, but I > > am not sure that this is what I am looking for. > > > > Would appreciate if you could give some hint on how this could be > > done. > > > > Thank you fo

[PATCH v4] test_vboot.py: include test of fdt_add_pubkey tool

2023-03-19 Thread Ivan Mikhaylov
Signed-off-by: Ivan Mikhaylov Cc: Rasmus Villemoes --- test/py/tests/test_vboot.py | 200 ++-- 1 file changed, 166 insertions(+), 34 deletions(-) diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py index e3e7ca4b21..5d69a8c70e 100644 --- a/test/py

[PATCH v3] test_vboot.py: include test of fdt_add_pubkey tool

2023-03-18 Thread Ivan Mikhaylov
From: Roman Kopytin Signed-off-by: Roman Kopytin Signed-off-by: Ivan Mikhaylov Cc: Rasmus Villemoes --- test/py/tests/test_vboot.py | 33 + 1 file changed, 33 insertions(+) diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py index

Re: [PATCH v2 5/5] test_vboot.py: include test of fdt_add_pubkey tool

2023-03-16 Thread Ivan Mikhaylov
On Thu, 2023-03-16 at 07:59 -0600, Simon Glass wrote: > Hi Ivan, > > On Wed, 15 Mar 2023 at 19:17, Ivan Mikhaylov > wrote: > > > > On Fri, 2023-03-10 at 17:46 -0800, Simon Glass wrote: > > > Hi Ivan, > > > > > > On Tue, 7 Mar 2023 at 14:13,

Re: [PATCH v2 5/5] test_vboot.py: include test of fdt_add_pubkey tool

2023-03-15 Thread Ivan Mikhaylov
On Fri, 2023-03-10 at 17:46 -0800, Simon Glass wrote: > Hi Ivan, > > On Tue, 7 Mar 2023 at 14:13, Ivan Mikhaylov > wrote: > > > > From: Roman Kopytin > > > > Signed-off-by: Roman Kopytin > > Cc: Rasmus Villemoes > > --- > >  test/py/t

[PATCH v2 4/5] tools: add fdt_add_pubkey

2023-03-08 Thread Ivan Mikhaylov
that of course needs to be supplied on the command line. Signed-off-by: Roman Kopytin Signed-off-by: Ivan Mikhaylov Signed-off-by: Jan Kiszka Cc: Rasmus Villemoes --- tools/.gitignore | 1 + tools/Makefile | 3 + tools/fdt_add_pubkey.c | 138 + 3

[PATCH v2 5/5] test_vboot.py: include test of fdt_add_pubkey tool

2023-03-08 Thread Ivan Mikhaylov
From: Roman Kopytin Signed-off-by: Roman Kopytin Cc: Rasmus Villemoes --- test/py/tests/test_vboot.py | 8 1 file changed, 8 insertions(+) diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py index e3e7ca4b21..956b8fcd43 100644 --- a/test/py/tests/test_vboot.py +++

[PATCH v2 2/5] binman: add sign option for binman

2023-03-08 Thread Ivan Mikhaylov
fit.fit fit and to this one if it's need to be extracted, signed with key and put it back in image: binman sign -i flash.bin -k privatekey -a sha256,rsa4096 fit Signed-off-by: Ivan Mikhaylov --- tools/binman/cmdline.py | 13 + tools/binman/control.py | 29

[PATCH v2 3/5] binman: add tests for sign option

2023-03-08 Thread Ivan Mikhaylov
with replacing of it in image 5. check with fit_check_sign Signed-off-by: Ivan Mikhaylov --- tools/binman/ftest.py | 61 + tools/binman/test/277_fit_sign.dts | 63 ++ 2 files changed, 124 insertions(+) create mode 100644 tools/binman

[PATCH v2 1/5] binman: add documentation for binman sign option

2023-03-08 Thread Ivan Mikhaylov
Add the documentation about binman sign option and providing an example. Signed-off-by: Ivan Mikhaylov --- tools/binman/binman.rst | 18 ++ 1 file changed, 18 insertions(+) diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst index 0921e31878..c9d352e3ba 100644

[PATCH v2 0/5] Introduce new sign binman's option

2023-03-08 Thread Ivan Mikhaylov
possibility of add pub keys into DTB. This one needed mostly for test coverage of binman sign option but could be useful when private and pub keys are separated. Depends on "binman: Support updating section contents". Ivan Mikhaylov (3): binman: add documentation for binman sign option b

Re: [PATCH 1/3] binman: add sign option for binman

2023-02-14 Thread Ivan Mikhaylov
On Sat, 2023-02-04 at 15:23 -0700, Simon Glass wrote: > Hi Ivan, > > On Sun, 15 Jan 2023 at 16:54, Ivan Mikhaylov > wrote: > > > > On Fri, 2023-01-13 at 11:00 -0700, Simon Glass wrote: > > > Hi Ivan, > > > > > > On Sat, 24 D

Re: [PATCH 1/3] binman: add sign option for binman

2023-01-15 Thread Ivan Mikhaylov
On Fri, 2023-01-13 at 11:00 -0700, Simon Glass wrote: > Hi Ivan, > > On Sat, 24 Dec 2022 at 15:35, Ivan Mikhaylov > wrote: > > > > On Sat, 2022-12-17 at 15:02 -0700, Simon Glass wrote: > > > Hi Ivan, > > > > > > On Tue, 13 D

Re: [PATCH 1/3] binman: add sign option for binman

2022-12-24 Thread Ivan Mikhaylov
On Sat, 2022-12-17 at 15:02 -0700, Simon Glass wrote: > Hi Ivan, > > On Tue, 13 Dec 2022 at 11:51, Ivan Mikhaylov > wrote: > > > > On Fri, 2022-11-18 at 13:50 -0700, Simon Glass wrote: > > > Hi Ivan, > > > > > > On Thu, 15 Se

Re: [PATCH 1/3] binman: add sign option for binman

2022-12-13 Thread Ivan Mikhaylov
On Fri, 2022-11-18 at 13:50 -0700, Simon Glass wrote: > Hi Ivan, > > On Thu, 15 Sept 2022 at 13:44, Ivan Mikhaylov > wrote: > > > > On Wed, 2022-09-07 at 15:10 -0600, Simon Glass wrote: > > > Hi Ivan, > > > > > > Section data comes fro

Re: [PATCH 1/3] binman: add sign option for binman

2022-09-16 Thread Ivan Mikhaylov
On Wed, 2022-09-07 at 15:10 -0600, Simon Glass wrote: > Hi Ivan, > > Section data comes from the BuildSectionData() method, so you could > try calling that. > > See also collect_contents_to_file() > > Regards, > Simon Simon, I've tried both these ways and they both don't work to me. What I've

Re: [PATCH 1/3] binman: add sign option for binman

2022-09-06 Thread Ivan Mikhaylov
On Thu, 2022-04-07 at 01:22 +0300, Alper Nebi Yasak wrote: > On 06/04/2022 23:28, Ivan Mikhaylov wrote: > > On Tue, 2022-04-05 at 21:54 +0300, Alper Nebi Yasak wrote: > > > On 22/03/2022 00:43, Ivan Mikhaylov wrote: > > > > Introduce proof of concept for binman's new

Re: [PATCH 0/3] Introduce new sign binman's option

2022-08-16 Thread Ivan Mikhaylov
On Sat, 2022-08-13 at 08:59 -0600, Simon Glass wrote: > Hi Ivan, > > On Mon, 21 Mar 2022 at 12:43, Ivan Mikhaylov > wrote: > > > > From: Ivan Mikhaylov > > > > This patch introduces prototype of new sign binman's option. > > Enhancing the sign

Re: [PATCH 3/3] binman: add test for sign option

2022-04-08 Thread Ivan Mikhaylov
On Fri, 2022-04-08 at 11:39 -0400, Sean Anderson wrote: > > > On 3/21/22 5:43 PM, Ivan Mikhaylov wrote: > > Add the test which provides sequence of actions: > >   1. create the image from binman dts > >   2. create public and private keys > >   3. add public

Re: [PATCH 1/3] binman: add sign option for binman

2022-04-06 Thread Ivan Mikhaylov
On Tue, 2022-04-05 at 21:54 +0300, Alper Nebi Yasak wrote: > On 22/03/2022 00:43, Ivan Mikhaylov wrote: > > Introduce proof of concept for binman's new option which provides > > sign > > and replace sections in binary images. > > > > Usage as example: > > &

[PATCH 3/3] binman: add test for sign option

2022-03-21 Thread Ivan Mikhaylov
Add the test which provides sequence of actions: 1. create the image from binman dts 2. create public and private keys 3. add public key into dtb with fdt_add_pubkey 4. sign image with new sign option 5. check with fit_check_sign Signed-off-by: Ivan Mikhaylov --- tools/binman/ftest.py

[PATCH 2/3] binman: add documentation for binman sign option

2022-03-21 Thread Ivan Mikhaylov
Add the documentation about binman sign option and providing an example. Signed-off-by: Ivan Mikhaylov --- tools/binman/binman.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst index 771645380e..efa3321b95 100644 --- a/tools

[PATCH 1/3] binman: add sign option for binman

2022-03-21 Thread Ivan Mikhaylov
fit.fit fit Signed-off-by: Ivan Mikhaylov --- tools/binman/cmdline.py | 13 + tools/binman/control.py | 26 +- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/tools/binman/cmdline.py b/tools/binman/cmdline.py index 0626b850f4..1a25f95ff1 100644

[PATCH 0/3] Introduce new sign binman's option

2022-03-21 Thread Ivan Mikhaylov
From: Ivan Mikhaylov This patch introduces prototype of new sign binman's option. Enhancing the sign procedure, as example: mkimage -G privateky -r -o sha256,rsa4096 -F fit.fit binman replace -i flash.bin -f fit.fit fit into: binman sign -i flash.bin -k privatekey -a sha256,rsa4096 -f fit.fit

Re: [PATCH 1/1] binman: add sign option for binman

2022-01-27 Thread Ivan Mikhaylov
On Tue, 2021-12-28 at 01:34 -0700, Simon Glass wrote: > Hi Ivan, > > On Fri, 24 Dec 2021 at 11:23, Ivan Mikhaylov > wrote: > > > > Introduce prototype for binman's new option which provides sign > > and replace sections in binary images. > > > > Usage

[PATCH 1/1] binman: add sign option for binman

2021-12-24 Thread Ivan Mikhaylov
-a sha256,rsa4096 -f f...@0x28.fit fit@0x28 Signed-off-by: Ivan Mikhaylov --- tools/binman/cmdline.py | 13 + tools/binman/control.py | 27 ++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/tools/binman/cmdline.py b/tools/binman

[PATCH 0/1] Introduce new sign binman's option

2021-12-24 Thread Ivan Mikhaylov
From: Ivan Mikhaylov This patch introduces prototype of new sign binman's option. It doesn't looks good for now but it shows how sign process can be done. Just enhancing sign procedure, as example from: mkimage -G privateky -r -o sha256,rsa4096 -F f...@0x28.fit binman replace -i flash.bin -f

Re: [PATCH] fw_setenv: Unbreak fw_setenv caused by buggy MEMISLOCKED use

2021-12-20 Thread Ivan Mikhaylov
On Sat, 2021-12-18 at 18:23 +, Joakim Tjernlund wrote: > Ping? > Maybe just revert commit 8a726b852502 ("fw_setenv: lock the flash > only if it was locked before") ? > > > From: Joakim Tjernlund > Sent: 13 December 2021 18:22 > To:

Re: [PATCH] iot2050: binman: add missing-msg for blobs

2021-12-10 Thread Ivan Mikhaylov
On Thu, 2021-12-09 at 17:15 -0700, Simon Glass wrote: > Hi Ivan, > > On Thu, 9 Dec 2021 at 06:11, Ivan Mikhaylov > wrote: > > > > From: Ivan Mikhaylov > > > > Add the 'missing-msg' for blobs for more detailed output on missing > > system > >

[PATCH] iot2050: binman: add missing-msg for blobs

2021-12-09 Thread Ivan Mikhaylov
From: Ivan Mikhaylov Add the 'missing-msg' for blobs for more detailed output on missing system firmware and SEBoot blobs. Signed-off-by: Ivan Mikhaylov --- arch/arm/dts/k3-am65-iot2050-boot-image.dtsi | 5 + tools/binman/missing-blob-help | 11 +++ 2 files changed

[PATCH] board: iot2050: update build documentation for OP-TEE

2021-11-28 Thread Ivan Mikhaylov
From: Ivan Mikhaylov Set ta-target explicitly to correspond with OP-TEE recipe in siemens/meta-iot2050. Errors without explicit set of ta-target: aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-mthumb’ aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-mno

Re: [PATCH 0/1] fw_setenv always locks flash whenever it tries to write

2020-07-23 Thread Ivan Mikhaylov
On Fri, 2020-07-10 at 19:54 +0300, Ivan Mikhaylov wrote: > fw_setenv usage always locks u-boot-env mtd device without questions. > Locking of flash can be disruptive and may affect not only u-boot-env > region due to different problems with chips and lock callbacks on > kernel > sid

[PATCH 0/1] fw_setenv always locks flash whenever it tries to write

2020-07-11 Thread Ivan Mikhaylov
in fw_env config about locking/unlocking or even option into fw_setenv/printenv. Any ideas? Ivan Mikhaylov (1): fw_setenv: lock the flash only if it was locked before tools/env/fw_env.c | 24 +++- 1 file changed, 19 insertions(+), 5 deletions(-) -- 2.21.1

[PATCH 1/1] fw_setenv: lock the flash only if it was locked before

2020-07-11 Thread Ivan Mikhaylov
u-boot-env flash region lock/unlock may affect other regions than u-boot-env, fw_setenv does this in a way 'Lock it in any cases'. Change this to 'lock it if it was locked before'. Signed-off-by: Ivan Mikhaylov --- tools/env/fw_env.c | 24 +++- 1 file changed, 19 insertions

[PATCH 1/1] [PATCH] fw_setenv: lock the flash only if it was locked before

2020-05-05 Thread Ivan Mikhaylov
From: Ivan Mikhaylov u-boot-env flash region lock/unlock may affect other regions than u-boot-env, fw_setenv does this in a way 'Lock it in any cases'. Change this to 'lock it if it was locked before'. Signed-off-by: Ivan Mikhaylov --- tools/env/fw_env.c | 24 +++- 1 file

[PATCH 0/1] fw_setenv always locks flash whenever it tries to write

2020-05-05 Thread Ivan Mikhaylov
From: Ivan Mikhaylov fw_setenv usage always locks u-boot-env mtd device without questions. Locking of flash can be disruptive and may affect not only u-boot-env region due to different problems with chips and lock callbacks on kernel side. I'm not sure if my fix is right, but also I thought