Skip to contentSkip to conversation

arm64, armhf: Use dtuart for console by default

PATCH In review Ian Jackson 2 participants 2 messages May 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64, armhf: Use dtuart for console by default

We don't want to have to set a host property for each ARM host.

Julien writes:

This command line should always work for arm64. If the device-tree does not provide the property then it is a bug. We want the command line to be as agnostic as possible from the platform.

---
 ts-xen-install | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
ts-xen-install +3 -1
index 9eb2131..3ab6090 100755
@@ -145,7 +145,9 @@ sub adjustconfig () {
 sub setupboot () {
     my $xenhopt= "conswitch=x watchdog noreboot";
 
-    my $cons= get_host_property($ho, 'XenSerialConsole', 'com1');
+    my $cons= get_host_property($ho, 'XenSerialConsole',
+				$r{arch} =~ m/^arm/ ? 'dtuart'
+				: 'com1');
 
     if ( $cons eq "com1" ) {
 	$xenhopt .= " com1=$c{Baud},8n1 console=com1,vga gdb=com1";
Signature · 7 lines
2.1.4


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

Hi Ian,

Quoted 6 lines · Ian Jackson

We don't want to have to set a host property for each ARM host.

Julien writes:

This command line should always work for arm64. If the device-tree does not provide the property then it is a bug. We want the command

NIT: "does not provide the property 'stdout-path' "

Quoted 4 lines

line to be as agnostic as possible from the platform.

FWIW:

Cheers,

Signature · 6 lines
Julien Grall

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