Re: [Xen-devel] [PATCH v1] earlyprintk configuration for rk3399 boards

2018-07-23 Thread Ihor Matushchak
Julien,

Got it, thanks.

*BR,*
*Ihor Matushchak*

2018-07-23 17:59 GMT+03:00 Julien Grall :

>
>
> On 23/07/18 15:47, Ihor Matushchak wrote:
>
>> Hi Julien,
>>
>
> Hi Ihor,
>
>
>> Sure, I would be glad to do that.
>>
>> I suppose it should be placed somewhere on wiki.xenproject.org <
>> http://wiki.xenproject.org>?
>>
>
> We usually create a new platform under https://wiki.xenproject.org/wi
> ki/Xen_ARM_with_Virtualization_Extensions
>
> We can then add a link on the main page to the documentation of the rk3399.
>
> Cheers,
>
> /
>> /
>> /BR,/
>> /Ihor Matushchak/
>>
>> 2018-07-23 17:33 GMT+03:00 Julien Grall > julien.gr...@arm.com>>:
>>
>> On 06/07/18 12:04, Ігор Матущак wrote:
>>
>> Hello Julien,
>>
>>
>> Hi Ihor,
>>
>> Sorry for the late reply.
>>
>>
>> I suppose there is no such documentation, at least I didn't find
>> any.
>> Bringing up XEN 4.10.0 on RK3399 is my pet-project.
>> My current target board is Ibox3399
>> > ox3399-2GB-DDR3-16GB-EMMC-Six-Core-A72-A53-Mali-T860-GPU-
>> Android6/32816273232.html
>> > ox3399-2GB-DDR3-16GB-EMMC-Six-Core-A72-A53-Mali-T860-GPU-
>> Android6/32816273232.html>>
>>
>> At the moment I got dom0 running on this board and some test
>> guest domain (both 4.4 kernels).
>> Actually no changes made to XEN (except earlyprintk) at the
>> moment, Xen works from the box.
>>
>>
>> Glad to see Xen booting out of box on RK3399 :).
>>
>> The alias is only for convience. It would be possible to do the same
>> with 8250,0xff1a,2.
>>
>> So instead of that patch, I would suggest to write down a
>> documentation for booting Xen on the board and early debugging.
>>
>> What do you think?
>>
>> Cheers,
>>
>>
>> /BR,/
>> /Ihor Matushchak/
>>
>> 2018-07-06 13:36 GMT+03:00 Julien Grall >  > >>:
>>
>>  Hello,
>>
>>  On 04/07/18 21:55, ihor.matushc...@foobox.net
>> 
>>  > > wrote:
>>
>>  From: Ihor Matushchak > 
>>  > >>
>>
>>  This patch enables earlyprintk for Rockchip rk3399
>> based SoC.
>>
>>  Is there any missing pieces in Xen to boot on Rockchip? I
>> would also
>>  quite like to see some documentation how to boot Xen on
>> that platform.
>>
>>  Cheers,
>>
>>
>>
>>  Ihor Matushchak (1):
>>  xen:arm:earlyprintk configuration for rk3399 boards
>>
>> docs/misc/arm/early-printk.txt | 1 +
>> xen/arch/arm/Rules.mk  | 1 +
>> 2 files changed, 2 insertions(+)
>>
>>
>>  -- Julien Grall
>>
>>
>>
>> -- Julien Grall
>>
>>
>>
> --
> Julien Grall
>
___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH v1] earlyprintk configuration for rk3399 boards

2018-07-23 Thread Julien Grall



On 23/07/18 15:47, Ihor Matushchak wrote:

Hi Julien,


Hi Ihor,



Sure, I would be glad to do that.

I suppose it should be placed somewhere on wiki.xenproject.org 
?


We usually create a new platform under 
https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions


We can then add a link on the main page to the documentation of the rk3399.

Cheers,


/
/
/BR,/
/Ihor Matushchak/

2018-07-23 17:33 GMT+03:00 Julien Grall >:


On 06/07/18 12:04, Ігор Матущак wrote:

Hello Julien,


Hi Ihor,

Sorry for the late reply.


I suppose there is no such documentation, at least I didn't find
any.
Bringing up XEN 4.10.0 on RK3399 is my pet-project.
My current target board is Ibox3399

