SPL FIT configuration signature verification

2020-09-11 Thread Andrii Voloshyn
Hi there, Is it possible to make SPL U-Boot to verify signature located in configuration section of FIT image, and do not continue in case the signature is missing or doesn't match? Asking because I couldn't find any configuration option for that, and I have FIT image with signature but

Ways to copy FIT image from the flash to RAM

2020-09-11 Thread Andrii Voloshyn
Hi there, What are the ways of copying whole FIT image form NOR flash to RAM by specifying flash offset without any extra bytes. I've seen quite a lot of times when kernel image size has a fixed value (as an uboot environment variable), which is greater than the actual kernel size. Problem

U-Boot FIT Signature Verification

2020-09-11 Thread Andrii Voloshyn
Hi there, Does U-boot take into account certificate expiration date when verifying signed images in FIT? In other words, is date stored along with the public key in DTB file? Cheers, Andy

RE: SPL FIT configuration signature verification

2020-09-14 Thread Andrii Voloshyn
spl.bin > > > Reuben Dowle > Software Architect > Phone: > > Fax: > E-Mail: > Website: > +64 4 499 6000 > > +64 4 473 4447 > reuben.do...@4rf.com > Https://www.4rf.com > > > > > > >

reset command doesn't work on MT7628 (CPU: MediaTek MT7628A ver:1 eco:2)

2020-08-12 Thread Andrii Voloshyn
Hi there, There is one issue, I experience with (U-Boot 2020.07) on MT7628DAN, "reset" command issued in hush prompt causes board to hang, until I do a power cycle. On the other hand there is no such issue on mt7688 board. What's interesting, is that "reboot" issued in Linux shell

Re: reset command doesn't work on MT7628 (CPU: MediaTek MT7628A ver:1 eco:2)

2020-08-12 Thread Andrii Voloshyn
Hi Stefan, > Hi Andrew, > > (added Weijie to Cc) > > On 12.08.20 09:18, Andrii Voloshyn wrote: > >Hi there, > > > >There is one issue, I experience with (U-Boot 2020.07) on MT7628DAN, > > "reset" command issued in hush p

Re: reset command doesn't work on MT7628 (CPU: MediaTek MT7628A ver:1 eco:2)

2020-08-12 Thread Andrii Voloshyn
Hi Stefan, On Wed, 12 Aug 2020 15:08:41 +0300 Stefan Roese wrote > Hi Andrew, > > On 12.08.20 14:04, Andrii Voloshyn wrote: > > Hi Stefan, > > > > > Hi Andrew, > > > > > > (added Weijie to Cc) > >

Re: reset command doesn't work on MT7628 (CPU: MediaTek MT7628A ver:1 eco:2)

2020-08-12 Thread Andrii Voloshyn
Hi Stefan, On Wed, 12 Aug 2020 15:57:31 +0300 Stefan Roese wrote > Hi Andrew, > > On 12.08.20 14:48, Andrii Voloshyn wrote: > > Hi Stefan, > > > > On Wed, 12 Aug 2020 15:08:41 +0300 Stefan Roese wrote > > > > &g

Re: reset command doesn't work on MT7628 (CPU: MediaTek MT7628A ver:1 eco:2)

2020-08-13 Thread Andrii Voloshyn
. > > The solution is simple, just set the flash to 3-byte mode before > resetting the board by calling set_4byte() with enable=0. But you can > never 100% fix this because the watchdog reset won't give you a chance > to call set_4byte() before resetting the board. >

How to make u-boot verify script signature in FIT image

2020-10-02 Thread Andrii Voloshyn
Hi there, I have a script in FIT image, I want to verify its signature before running it. When I run "source" command, it doesn't check the signature, only hash@1. images { ... script { description = "Script"; data = /incbin/("script.txt");

mt7628-eth: phy link up detection takes too long

2020-12-01 Thread Andrii Voloshyn
Hi there, I enabled (Automatic software update from a TFTP server [CONFIG_UPDATE_TFTP]), and noticed that it takes around 7 seconds to detect link up on the PHY. Is there a way to make this detection faster? I tried to advertise only 10MBit full duplex mode with auto negotiation disabled,