Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-25 Thread Koen Vandeputte
On Tue, Jan 24, 2023 at 11:43 PM Lanchon wrote: > > > > On 1/24/23 18:08, Koen Vandeputte wrote: > > > > Hi, > > > > I think our previous mails overlapped a bit as I didn't notice your > > previous response :) > > > > I'll send the data tomorrow. > > I'm also wondering if adding a sleep before

Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-24 Thread Lanchon
On 1/24/23 18:08, Koen Vandeputte wrote: Hi, I think our previous mails overlapped a bit as I didn't notice your previous response :) I'll send the data tomorrow. I'm also wondering if adding a sleep before ubiformat in the old way would influence/break it's behaviour? possibly yes

Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-24 Thread Piotr Dymacz
Hi Koen, On 24.01.2023 22:08, Koen Vandeputte wrote: [...] Piotr, Would you have any idea here? Not really, very strange. What makes me wondering is that it doesn't look like a h/w related thing (e.g. watchdog fire or some sudden current consumption spike resulting in reset) and more

Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-24 Thread Koen Vandeputte
On Tue, Jan 24, 2023 at 9:46 PM Lanchon wrote: > > > > On 1/24/23 17:35, Lanchon wrote: > > > > > > On 1/24/23 13:25, Koen Vandeputte wrote: > >> On Tue, Jan 24, 2023 at 4:26 PM Koen Vandeputte > >> wrote: > >>> On Tue, Jan 24, 2023 at 7:59 AM Lanchon wrote: > hi Koen, thanks again. >

Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-24 Thread Lanchon
On 1/24/23 17:35, Lanchon wrote: On 1/24/23 13:25, Koen Vandeputte wrote: On Tue, Jan 24, 2023 at 4:26 PM Koen Vandeputte wrote: On Tue, Jan 24, 2023 at 7:59 AM Lanchon wrote: hi Koen, thanks again. i copied your log here for ease of reference:

Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-24 Thread Lanchon
On 1/24/23 13:25, Koen Vandeputte wrote: On Tue, Jan 24, 2023 at 4:26 PM Koen Vandeputte wrote: On Tue, Jan 24, 2023 at 7:59 AM Lanchon wrote: hi Koen, thanks again. i copied your log here for ease of reference: https://gist.github.com/Lanchon/f24ea9c16eda5ffaa5085a7b240238db first let

Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-24 Thread Koen Vandeputte
On Tue, Jan 24, 2023 at 5:49 PM wrote: > > On 24.01.2023 17:13, Lanchon wrote: > > the problem lies elsewhere: on your platform something is rebooting the > > system asynchronously while it is updating. this is very dangerous and must > > be fixed elsewhere in code. > > just a wild guess.

Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-24 Thread edgar . soldin
On 24.01.2023 17:13, Lanchon wrote: the problem lies elsewhere: on your platform something is rebooting the system asynchronously while it is updating. this is very dangerous and must be fixed elsewhere in code. just a wild guess. faulty power supplies sometimes lead to reboots if the power

Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-24 Thread Koen Vandeputte
On Tue, Jan 24, 2023 at 4:26 PM Koen Vandeputte wrote: > > On Tue, Jan 24, 2023 at 7:59 AM Lanchon wrote: > > > > hi Koen, thanks again. > > > > i copied your log here for ease of reference: > > https://gist.github.com/Lanchon/f24ea9c16eda5ffaa5085a7b240238db > > > > > > first let me say: > > >

Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-24 Thread Lanchon
On 1/24/23 12:26, Koen Vandeputte wrote: On Tue, Jan 24, 2023 at 7:59 AM Lanchon wrote: hi Koen, thanks again. i copied your log here for ease of reference: https://gist.github.com/Lanchon/f24ea9c16eda5ffaa5085a7b240238db first let me say: - ubinized sysupgrade is not used by any of my

Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-24 Thread Koen Vandeputte
On Tue, Jan 24, 2023 at 7:59 AM Lanchon wrote: > > hi Koen, thanks again. > > i copied your log here for ease of reference: > https://gist.github.com/Lanchon/f24ea9c16eda5ffaa5085a7b240238db > > > first let me say: > > - ubinized sysupgrade is not used by any of my devices. > > - ubinized

Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-23 Thread Lanchon
hi Koen, thanks again. i copied your log here for ease of reference: https://gist.github.com/Lanchon/f24ea9c16eda5ffaa5085a7b240238db first let me say: - ubinized sysupgrade is not used by any of my devices. - ubinized sysupgrade happens when when an ubi partition image is fed as an upgrade

Re: sysupgrade broken on imx nand targets (and maybe others too)

2023-01-23 Thread Lanchon
hi Koen, thanks for this detailed report, i'll try to take a look at it tonight. thank you again. On 1/23/23 12:37, Koen Vandeputte wrote: Hi Rodrigo, After a long absence and now testing the latest master, I noticed that imx nand flash sysupgrade was broken: expected behaviour: - scan

sysupgrade broken on imx nand targets (and maybe others too)

2023-01-23 Thread Koen Vandeputte
Hi Rodrigo, After a long absence and now testing the latest master, I noticed that imx nand flash sysupgrade was broken: expected behaviour: - scan the nand - write image - format empty space -reboot Seen behaviour: - Scan the nand - reboots I traced it back to this batch of commits by you: