Re: imxrt1020 EVK u-boot doesn't run.

2021-04-07 Thread Giulio Benetti

Hi Nicolas,

This patchset includes the fix for i.MXRT1020:
https://patchwork.ozlabs.org/project/uboot/list/?series=237909

Best regards
--
Giulio Benetti
Benetti Engineering sas

On 4/5/21 5:07 PM, Giulio Benetti wrote:

Hi Nicolas,


Il giorno 5 apr 2021, alle ore 16:34, Nicolás Muratore 
 ha scritto:


Hi Giulio, hope this email finds you well, many thanks for your support.

After the modification that you proposed, the result was the following:


yes it's the same message.


Ok, well,



Please let me know when you have finished the timer driver.



I need some time, I’ve created other patches but
there is still something to be fixed. I’m close but
I need some other time. I’m going to send patches
soon.


Many thanks.


You’re welcome

Best regards
Giulio




El dom, 4 abr 2021 a las 15:51, Giulio Benetti 
() escribió:
Hi Nicolas,

On 4/4/21 7:56 PM, Giulio Benetti wrote:

Would you have any idea what is going on?


I've just entered debugging and two things came out:
1) in board/freescale/imxrt-1020-evk/imxrt1020-evk.c when calling
spl_dram_init() there is some printf() inside that gets called, but that
happens before calling preloader_console_init() that set serial up, so
this is the reason why there is no output at all.


Can you please try to apply this patch [1] to check if uart starts to
work and giving you this message [2]?

[1]:
https://patchwork.ozlabs.org/project/uboot/patch/20210404182135.1243077-1-giulio.bene...@benettiengineering.com/
[2]: ```
U-Boot SPL 2021.04-rc5-00518-ga0da06d2f8-dirty (Apr 04 2021 - 19:49:47
+0200)
Could not initialize timer (err -19)
   ```

Thank you
--
Giulio Benetti
Benetti Engineering sas


2) I've completely ignored(wrongly) having a timer and at that time
u-boot allowed it getting a tick-count always at 0, so every delay
called return immediatly with 0. This is not possible anymore and I need
to finish writing gpt-timer driver I was writing.

So please let me finish that gpt-driver timer and I'll send patches to
fix imxrt1020/50-evk.


I really appreciate your help, sorry to bother you, but I'm breaking my
mind thinking why this doesn't run on my EVK.

Many thanks.


Best regards
and happy easter! :-)







Re: imxrt1020 EVK u-boot doesn't run.

2021-04-05 Thread Nicolás Muratore
Hi Giulio, hope this email finds you well, many thanks for your support.

After the modification that you proposed, the result was the following:

[image: imagen.png]
yes it's the same message.

Please let me know when you have finished the timer driver.

Many thanks.

El dom, 4 abr 2021 a las 15:51, Giulio Benetti (<
giulio.bene...@benettiengineering.com>) escribió:

> Hi Nicolas,
>
> On 4/4/21 7:56 PM, Giulio Benetti wrote:
> >>> Would you have any idea what is going on?
> >
> > I've just entered debugging and two things came out:
> > 1) in board/freescale/imxrt-1020-evk/imxrt1020-evk.c when calling
> > spl_dram_init() there is some printf() inside that gets called, but that
> > happens before calling preloader_console_init() that set serial up, so
> > this is the reason why there is no output at all.
>
> Can you please try to apply this patch [1] to check if uart starts to
> work and giving you this message [2]?
>
> [1]:
>
> https://patchwork.ozlabs.org/project/uboot/patch/20210404182135.1243077-1-giulio.bene...@benettiengineering.com/
> [2]: ```
> U-Boot SPL 2021.04-rc5-00518-ga0da06d2f8-dirty (Apr 04 2021 - 19:49:47
> +0200)
> Could not initialize timer (err -19)
>   ```
>
> Thank you
> --
> Giulio Benetti
> Benetti Engineering sas
>
> > 2) I've completely ignored(wrongly) having a timer and at that time
> > u-boot allowed it getting a tick-count always at 0, so every delay
> > called return immediatly with 0. This is not possible anymore and I need
> > to finish writing gpt-timer driver I was writing.
> >
> > So please let me finish that gpt-driver timer and I'll send patches to
> > fix imxrt1020/50-evk.
> >
> >>> I really appreciate your help, sorry to bother you, but I'm breaking my
> >>> mind thinking why this doesn't run on my EVK.
> >>>
> >>> Many thanks.
> >
> > Best regards
> > and happy easter! :-)
> >
>
>


