From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFB49C4338F for ; Tue, 3 Aug 2021 14:52:28 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BB31B60F01 for ; Tue, 3 Aug 2021 14:52:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BB31B60F01 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5ADF882D73; Tue, 3 Aug 2021 16:52:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.b="wSlEJtpf"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="ferQAQZk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3D67D82DAF; Tue, 3 Aug 2021 16:52:23 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 83E5B82D58 for ; Tue, 3 Aug 2021 16:52:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ykaukab@suse.de Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 4A52120049; Tue, 3 Aug 2021 14:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1628002340; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TDuX4m9fP7o0/+HLPLy68WzBCWQ7zHM7x0eNotZVLK0=; b=wSlEJtpfs72XulLGkHymm44lds1mtbU4af0+Gus7isz/K2ay7dTUYprrSbfXaQHiv9Za/K YJrkqIa0vSJOpZGws89wjc6HYh8W4TZN2GOBBcKK7PImq2SuD1UuLl4lfuZ9DbUIx2KN+G 5+n3i0YJdcjqOe2ARMfzey/a7eQJbJw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1628002340; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TDuX4m9fP7o0/+HLPLy68WzBCWQ7zHM7x0eNotZVLK0=; b=ferQAQZkm9PVZcpFOaw0k9F7pjINyRPM8jzxgF4HoCP1kZXvWfIQI23tioBQrvEGOz0ira +tXR33xmLQ7aaTBQ== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 13D2513B74; Tue, 3 Aug 2021 14:52:20 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id hnRfAyRYCWHjbQAAGKfGzw (envelope-from ); Tue, 03 Aug 2021 14:52:20 +0000 Date: Tue, 3 Aug 2021 16:52:18 +0200 From: Mian Yousaf Kaukab To: "Z.Q. Hou" Cc: Michael Walle , Tom Rini , Heinrich Schuchardt , "u-boot@lists.denx.de" , Priyanka Jain Subject: Re: [PATCH] configs: layerscape: Disable the EFI_LOADER feature Message-ID: <20210803145218.GA1002252@suse.de> References: <20210722062559.21188-1-Zhiqiang.Hou@nxp.com> <20210722152622.GY9379@bill-the-cat> <20890af388806b4bead24e9a10532305@walle.cc> <0d468c9131a730ce473df4b6324385ec@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean 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