Skip to content

Introduce low-level debug for ARM architecture

Przemyslaw Marczak u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest0 of 6 patches 0 repliesNew

Patches in v2 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchPrzemyslaw Marczak
SeriesT-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 0/6] Introduce low-level debug for ARM architecture

Hello Masahiro,

Quoted 41 lines · Masahiro Yamada

I have been in trouble for a while to debug some nasty problem where neighter a debugger nor printf() function is available.

I found the lowlevel debug feature in ARM Linux can be used as is in U-Boot too.

I tested this series on our SoCs (32bit ARM, specificly Coretex-A9). Because I was not sure about aarch64, I have this feature depend on "! ARM64".

1/6 and 2/6 refactor a bit and move CONFIG_ARM64 to Kconfig.

3/6 imports some source files from Linux 3.16 and
5/6 adds the Kconfig menu.

Masahiro Yamada (6):
vexpress64: kconfig: consolidate CONFIG_TARGET_VEXPRESS_AEMV8A_SEMI
kconfig: armv8: move CONFIG_ARM64 to Kconfig
arm: debug: import debug files from Linux 3.16
arm: debug: replace license blocks with SPDX
arm: debug: add Kconfig entries for lowlevel debug
arm: debug: adjust for U-Boot

  arch/arm/Kconfig                       |  13 +-
  arch/arm/Kconfig.debug                 |  64 ++++++
  arch/arm/cpu/armv8/Kconfig             |   7 +
  arch/arm/include/debug/8250.S          |  52 +++++
  arch/arm/lib/Makefile                  |   2 +
  arch/arm/lib/debug.S                   | 136 ++++++++++++
  board/armltd/vexpress64/Kconfig        |  24 --
  board/freescale/ls2085a/Kconfig        |   8 -
  configs/ls2085a_emu_D4_defconfig       |   2 +-
  configs/ls2085a_emu_defconfig          |   2 +-
  configs/ls2085a_simu_defconfig         |   2 +-
  configs/vexpress_aemv8a_defconfig      |   1 -
  configs/vexpress_aemv8a_semi_defconfig |   4 +-
  include/linux/serial_reg.h             | 388 +++++++++++++++++++++++++++++++++
  14 files changed, 664 insertions(+), 41 deletions(-)
Quoted 6 lines

create mode 100644 arch/arm/Kconfig.debug create mode 100644 arch/arm/cpu/armv8/Kconfig create mode 100644 arch/arm/include/debug/8250.S create mode 100644 arch/arm/lib/debug.S create mode 100644 include/linux/serial_reg.h

Tested on Trats2(Exynos4412) - works fine.

Best Regards,

Signature · 4 lines
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com