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 D39A2C19F2D for ; Thu, 11 Aug 2022 06:56:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 000558487A; Thu, 11 Aug 2022 08:56:22 +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="G++2Apvh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1775C84884; Thu, 11 Aug 2022 08:56:21 +0200 (CEST) Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) (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 E311A84874 for ; Thu, 11 Aug 2022 08:56:17 +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=matwey.kornilov@gmail.com Received: by mail-vs1-xe31.google.com with SMTP id 129so17412387vsq.8 for ; Wed, 10 Aug 2022 23:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=OJ9zOl/GHuSf6qyLhgNRSYF1LUeQ2DAXwRZs/85UEO4=; b=G++2ApvhNi7CWv6BrCvPZVxtPl3zvUQmbW72q8Y4CpBcLhdHaQvLqLtiSBHH2uy/wC RyShArY/WGnXbkBTb+UV0JMztlCyYu7tzXiadmxL18hlFEZCZzoA+Yra0Caol9TDZ65p 0wyboe9Vc0t351uoYJ7IJy0nOl4ac1k8TlXOU7u/16JUvnvE0tZu7k8im3s2uMFAkFIk h6pG4e3n9CPQxtTTpitBnFBIRCmgLuNCjMW4bUwwo41WP++6y+ivd5sdLiqUB7Ob7U4x OtEx5KE84x0bbVA5tSep3GuUwnVmDrEP282EF6Ne2FQ0qblQ9u7gJmNMLdI9Zr4W8OdN 479Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=OJ9zOl/GHuSf6qyLhgNRSYF1LUeQ2DAXwRZs/85UEO4=; b=1jXdy27rN9GzCyaP737ZypOeyU+ZoUAsDTJ4VpZQETZsAFjPc/6/lexSOLxi1nNbce qCpvOEPqODnXPR8ljByraU94RrcICXo0i2VPpF8BOZeeh9QVjT2DTch6tucWmWLrwjhE LTpggorPysnfZocvapvaVoy1hrrKH0UEOiWVspqG0STvy1bZlUFpz7dKBO0+prigzUNR Qr/5FfTnfvPSle7UVvZaTd4d0rYP+6aPZVSQKm8WveVI85rR84rwEjA9hX7inB/2JjIj bLibl1GADanGf0TgMBYalwns3LnRtlcUsdrr9p7is+yWi1MK8g3eH25K8xxnCWAioksh Bjbw== X-Gm-Message-State: ACgBeo3aoBEaXfR1O/4bDOUrgZ/AJodgA881AY8yWZbsuoa2xzDceAeS yrpN/BMwIHH1nrMOGnzAGbETn7azHSOpE4WaLIw= X-Google-Smtp-Source: AA6agR72Y3E3ERhoPas59o85HPZAw3nG1hkYrCV3/M9admnkNNUMrjFfBmFjVcJ/RAJLngooFfxGuY76VNnBhN3vO+0= X-Received: by 2002:a67:d717:0:b0:385:273b:a208 with SMTP id p23-20020a67d717000000b00385273ba208mr13239029vsj.9.1660200976425; Wed, 10 Aug 2022 23:56:16 -0700 (PDT) MIME-Version: 1.0 References: <20220729163256.GR1146598@bill-the-cat> <20220729164628.GS1146598@bill-the-cat> <20220810225202.uegc7jzhecmza3ya@snorkel> In-Reply-To: <20220810225202.uegc7jzhecmza3ya@snorkel> From: "Matwey V. Kornilov" Date: Thu, 11 Aug 2022 09:56:05 +0300 Message-ID: Subject: Re: [BISECTED] BeagleBone Black doesn't boot after a58147c2dbbf To: Nishanth Menon Cc: Robert Nelson , Tom Rini , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 =D1=87=D1=82, 11 =D0=B0=D0=B2=D0=B3. 2022 =D0=B3. =D0=B2 01:52, Nishanth Me= non : > > On 11:40-20220807, Matwey V. Kornilov wrote: > > =D0=BF=D1=82, 5 =D0=B0=D0=B2=D0=B3. 2022 =D0=B3. =D0=B2 18:01, Robert N= elson : > > > > > > On Fri, Jul 29, 2022 at 12:07 PM Matwey V. Kornilov > > > wrote: > > > > > > > > =D0=BF=D1=82, 29 =D0=B8=D1=8E=D0=BB. 2022 =D0=B3. =D0=B2 19:46, Tom= Rini : > > > > > > > > > > On Fri, Jul 29, 2022 at 07:38:28PM +0300, Matwey V. Kornilov wrot= e: > > > > > > =D0=BF=D1=82, 29 =D0=B8=D1=8E=D0=BB. 2022 =D0=B3. =D0=B2 19:32,= Tom Rini : > > > > > > > > > > > > > > On Fri, Jul 29, 2022 at 07:20:11PM +0300, Matwey V. Kornilov = wrote: > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > I've tried to build an am335x_evm_defconfig u-boot to use i= t on my > > > > > > > > BeagleBone Black board. Surprisingly, I've found that it do= esn't work, > > > > > > > > I see the silent console: no messages even from SPL. > > > > > > > > > > > > > > > > Using bisect I've found that the following commit breaks th= e booting: > > > > > > > > > > > > > > > > a58147c2dbbf ("board: ti: common: board_detect: Do 1byt= e address > > > > > > > > checks first.") > > > > > > > > > > > > > > > > Could you please help me? > > > > > > > > > > > > > > Can you share some more details about which BeagleBone Black = you have, > > > > > > > specifically the revision? > > > > > > > > > > > > It is an ordinary C revision. Unfortunately, I cannot remember = who the > > > > > > producer was. As far as I know many companies made BeagleBone B= lack > > > > > > and EEPROM content can be different. > > > > > > > > > > OK, that'll help some. Can you see what the specific part number= of the > > > > > EEPROM is? That might also help Nishanth figure out what to do h= ere. > > > > > > > > Attached here is the EEPROM dump. > > > > > > .U3.A335BNLT00C0 > > > > > > Ah, the "CO"... i'm pretty sure that board was made by Element14, > > > (they messed up the position of the "C") not that it really mattered > > > as the A335BNLT is only used.. > > > > Hi Robert, > > > > I have BBB from different vendors, and I do remember that I've > > purchased the Element14 version at some point. However, I've messed > > everything up and cannot figure out which board from which vendor. You > > are the most probably right, but still I cannot confirm the origin. > > > > > > > > Can you please take a quick snapshot of the eeprom, it should be... > > > 24LC32AT-I/OT but maybe they used another variation.. > > > > Attached here is U7. It says M67E. 24AA32A/24LC32A datasheet page 14 > > says that it should be 24LC32AI. > > > > Wierd.. took me a bit of digging, but I did get the element14 beaglebone > rev C black board as well.. but it boots fine for me. > > https://gist.github.com/nmenon/104f040a67a6af0b0418c95ad83ad50b > > I tested the very tip of master: > 3dd4e916324e Merge https://source.denx.de/u-boot/custodians/u-boot-marvel= l 3dd4e916324e doesn't work, 3dd4e916324e + reverted a58147c2dbbf boots: U-Boot SPL 2022.10-rc2-00029-g3dd4e91632-dirty (Aug 11 2022 - 09:50:59 +030= 0) Trying to boot from MMC1 U-Boot 2022.10-rc2-00029-g3dd4e91632-dirty (Aug 11 2022 - 09:50:59 +0300) CPU : AM335X-GP rev 2.1 Model: TI AM335x BeagleBone Black DRAM: 512 MiB Core: 160 devices, 18 uclasses, devicetree: separate WDT: Started wdt@44e35000 with servicing (60s timeout) NAND: 0 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... not set. Validating first E-fuse MAC Net: eth2: ethernet@4a100000, eth3: usb_ether Hit any key to stop autoboot: 0 =3D> i2c dev 0 ; i2c md 0x50 0x00.2 400 Setting bus to 0 0000: aa 55 33 ee 41 33 33 35 42 4e 4c 54 30 30 43 30 .U3.A335BNLT00C0 0010: 34 34 31 34 42 42 42 4b 31 30 30 30 ff ff ff ff 4414BBBK1000.... 0020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 0030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 0040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 0050: 58 41 4e 30 30 31 30 30 30 58 58 58 58 58 58 58 XAN001000XXXXXXX 0060: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 0070: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 0090: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 00a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ > > Seemed to boot fine. Apparently it is supposed to be the same type as > your board as well and it boots just fine on master. > > U7, however, on my board, is unmarked. > > Not really sure what to make of this. > > -- > Regards, > Nishanth Menon > Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DD= B5 849D 1736 249D --=20 With best regards, Matwey V. Kornilov