public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Kristian Amlie <kristian.amlie@northern.tech>
To: u-boot@lists.denx.de
Subject: [PATCH 1/1] vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader.
Date: Mon, 30 Mar 2020 11:20:30 +0200	[thread overview]
Message-ID: <cdc2ca8a-3b50-db58-8b4b-dfff8a131bc0@northern.tech> (raw)
In-Reply-To: <1f832883-8a08-ccf0-32cb-000ff59ff738@gmx.de>

On 28/03/2020 11:12, Heinrich Schuchardt wrote:
> On 3/28/20 10:36 AM, Heinrich Schuchardt wrote:
>> On 3/27/20 8:18 AM, Kristian Amlie wrote:
>>> On 27/03/2020 06:44, Heinrich Schuchardt wrote:
>>>> On 3/27/20 2:39 AM, Tom Rini wrote:
>>>>> On Tue, Feb 25, 2020 at 06:22:16PM +0100, Kristian Amlie wrote:
>>>>>
>>>>>> EFI was disabled in f95b8a4b5f64f because of the missing DTB file,
>>>>>> and indeed, the DTB file is required to load recent versions of GRUB
>>>>>> (2.04) correctly.
>>>>>>
>>>>>> Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
>>>>>
>>>>> Applied to u-boot/master, thanks!
>>>>>
>>>>
>>>> Since this patch is merged I get errors on Gitlab for vexpress_ca9x4:
>>>>
>>>> https://gitlab.denx.de/u-boot/custodians/u-boot-efi/-/jobs/69269
>>>>
>>>> Filename 'lib/efi_loader/helloworld.efi'.
>>>> Load address: 0x60000000
>>>> Loading: *\b#
>>>> ????? 1.8 MiB/s
>>>> done
>>>> Bytes transferred = 1840 (730 hex)
>>>> smc911x: MAC 52:54:00:12:34:56
>>>> => => crc32 60000000 $filesize
>>>> CRC32 for 60000000 ... 6000072f ==> f5c77855
>>>> => => bootefi 60000000
>>>> ^[7^[[r^[[999;999H^[[6n^[8Scanning disks on mmc...
>>>> Card did not respond to voltage select!
>>>> MMC Device 1 not found
>>>> MMC Device 2 not found
>>>> MMC Device 3 not found
>>>> Found 0 disks
>>>> ERROR: need device tree
>>>
>>> Is the "bootefi 60000000" command correct? Doesn't "bootefi" need to be
>>> called with both an EFI binary address and a device tree address?
>>>
>>
>> bootefi uses $fdtcontroladdr as fallback for the device tree. But this
>> variable is only available if CONFIG_OF_CONTROL is set. We should adjust
>> the python test to check this.
>>
>> CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb"
>> This line is incorrect. We never use a .dtb extension here.
> 
> I got that wrong. There are two variables which are somewhat related:
> 
> CONFIG_DEFAULT_DEVICE_TREE="meson-gxbb-odroidc2"
> CONFIG_DEFAULT_FDT_FILE="vexpress-v2p-ca9.dtb"
> 
> One uses the extension, the other doesn't.
> 
> So your patch seems to be correct. The error is in the Python test that
> does not check if OF_CONTROL is set.

Thanks for figuring that out!

-- 
Kristian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200330/cf816f9a/attachment.sig>

      reply	other threads:[~2020-03-30  9:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-25 17:22 [PATCH 1/1] vexpress_ca9x4: Enable use of correct DTB file and restore EFI loader Kristian Amlie
2020-02-28 15:32 ` Tom Rini
2020-03-02 10:22   ` Kristian Amlie
2020-03-02 13:01     ` Tom Rini
2020-03-02 13:15       ` Kristian Amlie
2020-03-20  8:07         ` Kristian Amlie
2020-03-27  1:39 ` Tom Rini
2020-03-27  5:44   ` Heinrich Schuchardt
2020-03-27  7:18     ` Kristian Amlie
2020-03-27 15:45       ` Tom Rini
2020-03-28  9:36       ` Heinrich Schuchardt
2020-03-28 10:12         ` Heinrich Schuchardt
2020-03-30  9:20           ` Kristian Amlie [this message]

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=cdc2ca8a-3b50-db58-8b4b-dfff8a131bc0@northern.tech \
    --to=kristian.amlie@northern.tech \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox