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 D08C9C433EF for ; Wed, 23 Mar 2022 07:52:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5EF7183C08; Wed, 23 Mar 2022 08:52:15 +0100 (CET) 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="N5cIMuLT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 148A683C07; Wed, 23 Mar 2022 08:52:14 +0100 (CET) Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) (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 B2B4380F78 for ; Wed, 23 Mar 2022 08:52:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=koute102030@gmail.com Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-2e5757b57caso7694357b3.4 for ; Wed, 23 Mar 2022 00:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=VXy5XcFfJlq/V5VLFijoV81G9mgufTkPm86jCxynMTE=; b=N5cIMuLTQR+GCaGKTvlXg+1FRQ2QN9c5m/iY2fQoiOsGHXBKjOZYY86+kbIDOUV/15 nsBLf5J2XL+bFJ7gMbJSb+e8O2XqzLlGfqdVn1nIID6Rtc+0kgM/0XSOSVBKTnfFRjT3 lTXd0AdyKMG3vYHkdOXweZ8wr1GPlIAKnsZg+NdOIWlZ2sDcbEN5DBq/Pk6OgpWwG1hV RpXSJXu2lA3Al++n1WkNfbz2ozDDBqyBNyOIiv0DJefgHUo3evwHGaT8S6QI/llf4+Lx UiGntoWhjIl2/+j2Cm0Bg7CVlTeTvjFmeZtbXL4A+K0H+ipu/UcCW1TJtFFbOKZwPdrx idww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=VXy5XcFfJlq/V5VLFijoV81G9mgufTkPm86jCxynMTE=; b=BKSieaZw8Luh1JBzdUCplLiECg21fmH8Hl5iwGntfcTeJhBbnKiTt2rODhQU0ChDI4 EC0xBC/3poIJA8VnryR4GYfcn9MlstYNb56L1gdEz+NYdPuHrC3zL/NRwdONrATN/PBo IpYUS5t6dnAKKAX7fpTMizIgKncGcxX9mElCVkijMSwd/HGH4UXV0fQ5aLZ3ZbotlDOV hUCSNFOXD3St/y+u8l5AorkMsQZCoE4hwuSP0Ycod4plTxNUPaA97BKQ+sMLepDjOZ8l fw67C+tK5xa0xxBzRV6xICmrRa1V884lvczm81+I3RKwwmEsSUJQY1NshXQpl7qY+sj5 TQFw== X-Gm-Message-State: AOAM532TzJ1Ny0o5DrwwWwfRZs8XLUyTQoTMyaxPJ9NCXDBxX0T4Y/iM Z8aESewdFpVx81HXkA8St37SLtQSpBxb94aFP44= X-Google-Smtp-Source: ABdhPJz/X8IhMYOMT26nsjmuKvl0A3ZyTohdUlvmPVSVIlH4QZyaLpqKcXbWaa2GeWRJ8643lR8L1J7YE2JAso07w/A= X-Received: by 2002:a81:8983:0:b0:2dd:4537:4e9 with SMTP id z125-20020a818983000000b002dd453704e9mr34122677ywf.452.1648021929395; Wed, 23 Mar 2022 00:52:09 -0700 (PDT) MIME-Version: 1.0 References: <7536b9e1-de7a-a492-6951-485d4eb75df1@163.com> In-Reply-To: <7536b9e1-de7a-a492-6951-485d4eb75df1@163.com> From: Abder Date: Wed, 23 Mar 2022 08:51:58 +0100 Message-ID: Subject: Re: How to debug u-boot data abort To: qianfan Cc: 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.5 at phobos.denx.de X-Virus-Status: Clean Le mer. 23 mars 2022 =C3=A0 03:28, qianfan a =C3=A9= crit : > > Hi: > > I had a custom AM335X board connected my computer by usbnet. It always re= port > data abort when 'dhcp': > > Next it the log: > > U-Boot 2022.01-rc1-00183-gfa5b4e2d19-dirty (Feb 25 2022 - 15:45:02 +0800) > > CPU : AM335X-GP rev 2.1 > Model: WISDOM AM335X CCT > DRAM: 512 MiB > NAND: 256 MiB > MMC: OMAP SD/MMC: 0 > Loading Environment from NAND... *** Warning - bad CRC, using default env= ironment > > Net: Could not get PHY for ethernet@4a100000: addr 0 > eth2: ethernet@4a100000, eth3: usb_ether > Hit any key to stop autoboot: 0 > =3D> setenv autoload no > =3D> dhcp > using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in > MAC de:ad:be:ef:00:01 > HOST MAC de:ad:be:ef:00:00 > RNDIS ready > musb-hdrc: peripheral reset irq lost! > high speed config #2: 2 mA, Ethernet Gadget, using RNDIS > USB RNDIS network up! > BOOTP broadcast 1 > BOOTP broadcast 2 > BOOTP broadcast 3 > DHCP client bound to address 192.168.200.4 (757 ms) > data abort > pc : [<9fe9b0a2>] lr : [<9febbc3f>] > reloc pc : [<808130a2>] lr : [<80833c3f>] > sp : 9de53410 ip : 9de53578 fp : 00000001 > r10: 9de5345c r9 : 9de67e80 r8 : 9febbae5 > r7 : 9de72c30 r6 : 9feec710 r5 : 0000000d r4 : 00000018 > r3 : 3fdd8e04 r2 : 00000002 r1 : 9feec728 r0 : 9feec700 > Flags: Nzcv IRQs off FIQs on Mode SVC_32 (T) > Code: f023 0303 60ca 4403 (6091) 685a > Resetting CPU ... > Don't have any idea on what is causing the crash, but to answer your question about debugging data abort : from the reg dump, you can look at the PC and LR registers to see the function that caused the crash (in PC) and its caller (in LR) by using the .map file (generated after compilation). use the values of pc and lr ante relocation (the 2nd ligne in the dump above: reloc pc ...) Regards -- Abder > resetting ... > > > It's there has any doc about how to debug data abort? Or is the bug is al= ready > fixed? > > Thanks