All of lore.kernel.org
 help / color / mirror / Atom feed
* imxrt1020 EVK u-boot doesn't run.
@ 2021-04-03 22:51 Nicolás Muratore
  2021-04-04 13:36 ` Fabio Estevam
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolás Muratore @ 2021-04-03 22:51 UTC (permalink / raw)
  To: u-boot

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-imxrt1020.zip
Type: application/zip
Size: 1038233 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210403/13bd0123/attachment-0001.zip>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imxrt1020 EVK u-boot doesn't run.
  2021-04-03 22:51 imxrt1020 EVK u-boot doesn't run Nicolás Muratore
@ 2021-04-04 13:36 ` Fabio Estevam
  2021-04-04 14:48   ` Giulio Benetti
  2021-04-04 17:56   ` Giulio Benetti
  0 siblings, 2 replies; 8+ messages in thread
From: Fabio Estevam @ 2021-04-04 13:36 UTC (permalink / raw)
  To: u-boot

Hi Nicol?s,

Adding Giulio in case he has any ideas.

On Sun, Apr 4, 2021 at 10:14 AM Nicol?s Muratore
<nico.m.muratore@gmail.com> 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imxrt1020 EVK u-boot doesn't run.
  2021-04-04 13:36 ` Fabio Estevam
@ 2021-04-04 14:48   ` Giulio Benetti
  2021-04-04 17:56   ` Giulio Benetti
  1 sibling, 0 replies; 8+ messages in thread
From: Giulio Benetti @ 2021-04-04 14:48 UTC (permalink / raw)
  To: u-boot

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 <festevam@gmail.com> 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
>> <nico.m.muratore@gmail.com> 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imxrt1020 EVK u-boot doesn't run.
  2021-04-04 13:36 ` Fabio Estevam
  2021-04-04 14:48   ` Giulio Benetti
@ 2021-04-04 17:56   ` Giulio Benetti
  2021-04-04 18:51     ` Giulio Benetti
  1 sibling, 1 reply; 8+ messages in thread
From: Giulio Benetti @ 2021-04-04 17:56 UTC (permalink / raw)
  To: u-boot

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
> <nico.m.muratore@gmail.com> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imxrt1020 EVK u-boot doesn't run.
  2021-04-04 17:56   ` Giulio Benetti
@ 2021-04-04 18:51     ` Giulio Benetti
  2021-04-05 14:33       ` Nicolás Muratore
  0 siblings, 1 reply; 8+ messages in thread
From: Giulio Benetti @ 2021-04-04 18:51 UTC (permalink / raw)
  To: u-boot

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.benetti at 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! :-)
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imxrt1020 EVK u-boot doesn't run.
  2021-04-04 18:51     ` Giulio Benetti
@ 2021-04-05 14:33       ` Nicolás Muratore
  2021-04-05 15:07         ` Giulio Benetti
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolás Muratore @ 2021-04-05 14:33 UTC (permalink / raw)
  To: u-boot

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.benetti@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.benetti at 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! :-)
> >
>
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imxrt1020 EVK u-boot doesn't run.
  2021-04-05 14:33       ` Nicolás Muratore
@ 2021-04-05 15:07         ` Giulio Benetti
  2021-04-07 19:16           ` Giulio Benetti
  0 siblings, 1 reply; 8+ messages in thread
From: Giulio Benetti @ 2021-04-05 15:07 UTC (permalink / raw)
  To: u-boot

Hi Nicolas,

> Il giorno 5 apr 2021, alle ore 16:34, Nicol?s Muratore <nico.m.muratore@gmail.com> 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 (<giulio.benetti@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.benetti at 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! :-)
>> > 
>> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* imxrt1020 EVK u-boot doesn't run.
  2021-04-05 15:07         ` Giulio Benetti
@ 2021-04-07 19:16           ` Giulio Benetti
  0 siblings, 0 replies; 8+ messages in thread
From: Giulio Benetti @ 2021-04-07 19:16 UTC (permalink / raw)
  To: u-boot

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 <nico.m.muratore@gmail.com> 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 (<giulio.benetti@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.benetti at 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! :-)
>>>>
>>>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-04-07 19:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-03 22:51 imxrt1020 EVK u-boot doesn't run Nicolás Muratore
2021-04-04 13:36 ` Fabio Estevam
2021-04-04 14:48   ` Giulio Benetti
2021-04-04 17:56   ` Giulio Benetti
2021-04-04 18:51     ` Giulio Benetti
2021-04-05 14:33       ` Nicolás Muratore
2021-04-05 15:07         ` Giulio Benetti
2021-04-07 19:16           ` Giulio Benetti

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.