Re: imxrt1020 EVK u-boot doesn't run.

2021-04-05 Thread Giulio Benetti
Hi Nicolas,

> Il giorno 5 apr 2021, alle ore 16:34, Nicolás Muratore 
>  ha scritto:
> 
> 
> Hi Giulio, hope this email finds you well, many thanks for your support.
> 
> After the modification that you proposed, the result was the following:
> 
> 
> yes it's the same message. 

Ok, well,

> 
> Please let me know when you have finished the timer driver.
> 

I need some time, I’ve created other patches but
there is still something to be fixed. I’m close but
I need some other time. I’m going to send patches
soon.

> Many thanks.

You’re welcome

Best regards
Giulio

> 
>> El dom, 4 abr 2021 a las 15:51, Giulio Benetti 
>> () escribió:
>> Hi Nicolas,
>> 
>> On 4/4/21 7:56 PM, Giulio Benetti wrote:
>> >>> Would you have any idea what is going on?
>> > 
>> > I've just entered debugging and two things came out:
>> > 1) in board/freescale/imxrt-1020-evk/imxrt1020-evk.c when calling
>> > spl_dram_init() there is some printf() inside that gets called, but that
>> > happens before calling preloader_console_init() that set serial up, so
>> > this is the reason why there is no output at all.
>> 
>> Can you please try to apply this patch [1] to check if uart starts to 
>> work and giving you this message [2]?
>> 
>> [1]: 
>> https://patchwork.ozlabs.org/project/uboot/patch/20210404182135.1243077-1-giulio.bene...@benettiengineering.com/
>> [2]: ```
>> U-Boot SPL 2021.04-rc5-00518-ga0da06d2f8-dirty (Apr 04 2021 - 19:49:47 
>> +0200)
>> Could not initialize timer (err -19)
>>   ```
>> 
>> Thank you
>> -- 
>> Giulio Benetti
>> Benetti Engineering sas
>> 
>> > 2) I've completely ignored(wrongly) having a timer and at that time
>> > u-boot allowed it getting a tick-count always at 0, so every delay
>> > called return immediatly with 0. This is not possible anymore and I need
>> > to finish writing gpt-timer driver I was writing.
>> > 
>> > So please let me finish that gpt-driver timer and I'll send patches to
>> > fix imxrt1020/50-evk.
>> > 
>> >>> I really appreciate your help, sorry to bother you, but I'm breaking my
>> >>> mind thinking why this doesn't run on my EVK.
>> >>>
>> >>> Many thanks.
>> > 
>> > Best regards
>> > and happy easter! :-)
>> > 
>> 


Re: imxrt1020 EVK u-boot doesn't run.

2021-04-04 Thread Giulio Benetti

Hi Nicolas,

On 4/4/21 7:56 PM, Giulio Benetti wrote:

Would you have any idea what is going on?


I've just entered debugging and two things came out:
1) in board/freescale/imxrt-1020-evk/imxrt1020-evk.c when calling
spl_dram_init() there is some printf() inside that gets called, but that
happens before calling preloader_console_init() that set serial up, so
this is the reason why there is no output at all.


Can you please try to apply this patch [1] to check if uart starts to 
work and giving you this message [2]?


[1]: 
https://patchwork.ozlabs.org/project/uboot/patch/20210404182135.1243077-1-giulio.bene...@benettiengineering.com/

[2]: ```
U-Boot SPL 2021.04-rc5-00518-ga0da06d2f8-dirty (Apr 04 2021 - 19:49:47 
+0200)

Could not initialize timer (err -19)
 ```

Thank you
--
Giulio Benetti
Benetti Engineering sas


2) I've completely ignored(wrongly) having a timer and at that time
u-boot allowed it getting a tick-count always at 0, so every delay
called return immediatly with 0. This is not possible anymore and I need
to finish writing gpt-timer driver I was writing.

