From: qianfan <qianfanguijin@163.com>
To: Abder <koute102030@gmail.com>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>
Subject: Re: How to debug u-boot data abort
Date: Wed, 23 Mar 2022 15:59:30 +0800 [thread overview]
Message-ID: <ab5ff74b-8ac6-54c0-54a3-b7c4222adc91@163.com> (raw)
In-Reply-To: <CAHaxFpgjc7JxjhNfedkpk7TZFyYh0Vm=NhuK2hgoUSpMqT2pQg@mail.gmail.com>
在 2022/3/23 15:51, Abder 写道:
> Le mer. 23 mars 2022 à 03:28, qianfan <qianfanguijin@163.com> a écrit :
>> Hi:
>>
>> I had a custom AM335X board connected my computer by usbnet. It always report
>> 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 environment
>>
>> Net: Could not get PHY for ethernet@4a100000: addr 0
>> eth2: ethernet@4a100000, eth3: usb_ether
>> Hit any key to stop autoboot: 0
>> => setenv autoload no
>> => 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 ...)
Hi:
Thanks for your's guide. I had this data abort message:
data abort
pc : [<9ff8196c>] lr : [<9ffa1cd7>]
reloc pc : [<8081496c>] lr : [<80834cd7>]
and found the pc and lc address in u-boot.map:
.text.env_attr_walk
0x0000000080834c54 0xb4 env/built-in.o
0x0000000080834c54 env_attr_walk
.text.malloc 0x0000000080814900 0x420 common/built-in.o
0x0000000080814900 malloc
Is means that data abort when 'malloc' called from env_attr_walk? It's there has
a better way that can dump stack?
>
> Regards
> --
> Abder
>
>> resetting ...
>>
>>
>> It's there has any doc about how to debug data abort? Or is the bug is already
>> fixed?
>>
>> Thanks
prev parent reply other threads:[~2022-03-23 7:59 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-23 2:28 How to debug u-boot data abort qianfan
2022-03-23 7:45 ` qianfan
2022-03-23 8:02 ` data abort when run 'dhcp' qianfan
2022-03-23 9:13 ` qianfan
2022-03-23 9:51 ` Heinrich Schuchardt
2022-03-23 10:07 ` qianfan
2022-03-23 10:12 ` Heinrich Schuchardt
2022-03-23 11:54 ` qianfanguijin
2022-03-24 1:23 ` qianfan
2022-03-24 9:33 ` qianfan
2022-03-25 10:04 ` qianfan
2023-07-20 16:39 ` Miquel Raynal
2023-07-20 17:55 ` Heinrich Schuchardt
2023-07-21 11:54 ` Miquel Raynal
2023-07-20 18:34 ` Tom Rini
2023-07-21 11:55 ` Miquel Raynal
2023-07-21 0:31 ` qianfan
2023-07-21 22:26 ` Miquel Raynal
2022-03-23 8:27 ` How to debug u-boot data abort Heinrich Schuchardt
2022-03-24 3:18 ` AKASHI Takahiro
2022-03-24 7:38 ` qianfan
2022-03-23 7:51 ` Abder
2022-03-23 7:59 ` qianfan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ab5ff74b-8ac6-54c0-54a3-b7c4222adc91@163.com \
--to=qianfanguijin@163.com \
--cc=koute102030@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.