Skip to contentSkip to conversation

arm: kirkwood: Enable uart0 dm-pre-reloc for Pogoplug V4 board

PATCH In review Tony Dinh 3 participants 6 messages Feb 10, 2023 – Feb 13, 2023 Arm (32-bit)

lore
Share & tools
lore

Tony Dinh

author
#0 lore raw

PATCH 1/1 arm: kirkwood: Enable uart0 dm-pre-reloc for Pogoplug V4 board

When DM_SERIAL is enabled, the device-tree tag u-boot,dm-pre-reloc is required for this board to boot over UART with kwboot. Enable this in kirkwood-pogoplug-series-4-u-boot.dtsi.

---

 arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi
arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi new file +7 -0
new file mode 100644
index 0000000000..f9e127234c
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2023 Tony Dinh <[email protected]>
+ */
+&uart0 {
+	u-boot,dm-pre-reloc;
+};
Signature · 1 line
2.30.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Tony Dinh

When DM_SERIAL is enabled, the device-tree tag u-boot,dm-pre-reloc is required for this board to boot over UART with kwboot. Enable this in kirkwood-pogoplug-series-4-u-boot.dtsi.

Thanks,
Stefan

Quoted 12 lines

---

  arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi | 7 +++++++
  1 file changed, 7 insertions(+)

create mode 100644 arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi

arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi new file +0 -0
new file mode 100644
index 0000000000..f9e127234c

arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi line 7

Quoted 7 lines
arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi new file +7 -0
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2023 Tony Dinh <[email protected]>
+ */
+&uart0 {
+	u-boot,dm-pre-reloc;
+};

Viele Grüße,
Stefan Roese

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#2 lore raw

Am 2023-02-13 09:43, schrieb Stefan Roese:

Quoted 8 lines · Tony Dinh
Quoted 5 lines

When DM_SERIAL is enabled, the device-tree tag u-boot,dm-pre-reloc is required for this board to boot over UART with kwboot. Enable this in kirkwood-pogoplug-series-4-u-boot.dtsi.

If I understood it correctly, this is a workaround, right? Maybe we can include a link to the original discussion here for the case when someone stumbles over this commit:

-michael

#3 lore raw

Hi Michael,

Quoted 8 lines · Michael Walle

Am 2023-02-13 09:43, schrieb Stefan Roese:

Quoted 7 lines · Tony Dinh
Quoted 5 lines

When DM_SERIAL is enabled, the device-tree tag u-boot,dm-pre-reloc is required for this board to boot over UART with kwboot. Enable this in kirkwood-pogoplug-series-4-u-boot.dtsi.

Quoted 7 lines
Quoted 1 line

If I understood it correctly, this is a workaround, right? Maybe we can include a link to the original discussion here for the case when someone stumbles over this commit:

Correct, it's not fully understood, why this property is really needed. Some bug still might be hidden in the early DT console code. Still we want to move forward with this board, so this dm-pre-reloc property helps here.

I'll add the link to the discussion to the commit text. Good idea.

Thanks,
Stefan

#5 lore raw
In reply to Tony Dinh
Quoted 5 lines · Tony Dinh

When DM_SERIAL is enabled, the device-tree tag u-boot,dm-pre-reloc is required for this board to boot over UART with kwboot. Enable this in kirkwood-pogoplug-series-4-u-boot.dtsi.

Applied to u-boot-marvell/master

Thanks,
Stefan

Quoted 12 lines

---

  arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi | 7 +++++++
  1 file changed, 7 insertions(+)

create mode 100644 arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi

arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi new file +0 -0
new file mode 100644
index 0000000000..f9e127234c

arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi line 7

Quoted 7 lines
arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi new file +7 -0
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (C) 2023 Tony Dinh <[email protected]>
+ */
+&uart0 {
+	u-boot,dm-pre-reloc;
+};

Viele Grüße,
Stefan Roese

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
author
#4 lore raw
In reply to Stefan Roese
Quoted 18 lines · Stefan Roese

Hi Michael,

Quoted 14 lines · Michael Walle

Am 2023-02-13 09:43, schrieb Stefan Roese:

Quoted 8 lines · Tony Dinh
Quoted 5 lines

When DM_SERIAL is enabled, the device-tree tag u-boot,dm-pre-reloc is required for this board to boot over UART with kwboot. Enable this in kirkwood-pogoplug-series-4-u-boot.dtsi.

If I understood it correctly, this is a workaround, right? Maybe we can include a link to the original discussion here for the case when someone stumbles over this commit:

Quoted 8 lines
Quoted 1 line

Correct, it's not fully understood, why this property is really needed. Some bug still might be hidden in the early DT console code. Still we want to move forward with this board, so this dm-pre-reloc property helps here.

I'll add the link to the discussion to the commit text. Good idea.

Thanks Stefan!

All the best,
Tony

Quoted 4 lines

Thanks,
Stefan