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 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 BBC09C433F5 for ; Tue, 11 Oct 2022 00:54:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A39C48493F; Tue, 11 Oct 2022 02:54:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="DBHAN+YU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4712F84E34; Mon, 10 Oct 2022 23:30:46 +0200 (CEST) Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F1FC784ADF for ; Mon, 10 Oct 2022 23:30:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=absicsz@gmail.com Received: by mail-wr1-x435.google.com with SMTP id u10so18805737wrq.2 for ; Mon, 10 Oct 2022 14:30:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=ijlKbuKNCIQtHfH+nFMgaJTj+SgU24J5Rq2xBJbIOsY=; b=DBHAN+YUrn7WGBj5N7XKLLSSeh+d7ZuqlizvQZCLF5l4hrIH5hq6d5S7sN69OLvS2J nqjfo2eDXAf7jW5uiBAyTUfarXqb+IUutuMFNexfNC1PjVp859HKySK9YGExIQ+sKVWs YMM75MjcKH2cJNr30gh8JbS1W+djP+KqdDfW05kEdqfkgiQNzzwSHHNtw81W7Evmk94s u+muxAljW4eFrMNKrcwHqfL2fj8GuLcXCuo5rjOnRI1+ObFEy9c+/jWXcronwconwd5t 5P5m2zv6wMvVenllsRvzHv8IxEzva86jRua5JzDjmaqZQ3OA6s5bJCu22lZ5gWxwqbXJ f3wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ijlKbuKNCIQtHfH+nFMgaJTj+SgU24J5Rq2xBJbIOsY=; b=L4YTqb5VJmlYat/rwxmK/RycU9DcrBFohifGSCzr1/FUu1Rr0GES3qN8yZ08+0Om9A ce1xqLUwuDrgT1PJOnnQjVLrWmvZQqfh3b7G0wCf0cPnhvSjEYlBGut4M38P1Ze+m1wc dvusWewDOrVlwmpf7FAz3wqdV8ZdbyWTVAsNyDfh0o/zFr97eakxXMGkZuDeDa82J2Se rOKd9tstmGG6vnbsWBGSQPqDCyaBBjEAXC/xFo32thxHWj7ZbClPGJfKGky2adntcof5 vb37YJnDEXn40H3VX+a9JCzUU+kTpV3U6ID6ckKzvBBp4sSCFSAfMmK4Cyu0SDBF+mWn 1/dA== X-Gm-Message-State: ACrzQf2t1oPGvKmD8peD31iLRVhfTLjyZIvHSuhaMaI7KJMF5hf7a0yt kolQ/uLbCA6I1aSgHS9byngX0E7LkNGZZu2I X-Google-Smtp-Source: AMsMyM7COKK9m0g4HJEgz9l6RtcZOe3np7sfvMxJerd7ap9HZvbAT0/FAkxHWUecE/m2TpQ4G5se5g== X-Received: by 2002:a5d:6483:0:b0:22e:4804:8be4 with SMTP id o3-20020a5d6483000000b0022e48048be4mr12401690wri.528.1665437430401; Mon, 10 Oct 2022 14:30:30 -0700 (PDT) Received: from tp440p.steeds.sam ([2602:fbf6:10:8::2]) by smtp.gmail.com with ESMTPSA id j10-20020a05600c190a00b003c6b7f5567csm434432wmq.0.2022.10.10.14.30.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 14:30:30 -0700 (PDT) Date: Mon, 10 Oct 2022 23:30:21 +0200 From: Sicelo To: Pali =?iso-8859-1?Q?Roh=E1r?= 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: References: <20221009193317.5cwxcmntr6ziaphn@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221009193317.5cwxcmntr6ziaphn@pali> X-Mailman-Approved-At: Tue, 11 Oct 2022 02:54:22 +0200 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 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