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=-0.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 75422C433DB for ; Tue, 5 Jan 2021 11:50:53 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 146342222A for ; Tue, 5 Jan 2021 11:50:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 146342222A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=C5OJ6AlyJ3uUbPgGLvaBJH6/Sv292JCRRfBD23cPhJ4=; b=UE1+STQ0hN6xXB+mDeC2DqdXq 9D7J16vH5qa5ckYcqDyRcWfJFM8sJy/h8L4iYWlV2+R1x8CabG+FtcEGeHpTES5fyw18iTJzIGhx4 yP56BcxEu6byENYk+ZpJi3EXVlyR9N/SD1UM8Q0RkFupDF0xSLIL/dU1q+6dCpHgM2zeZsx9Qkd8G z6onBLDi7oWLfiCBY9Fy0BQ61gKs5XCdkVqh3JD8EmNPEUIIB8hf8kv+z/ofOB8W98WDlcDbveMSJ wu2xV2YYPBMccRrHYKvgzrKzQn/1lmI4vK7bNI8KLX93zm28zEb08BkOheVmiK0aTjiGpyo+ZFgws jbuUqtVew==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwkph-00088j-U7; Tue, 05 Jan 2021 11:49:01 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kwkpe-00088D-9h for linux-arm-kernel@lists.infradead.org; Tue, 05 Jan 2021 11:48:59 +0000 Received: by mail-wm1-x32d.google.com with SMTP id e25so2793607wme.0 for ; Tue, 05 Jan 2021 03:48:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=Twge5+L7oDbBtb/CTAgj15ANAWokc/RBpA9QwsjgCLc=; b=md9SdpZcgVgmxOSVEUW+e111U5KMAb4o3553WNqmiUjxmVxGdkabEiZRP4O1oA4ozM WLc8ASxn+1qISaf3Y8ZbudHm00AQyYYQxADE3pGS//AMKc93nhsuS28Duj+kMtF4WnRh xh5AhKpJhz5olszd+7eb8BCSL1kHpz8rJ1a6zu0BthIdvdFbQL//W7aynEx1F9dHZ/Ll k8piotF7WFDi6o2J1dq8hWzhk5eYRUqzpT/+edW4sDFiYrbkUhIlO+Raqq2380oOcsjr 5BIC3+/gF7yusjubUtGTt18qc2hBxrkGw0pugCs0nV2Gd13LQ4UEyNMXRW1XJ52EoG4Y ac/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=Twge5+L7oDbBtb/CTAgj15ANAWokc/RBpA9QwsjgCLc=; b=Nj3FvWvQ9qU1M1lxg2BLnTAYwfNJJG/X6S5a2x+7VG+umGOqiM/9oKl0LXFyYEuHuE AB83u846tZAS4UyRLmILreWjgWIP8klz3O6hW6u6Yrc6ePUlPAucMdPSM4wor/yUs0iA EVTfQ18n6Rzoc/L/eJr16XVbvS3umnp2lm9Z1ZGnfKnMN/OPkxil2TCuz/3jTwmlW2OK idrG69rCap94tm5xccPjwdHFHFnFxPRfOcbU9dbzCR1DlfCVTvoV2i7n+VG3twXONTuP 93jROPRQ4RdOl2auuKpwrVwD8PdzUvut5EUk+KNwhe92LtDEh6p+NXBpJzboP5UlDuj5 ZhTA== X-Gm-Message-State: AOAM531FTeB/OttPg7Cgk42iA3qP4umUp6HWt79QJQFruaWZrbs9rRuG I17SUF0rUXyEeM6vu89mbN4= X-Google-Smtp-Source: ABdhPJxYxonwl7qIDdZ68yBBV0q/kPGICeSwLZseiszx1m6zzch8Q7iM+c/lTnazkDwfAgbDllfCYA== X-Received: by 2002:a7b:cbd0:: with SMTP id n16mr3174095wmi.162.1609847336485; Tue, 05 Jan 2021 03:48:56 -0800 (PST) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id b7sm89464727wrv.47.2021.01.05.03.48.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jan 2021 03:48:55 -0800 (PST) Date: Tue, 5 Jan 2021 12:48:54 +0100 From: Corentin Labbe To: Geert Uytterhoeven Subject: Re: r8a77950-salvator-x does nto boot since cfa7ede20f133cc81cef01dc3a516dda3a9721ee arm64: set TEXT_OFFSET to 0x0 in preparation for removing it entirely Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210105_064858_478648_4FB9C975 X-CRM114-Status: GOOD ( 22.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Catalin Marinas , Magnus Damm , Linux Kernel Mailing List , Linux-Renesas , Will Deacon , Ard Biesheuvel , Linux ARM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Le Tue, Jan 05, 2021 at 11:13:03AM +0100, Geert Uytterhoeven a =E9crit : > Hi Corentin, > = > On Tue, Jan 5, 2021 at 10:52 AM Corentin Labbe > wrote: > > Due to DTB renaming, salvatorX was not booted since a long time in kern= elCI. > > Now the rename is handled, the board fail to boot. > > > > I have bisected the problem: > = > > # first bad commit: [cfa7ede20f133cc81cef01dc3a516dda3a9721ee] arm64: s= et TEXT_OFFSET to 0x0 in preparation for removing it entirely > > > > This is the interesting part of uboot log: > > [ 0.000292] NOTI[ 0.000292] NOTICE: BL2: R-Car Gen3 Initial Prog= ram Loader(CA57) Rev.1.0.16 > > [ 0.005855] NOTICE: BL2: PRR is R-Car H3 Ver1.1 > > [ 0.010437] NOTICE: BL2: Board is Salvator-X Rev1.0 > > [ 0.015379] NOTICE: BL2: Boot device is HyperFlash(80MHz) > > [ 0.020804] NOTICE: BL2: LCM state is CM > > [ 0.024847] NOTICE: BL2: AVS setting succeeded. DVFS_SetVID=3D0x53 > > [ 0.030891] NOTICE: BL2: DDR1600(rev.0.27)NOTICE: [COLD_BOOT]NOTIC= E: ..0 > > [ 0.066311] NOTICE: BL2: DRAM Split is 4ch > > [ 0.070195] NOTICE: BL2: QoS is default setting(rev.0.37) > > [ 0.075697] NOTICE: BL2: Lossy Decomp areas > > [ 0.079872] NOTICE: Entry 0: DCMPAREACRAx:0x80000540 DCMPAREAC= RBx:0x570 > > [ 0.086957] NOTICE: Entry 1: DCMPAREACRAx:0x40000000 DCMPAREAC= RBx:0x0 > > [ 0.093869] NOTICE: Entry 2: DCMPAREACRAx:0x20000000 DCMPAREAC= RBx:0x0 > > [ 0.100785] NOTICE: BL2: v1.3(release):b330e0e > > [ 0.105274] NOTICE: BL2: Built : 15:26:51, Dec 6 2017 > > [ 0.110462] NOTICE: BL2: Normal boot > > [ 0.114103] NOTICE: BL2: dst=3D0xe6320208 src=3D0x8180000 len=3D512= (0x200) > > [ 0.120652] NOTICE: BL2: dst=3D0x43f00000 src=3D0x8180400 len=3D614= 4(0x1800) > > [ 0.127110] NOTICE: BL2: dst=3D0x44000000 src=3D0x81c0000 len=3D655= 36(0x10000) > > [ 0.134336] NOTICE: BL2: dst=3D0x44100000 src=3D0x8200000 len=3D524= 288(0x80000) > > [ 0.144816] NOTICE: BL2: dst=3D0x50000000 src=3D0x8640000 len=3D104= 8576(0x100000) > > U-Boot 2015.04 (Dec 06 2017 - 15:26:59) > > CPU: Renesas Electronics R8A7795 rev 1.1 > > Board: Salvator-X > > I2C: ready > > DRAM: 3.9 GiB > > MMC: sh-sdhi: 0, sh-sdhi: 1, sh-sdhi: 2 > > In: serial > > Out: serial > > Err: serial > > Net: ravb > > > > [...] > > > > booti 0x48080000 0x4a000000 0x48000000 > ^^^^^ > I take it this is the problem? > = > For R-Car H3 ES1.0, I currently use the addresses below: > = > tftpboot 0x60000000 h3-salvator-x/Image > tftpboot 0x68000000 h3-salvator-x/r8a77950-salvator-x.dtb > booti 0x60000000 - 0x68000000 > = > For R-Car H3 ES2.0 (and other R-Car Gen3 SoCs), I use other addresses: > = > tftpboot 0x50000000 h3-salvator-xs/Image > tftpboot 0x58000000 h3-salvator-xs/r8a77951-salvator-xs.dtb > booti 0x50000000 - 0x58000000 > = > The firmware on your H3 ES1.1 board (Rev.1.0.16) is newer than on my > ES1.0 board (Rev.1.0.12), so it's possible the second version works on > your board, too. > = > If these work for you, I'll update https://elinux.org/R-Car/Boards/Salvat= or-X[S] > = Hello Thanks, changing kernel/dtb address made it boot. when testing, I have also discovered that r8a7796-m3ulcb hit the same issue= than the salvatorX and that thoses address made it boot. Regards _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel