All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Ceresoli <luca@lucaceresoli.net>
To: buildroot@busybox.net
Subject: [Buildroot] Trouble with u-boot on a ZynqMP board
Date: Mon, 28 Jun 2021 18:47:09 +0200	[thread overview]
Message-ID: <07bd6c4b-ad67-bf4c-b32c-aff2d5d7637b@lucaceresoli.net> (raw)
In-Reply-To: <62bea3e6-dfdd-d230-e833-80775f065f83@lucaceresoli.net>

Hi Alvaro,

On 24/06/21 23:51, Luca Ceresoli wrote:
[...]
>>> I haven't been working on zynqmp recently but back at the times
>>> (2018~2019) one needed to have the various booting components "in sync",
>>> expecially pmufw, U-Boot and SPL or FSBL. I don't remember whether ATF
>>> was critical too in that respect. By "in sync" I mean the major version
>>> number (the year) should be the same.
>>>
>>> Here you are using a 2018 pmufw and 2021 U-Boot so you muight want to
>>> build a more recent pmufw and see if you get any improvements.
>>
>> Great, that's a nice idea, thank you!
> 
> Try that, which seems to be required:
> https://forums.xilinx.com/t5/Embedded-Linux/problem-on-u-boot-quot-Synchronous-Abort-quot-handler-esr/m-p/1060937/highlight/true#M39206

Did you make any progress?

I was able to build and test more recent versions of pmufw (2019.2 amd
2020.1) and pushed them to [0]. They are tested and working. Not sure
it's useful, but that's what I can provide at the moment.

I generated them with an unmodified zynqmp-pmufw-builder. You can do the
same to generate similar images but with debug messages enabled. Here's
a dirty patch to apply to the 'embeddedsw' submodule to enable _lots_ of
messages:

----------------------------8<----------------------------
diff --git a/lib/sw_apps/zynqmp_pmufw/src/pm_common.h
b/lib/sw_apps/zynqmp_pmufw/src/pm_common.h
index 1bed98e76630..3a06a15b62dc 100644
--- a/lib/sw_apps/zynqmp_pmufw/src/pm_common.h
+++ b/lib/sw_apps/zynqmp_pmufw/src/pm_common.h
@@ -52,6 +52,7 @@ typedef struct PmNode PmNode;
 #define PM_ERROR	2U
 #define PM_WARNING	3U
 #define PM_INFO		4U
+#define PM_LOG_LEVEL 4U /////////////////////////////////

 #if defined(PM_LOG_LEVEL) && (PM_LOG_LEVEL >= PM_INFO)
 	#define PmInfo(...)	pm_printf(__VA_ARGS__)
diff --git a/lib/sw_apps/zynqmp_pmufw/src/xpfw_config.h
b/lib/sw_apps/zynqmp_pmufw/src/xpfw_config.h
index 4816a2dfd06b..2420a7a47493 100644
--- a/lib/sw_apps/zynqmp_pmufw/src/xpfw_config.h
+++ b/lib/sw_apps/zynqmp_pmufw/src/xpfw_config.h
@@ -17,8 +17,8 @@ extern "C" {

 /* PMUFW print levels */
 #define XPFW_PRINT_VAL (1U)
-#define XPFW_DEBUG_ERROR_VAL (0U)
-#define XPFW_DEBUG_DETAILED_VAL (0U)
+#define XPFW_DEBUG_ERROR_VAL (1U)
+#define XPFW_DEBUG_DETAILED_VAL (1U)

 /**
  * PMUFW Debug options
----------------------------8<----------------------------

[0] https://github.com/lucaceresoli/zynqmp-pmufw-binaries/

-- 
Luca

  reply	other threads:[~2021-06-28 16:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-15  7:50 [Buildroot] Trouble with u-boot on a ZynqMP board Alvaro Gamez
2021-06-16 20:52 ` Luca Ceresoli
2021-06-22  5:58   ` Alvaro Gamez
2021-06-24 21:51     ` Luca Ceresoli
2021-06-28 16:47       ` Luca Ceresoli [this message]
2021-06-29  9:19         ` Alvaro Gamez
2021-06-29 21:32           ` Luca Ceresoli

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=07bd6c4b-ad67-bf4c-b32c-aff2d5d7637b@lucaceresoli.net \
    --to=luca@lucaceresoli.net \
    --cc=buildroot@busybox.net \
    /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.