All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mian Yousaf Kaukab <ykaukab@suse.de>
To: "Z.Q. Hou" <zhiqiang.hou@nxp.com>
Cc: Michael Walle <michael@walle.cc>, Tom Rini <trini@konsulko.com>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	"u-boot@lists.denx.de" <u-boot@lists.denx.de>,
	Priyanka Jain <priyanka.jain@nxp.com>
Subject: Re: [PATCH] configs: layerscape: Disable the EFI_LOADER feature
Date: Tue, 3 Aug 2021 16:52:18 +0200	[thread overview]
Message-ID: <20210803145218.GA1002252@suse.de> (raw)
In-Reply-To: <HE1PR0402MB3371FC4F4170117043478DE684E89@HE1PR0402MB3371.eurprd04.prod.outlook.com>

On Mon, Jul 26, 2021 at 07:37:53AM +0000, Z.Q. Hou wrote:
> Hi Micheal,
> 
> Pasted the log below, the direct cause seems the u-boot DTB doesn't have /cpus node.
> 
> => run bootcmd_mmc0 
> switch to partitions #0, OK
> mmc0 is current device
> Scanning mmc 0:1...
> libfdt fdt_check_header(): FDT_ERR_BADMAGIC
> Scanning disk esdhc@1560000.blk...
> Found 5 disks 
> No EFI system partition
> couldn't find /cpus 
> "Synchronous Abort" handler, esr 0x96000006
> elr: 0000000082004a6c lr : 0000000082004a30 (reloc)
> elr: 00000000fbd25a6c lr : 00000000fbd25a30
> x0 : 0000000087f00a88 x1 : 000000001cfbfd5e
> x2 : efbeaddeefbeadde x3 : 00000000efbeadde
> x4 : 00000000fffffffc x5 : 0000000087f037d2
> x6 : 0000000000000a58 x7 : 0000000000000003
> x8 : 0000000087f00000 x9 : 0000000000000008
> x10: 0000000000000a44 x11: 00000000fbc17c6c
> x12: 00000000000009e4 x13: 0000000000000000
> x14: 0000000087f00000 x15: 00000000fbc180d8
> x16: 00000000fbd742d0 x17: 0000000000000000
> x18: 00000000fbc1cdb0 x19: 00000000000009e4
> x20: 0000000087f00000 x21: 00000000fbdb3404
> x22: 00000000fbdb4a97 x23: 0000000000000018
> x24: 00000000fbde5d44 x25: 0000000000000000
> x26: 0000000000000000 x27: 0000000000000000
> x28: 00000000fbc5ba60 x29: 00000000fbc17d30
> 
> Code: a94153f3 a9425bf5 a8c47bfd d65f03c0 (b8617803) 
> Resetting CPU ...
>  
> 
> > 
> > And why don't you fix the fdt_addr then? Shouldn't it be unset if there is no
> > actual device tree present in a ROM section? (I don't say there isn't another
> > underlying problem when you use an invalid fdt_addr).
>  
> The problem shown in above log is triggered when unset the fdt_addr.
On which platform are you seeing this issue?

I have tested v2021.07 on ls1043a-rdb and it doesn't reproduce.

Board is booting from NOR and I have two mmc partitions:
Device           Start      End  Sectors  Size Type
/dev/mmcblk0p1    2048  1048576  1046529  511M Linux filesystem
/dev/mmcblk0p2 1050624 15523806 14473183  6.9G Linux filesystem

=> run bootcmd_mmc0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Scanning disk esdhc@1560000.blk...
Found 3 disks
No EFI system partition
PCIe1: pcie@3400000 disabled
PCIe2: pcie@3500000 Root Complex: no link
PCIe3: pcie@3600000 Root Complex: no link
WARNING failed to get smmu node: FDT_ERR_NOTFOUND
WARNING failed to get smmu node: FDT_ERR_NOTFOUND
BootOrder not defined
EFI boot manager: Cannot load any image
Scanning mmc 0:2...
WARNING failed to get smmu node: FDT_ERR_NOTFOUND
WARNING failed to get smmu node: FDT_ERR_NOTFOUND
BootOrder not defined
EFI boot manager: Cannot load any image
=>

I still don't see the issue even if I remove fdt_addr:
=> setenv fdt_addr
=> run bootcmd_mmc0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
WARNING failed to get smmu node: FDT_ERR_NOTFOUND
WARNING failed to get smmu node: FDT_ERR_NOTFOUND
BootOrder not defined
EFI boot manager: Cannot load any image
Scanning mmc 0:2...
WARNING failed to get smmu node: FDT_ERR_NOTFOUND
WARNING failed to get smmu node: FDT_ERR_NOTFOUND
BootOrder not defined
EFI boot manager: Cannot load any image
=>

> If it not unset, the SError is triggered when to check the magic of the fdt header.
> 
> Thanks,
> Zhiqiang
> 
> > 
> > -michael
BR,
Yousaf

  parent reply	other threads:[~2021-08-03 14:52 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22  6:25 [PATCH] configs: layerscape: Disable the EFI_LOADER feature Zhiqiang Hou
2021-07-22 15:26 ` Tom Rini
2021-07-22 17:00   ` Michael Walle
2021-07-22 17:02     ` Tom Rini
2021-07-22 17:08       ` Michael Walle
2021-07-22 17:21         ` Tom Rini
2021-07-22 17:09     ` Fabio Estevam
2021-07-26  7:10       ` Z.Q. Hou
2021-07-26  7:01     ` Z.Q. Hou
2021-07-26  7:12       ` Michael Walle
2021-07-26  7:37         ` Z.Q. Hou
2021-07-26 12:28           ` Tom Rini
2021-07-27  5:42             ` Z.Q. Hou
2021-07-27 13:07               ` Tom Rini
2021-07-28  8:24                 ` Z.Q. Hou
2021-08-03 14:52           ` Mian Yousaf Kaukab [this message]
2021-08-12  6:15             ` Z.Q. Hou
2021-07-26  6:18   ` Z.Q. Hou
2021-07-26  6:30     ` Michael Walle
2021-07-26 12:23     ` Tom Rini

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=20210803145218.GA1002252@suse.de \
    --to=ykaukab@suse.de \
    --cc=michael@walle.cc \
    --cc=priyanka.jain@nxp.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    --cc=zhiqiang.hou@nxp.com \
    /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.