So please let me finish that gpt-driver timer and I'll send patches to
fix imxrt1020/50-evk.


I really appreciate your help, sorry to bother you, but I'm breaking my
mind thinking why this doesn't run on my EVK.

Many thanks.


Best regards
and happy easter! :-)





Re: imxrt1020 EVK u-boot doesn't run.

2021-04-04 Thread Giulio Benetti

Hi Nicolas,

On 4/4/21 3:36 PM, Fabio Estevam wrote:

Hi Nicolás,

Adding Giulio in case he has any ideas.

On Sun, Apr 4, 2021 at 10:14 AM Nicolás Muratore
 wrote:


Hi everybody, hope you are doing well, my name is Nicolás Muratore from
Argentina, I'm doing I development under imxrt1020 EVK, I did test many
"bare metal" programs to run from SD and those work ok on this EVK, right
now I'm thinking to work with u-boot over imxrt1020 EVK, but I have
problems to boot the u-boot from SD, I've followed the entire procedure
from web page
https://u-boot.readthedocs.io/en/stable/board/freescale/imxrt1020-evk.html:

I'm using Ubuntu 18.04 and gnu-arm-linux-gnueabi cross compiler.

1) I have installed the u-boot package with all dependencies and
gcc-arm-linux-gnueabi compiler.
2) #sudo make mr proper
3) #sudo make imxrt1020-evk_defconfig
4) #sudo CROSS-COMPILE=arm-linu-gnueabi- make
5) it compiles without errors, I can see the SPL file and u-boot.img, and
other related files, (I attached all output files to this email)..
6) Copy files to SD: #sudo dd if=SPL of= /dev/sdb bs=1k seek=1 conv=notrunc
; sync   // This process copy "SPL" file on SD card with no errors.
7) Copy files to SD: #sudo dd if=u-boot.img of= /dev/sdb bs=1k seek=128
conv=notrunc ; sync   // This process copy "u-boot.img" file on SD card
with no errors.

After the copy process I put the SD on the imxrt1020 EVK, the SW7 in 0110
(I have tested the EVK many times using "bare metal" and it is ok).

I connect the USB console cable to the PC like I always do, but I can't see
anything, it seems to be that the u-boot doesn't run.

Would you have any idea what is going on?


I've just entered debugging and two things came out:
1) in board/freescale/imxrt-1020-evk/imxrt1020-evk.c when calling 
spl_dram_init() there is some printf() inside that gets called, but that 
happens before calling preloader_console_init() that set serial up, so 
this is the reason why there is no output at all.
2) I've completely ignored(wrongly) having a timer and at that time 
u-boot allowed it getting a tick-count always at 0, so every delay 
called return immediatly with 0. This is not possible anymore and I need 
to finish writing gpt-timer driver I was writing.


So please let me finish that gpt-driver timer and I'll send patches to 
fix imxrt1020/50-evk.



I really appreciate your help, sorry to bother you, but I'm breaking my
mind thinking why this doesn't run on my EVK.

Many thanks.


Best regards
and happy easter! :-)
--
Giulio Benetti
Benetti Engineering sas


Re: imxrt1020 EVK u-boot doesn't run.

2021-04-04 Thread Giulio Benetti
Hi Nicolas,

thank you Fabio for adding me, I’m going to give a
try soon with imxrt1020-evk board and check, as well as with imxrt1050-evk.

It passed some time since I’ve added them to
uboot and maybe something is broken now.

Also, if you then have further question ask me.
Do you mean to run some OS after uboot?

Linux is still there waiting for someone interested on it, as well as uboot 
support for other peripherals.

PS: sorry for too posting but I’m on mobile.

Best regards
Giulio Benetti
—-
Benetti Engineering s.a.s.

