Skip to contentSkip to conversation

xen:arm earlyprintk configuration for Hikey 960 boards

PATCH In review Konrad Rzeszutek Wilk 3 participants 7 messages Jul 26, 2017 – Jul 31, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen:arm earlyprintk configuration for Hikey 960 boards

Introduce an earlyprintk configuration of Hikey 960 boards.

Tested with:
https://github.com/96boards-hikey/edk2.git #testing/hikey960_v2.5
https://github.com/96boards-hikey/OpenPlatformPkg.git #testing/hikey960_v1.3.4
https://git.savannah.gnu.org/git/grub.git #master
https://github.com/96boards-hikey/linux.git #hikey960-upstream-rebase

For GRUB, the following stanza was used:

GRUB_MODULES="boot chain configfile echo efinet eval ext2 fat font gettext gfxterm gzio help linux loadenv lsefi normal part_gpt par t_msdos read regexp search search_fs_file search_fs_uuid search_label terminal terminfo test tftp time xen_boot"

grub-install/usr/bin/grub-mkimage \
                --config grub.config \
                --dtb linux/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb \
                --directory=grub/usr/lib64/grub/arm64-efi \
                --output=grubaa64.efi \
                --format=arm64-efi \
                --prefix="/boot/grub" \
                $GRUB_MODULES

And grub.config:
search.fs_label rootfs root

set prefix=($root)/boot/grub
configfile $prefix/grub.cfg

---
 docs/misc/arm/early-printk.txt | 1 +
 xen/arch/arm/Rules.mk          | 1 +
 2 files changed, 2 insertions(+)
docs/misc/arm/early-printk.txt +1 -0
index 41b528b9fa..61c5ad9eac 100644
@@ -49,6 +49,7 @@ the name of the machine:
   - xgene-mcdivitt: printk with 820 on Xgene mcdivitt platform
   - xgene-storm: printk with 820 on Xgene storm platform
   - zynqmp: printk with Cadence UART for Xilinx ZynqMP SoCs
+  - hikey960: printk with pl011 with Hikey 960
 
 These settings are is hardcoded in xen/arch/arm/Rules.mk,
 see there when adding support for new machines.
xen/arch/arm/Rules.mk +1 -0
index 569a0badc8..faae29262e 100644
@@ -44,6 +44,7 @@ EARLY_PRINTK_vexpress       := pl011,0x1c090000
 EARLY_PRINTK_xgene-mcdivitt := 8250,0x1c021000,2
 EARLY_PRINTK_xgene-storm    := 8250,0x1c020000,2
 EARLY_PRINTK_zynqmp         := cadence,0xff000000
+EARLY_PRINTK_hikey960       := pl011,0xfff32000
 
 ifneq ($(EARLY_PRINTK_$(CONFIG_EARLY_PRINTK)),)
 EARLY_PRINTK_CFG := $(subst $(comma), ,$(EARLY_PRINTK_$(CONFIG_EARLY_PRINTK)))
Signature · 7 lines
2.13.3


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw

Hi Konrad,

Quoted 22 lines · Konrad Rzeszutek Wilk

Introduce an earlyprintk configuration of Hikey 960 boards.

Tested with:
https://github.com/96boards-hikey/edk2.git #testing/hikey960_v2.5
https://github.com/96boards-hikey/OpenPlatformPkg.git #testing/hikey960_v1.3.4
https://git.savannah.gnu.org/git/grub.git #master
https://github.com/96boards-hikey/linux.git #hikey960-upstream-rebase

For GRUB, the following stanza was used:

GRUB_MODULES="boot chain configfile echo efinet eval ext2 fat font gettext gfxterm gzio help linux loadenv lsefi normal part_gpt par t_msdos read regexp search search_fs_file search_fs_uuid search_label terminal terminfo test tftp time xen_boot"

grub-install/usr/bin/grub-mkimage \
                --config grub.config \
                --dtb linux/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb \
                --directory=grub/usr/lib64/grub/arm64-efi \
                --output=grubaa64.efi \
                --format=arm64-efi \
                --prefix="/boot/grub" \
                $GRUB_MODULES
Quoted 5 lines

And grub.config:
search.fs_label rootfs root

set prefix=($root)/boot/grub
configfile $prefix/grub.cfg

Would it be possible to update the wiki page on the hikey [1] with your latest finding?

Quoted 12 lines
---
 docs/misc/arm/early-printk.txt | 1 +
 xen/arch/arm/Rules.mk          | 1 +
 2 files changed, 2 insertions(+)
docs/misc/arm/early-printk.txt +0 -0
index 41b528b9fa..61c5ad9eac 100644

docs/misc/arm/early-printk.txt the name of the machine: · line 52

Quoted 4 lines
docs/misc/arm/early-printk.txt +1 -0
@@ -49,6 +49,7 @@ the name of the machine:
   - xgene-mcdivitt: printk with 820 on Xgene mcdivitt platform
   - xgene-storm: printk with 820 on Xgene storm platform
   - zynqmp: printk with Cadence UART for Xilinx ZynqMP SoCs
+  - hikey960: printk with pl011 with Hikey 960

Please order it alphabetically

xen/arch/arm/Rules.mk EARLY_PRINTK_vexpress := pl011,0x1c090000 · line 47

Quoted 12 lines
docs/misc/arm/early-printk.txt +0 -0
 These settings are is hardcoded in xen/arch/arm/Rules.mk,
 see there when adding support for new machines.
xen/arch/arm/Rules.mk +1 -0
index 569a0badc8..faae29262e 100644
@@ -44,6 +44,7 @@ EARLY_PRINTK_vexpress       := pl011,0x1c090000
 EARLY_PRINTK_xgene-mcdivitt := 8250,0x1c021000,2
 EARLY_PRINTK_xgene-storm    := 8250,0x1c020000,2
 EARLY_PRINTK_zynqmp         := cadence,0xff000000
+EARLY_PRINTK_hikey960       := pl011,0xfff32000

Ditto. With that:

Cheers,

[1] https://wiki.xenproject.org/wiki/HiKey

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Reviewed-by
#2 lore raw
Quoted 72 lines · Julien Grall

Hi Konrad,

Quoted 26 lines · Konrad Rzeszutek Wilk

Introduce an earlyprintk configuration of Hikey 960 boards.

Tested with:
https://github.com/96boards-hikey/edk2.git #testing/hikey960_v2.5
https://github.com/96boards-hikey/OpenPlatformPkg.git
#testing/hikey960_v1.3.4
https://git.savannah.gnu.org/git/grub.git #master
https://github.com/96boards-hikey/linux.git #hikey960-upstream-rebase

For GRUB, the following stanza was used:

GRUB_MODULES="boot chain configfile echo efinet eval ext2 fat font gettext gfxterm gzio help linux loadenv lsefi normal part_gpt par t_msdos read regexp search search_fs_file search_fs_uuid search_label terminal terminfo test tftp time xen_boot"

grub-install/usr/bin/grub-mkimage \
                --config grub.config \
                --dtb
linux/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb \
                --directory=grub/usr/lib64/grub/arm64-efi \
                --output=grubaa64.efi \
                --format=arm64-efi \
                --prefix="/boot/grub" \
                $GRUB_MODULES
Quoted 5 lines

And grub.config:
search.fs_label rootfs root

set prefix=($root)/boot/grub
configfile $prefix/grub.cfg

Would it be possible to update the wiki page on the hikey [1] with your latest finding?

Quoted 12 lines
---
 docs/misc/arm/early-printk.txt | 1 +
 xen/arch/arm/Rules.mk          | 1 +
 2 files changed, 2 insertions(+)
docs/misc/arm/early-printk.txt +0 -0
index 41b528b9fa..61c5ad9eac 100644

docs/misc/arm/early-printk.txt the name of the machine: · line 52

Quoted 4 lines
docs/misc/arm/early-printk.txt +1 -0
@@ -49,6 +49,7 @@ the name of the machine:
   - xgene-mcdivitt: printk with 820 on Xgene mcdivitt platform
   - xgene-storm: printk with 820 on Xgene storm platform
   - zynqmp: printk with Cadence UART for Xilinx ZynqMP SoCs
+  - hikey960: printk with pl011 with Hikey 960

Please order it alphabetically

xen/arch/arm/Rules.mk EARLY_PRINTK_vexpress := pl011,0x1c090000 · line 47

Quoted 12 lines
docs/misc/arm/early-printk.txt +0 -0
 These settings are is hardcoded in xen/arch/arm/Rules.mk,
 see there when adding support for new machines.
xen/arch/arm/Rules.mk +1 -0
index 569a0badc8..faae29262e 100644
@@ -44,6 +44,7 @@ EARLY_PRINTK_vexpress       := pl011,0x1c090000
 EARLY_PRINTK_xgene-mcdivitt := 8250,0x1c021000,2
 EARLY_PRINTK_xgene-storm    := 8250,0x1c020000,2
 EARLY_PRINTK_zynqmp         := cadence,0xff000000
+EARLY_PRINTK_hikey960       := pl011,0xfff32000

Ditto. With that:

Quoted 1 line

I'll fix on commit.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#3 lore raw
In reply to Julien Grall
Quoted 4 lines · Julien Grall

Hi Konrad,

Quoted 1 line · Konrad Rzeszutek Wilk

Introduce an earlyprintk configuration of Hikey 960 boards.

..snip..

Quoted 3 lines

Would it be possible to update the wiki page on the hikey [1] with your latest finding?

I added a whole new web-page:
https://wiki.xenproject.org/wiki/HiKey960

As the HiKey != HiKey960

[Also updated the landing page https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions
to point to this new one]

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#4 lore raw

Hi Konrad,

Quoted 8 lines · Konrad Rzeszutek Wilk
Quoted 4 lines · Julien Grall

Hi Konrad,

Quoted 1 line · Konrad Rzeszutek Wilk

Introduce an earlyprintk configuration of Hikey 960 boards.

..snip..

Quoted 1 line
Quoted 7 lines
Quoted 2 lines

Would it be possible to update the wiki page on the hikey [1] with your latest finding?

I added a whole new web-page:
https://wiki.xenproject.org/wiki/HiKey960

As the HiKey != HiKey960

Oh :). Fine then. Would you be up to do testing on this platform during RC?

If you can you add your name in [1]. This would help user to know the board has been tested with latest release.

Quoted 4 lines

[Also updated the landing page https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions
to point to this new one]

Cheers,

[1] https://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#5 lore raw
Quoted 14 lines · Julien Grall

Hi Konrad,

Quoted 11 lines · Konrad Rzeszutek Wilk
Quoted 4 lines · Julien Grall

Hi Konrad,

Quoted 1 line · Konrad Rzeszutek Wilk

Introduce an earlyprintk configuration of Hikey 960 boards.

..snip..

Quoted 3 lines

Would it be possible to update the wiki page on the hikey [1] with your latest finding?

Quoted 6 lines
Quoted 4 lines

I added a whole new web-page:
https://wiki.xenproject.org/wiki/HiKey960

As the HiKey != HiKey960

Oh :). Fine then. Would you be up to do testing on this platform during RC?

Yes.

Quoted 5 lines

If you can you add your name in [1]. This would help user to know the board has been tested with latest release.

Quoted 1 line
Quoted 10 lines
Quoted 3 lines

[Also updated the landing page https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions
to point to this new one]

Cheers,

[1] https://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

Signature · 1 line
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#6 lore raw
Quoted 15 lines · Konrad Rzeszutek Wilk
Quoted 14 lines · Julien Grall

Hi Konrad,

Quoted 11 lines · Konrad Rzeszutek Wilk
Quoted 4 lines · Julien Grall

Hi Konrad,

Quoted 1 line · Konrad Rzeszutek Wilk

Introduce an earlyprintk configuration of Hikey 960 boards.

..snip..

Quoted 3 lines

Would it be possible to update the wiki page on the hikey [1] with your latest finding?

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

I added a whole new web-page:
https://wiki.xenproject.org/wiki/HiKey960

As the HiKey != HiKey960

Oh :). Fine then. Would you be up to do testing on this platform during RC?

Yes.

Thank you!

Quoted 15 lines
Quoted 15 lines

If you can you add your name in [1]. This would help user to know the board has been tested with latest release.

Quoted 4 lines

[Also updated the landing page https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions
to point to this new one]

Cheers,

[1] https://wiki.xenproject.org/wiki/Xen_ARM_Manual_Smoke_Test/Results

--
Julien Grall

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel