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=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 61737C07E95 for ; Tue, 13 Jul 2021 09:16:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2DD8A6138C for ; Tue, 13 Jul 2021 09:16:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2DD8A6138C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=mentor.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject:From:To: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=NkB0FP02D8RRJS4jHB3hiaW7LPukoK5XI2FeldLoC7Q=; b=UyMoVNXPLGcWqi MMHcv75caGbMJ0Ph8qE9sBVHPHDA9CQE57VLtBvac0soIeGcq71dJA9NqNbRnqdl4mH4DpFrLlsFG sVfbi6HilI0oKpNthjOY2bDNLNwHXNiUNC6PdpjKohGQv/CSm852fYliV+V9ypfGTWroPpgKn7iw+ ax8SlRl6elpuWnn7A/Hn0O2SFYb7tcUtj+OuLniA8TVWM61TLRWMlPR6hifwAwINdnPz2lrHhes69 8ZeuodNhHADBSh4xO86nlJVKfVqpvdDWbD4uPI3+Bc9whUReoI5AxRsjJdCOKZrJR+Sc6T9maoanU 4A54I6eCRsHkSXf0c8TQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3EVg-009aGc-DK; Tue, 13 Jul 2021 09:15:24 +0000 Received: from esa3.mentor.iphmx.com ([68.232.137.180]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3EVa-009aF0-JM for linux-arm-kernel@lists.infradead.org; Tue, 13 Jul 2021 09:15:19 +0000 IronPort-SDR: Kt7d8nAhiYQ14v/d8miVj6B4oUYxY3As7dc9B52Gb6pG9VXLgN5TednxGLdezWVHeD8F//ikeD L2NV7p0BM/9Jta3pojBSuJm9WKF4+7sYjugxJxXEvSucTD2I7MY4+UZV4ua0Ab79dSmiNl/rKx gzjGXgH/ftbyVGWW7RmOZR8YLW2UR4vy3LpLkZ2fxrWBGU3iUAGSl/b4v51qv6ifizpk70HHSS KlGum3gWf+Lcahyfg0INTDGCY4h/DFOgvCGwth04arCMoYab9q1QBjK5j/VZSYlCTd9Mkp+aZ4 ZKo= X-IronPort-AV: E=Sophos;i="5.84,236,1620720000"; d="scan'208";a="63450903" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 13 Jul 2021 01:15:17 -0800 IronPort-SDR: rNmJU782LaD9Vl+RVz29TtZZrx16PCXrhzdQZfat5rQzKaoee0ob/U45xglSHFN8SRAA5Rt0wV BmjM4f3oCjCug5qoZG71AYtBSTXxE4cga7XC0RulUiXvIkDyKw9uZigZULkf7xaqJGRCYdn+LN OryrXZ8phQ/2CZPLMXpd3jWu/nAnQ/exRg0ROqAqRdg7EHYAbQFS+vnzOb1RMQ/RCsPQPUtAmo hEDCIFN1gXwd3zRArEtCuXOkOfqF5dyCEbmXh1g2M+XYEd1yHGNjDakXULXgBBXvSb7+CCxSdP 1aY= To: , From: Ahsan Hussain Subject: U-Boot: Arm64: bootm gets stuck if RANDOMIZE_BASE is disabled Message-ID: <55bdb150-ac99-26a5-76e5-a1d559b34f33@mentor.com> Date: Tue, 13 Jul 2021 14:15:08 +0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Language: en-US X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-05.mgc.mentorg.com (139.181.222.5) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210713_021518_788326_4C7F9BB7 X-CRM114-Status: UNSURE ( 9.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, I'm dumbfounded by a seemingly unrelated early kernel hang/failing to boot when CONFIG_RANDOMIZE_BASE=n is set in kernel and we use FIT uImage. I've verified this behavior on a couple of i.MX8 SoCs (i.MX8M plus and i.MX8QXP) and the results remain consistent. I'm able to boot kernel when I use booti command. However when I use bootm to boot a U-Boot fitImage (with kernel and fdt load addresses/entrypoint in .its file same as I used for booti command; also tried disabling relocation for fdt by setting fdt_high=~0UL), the boot gets stuck at "Starting kernel ...". On disabling RANDOMIZE_BASE kconfig in Linux the same fitImage is able to boot. I've tried enabling earlycon and U-Boot debug messages in common/bootm.c and arch/arm/lib/bootm.c but found no helpful difference in both boot flows. Please let me know if I'm missing something obvious or where do I start looking to debug this issue. Best regards, Ehson _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel