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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5E74C433EF for ; Mon, 11 Oct 2021 14:32:37 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6148F6023F for ; Mon, 11 Oct 2021 14:32:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6148F6023F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F12BD83246; Mon, 11 Oct 2021 16:32:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="sUqvmpEP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C80FD82006; Mon, 11 Oct 2021 16:32:31 +0200 (CEST) Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) (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 2A78383246 for ; Mon, 11 Oct 2021 16:32:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82b.google.com with SMTP id r1so16527111qta.12 for ; Mon, 11 Oct 2021 07:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=lSvElw2T5xsAiNsFj7sN+xttlj1taSXgCFD7wqtxymg=; b=sUqvmpEPUgljJlAOsqX/zNLOeUD93ii05N+tAKbbMEWxxzRw31GB+1+uhN41dhMD6L stAGUvTnSXeppWyl3/T5xhwY9KdVTjt9rkdUisAQB2kerFbsB0nt4ayldbzpibMGtB4D kpiXuI0vOWLtZCzA6s0CIQmlWQ4sN/7QNDyO4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lSvElw2T5xsAiNsFj7sN+xttlj1taSXgCFD7wqtxymg=; b=65B49Zwp2zcAjYxbe4d0evC9FHzEIpWr1GEp4KkDc0ETr0zFbdBjf7pnCKA2Xhqbew 8VSEGevAv0D1ThTa86qOh3l2kzAWtAFKwDnIvm/ZTfOwdl/dlJQJ20CBporS9wa3hXBU ZaiO0JgZLaunzNAqDVpL5GT6mFWuNFJ3uN1ZPwe1gbIJC8bmYnWU05+7jGlDKCdYzRdA DL5qSYF2qLETRmDNkFyGHr61l00vnoP0CY7UgU6Mffjmwtpyhu1nywdOST2F0eNLsqIE jlWQceAEny91D4JWxZt47pJfur4Zcpx2JjqPMXOLR0gqApvDKVrFj+s9WzN2VyulGo9w +ehg== X-Gm-Message-State: AOAM530/KHA6w56Pt0EzsZfVE5S8C6ebaJHYgpddJN1R1dsgPINOXNOr vVlu0+RWmjHgwLxr1kLiCyoXzLvxhUW+1Q== X-Google-Smtp-Source: ABdhPJyqV+E0Cd06PZ5wORq0BdVocex1PK+6Vqg4rjZfB6c2xNC2Vk8Du5Jk5STzV/akWy7+Ya8PJQ== X-Received: by 2002:a05:622a:181:: with SMTP id s1mr15606255qtw.47.1633962744783; Mon, 11 Oct 2021 07:32:24 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-7461-ba79-88cf-55cd.res6.spectrum.com. [2603:6081:7b01:cbda:7461:ba79:88cf:55cd]) by smtp.gmail.com with ESMTPSA id q12sm4241012qkc.104.2021.10.11.07.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Oct 2021 07:32:24 -0700 (PDT) Date: Mon, 11 Oct 2021 10:32:22 -0400 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Stefan Roese , Marek =?iso-8859-1?Q?Beh=FAn?= , u-boot@lists.denx.de Subject: Re: A38x: Broken Linux kernel booting over UART Message-ID: <20211011143222.GE7964@bill-the-cat> References: <20211011101329.olxahslagwlpnh5u@pali> <20211011140321.GY7964@bill-the-cat> <20211011142548.35wvxhrvhiafghar@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lMoHOBn3xgW8/zmj" Content-Disposition: inline In-Reply-To: <20211011142548.35wvxhrvhiafghar@pali> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --lMoHOBn3xgW8/zmj Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 11, 2021 at 04:25:48PM +0200, Pali Roh=E1r wrote: > On Monday 11 October 2021 10:03:21 Tom Rini wrote: > > On Mon, Oct 11, 2021 at 12:13:29PM +0200, Pali Roh=E1r wrote: > >=20 > > > Hello! > > >=20 > > > Current U-Boot master has broken booting of Linux kernel over UART on > > > A38x. > > >=20 > > > After transferring image over UART it just prints: > > >=20 > > > CACHE: Misaligned operation at range [01000000, 014e5d96] > > > ## Total Size =3D 0x004e5d96 =3D 5135766 Bytes > > > ## Start Addr =3D 0x01000000 > > > Kernel image @ 0x1000000 [ 0x000000 - 0x4e0e60 ] > > > FDT and ATAGS support not compiled in > > >=20 > > > resetting ... > > >=20 > > > It resets board and does not boot kernel. Note that I'm trying to boot > > > recent 5.15 kernel image, not something old. > > >=20 > > > I did git bisect and it found following commit which broke booting: > > >=20 > > > 9774462e34faaa64a91eb9c68b438a52d22bba6a is the first bad commit > > > commit 9774462e34faaa64a91eb9c68b438a52d22bba6a > > > Author: Tom Rini > > > Date: Mon Aug 30 09:16:30 2021 -0400 > > >=20 > > > arm: Disable ATAGs support > > >=20 > > > Prior this commit booting working fine. > > >=20 > > > Do you have any idea what is with above commit? Or any hints? > >=20 > > Can you provide the full log of what you're doing? And what's in that > > image you're passing, exactly? Thanks. >=20 > Here is full log: >=20 > $ make CROSS_COMPILE=3Darm-linux-gnueabihf- turris_omnia_defconfig > ... > $ make CROSS_COMPILE=3Darm-linux-gnueabihf- -j8 > ... > $ ./tools/kwboot -b ./u-boot-spl.kwb -B 5200000 -t /dev/ttyUSB0 > Patching image boot signature to UART > Injecting binary header code for changing baudrate to 5200000 Bd > Injecting code for changing baudrate back > Aligning image header to Xmodem block size > Sending boot message. Please reboot the target...- > Waiting 2s and flushing tty > Sending boot image header (115072 bytes)... > 0 % [..................................................................= =2E...] > ... > 93 % [........................................................... = ] > Done >=20 > U-Boot SPL 2021.10-00600-gf331497d3ad4 (Oct 11 2021 - 16:13:39 +0200) > High speed PHY - Version: 2.0 > MiniPCIe/mSATA card detection... MiniPCIe > Detected Device ID 6820 > board SerDes lanes topology details: > | Lane # | Speed | Type | > -------------------------------- > | 0 | 5 | PCIe0 | > | 1 | 5 | USB3 HOST0 | > | 2 | 5 | PCIe1 | > | 3 | 5 | USB3 HOST1 | > | 4 | 5 | PCIe2 | > | 5 | 0 | SGMII2 | > -------------------------------- > High speed PHY - Ended Successfully > mv_ddr: 14.0.0=20 > DDR3 Training Sequence - Switching XBAR Window to FastPath Window > mv_ddr: completed successfully > Disabling MCU watchdog... disabled > Trying to boot from BOOTROM > Returning to BootROM (return address 0xffff05c4)... >=20 > Changing baudrate to 5200000 Bd >=20 > Sending boot image data (747780 bytes)... > 0 % [..................................................................= =2E...] > ... > 99 % [................................. = ] > Done > Finishing transfer >=20 > Changing baudrate back to 115200 Bd >=20 > [Type Ctrl-\ + c to quit] >=20 >=20 > U-Boot 2021.10-00600-gf331497d3ad4 (Oct 11 2021 - 16:13:39 +0200) >=20 > SoC: MV88F6820-A0 at 1600 MHz > DRAM: 2 GiB (800 MHz, 32-bit, 2T, ECC not enabled) > WDT: Started watchdog@20300 with servicing (60s timeout) > MMC: mv_sdh: 0 > Loading Environment from SPIFlash... SF: Detected s25fl164k with page siz= e 256 Bytes, erase size 4 KiB, total 8 MiB > OK > Model: Turris Omnia > Turris Omnia: > RAM size: 2048 MiB > Serial Number: 0000000B00007B3C > Regdomain set to ** > Net: eth0: ethernet@70000, eth1: ethernet@30000, eth2: ethernet@34000 > =3D> >=20 > $ kermit > C-Kermit>set line /dev/ttyUSB0 > C-Kermit>set speed 115200 > C-Kermit>set carrier-watch off > C-Kermit>connect > Connecting to /dev/ttyUSB0, speed 115200 > Escape character: Ctrl-\ (ASCII 28, FS): enabled > Type the escape character followed by C to get back, > or followed by ? to see other options. > ---------------------------------------------------- >=20 > =3D> echo $uart_boot > loadb $kernel_addr_r 5200000 && part uuid mmc 0:1 partuuid && setenv boot= args earlyprintk rootwait console=3DttyS0,115200 rootfstype=3Dbtrfs root=3D= PARTUUID=3D${partuuid} rootflags=3Dcommit=3D5,subvol=3D@ rw cfg80211.freg= =3D${regdomain} && bootz ${kernel_addr_r} > =3D> run uart_boot > ## Switch baudrate to 5200000 bps and press ENTER ... > C-Kermit>set speed 5200000 > ?No keywords match - 5200000 (,Transmission rate for /dev/ttyUSB0 (bits p= er second)) >=20 > ?SET SPEED fails, speed is 5260273 > C-Kermit>send /tmp/kernel > C-Kermit>set speed 115200 > /dev/ttyUSB0, 115200 bps > C-Kermit>connect > CACHE: Misaligned operation at range [01000000, 014e5d96] > ## Total Size =3D 0x004e5d96 =3D 5135766 Bytes > ## Start Addr =3D 0x01000000 > ## Switch baudrate to 115200 bps and press ESC ... > Kernel image @ 0x1000000 [ 0x000000 - 0x4e0e60 ] > FDT and ATAGS support not compiled in >=20 > resetting ... OK, and is /tmp/kernel something with an appended dtb then? --=20 Tom --lMoHOBn3xgW8/zmj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFkSvIACgkQFHw5/5Y0 tywLDwv/RbN5HM7+a6EN6zxtgKtgaYtcof88KgLjJ2Tr9jUCr52lI9lUn9xfirQK BJqX2Fo3Ok4M6P/IjqUk4LyhDGVxRV0y5kfAdUc8sffxNCh6vO0wNeR3c5IENeEL 4de9FbEdOxMbFwQjZVj4L/OyJv6BWnpkvhIt2M5pK9G45O7Cow80pXxxQAcce2sq Z9xIHg5GiZrFXsgal/+O4kJQkvUVkl1Z2bzsEZOw8fr7CNCOFKcmTwROdNK/vjlO H76YoCUsZJnPy5GJcoWABYfBQV9Lo24M/1TxJI1NPN/oBqCrEVVF8gNGcGAYkYB0 P+m8ZmMk8u7HyVILwH5i/I5lxkPclZJRjCRZj9xvnqd1TgeZC3Ru0qsK6luXsXPd iusxd0m3n4NPJBgAUh7rUSeBqp9c9Zy2DK5sSnB4kWq6wg7Sr6pJWOlcnoA3q56e VCdQe1tIzbOkHpWIupgRmpslJDrzv+Qy1rh2j3vqgeznHLl4umFrCHL/cOPpwbin 3+yh7PzI =Opp7 -----END PGP SIGNATURE----- --lMoHOBn3xgW8/zmj--