>

At the moment I got dom0 running on this board and some test
guest domain (both 4.4 kernels).
Actually no changes made to XEN (except earlyprintk) at the
moment, Xen works from the box.


Glad to see Xen booting out of box on RK3399 :).

The alias is only for convience. It would be possible to do the same
with 8250,0xff1a,2.

So instead of that patch, I would suggest to write down a
documentation for booting Xen on the board and early debugging.

What do you think?

Cheers,


/BR,/
/Ihor Matushchak/

2018-07-06 13:36 GMT+03:00 Julien Grall mailto:julien.gr...@arm.com> >>:

     Hello,

     On 04/07/18 21:55, ihor.matushc...@foobox.net

     > wrote:

         From: Ihor Matushchak mailto:ihor.matushc...@foobox.net>
         >>

         This patch enables earlyprintk for Rockchip rk3399
based SoC.

     Is there any missing pieces in Xen to boot on Rockchip? I
would also
     quite like to see some documentation how to boot Xen on
that platform.

     Cheers,



         Ihor Matushchak (1):
             xen:arm:earlyprintk configuration for rk3399 boards

            docs/misc/arm/early-printk.txt | 1 +
            xen/arch/arm/Rules.mk          | 1 +
            2 files changed, 2 insertions(+)


     --     Julien Grall



-- 
Julien Grall





--
Julien Grall

___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH v1] earlyprintk configuration for rk3399 boards

2018-07-23 Thread Ihor Matushchak
Hi Julien,

Sure, I would be glad to do that.

I suppose it should be placed somewhere on wiki.xenproject.org?

*BR,*
*Ihor Matushchak*

2018-07-23 17:33 GMT+03:00 Julien Grall :

> On 06/07/18 12:04, Ігор Матущак wrote:
>
>> Hello Julien,
>>
>
> Hi Ihor,
>
> Sorry for the late reply.
>
>
>> I suppose there is no such documentation, at least I didn't find any.
>> Bringing up XEN 4.10.0 on RK3399 is my pet-project.
>> My current target board is Ibox3399 > em/RK3399-Development-Board-Ibox3399-2GB-DDR3-16GB-EMMC-Six-
>> Core-A72-A53-Mali-T860-GPU-Android6/32816273232.html>
>>
>> At the moment I got dom0 running on this board and some test guest domain
>> (both 4.4 kernels).
>> Actually no changes made to XEN (except earlyprintk) at the moment, Xen
>> works from the box.
>>
>
> Glad to see Xen booting out of box on RK3399 :).
>
> The alias is only for convience. It would be possible to do the same with
> 8250,0xff1a,2.
>
> So instead of that patch, I would suggest to write down a documentation
> for booting Xen on the board and early debugging.
>
> What do you think?
>
> Cheers,
>
>
>> /BR,/
>> /Ihor Matushchak/
>>
>> 2018-07-06 13:36 GMT+03:00 Julien Grall > julien.gr...@arm.com>>:
>>
>> Hello,
>>
>> On 04/07/18 21:55, ihor.matushc...@foobox.net
>>  wrote:
>>
>> From: Ihor Matushchak > >
>>
>> This patch enables earlyprintk for Rockchip rk3399 based SoC.
>>
>> Is there any missing pieces in Xen to boot on Rockchip? I would also
>> quite like to see some documentation how to boot Xen on that platform.
>>
>> Cheers,
>>
>>
>>
>> Ihor Matushchak (1):
>> xen:arm:earlyprintk configuration for rk3399 boards
>>
>>docs/misc/arm/early-printk.txt | 1 +
>>xen/arch/arm/Rules.mk  | 1 +
>>2 files changed, 2 insertions(+)
>>
>>
>> -- Julien Grall
>>
>>
>>
> --
> Julien Grall
>
___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH v1] earlyprintk configuration for rk3399 boards

2018-07-23 Thread Julien Grall

On 06/07/18 12:04, Ігор Матущак wrote:

Hello Julien,


Hi Ihor,

Sorry for the late reply.



I suppose there is no such documentation, at least I didn't find any.
Bringing up XEN 4.10.0 on RK3399 is my pet-project.
My current target board is Ibox3399 



