Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 2B37AC433F5 for ; Sun, 9 Oct 2022 19:33:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E521184E03; Sun, 9 Oct 2022 21:33:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="eTTtJ4+Q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C52A284E0D; Sun, 9 Oct 2022 21:33:28 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2963784DD6 for ; Sun, 9 Oct 2022 21:33:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5136A60B85; Sun, 9 Oct 2022 19:33:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 940F1C433D6; Sun, 9 Oct 2022 19:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665344000; bh=EcEYHk8jgZPGNW0Z/zwIVvwQFwAsPMd7L4ycj2uw2CA=; h=Date:From:To:Subject:From; b=eTTtJ4+Q8ge2JN76ho5esDYDz2UwVUeKYKl4Up5MjoEALwc7JZFBTw33aVdyDa3bM 5eXLLbRVVAsO57D938Uew4zMmIwMfkBnyhqONZWv1DNTaVOWPSFeQ4X5pH1WEaEFez zKW5Z+18EFx0ZbPHqmJEII1Z5/dU4snkAbooaCEsHRk/zAe1+M2M03mksFUGYBMhAM cMazuRrOMp0t7KNIQqU3Z3Twd6zpn6BFdY6Socj5eBS22ioJofbgzHYUEfXBoQxq37 8d/RnlqJEXDL17VP3Erp3sDJZlrCYSfQKA0nXUC79jLjKzLCYivxWyMEK87FcgGaJ2 QFejQt37QhmXg== Received: by pali.im (Postfix) id 9FD407C1; Sun, 9 Oct 2022 21:33:17 +0200 (CEST) Date: Sun, 9 Oct 2022 21:33:17 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Merlijn Wajer , Ivaylo Dimitrov , Pavel Machek , maemo-leste@lists.dyne.org, u-boot@lists.denx.de Subject: Broken u-boot on n900 hw (possibly CONFIG_POSITION_INDEPENDENT) Message-ID: <20221009193317.5cwxcmntr6ziaphn@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean Hello! Current u-boot from master branch does not work on n900 hw. It does not show anything on display, there just nokia logo. In qemu it is working fine and all tests are passing. Also in qemu is display working without any problem. Could you help me to debug it? Maybe something is printed to serial console? Or maybe serial console could be used for printf-debugging? I just figured out that disabling CONFIG_POSITION_INDEPENDENT u-boot option make it working again. But it requires to restoring older version of lowlevel_init.S file which does not depend on POSITION_INDEPENDENT: git checkout 7c4ad9821758f98db127e9d6864671c906c02d3b -- board/nokia/rx51/lowlevel_init.S And also setting CONFIG_SYS_TEXT_BASE=0x80008000 (to some value in RAM). I'm looking at the POSITION_INDEPENDENT usage and seems that only few boards have it enabled and even less of them are 32-bit ARM. So it is possible that there is bug in POSITION_INDEPENDENT code? I just do not understand how it is possible that u-boot binary is working fine in qemu, but not on the real HW...