All of lore.kernel.org
 help / color / mirror / Atom feed
* Failing to set up serial console for an s32v234-evb board (ARMv8)
@ 2017-02-22 12:40 Johannes.3.Horn
  2017-02-22 14:24 ` Julien Grall
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes.3.Horn @ 2017-02-22 12:40 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1949 bytes --]

Hi
I'm writing my master thesis about using hypervisors on automotive high 
performance plattforms. As a part of my work for the thesis I'm trying to 
set up xen on a s32v234-evb (ARMv8) board using u-boot 2016.01. But I 
can't find a way of getting any output after u-boot try's to start the xen 
kernel.

If I boot to the kernel which will be used as dom0 the console is working 
fine and I im able to use the board. Following the xen serial console wiki 
page I build following xen bootargs: "sync_console console=com1 
com1=115200,8n1,0x40053000,23 earlyprintk=xen dom0_mem=128M" as "dmesg | 
grep tty" returned 
[ 0.488454] 40053000.serial: ttyLF0 at MMIO 0x40053000 (irq = 23, 
base_baud = 4166666) is a FSL_LINFLEX
[ 2.445563] console [ttyLF0] enabled
[ 2.457893] 400bc000.serial: ttyLF1 at MMIO 0x400bc000 (irq = 36, 
base_baud = 4166666) is a FSL_LINFLEX

I also tryed to use "sync_console console=dtuart 
dtuart=/soc/aips-bus@40000000/serial@4005300 dom0_mem=128M" and 
"sync_console console=dtuart dtuart=serial0 dom0_mem=128M" as my dtb 
contains an alias for the first to serial0

The serial interface is defined as shown below within the dtb

=> fdt list /soc/aips-bus@40000000/serial@40053000
serial@40053000 {
        compatible = "fsl,s32v234-linflexuart";
        reg = <0x00000000 0x40053000 0x00000000 0x00001000>;
        interrupts = <0x00000000 0x0000003b 0x00000001>;
        clocks = <0x00000002 0x00000073 0x00000002 0x00000074>;
        clock-names = "lin", "ipg";
        dmas = <0x00000006 0x00000000 0x00000014 0x00000006 0x00000000 
0x00000013>;
        dma-names = "rx", "tx";
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <0x00000008>;
};

Mit freundlichen Grüßen / Best regards,
Johannes Horn
_______________
Johannes Horn
Continental Automotive GmbH
Corporate Systems & Technology

E-Mail: johannes03.horn@continental-corporation.com

[-- Attachment #1.2: Type: text/html, Size: 3488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 127 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Failing to set up serial console for an s32v234-evb board (ARMv8)
  2017-02-22 12:40 Failing to set up serial console for an s32v234-evb board (ARMv8) Johannes.3.Horn
@ 2017-02-22 14:24 ` Julien Grall
  0 siblings, 0 replies; 2+ messages in thread
From: Julien Grall @ 2017-02-22 14:24 UTC (permalink / raw)
  To: Johannes.3.Horn, xen-devel; +Cc: nd



On 22/02/17 12:40, Johannes.3.Horn@continental-corporation.com wrote:
> Hi

Hello,

> I'm writing my master thesis about using hypervisors on automotive high
> performance plattforms.  As a part of my work for the thesis I'm trying
> to set up xen on a s32v234-evb (ARMv8) board using u-boot 2016.01. But I
> can't find a way of getting any output after u-boot try's to start the
> xen kernel.
>
> If I boot to the kernel which will be used as dom0 the console is
> working fine and I im able to use the board. Following the xen serial
> console wiki page I build following xen bootargs: "sync_console
> console=com1 com1=115200,8n1,0x40053000,23 earlyprintk=xen
> dom0_mem=128M" as "dmesg | grep tty" returned
> [ 0.488454] 40053000.serial: ttyLF0 at MMIO 0x40053000 (irq = 23,
> base_baud = 4166666) is a FSL_LINFLEX
> [ 2.445563] console [ttyLF0] enabled
> [ 2.457893] 400bc000.serial: ttyLF1 at MMIO 0x400bc000 (irq = 36,
> base_baud = 4166666) is a FSL_LINFLEX
>
> I also tryed to use "sync_console console=dtuart
> dtuart=/soc/aips-bus@40000000/serial@4005300 dom0_mem=128M" and
> "sync_console console=dtuart dtuart=serial0 dom0_mem=128M" as my dtb
> contains an alias for the first to serial0
>
> The serial interface is defined as shown below within the dtb
>
> => fdt list /soc/aips-bus@40000000/serial@40053000
> serial@40053000 {
>         compatible = "fsl,s32v234-linflexuart";

Xen has no driver for this UART, so it would need to be added. I would 
recommend you to look at first implementing earlyprintk (see 
docs/misc/arm/early-printk.txt) and then a full UART driver.

For the UART driver, you can look to import the one from Linux.

Feel free to ask question if you are unsure how to proceed.

Cheers,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-22 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-22 12:40 Failing to set up serial console for an s32v234-evb board (ARMv8) Johannes.3.Horn
2017-02-22 14:24 ` Julien Grall

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.