All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Nazzareno Trimarchi <michael@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] pico-imx7: Disable video support
Date: Mon, 25 Mar 2019 18:00:23 +0100	[thread overview]
Message-ID: <CAOf5uwnXkc2tw+5etCNYWJYD0wQV8j50o_FhUOLCj7AgeKOGQA@mail.gmail.com> (raw)
In-Reply-To: <CAOMZO5C2-1WjaNkBWdEGzrqWB-3gLM_uzBaoOfBC83PWjBk+UA@mail.gmail.com>

Hi

On Mon, Mar 25, 2019 at 5:56 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> Hi Michael,
>
> On Mon, Mar 25, 2019 at 1:51 PM Michael Nazzareno Trimarchi
> <michael@amarulasolutions.com> wrote:
>
> > Let me summarize ;). Do you have any reset from the tool? does it
> > sends everything
> > using usb? Does SPL log appear and the stop?
>
> Here is the way to send SPL and u-boot.img via imx usb loader:
>
> $ sudo ./imx_usb SPL
>
> Then we get in the terminal:
>
> SDP: initialize...
> SDP: handle requests...
>
> $ sudo ./imx_usb u-boot.img
>
> Then the boot completes:
>
> Downloading file of size 527088 to 0x877fffc0... done
> Jumping to header at 0x877fffc0
> Header Tag is not an IMX image
>
> U-Boot 2019.04-rc4-00047-gcfb3e102c4 (Mar 23 2019 - 10:45:10 -0300)
>
> CPU:   Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz)
> CPU:   Commercial temperature grade (0C to 95C) at 40C
> Reset cause: POR
> Board: i.MX7D PICOSOM
> I2C:   ready
> DRAM:  512 MiB
>
> (Hangs here)

Check if you go out from here
static int reserve_video(void)
{
#ifdef CONFIG_DM_VIDEO
        ulong addr;
        int ret;

        addr = gd->relocaddr;
        ret = video_reserve(&addr);
        if (ret)
                return ret;
        gd->relocaddr = addr;
#elif defined(CONFIG_LCD)
#  ifdef CONFIG_FB_ADDR
        gd->fb_base = CONFIG_FB_ADDR;
#  else
        /* reserve memory for LCD display (always full pages) */
        gd->relocaddr = lcd_setmem(gd->relocaddr);
        gd->fb_base = gd->relocaddr;
#  endif /* CONFIG_FB_ADDR */
#elif defined(CONFIG_VIDEO) && \
                (!defined(CONFIG_PPC)) && \
                !defined(CONFIG_ARM) && !defined(CONFIG_X86) && \
                !defined(CONFIG_M68K)
        /* reserve memory for video display (always full pages) */
        gd->relocaddr = video_setmem(gd->relocaddr);
        gd->fb_base = gd->relocaddr;
#endif

        return 0;
}

Michael



-- 
| Michael Nazzareno Trimarchi                     Amarula Solutions BV |
| COO  -  Founder                                      Cruquiuskade 47 |
| +31(0)851119172                                 Amsterdam 1018 AM NL |
|                  [`as] http://www.amarulasolutions.com               |

  reply	other threads:[~2019-03-25 17:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-23 13:53 [U-Boot] [PATCH] pico-imx7: Disable video support Fabio Estevam
2019-03-23 22:16 ` Joris OFFOUGA
2019-03-23 22:18   ` Michael Nazzareno Trimarchi
2019-03-25 15:25     ` Fabio Estevam
2019-03-25 16:29       ` Michael Nazzareno Trimarchi
2019-03-25 16:37         ` Fabio Estevam
2019-03-25 16:38           ` Michael Nazzareno Trimarchi
2019-03-25 16:48             ` Fabio Estevam
2019-03-25 16:51               ` Michael Nazzareno Trimarchi
2019-03-25 16:56                 ` Fabio Estevam
2019-03-25 17:00                   ` Michael Nazzareno Trimarchi [this message]
2019-03-25 22:12                   ` Fabio Estevam
2019-03-26  8:21                     ` Michael Nazzareno Trimarchi
2019-03-26 17:58                       ` Fabio Estevam

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=CAOf5uwnXkc2tw+5etCNYWJYD0wQV8j50o_FhUOLCj7AgeKOGQA@mail.gmail.com \
    --to=michael@amarulasolutions.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.