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 C7FD0C433FE for ; Thu, 20 Oct 2022 20:07:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3AEB484BFB; Thu, 20 Oct 2022 22:07:09 +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="FZR9WJrt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 133D984C7D; Thu, 20 Oct 2022 22:07:07 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (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 582C5848A1 for ; Thu, 20 Oct 2022 22:07:03 +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 ams.source.kernel.org (Postfix) with ESMTPS id E430BB82759; Thu, 20 Oct 2022 20:07:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C9DCC433D6; Thu, 20 Oct 2022 20:07:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666296421; bh=TX5PuwL5yVNCOUNCNQvXPyd6GRrKySw85jLiGeN0SK8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FZR9WJrtI85wRqV5KoV+2V0yIhgy0c3c3JPJKBNyrqm+uDk7L1mFRV/5b/xnL9rEc mrJzMe9NSFsxb52u9jw8pUkR6+tF0I4l2BQn0PgF9kiKvpCaa+xLyt6U4Oui4eTgX+ 8XxJ+rDSqrjTTPh9tpllwLKhGXKlanqLmWOeNy/Gau0I7K1aetGQNfAm/FbNlWoYAA fTmJxPJ8n/CM+P5JlxKL3E3s0NmAtXjUmRDpnDGcq2/cyIqqxB3vOYEXCpfT8FWVrt +K4PfOETfT9Osz/8h1qY1ccS1qluGPDcam43qvw7L4VbOVUuK90hXnbUhX3ruUfdYh RKlLqh0+q0L5w== Received: by pali.im (Postfix) id 8F9ED80E; Thu, 20 Oct 2022 22:06:58 +0200 (CEST) Date: Thu, 20 Oct 2022 22:06:58 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Sicelo Cc: Merlijn Wajer , Ivaylo Dimitrov , Pavel Machek , maemo-leste@lists.dyne.org, u-boot@lists.denx.de Subject: Re: [maemo-leste] Broken u-boot on n900 hw (possibly CONFIG_POSITION_INDEPENDENT) Message-ID: <20221020200658.mby4a2rfxbw7j67v@pali> References: <20221009193317.5cwxcmntr6ziaphn@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 On Monday 10 October 2022 23:30:21 Sicelo wrote: > On Sun, Oct 09, 2022 at 09:33:17PM +0200, Pali Rohár wrote: > > 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). > > Hi > > I have a really crude serial console setup in place now, but very little > time, and even less experience with u-boot. I should be able to do the > tests for you on Saturday night (UTC+2). Perhaps over IRC might be a > good idea, in case I need some hand-holding, and if you still need the > help by then. > > Regards > Sicelo Well, I do not know where to start or how to instruct somebody who is not experienced with u-boot debugging. I think that the first step should be to look if U-Boot prints something on the serial console or not. If it prints then try to find via printf-driven-debugging place where it stuck. If it does not print anything on the console then try to setup debug early console, check if it prints something now and do same type of debugging. And if even early debug console does not work then probably initialize serial console directly in lowlevel_init.S file, prints something to serial, then move code for printing to later stage and try to figure out what is broken... Anybody else with serial console can look at it? Or maybe look at the code if you spot some issue there?