All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
To: u-boot@lists.denx.de
Subject: imxrt1020 EVK u-boot doesn't run.
Date: Sun, 4 Apr 2021 19:56:10 +0200	[thread overview]
Message-ID: <272f3983-6f31-ed22-f7f2-419c327ecaf0@benettiengineering.com> (raw)
In-Reply-To: <CAOMZO5A3UaSxbjR-z1_imvwSso5M=xgGU1h0bJdRhEfJJ0OE8A@mail.gmail.com>

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

  parent reply	other threads:[~2021-04-04 17:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=272f3983-6f31-ed22-f7f2-419c327ecaf0@benettiengineering.com \
    --to=giulio.benetti@benettiengineering.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.