From mboxrd@z Thu Jan 1 00:00:00 1970 From: bharat gohil Subject: ARM:Booting xen on pine64 board Date: Sat, 1 Apr 2017 17:02:14 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3070780979854524423==" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuHGT-0004lW-V8 for xen-devel@lists.xenproject.org; Sat, 01 Apr 2017 11:32:18 +0000 Received: by mail-lf0-f41.google.com with SMTP id z15so54166546lfd.1 for ; Sat, 01 Apr 2017 04:32:16 -0700 (PDT) List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org --===============3070780979854524423== Content-Type: multipart/alternative; boundary=94eb2c1a07ee26aeb9054c194735 --94eb2c1a07ee26aeb9054c194735 Content-Type: text/plain; charset=UTF-8 Hello I am trying to boot xen(debug build) on pine64 ARM64 based board but its hangs at following position, - UART enabled - - CPU 00000000 booting - - Current EL 00000008 - - Xen starting at EL2 - - Zero BSS - - Setting up control registers - - Turning on paging - - Ready - (XEN) Checking for initrd in /chosen (XEN) RAM: 0000000041000000 - 000000007fffffff (XEN) (XEN) MODULE[0]: 000000007e200000 - 000000007e202000 Device Tree (XEN) MODULE[1]: 000000007e400000 - 000000007ef46a00 Kernel console=hvc0 ro root=/dev/mmcblk0p2 clk_ignore_unused rootwait (XEN) RESVD[0]: 000000007e200000 - 000000007e202000 (XEN) (XEN) Command line: dtuart=serial0 earlyprint loglvl=all conswitch=x dom0_mem=128M (XEN) Placing Xen at 0x000000007fc00000-0x000000007fe00000 (XEN) Update BOOTMOD_XEN from 000000007fe00000-000000007fefad81 => 000000007fc00000-000000007fcfad81 (XEN) Booting using Device Tree (XEN) Domain heap initialised (XEN) Platform: Generic System (XEN) Looking for dtuart at "serial0", options "" Xen 4.9-unstable (XEN) Xen version 4.9-unstable (bgohil@) (aarch64-linux-gnu-gcc (Linaro GCC 6.2-2016.11) 6.2.1 20161016) debug=n Tue Mar 28 16:12:32 IST 2017 (XEN) Latest ChangeSet: Fri Mar 24 14:19:47 2017 +0100 git:5b08f85 (XEN) Processor: 410fd034: "ARM Limited", variant: 0x0, part 0xd03, rev 0x4 (XEN) 64-bit Execution: (XEN) Processor Features: 0000000000002222 0000000000000000 (XEN) Exception Levels: EL3:64+32 EL2:64+32 EL1:64+32 EL0:64+32 (XEN) Extensions: FloatingPoint AdvancedSIMD (XEN) Debug Features: 0000000010305106 0000000000000000 (XEN) Auxiliary Features: 0000000000000000 0000000000000000 (XEN) Memory Model Features: 0000000000001122 0000000000000000 (XEN) ISA Features: 0000000000011120 0000000000000000 (XEN) 32-bit Execution: (XEN) Processor Features: 00000131:00011011 (XEN) Instruction Sets: AArch32 A32 Thumb Thumb-2 Jazelle (XEN) Extensions: GenericTimer Security (XEN) Debug Features: 03010066 (XEN) Auxiliary Features: 00000000 (XEN) Memory Model Features: 10201105 40000000 01260000 02102211 (XEN) ISA Features: 02101110 13112111 21232042 01112131 00011142 00011121 (XEN) Using PSCI-0.2 for SMP bringup (XEN) SMP: Allowing 4 CPUs (XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 24000 KHz (XEN) GICv2 initialization: (XEN) gic_dist_addr=0000000001c81000 (XEN) gic_cpu_addr=0000000001c82000 (XEN) gic_hyp_addr=0000000001c84000 (XEN) gic_vcpu_addr=0000000001c86000 (XEN) gic_maintenance_irq=25 (XEN) GICv2: 224 lines, 4 cpus, secure (IID 0200143b). *(XEN) Using scheduler: SMP Credit Scheduler (credit)* but when I boot dtuart= say duart=xyz instead of dtuart=serial0, xen booted successfully but Dom0 crash while probing 'serial0' driver. If I remove 'serial0' node from device tree, Dom0 boot successfully but unable to enter input into 'hvc' console. what could be wrong here or missing something? -- Regards, Bharat Gohil Sr.Software Engineer bharat.gohil@harman.com +919427054633 --94eb2c1a07ee26aeb9054c194735 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello

I am trying to boot xe= n(debug build) on pine64 ARM64 based board but its hangs at following posit= ion,

- UART enabled -
- CPU 00000000 booting -
- Curren= t EL 00000008 -
- Xen starting at EL2 -
- Zero BSS -
- Setting up = control registers -
- Turning on paging -
- Ready -
(XEN) Checking= for initrd in /chosen
(XEN) RAM: 0000000041000000 - 000000007fffffff(XEN)
(XEN) MODULE[0]: 000000007e200000 - 000000007e202000 Device Tree<= br>(XEN) MODULE[1]: 000000007e400000 - 000000007ef46a00 Kernel=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 console=3Dhvc0 ro root=3D/dev/mmcblk0p2 clk_ignore= _unused rootwait
(XEN)=C2=A0 RESVD[0]: 000000007e200000 - 000000007e2020= 00
(XEN)
(XEN) Command line: dtuart=3Dserial0 earlyprint loglvl=3Dall= conswitch=3Dx dom0_mem=3D128M
(XEN) Placing Xen at 0x000000007fc00000-0= x000000007fe00000
(XEN) Update BOOTMOD_XEN from 000000007fe00000-0000000= 07fefad81 =3D> 000000007fc00000-000000007fcfad81
(XEN) Booting using = Device Tree
(XEN) Domain heap initialised
(XEN) Platform: Generic Sys= tem
(XEN) Looking for dtuart at "serial0", options ""= ;
=C2=A0Xen 4.9-unstable
(XEN) Xen version 4.9-unstable (bgohil@) (aa= rch64-linux-gnu-gcc (Linaro GCC 6.2-2016.11) 6.2.1 20161016) debug=3Dn=C2= =A0 Tue Mar 28 16:12:32 IST 2017
(XEN) Latest ChangeSet: Fri Mar 24 14:1= 9:47 2017 +0100 git:5b08f85
(XEN) Processor: 410fd034: "ARM Limited= ", variant: 0x0, part 0xd03, rev 0x4
(XEN) 64-bit Execution:
(XE= N)=C2=A0=C2=A0 Processor Features: 0000000000002222 0000000000000000
(XE= N)=C2=A0=C2=A0=C2=A0=C2=A0 Exception Levels: EL3:64+32 EL2:64+32 EL1:64+32 = EL0:64+32
(XEN)=C2=A0=C2=A0=C2=A0=C2=A0 Extensions: FloatingPoint Advanc= edSIMD
(XEN)=C2=A0=C2=A0 Debug Features: 0000000010305106 00000000000000= 00
(XEN)=C2=A0=C2=A0 Auxiliary Features: 0000000000000000 00000000000000= 00
(XEN)=C2=A0=C2=A0 Memory Model Features: 0000000000001122 00000000000= 00000
(XEN)=C2=A0=C2=A0 ISA Features:=C2=A0 0000000000011120 00000000000= 00000
(XEN) 32-bit Execution:
(XEN)=C2=A0=C2=A0 Processor Features: 0= 0000131:00011011
(XEN)=C2=A0=C2=A0=C2=A0=C2=A0 Instruction Sets: AArch32= A32 Thumb Thumb-2 Jazelle
(XEN)=C2=A0=C2=A0=C2=A0=C2=A0 Extensions: Gen= ericTimer Security
(XEN)=C2=A0=C2=A0 Debug Features: 03010066
(XEN)= =C2=A0=C2=A0 Auxiliary Features: 00000000
(XEN)=C2=A0=C2=A0 Memory Model= Features: 10201105 40000000 01260000 02102211
(XEN)=C2=A0 ISA Features:= 02101110 13112111 21232042 01112131 00011142 00011121
(XEN) Using PSCI-= 0.2 for SMP bringup
(XEN) SMP: Allowing 4 CPUs
(XEN) Generic Timer IR= Q: phys=3D30 hyp=3D26 virt=3D27 Freq: 24000 KHz
(XEN) GICv2 initializati= on:
(XEN)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 gic_dist_addr= =3D0000000001c81000
(XEN)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 gic_cpu_addr=3D0000000001c82000
(XEN)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 gic_hyp_addr=3D0000000001c84000
(XEN)=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 gic_vcpu_addr=3D0000000001c86000
(XEN)= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 gic_maintenance_irq=3D25(XEN) GICv2: 224 lines, 4 cpus, secure (IID 0200143b).
(XEN) U= sing scheduler: SMP Credit Scheduler (credit)

=
but when I boot dtuart=3D<unknown value> say duart=3Dxyz instead= of dtuart=3Dserial0,=C2=A0xen booted successfully but Dom0 crash while pro= bing 'serial0' driver.=C2=A0

If I remove &= #39;serial0' node from device tree, Dom0 boot successfully but unable t= o enter input into 'hvc' console.=C2=A0

what could be= =C2=A0wrong here or missing something?

--
Regards,
= Bharat Gohil
Sr.Software Engineer
+919427054633
--94eb2c1a07ee26aeb9054c194735-- --===============3070780979854524423== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============3070780979854524423==--