> Il giorno 4 apr 2021, alle ore 15:36, Fabio Estevam  ha 
> scritto:
> 
> Hi Nicolás,
> 
> Adding Giulio in case he has any ideas.
> 
>> On Sun, Apr 4, 2021 at 10:14 AM Nicolás Muratore
>>  wrote:
>> 
>> Hi everybody, hope you are doing well, my name is Nicolás Muratore from
>> Argentina, I'm doing I development under imxrt1020 EVK, I did test many
>> "bare metal" programs to run from SD and those work ok on this EVK, right
>> now I'm thinking to work with u-boot over imxrt1020 EVK, but I have
>> problems to boot the u-boot from SD, I've followed the entire procedure
>> from web page
>> https://u-boot.readthedocs.io/en/stable/board/freescale/imxrt1020-evk.html:
>> 
>> I'm using Ubuntu 18.04 and gnu-arm-linux-gnueabi cross compiler.
>> 
>> 1) I have installed the u-boot package with all dependencies and
>> gcc-arm-linux-gnueabi compiler.
>> 2) #sudo make mr proper
>> 3) #sudo make imxrt1020-evk_defconfig
>> 4) #sudo CROSS-COMPILE=arm-linu-gnueabi- make
>> 5) it compiles without errors, I can see the SPL file and u-boot.img, and
>> other related files, (I attached all output files to this email)..
>> 6) Copy files to SD: #sudo dd if=SPL of= /dev/sdb bs=1k seek=1 conv=notrunc
>> ; sync   // This process copy "SPL" file on SD card with no errors.
>> 7) Copy files to SD: #sudo dd if=u-boot.img of= /dev/sdb bs=1k seek=128
>> conv=notrunc ; sync   // This process copy "u-boot.img" file on SD card
>> with no errors.
>> 
>> After the copy process I put the SD on the imxrt1020 EVK, the SW7 in 0110
>> (I have tested the EVK many times using "bare metal" and it is ok).
>> 
>> I connect the USB console cable to the PC like I always do, but I can't see
>> anything, it seems to be that the u-boot doesn't run.
>> 
>> Would you have any idea what is going on?
>> 
>> I really appreciate your help, sorry to bother you, but I'm breaking my
>> mind thinking why this doesn't run on my EVK.
>> 
>> Many thanks.



Re: imxrt1020 EVK u-boot doesn't run.

2021-04-04 Thread Fabio Estevam
Hi Nicolás,

Adding Giulio in case he has any ideas.

On Sun, Apr 4, 2021 at 10:14 AM Nicolás Muratore
 wrote:
>
> Hi everybody, hope you are doing well, my name is Nicolás Muratore from
> Argentina, I'm doing I development under imxrt1020 EVK, I did test many
> "bare metal" programs to run from SD and those work ok on this EVK, right
> now I'm thinking to work with u-boot over imxrt1020 EVK, but I have
> problems to boot the u-boot from SD, I've followed the entire procedure
> from web page
> https://u-boot.readthedocs.io/en/stable/board/freescale/imxrt1020-evk.html:
>
> I'm using Ubuntu 18.04 and gnu-arm-linux-gnueabi cross compiler.
>
> 1) I have installed the u-boot package with all dependencies and
> gcc-arm-linux-gnueabi compiler.
> 2) #sudo make mr proper
> 3) #sudo make imxrt1020-evk_defconfig
> 4) #sudo CROSS-COMPILE=arm-linu-gnueabi- make
> 5) it compiles without errors, I can see the SPL file and u-boot.img, and
> other related files, (I attached all output files to this email)..
> 6) Copy files to SD: #sudo dd if=SPL of= /dev/sdb bs=1k seek=1 conv=notrunc
> ; sync   // This process copy "SPL" file on SD card with no errors.
> 7) Copy files to SD: #sudo dd if=u-boot.img of= /dev/sdb bs=1k seek=128
> conv=notrunc ; sync   // This process copy "u-boot.img" file on SD card
> with no errors.
>
> After the copy process I put the SD on the imxrt1020 EVK, the SW7 in 0110
> (I have tested the EVK many times using "bare metal" and it is ok).
>
> I connect the USB console cable to the PC like I always do, but I can't see
> anything, it seems to be that the u-boot doesn't run.
>
> Would you have any idea what is going on?
>
> I really appreciate your help, sorry to bother you, but I'm breaking my
> mind thinking why this doesn't run on my EVK.
>
> Many thanks.