At the moment I got dom0 running on this board and some test guest 
domain (both 4.4 kernels).
Actually no changes made to XEN (except earlyprintk) at the moment, Xen 
works from the box.


Glad to see Xen booting out of box on RK3399 :).

The alias is only for convience. It would be possible to do the same 
with 8250,0xff1a,2.


So instead of that patch, I would suggest to write down a documentation 
for booting Xen on the board and early debugging.


What do you think?

Cheers,



/BR,/
/Ihor Matushchak/

2018-07-06 13:36 GMT+03:00 Julien Grall >:


Hello,

On 04/07/18 21:55, ihor.matushc...@foobox.net
 wrote:

From: Ihor Matushchak mailto:ihor.matushc...@foobox.net>>

This patch enables earlyprintk for Rockchip rk3399 based SoC.

Is there any missing pieces in Xen to boot on Rockchip? I would also
quite like to see some documentation how to boot Xen on that platform.

Cheers,



Ihor Matushchak (1):
    xen:arm:earlyprintk configuration for rk3399 boards

   docs/misc/arm/early-printk.txt | 1 +
   xen/arch/arm/Rules.mk          | 1 +
   2 files changed, 2 insertions(+)


-- 
Julien Grall





--
Julien Grall

___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH v1] earlyprintk configuration for rk3399 boards

2018-07-06 Thread Ігор Матущак
Hello Julien,

I suppose there is no such documentation, at least I didn't find any.
Bringing up XEN 4.10.0 on RK3399 is my pet-project.
My current target board is Ibox3399


At the moment I got dom0 running on this board and some test guest domain
(both 4.4 kernels).
Actually no changes made to XEN (except earlyprintk) at the moment, Xen
works from the box.

Some boot logs attached.

*BR,*
*Ihor Matushchak*

2018-07-06 13:36 GMT+03:00 Julien Grall :

> Hello,
>
> On 04/07/18 21:55, ihor.matushc...@foobox.net wrote:
>
>> From: Ihor Matushchak 
>>
>> This patch enables earlyprintk for Rockchip rk3399 based SoC.
>>
> Is there any missing pieces in Xen to boot on Rockchip? I would also quite
> like to see some documentation how to boot Xen on that platform.
>
> Cheers,
>
>
>
>> Ihor Matushchak (1):
>>xen:arm:earlyprintk configuration for rk3399 boards
>>
>>   docs/misc/arm/early-printk.txt | 1 +
>>   xen/arch/arm/Rules.mk  | 1 +
>>   2 files changed, 2 insertions(+)
>>
>>
> --
> Julien Grall
>
???DDR Version 1.07 20161103
In
Channel 0: DDR3, 666MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: DDR3, 666MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
ch 1 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x3AA17AA1, stride = 0xD
OUT
Boot1: 2016-07-29, version: 1.05
CPUId = 0x0
ChipType = 10 1836
SdmmcInit=2 0
BootCapSize=10
UserCapSize=14910MB
FwPartOffset=2000 , 10
SdmmcInit=0 0
BootCapSize=0
UserCapSize=15193MB
FwPartOffset=0 , 0
StorageInit ok = 181498
LoadTrustBL
No find bl30.bin
No find bl32.bin
theLoader 20 202520
LoaderFlag2: 0x0

WARNING: plat_rockchip_comm_sram_init:code:ff8d9000, 67000, ef0
NOTICE:  BL31: v1.2(debug):b995f80
NOTICE:  BL31: Built : 16:53:56, Nov  7 2016
INFO:GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO:boot cpu mask: 0
INFO:Vesion: 2016.0.01
INFO:plat_rockchip_pmu_init(1211): pd status 3e
INFO:BL31: Initializing runtime services
INFO:BL31: Preparing for EL3 exit to normal world
INFO:Entry point address = 0x20
INFO:SPSR = 0x3c9


U-Boot 2017.09-01503-g877f3f4 (May 13 2018 - 14:14:26 +0300)

Model: Rockchip RK3399 Evaluation Board
DRAM:  3.9 GiB
Relocation Offset is: f7d16000
PMIC:  RK0
MMC:   dwmmc@fe32: 1, sdhci@fe33: 0
invalid parameter
In:serial
Out:   serial
Err:   serial
Model: Rockchip RK3399 Evaluation Board
invalid parameter
switch to partitions #0, OK
mmc0(part 0) is current device
invalid parameter
get part misc fail -1
Net:   eth0: ethernet@fe30
Hit any key to stop autoboot:  0 
invalid parameter
reading rk3399-boot/xen4.10-uImage
885136 bytes read in 44 ms (19.2 MiB/s)
reading rk3399-boot/x3399-dom0-development-board.dtb
7 bytes read in 9 ms (7.7 MiB/s)
reading rk3399-boot/dom0-Image
19195280 bytes read in 824 ms (22.2 MiB/s)
## Booting kernel from Legacy Image at 0200 ...
   Image Name:   
   Image Type:   AArch64 Linux Kernel Image (uncompressed)
   Data Size:885072 Bytes = 864.3 KiB
   Load Address: 0200
   Entry Point:  0200
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01f0
   Booting using the fdt blob at 0x1f0
   Loading Kernel Image ... OK
   Loading Device Tree to f5eeb000, end f5effa1d ... OK
Adding bank: start=0x0020, size=0xf7e0

Starting kernel ...

- UART enabled -
- CPU  booting -
- Current EL 0008 -
- Xen starting at EL2 -
- Zero BSS -
- Setting up control registers -
- Turning on paging -
- Ready -
(XEN) Checking for initrd in /chosen
(XEN) RAM: 0020 - f7ff
(XEN) 
(XEN) MODULE[0]: f5eeb000 - f5efd000 Device Tree  
(XEN) MODULE[1]: 03f8 - 05f8 Kernel   
(XEN)  RESVD[0]: f5eeb000 - f5efd000
(XEN) 
(XEN) Command line: storagemedia=emmc androidboot.mode=emmc dom0_mem=512M console=dtuart dtuart=serial0 dom0_max_vcpus4
(XEN) parameter "storagemedia" unknown!
(XEN) parameter "androidboot.mode" unknown!
(XEN) parameter "flask_enforcing" unknown!
(XEN) Placing Xen at 0xf7e0-0xf800
(XEN) Update BOOTMOD_XEN from 0200-02120d81 => f7e0-f7f20d81
(XEN) Domain heap initialised
(XEN) Booting using Device Tree
(XEN) Platform: Generic System
(XEN) Looking for dtuart at "serial0", options ""
 Xen 4.10.0
(XEN) Xen version 4.10.0 (imatushchak@) (aarch64-linux-gnu-gcc (Linaro GCC 7.2-2017.11) 7.2.1 20171011) debug=y  Sun J8
(XEN) Latest ChangeSet: Sun Jun 10 11:08:15 2018 +0300 git:786a524-dirty
(XEN) Processor: 410fd034: "ARM Limited", variant: 0x0, part 0xd03, rev 0x4
(XEN) 64-bit Execution:
(XEN)   Processor Features: 0100 
(XEN) Exception Levels: 

Re: [Xen-devel] [PATCH v1] earlyprintk configuration for rk3399 boards

2018-07-06 Thread Julien Grall

Hello,

On 04/07/18 21:55, ihor.matushc...@foobox.net wrote:

From: Ihor Matushchak 

This patch enables earlyprintk for Rockchip rk3399 based SoC.
Is there any missing pieces in Xen to boot on Rockchip? I would also 
quite like to see some documentation how to boot Xen on that platform.


Cheers,



Ihor Matushchak (1):
   xen:arm:earlyprintk configuration for rk3399 boards

  docs/misc/arm/early-printk.txt | 1 +
  xen/arch/arm/Rules.mk  | 1 +
  2 files changed, 2 insertions(+)



--
Julien Grall

___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

[Xen-devel] [PATCH v1] earlyprintk configuration for rk3399 boards

2018-07-04 Thread ihor . matushchak
From: Ihor Matushchak 

This patch enables earlyprintk for Rockchip rk3399 based SoC.

Ihor Matushchak (1):
  xen:arm:earlyprintk configuration for rk3399 boards

 docs/misc/arm/early-printk.txt | 1 +
 xen/arch/arm/Rules.mk  | 1 +
 2 files changed, 2 insertions(+)

-- 
2.7.4


___
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel