cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
johnblackxilinx2
Contributor
Contributor
3,671 Views
Registered: ‎01-29-2019

problem on u-boot ( "Synchronous Abort" handler, esr 0x02000000 )

Hi all.

I have 3 custom boards (all of them are similar) based on zynqmp. i use vivado and petalinux 2019.1.

I built an image in petalinux and tested on three boards from SDcard. one of them at boot time report these:

Xilinx Zynq MP First Stage Boot Loader
Release 2019.1 Dec 9 2019 - 10:19:11
NOTICE: ATF running on XCZU5EG/silicon v4/RTL5.1 at 0xfffea000
NOTICE: BL31: Secure code at 0x0
NOTICE: BL31: Non secure code at 0x8000000
NOTICE: BL31: v2.0(release):xilinx-v2018.3-720-g80d1c790
NOTICE: BL31: Built : 10:19:36, Dec 9 2019
PMUFW: v1.1


U-Boot 2019.01 (Dec 09 2019 - 10:46:23 +0000)

Board: Xilinx ZynqMP
DRAM: 4 GiB
"Synchronous Abort" handler, esr 0x02000000
elr: 000000000806df00 lr : 0000000008000c88 (reloc)
elr: 000000007ff73f00 lr : 000000007ff06c88
x0 : 000000007ffe0000 x1 : 0000000000000000
x2 : 0000000000000000 x3 : 000000007ffe1000
x4 : 0000000000000000 x5 : 0000000000000000
x6 : ffffffffffffffff x7 : 0000000000000000
x8 : 0000000000000000 x9 : 0000000000000008
x10: 000000000a200023 x11: 0000000000000002
x12: 0000000000000002 x13: 00000000000071a8
x14: 00000000000f7c1c x15: 000000007ff07224
x16: 0000000000000000 x17: 0000000000000000
x18: 000000007de85de8 x19: 000000007ffe0000
x20: 0000000000020000 x21: 0000000000000000
x22: 0000000000000000 x23: 0000000000000000
x24: 000000007ff98000 x25: 00000000fffffff7
x26: 0000000000000000 x27: 0000000000000000
x28: 0000000000000000 x29: 000000007de7be30

Resetting CPU ...

but this image run correctlly on others; boot the kernel and rootfs.

i checked HW several times but I can find source of this exception error!.

it related to HW bug? or it needed some modification in image and configuration?

anyone can help me?

0 Kudos
8 Replies
watari
Teacher
Teacher
3,662 Views
Registered: ‎06-16-2013

Hi @johnblackxilinx2 

 

You must use same version to build u-boot, ATF, PMUFW, u-boot and linux kernel.

 

Best regards,

0 Kudos
johnblackxilinx2
Contributor
Contributor
3,643 Views
Registered: ‎01-29-2019

Hi, thanks for reply.

I used same version for all.

but i received exception error!

0 Kudos
watari
Teacher
Teacher
3,613 Views
Registered: ‎06-16-2013

Hi @johnblackxilinx2 

 

Is it true ?

 

>Xilinx Zynq MP First Stage Boot Loader
>Release 2019.1 Dec 9 2019 - 10:19:11
>NOTICE: ATF running on XCZU5EG/silicon v4/RTL5.1 at 0xfffea000
>NOTICE: BL31: Secure code at 0x0
>NOTICE: BL31: Non secure code at 0x8000000
>NOTICE: BL31: v2.0(release):xilinx-v2018.3-720-g80d1c790
>NOTICE: BL31: Built : 10:19:36, Dec 9 2019
>PMUFW: v1.1

 

It seems different version...

 

Best regards,

0 Kudos
johnblackxilinx2
Contributor
Contributor
3,556 Views
Registered: ‎01-29-2019

thanks for reply, but i rebuilt it again and received:

Xilinx Zynq MP First Stage Boot Loader
Release 2019.1 Jan 6 2020 - 08:13:26
NOTICE: ATF running on XCZU5EG/silicon v4/RTL5.1 at 0xfffea000
NOTICE: BL31: Secure code at 0x0
NOTICE: BL31: Non secure code at 0x8000000
NOTICE: BL31: v2.0(release):xilinx-v2019.1
NOTICE: BL31: Built : 05:00:06, Jan 7 2020
PMUFW: v1.1


U-Boot 2019.01 (Jan 07 2020 - 05:00:55 +0000)

Board: Xilinx ZynqMP
DRAM: 4 GiB
"Synchronous Abort" handler, esr 0x02000000
elr: 000000000806df00 lr : 0000000008000c88 (reloc)
elr: 000000007ff73f00 lr : 000000007ff06c88
x0 : 000000007ffe0000 x1 : 0000000000000000
x2 : 0000000000000000 x3 : 000000007ffe1000
x4 : 0000000000000000 x5 : 0000000000000000
x6 : ffffffffffffffff x7 : 0000000000000000
x8 : 0000000000000000 x9 : 0000000000000008
x10: 000000000a200023 x11: 0000000000000002
x12: 0000000000000002 x13: 00000000000071a8
x14: 00000000000f7c1c x15: 000000007ff07224
x16: 0000000000000000 x17: 0000000000000000
x18: 000000007de85de8 x19: 000000007ffe0000
x20: 0000000000020000 x21: 0000000000000000
x22: 0000000000000000 x23: 0000000000000000
x24: 000000007ff98000 x25: 00000000fffffff7
x26: 0000000000000000 x27: 0000000000000000
x28: 0000000000000000 x29: 000000007de7be30

Resetting CPU ...

I want to know where is the source of this exception.

0 Kudos
watari
Teacher
Teacher
3,524 Views
Registered: ‎06-16-2013

Hi @johnblackxilinx2 

 

Would you share whole boot log message or memory map of uImage ?

I'd like to investigate the route cause with EABI information...

 

Best regards,

0 Kudos
sandeepg
Moderator
Moderator
3,514 Views
Registered: ‎04-24-2017

Hi @johnblackxilinx2 ,

From you logs it's hagning at  elr: 000000000806df00 now you need to debug the u-boot.

  1. Save the u-boot build artifacts by adding below variable in project-spec/meta-user/conf/petalinuxbsp.conf
    RM_WORK_EXCLUDE += "u-boot-xlnx"
  2. Clean u-boot sstate and rebuild the u-boot
    $ petalinux-build -c u-boot-xlnx -x cleansstate
    $ petalinux-build -c u-boot-xlnx
  3. To debug more on u-boot add this below configs in project-spec/meta-user/recipes-bsp/u-boot/files/platform-top.h
    #define DEBUG
    #define CONFIG_SYS_INIT_RAM_SIZE 0x2000
    #define CONFIG_CMD_REGINFO
    #define CONFIG_PANIC_HANG
  4. Now you will have a u-boot file 
    $ build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+<commit_id>-r0/build/u-boot
  5. Open this u-boot file and check for address 000000000806df00 it will tell you which code is causing the problem.
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
neutrinoxy
Contributor
Contributor
1,208 Views
Registered: ‎04-06-2018

Hi @sandeepg,

I have the same issue after it tries to start the kernel. So I tried to follow your instructions in order to get the u-boot file using the CONFIG_CMD_REGINFO flag. However, the build fails, and the log file contains no error except the last one:

ERROR: oe_runmake failed

 So, I have no means for debugging this synchronous abort error. Do you have an idea about why this recipe fails to build?

Best regards.

0 Kudos
stephenm
Moderator
Moderator
1,151 Views
Registered: ‎09-12-2007

0 Kudos