Thanks Julien,

Finally, I am able to run latest Xen 4.9,latest Linux kernel 4.9 and latest
buildroot on orangepi PC and NenoPi-M1 board.

Now,I want to run RTOS VM on Xen and pin the CPU to RTOS VM so i can
achieve real time response from RTOS VM.

Long term I want to do GPU(on Mali) virtualization If anyone have
experience on GPU(on Mali) virtualization on ARM board,Please provide me
some pointer.

following log of xen on orangePi PC board

U-Boot SPL 2016.09-rc1-00231-g7351bf2-dirty (Aug 09 2016 - 15:01:33)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC1


U-Boot 2016.09-rc1-00231-g7351bf2-dirty (Aug 09 2016 - 15:01:33 +0530)
Allwinney

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi PC
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default
environment


In:
serial
Out:
serial
Err:
serial
Net:   phy
interface0
eth0: ethernet@01c30000

starting
USB...
USB0:   USB EHCI
1.00
USB1:   USB OHCI
1.0
USB2:   USB EHCI
1.00
USB3:   USB OHCI
1.0
USB4:   USB EHCI
1.00
USB5:   USB OHCI
1.0
scanning bus 0 for devices... 1 USB Device(s)
found
scanning bus 2 for devices... 1 USB Device(s)
found
scanning bus 4 for devices... 1 USB Device(s)
found
Hit any key to stop autoboot:
0
=>

=> setenv bootcmd 'setenv ipaddr 10.90.30.11;setenv serverip
10.90.30.111;tftp '
=>
boot

Using ethernet@01c30000
device
TFTP from server 10.90.30.111; our IP address is
10.90.30.11
Filename
'boot.scr'.
Load address:
0x41000000
Loading:
#
         10.7
KiB/s
done

Bytes transferred = 1373 (55d
hex)
CACHE: Misaligned operation at range [41000000,
4100055d]
## Executing script at
41000000
Using ethernet@01c30000
device
TFTP from server 10.90.30.111; our IP address is
10.90.30.11
Filename
'xen'.
Load address:
0x7ea00000
Loading:
#################################################################

#################################################################

##################
         507.8
KiB/s
done

Bytes transferred = 753680 (b8010
hex)
CACHE: Misaligned operation at range [7ea00000,
7eab8010]
Using ethernet@01c30000
device
TFTP from server 10.90.30.111; our IP address is
10.90.30.11
Filename
'sun8i-h3-orangepi-pc.dtb'.
Load address:
0x7ec00000
Loading:
###
         343.8
KiB/s
done

Bytes transferred = 13056 (3300
hex)
Using ethernet@01c30000
device
TFTP from server 10.90.30.111; our IP address is
10.90.30.11
Filename
'zImage'.
Load address:
0x7f600000
Loading:
#################################################################

#################################################################

#################################################################

#################################################################

#################################################################

#################################################################

#################################################################
         ################################################################T
#

#################################################################

#################################################################

#################################################################

#
         297.9
KiB/s
done

Bytes transferred = 3660928 (37dc80
hex)
## Flattened Device Tree blob at
7ec00000
   Booting using the fdt blob at
0x7ec00000
   reserving fdt memory region: addr=7ec00000
size=4000
   Using Device Tree in place at 7ec00000, end
7ec06fff


Starting kernel
...


- UART enabled
-
- CPU 00000000 booting
-
- Xen starting in Hyp mode
-
- Zero BSS
-
- Setting up control registers
-
- Turning on paging
-
- Ready
-
(XEN) Checking for initrd in
/chosen
(XEN) RAM: 0000000040000000 -
000000007fffffff
(XEN)

(XEN) MODULE[0]: 000000007ec00000 - 000000007ec04000 Device
Tree
(XEN) MODULE[1]: 000000007f600000 - 000000007f97dc80 Kernel
console=hvc0 d
(XEN)  RESVD[0]: 000000007ff9f000 -
000000007ffa1000
(XEN)  RESVD[1]: 000000007ec00000 -
000000007ec04000
(XEN)

(XEN) Command line: console=dtuart dtuart=serial0
dom0_mem=128M
(XEN) Placing Xen at
0x000000007fc00000-0x000000007fe00000
(XEN) Update BOOTMOD_XEN from 000000007ea00000-000000007eafd781 =>
000000007fc01
(XEN) Xen heap: 000000007c000000-000000007e000000 (8192
pages)
(XEN) Dom heap: 253952
pages
(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@) (arm-linux-gnueabi-gcc
(Ubuntu/Linaro 6
(XEN) Latest ChangeSet: Tue Dec 20 11:47:00 2016 -0800
git:74858c9
(XEN) Processor: 410fc075: "ARM Limited", variant: 0x0, part 0xc07, rev
0x5
(XEN) 32-bit
Execution:
(XEN)   Processor Features:
00001131:00011011
(XEN)     Instruction Sets: AArch32 A32 Thumb Thumb-2 ThumbEE
Jazelle
(XEN)     Extensions: GenericTimer
Security
(XEN)   Debug Features:
02010555
(XEN)   Auxiliary Features:
00000000
(XEN)   Memory Model Features: 10101105 40000000 01240000
02102211
(XEN)  ISA Features: 02101110 13112111 21232041 11112131 10011142
00000000
(XEN) Using PSCI-0.1 for SMP
bringup
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27 Freq: 24000
KHz
(XEN) GICv2: WARNING: The GICC size is too small: 0x1000 expected
0x2000
(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: 160 lines, 4 cpus, secure (IID
0100143b).
(XEN) Using scheduler: SMP Credit Scheduler
(credit)
(XEN) Allocated console ring of 32
KiB.
(XEN) VFP implementer 0x41 architecture 2 part 0x30 variant 0x7 rev
0x5
(XEN) Bringing up
CPU1
- CPU 00000001 booting
-
- Xen starting in Hyp mode
-
- Setting up control registers
-
- Turning on paging
-
- Ready
-
(XEN) CPU 1
booted.
(XEN) Bringing up
CPU2
- CPU 00000002 booting
-
- Xen starting in Hyp mode
-
- Setting up control registers
-
- Turning on paging
-
- Ready
-
(XEN) CPU 2
booted.
(XEN) Bringing up
CPU3
- CPU 00000003 booting
-
- Xen starting in Hyp mode
-
- Setting up control registers
-
- Turning on paging
-
- Ready
-
(XEN) CPU 3
booted.
(XEN) Brought up 4
CPUs
(XEN) P2M: 40-bit
IPA
(XEN) P2M: 3 levels with order-1 root, VTCR
0x80003558
(XEN) I/O virtualisation
disabled
(XEN) build-id:
9a4e8115e5ee5f5f81a3d629b1eb009979607345
(XEN) *** LOADING DOMAIN 0
***
(XEN) Loading kernel from boot module @
000000007f600000
(XEN) Allocating 1:1 mappings totalling 128MB for
dom0:
(XEN) BANK[0] 0x00000070000000-0x00000078000000
(128MB)
(XEN) Grant table range:
0x0000007fc00000-0x0000007fc5d000
(XEN) Loading zImage from 000000007f600000 to
0000000077c00000-0000000077f7dc80
(XEN) Allocating PPI 16 for event channel
interrupt
(XEN) Loading dom0 DTB to
0x0000000077a00000-0x0000000077a0335f
(XEN) Scrubbing Free RAM on 1 nodes using 4
CPUs
(XEN)
..done.
(XEN) Initial low memory virq threshold set at 0x4000
pages.
(XEN) Std. Loglevel:
All
(XEN) Guest Loglevel:
All
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input
to Xe)
(XEN) Freed 268kB init
memory.
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to
ICACTIVER4
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to
ICACTIVER8
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to
ICACTIVER12
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to
ICACTIVER16
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to
ICACTIVER0
[    0.000000] Booting Linux on physical CPU
0x0
[    0.000000] Linux version 4.9.0 (bgohil@bgohil) (gcc version 4.9.3
20150529 6
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7),
cr=10c5387d
[    0.000000] CPU: div instructions available: patching division
code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
instructie
[    0.000000] OF: fdt:Machine model: Xunlong Orange Pi
PC
[    0.000000] Xen 4.9 support
found
[    0.000000] Memory policy: Data cache
writealloc
[    0.000000] psci: probing for conduit method from
DT.
[    0.000000] psci: PSCIv0.2 detected in
firmware.
[    0.000000] psci: Using standard PSCI v0.2 function
IDs
[    0.000000] psci: Trusted OS migration not
required
[    0.000000] percpu: Embedded 14 pages/cpu @c7eb6000 s25356 r8192 d23796
u5734
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pa2
[    0.000000] Kernel command line: console=hvc0 rw root=/dev/mmcblk0p2
rootwaid
[    0.000000] PID hash table entries: 512 (order: -1, 2048
bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536
bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768
bytes)
[    0.000000] Memory: 120832K/131072K available (5120K kernel code, 318K
rwdat)
[    0.000000] Virtual kernel memory
layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4
kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072
kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880
MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128
MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2
MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14
MB)
[    0.000000]       .text : 0xc0008000 - 0xc0600000   (6112
kB)
[    0.000000]       .init : 0xc0800000 - 0xc0900000   (1024
kB)
[    0.000000]       .data : 0xc0900000 - 0xc094fa80   ( 319
kB)
[    0.000000]        .bss : 0xc0951000 - 0xc099543c   ( 274
kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4,
Nodes=1
[    0.000000] Hierarchical RCU
implementation.
[    0.000000]  Build-time adjustment of leaf fanout to
32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to
nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32,
nr_cpu_ids=4
[    0.000000] NR_IRQS:16 nr_irqs:16
16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at
24.00MHz (v.
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff
max_cycless
[    0.000012] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every
4398s
[    0.000037] Switching to timer-based delay loop, resolution
41ns
[    0.000346] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff,
maxs
[    0.000852] Console: colour dummy device
80x30
[    0.003060] console [hvc0]
enabled
[    0.003119] Calibrating delay loop (skipped), value calculated using
timer f)
[    0.003223] pid_max: default: 32768 minimum:
301
[    0.003440] Mount-cache hash table entries: 1024 (order: 0, 4096
bytes)
[    0.003513] Mountpoint-cache hash table entries: 1024 (order: 0, 4096
bytes)
[    0.004678] CPU: Testing write buffer coherency:
ok
[    0.005270] /cpus/cpu@0 missing clock-frequency
property
[    0.005399] /cpus/cpu@1 missing clock-frequency
property
[    0.005474] /cpus/cpu@2 missing clock-frequency
property
[    0.005548] /cpus/cpu@3 missing clock-frequency
property
[    0.005612] CPU0: thread -1, cpu 0, socket 0, mpidr
80000000
[    0.006735] xen:grant_table: Grant tables using version 1
layout
[    0.006860] Grant table
initialized
[    0.007060] xen:events: Using FIFO-based
ABI
[    0.007189] Xen: initializing
cpu0
[    0.007420] Setting up static identity map for 0x70100000 -
0x70100058
(XEN) d0v1: vGICD: unhandled word write 0xffffffff to
ICACTIVER0
(XEN) d0v2: vGICD: unhandled word write 0xffffffff to
ICACTIVER0
(XEN) d0v3: vGICD: unhandled word write 0xffffffff to
ICACTIVER0
[    0.010899] Xen: initializing
cpu1
[    0.011054] CPU1: thread -1, cpu 1, socket 0, mpidr
80000001
[    0.012604] Xen: initializing
cpu2
[    0.012749] CPU2: thread -1, cpu 2, socket 0, mpidr
80000002
[    0.014302] Xen: initializing
cpu3
[    0.014448] CPU3: thread -1, cpu 3, socket 0, mpidr
80000003
[    0.014682] Brought up 4
CPUs
[    0.015011] SMP: Total of 4 processors activated (192.00
BogoMIPS).
[    0.015071] CPU: All CPU(s) started in SVC
mode.
[    0.016599] devtmpfs:
initialized
[    0.024751] VFP support v0.3: implementor 41 architecture 2 part 30
variant 5
[    0.025332] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, ms
[    0.025695] pinctrl core: initialized pinctrl
subsystem
[    0.027347] NET: Registered protocol family
16
[    0.027999] DMA: preallocated 256 KiB pool for atomic coherent
allocations
[    0.031215] xen:swiotlb_xen: Warning: only able to allocate 4 MB for
softwarB
[    0.034791] software IO TLB [mem 0x76c00000-0x77000000] (4MB) mapped at
[c6c]
[    0.035032] hw-breakpoint: Failed to enable monitor mode on CPU
2.
[    0.035045] hw-breakpoint: Failed to enable monitor mode on CPU
1.
[    0.063937] xen:balloon: Initialising balloon
driver
[    0.064233] xen_balloon: Initialising balloon
driver
[    0.067018] SCSI subsystem
initialized
[    0.068176] usbcore: registered new interface driver
usbfs
[    0.068373] usbcore: registered new interface driver
hub
[    0.068601] usbcore: registered new device driver
usb
[    0.069086] pps_core: LinuxPPS API ver. 1
registered
[    0.069146] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo
Giom>
[    0.069258] PTP clock support
registered
[    0.069717] Advanced Linux Sound Architecture Driver
Initialized.
[    0.071926] clocksource: Switched to clocksource
arch_sys_counter
[    0.102511] NET: Registered protocol family
2
[    0.103529] TCP established hash table entries: 1024 (order: 0, 4096
bytes)
[    0.103655] TCP bind hash table entries: 1024 (order: 1, 8192
bytes)
[    0.103755] TCP: Hash tables configured (established 1024 bind
1024)
[    0.103895] UDP hash table entries: 256 (order: 1, 8192
bytes)
[    0.103998] UDP-Lite hash table entries: 256 (order: 1, 8192
bytes)
[    0.104353] NET: Registered protocol family
1
[    0.105618] RPC: Registered named UNIX socket transport
module.
[    0.105699] RPC: Registered udp transport
module.
[    0.105750] RPC: Registered tcp transport
module.
[    0.105800] RPC: Registered tcp NFSv4.1 backchannel transport
module.
[    0.108416] futex hash table entries: 1024 (order: 4, 65536
bytes)
[    0.110040] workingset: timestamp_bits=30 max_order=15
bucket_order=0
[    0.130993] NFS: Registering the id_resolver key
type
[    0.131106] Key type id_resolver
registered
[    0.131153] Key type id_legacy
registered
[    0.136058] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major )
[    0.136152] io scheduler noop
registered
[    0.136197] io scheduler deadline
registered
[    0.136603] io scheduler cfq registered
(default)
[    0.146376] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO
driver
[    0.150791] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO
driver
[    0.161022] xen:xen_evtchn: Event-channel device
installed
[    0.357173] Serial: 8250/16550 driver, 4 ports, IRQ sharing
disabled
[    0.360233] [drm]
Initialized
[    0.363271] libphy: Fixed MDIO Bus:
probed
[    0.363334] CAN device driver
interface
[    0.364230] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[    0.364304] ehci-platform: EHCI generic platform
driver
[    0.364951] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI)
Driver
[    0.365042] ohci-platform: OHCI generic platform
driver
[    0.365767] usbcore: registered new interface driver
usb-storage
[    0.367365] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as
rtc0
[    0.367488] sun6i-rtc 1f00000.rtc: RTC
enabled
[    0.367826] i2c /dev entries
driver
[    0.368372] IR NEC protocol handler
initialized
[    0.368429] IR RC5(x/sz) protocol handler
initialized
[    0.368493] IR RC6 protocol handler
initialized
[    0.368543] IR JVC protocol handler
initialized
[    0.368592] IR Sony protocol handler
initialized
[    0.368642] IR SANYO protocol handler
initialized
[    0.368691] IR Sharp protocol handler
initialized
[    0.368741] IR MCE Keyboard/mouse protocol handler
initialized
[    0.368798] IR XMP protocol handler
initialized
[    0.369302] Registered IR keymap
rc-empty
[    0.370001] input: sunxi-ir as /devices/platform/soc/
1f02000.ir/rc/rc0/input0
[    0.370643] rc rc0: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0

[    0.372492] input: MCE IR Keyboard/Mouse (sunxi-ir) as
/devices/virtual/inpu1
[    0.373228] sunxi-ir 1f02000.ir: initialized sunXi IR
driver
[    0.374634] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16
sec, no)
[    0.375361] cpu cpu0: failed to get clock:
-2
[    0.375454] cpufreq-dt: probe of cpufreq-dt failed with error
-2
[    0.377305] sunxi-mmc 1c0f000.mmc: Got CD
GPIO
[    0.431993] sunxi-mmc 1c0f000.mmc: base:0xc8882000
irq:23
[    0.434590] usbcore: registered new interface driver
usbhid
[    0.434656] usbhid: USB HID core
driver
[    0.436897] NET: Registered protocol family
17
[    0.436989] can: controller area network core (rev 20120528 abi
9)
[    0.437188] NET: Registered protocol family
29
[    0.437248] can: raw protocol (rev
20120528)
[    0.437302] can: broadcast manager protocol (rev 20161123
t)
[    0.437372] can: netlink gateway (rev 20130117)
max_hops=1
[    0.437994] Key type dns_resolver
registered
[    0.438282] Registering SWP/SWPB emulation
handler
[    0.453688] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01
00:03:)
[    0.454017] clk: Not disabling unused
clocks
[    0.454082] vcc3v0:
disabling
[    0.454130] vcc5v0:
disabling
[    0.454173] ALSA device
list:
[    0.454212]   No soundcards
found.
[    0.455289] Waiting for root device
/dev/mmcblk0p2...
[    0.491350] mmc0: host does not support reading read-only switch,
assuming we
[    0.494748] mmc0: new high speed SDHC card at address
aaaa
[    0.496306] mmcblk0: mmc0:aaaa SL08G 7.40
GiB
[    0.498595]  mmcblk0: p1
p2
[    0.583027] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature
incoms
[    0.584180] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature
incoms
[    0.650832] random: fast init
done
[    0.680495] EXT4-fs (mmcblk0p2): recovery
complete
[    0.682007] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data
mode. )
[    0.682167] VFS: Mounted root (ext4 filesystem) on device
179:2.
[    0.683338] devtmpfs:
mounted
[    0.687370] Freeing unused kernel memory: 1024K (c0800000 -
c0900000)
[    0.806712] EXT4-fs (mmcblk0p2): re-mounted. Opts:
data=ordered
Starting logging:
OK
Initializing random number generator...
done.
Starting network:
OK
Starting domain watchdog daemon: xenwatchdogd
startup


Starting
/usr/sbin/xenstored...
Setting domain 0 name, domid and JSON
config...
Done setting up
Dom0
Starting
xenconsoled...
Starting QEMU as disk backend for
dom0

[done]



Welcome to
Atmiya
atmiya login: root
# xl list
Name                                        ID   Mem VCPUs      State
Time(s)
Domain-0                                     0   128     4     r-----
2.8
# xl info
host                   : atmiya
release                : 4.9.0
version                : #12 SMP Tue Dec 27 22:52:09 IST 2016
machine                : armv7l
nr_cpus                : 4
max_cpu_id             : 127
nr_nodes               : 1
cores_per_socket       : 1
threads_per_core       : 1
cpu_mhz                : 24
hw_caps                :
00000000:00000000:00000000:00000000:00000000:00000000:00000000:00000000
virt_caps              :
total_memory           : 1024
free_memory            : 853
sharing_freed_memory   : 0
sharing_used_memory    : 0
outstanding_claims     : 0
free_cpus              : 0
xen_major              : 4
xen_minor              : 9
xen_extra              : -unstable
xen_version            : 4.9-unstable
xen_caps               : xen-3.0-armv7l
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0x200000
xen_changeset          : Tue Dec 20 11:47:00 2016 -0800 git:74858c9
xen_commandline        : console=dtuart dtuart=serial0 dom0_mem=128M
cc_compiler            : arm-linux-gnueabi-gcc (Ubuntu/Linaro
4.7.3-12ubuntu1) 4.7.3
cc_compile_by          : bgohil
cc_compile_domain      :
cc_compile_date        : Mon Dec 26 20:10:50 IST 2016
build_id               : 9a4e8115e5ee5f5f81a3d629b1eb009979607345
xend_config_format     : 4

Regards,
Bharat Gohil

On Fri, May 20, 2016 at 7:51 PM, Julien Grall <julien.gr...@arm.com> wrote:

> On 19/05/16 18:31, bharat gohil wrote:
>
>> Hello All,
>>
>
> Hello,
>
> I am trying to boot xen on OrangePi PC(based upon Allwinner H3). It is
>> able to boot on this target board but it hangs when it try to boot
>> unmodified linux guest(with xen configuration enable).
>>
>> Please find following log for same.Can anyone guide me to debug this
>> problem(hang)?
>>
>> Starting kernel ...
>>
>> - UART enabled -
>> - CPU 00000000 booting -
>> - Xen starting in Hyp mode -
>> - Zero BSS -
>> - Setting up control registers -
>> - Turning on paging -
>> - Ready -
>> (XEN) Checking for initrd in /chosen
>> (XEN) RAM: 0000000040000000 - 000000007fffffff
>> (XEN)
>> (XEN) MODULE[0]: 000000007ec00000 - 000000007ec04000 Device Tree
>> (XEN) MODULE[1]: 000000007f600000 - 000000007f955328 Kernel
>> console=hvc0 d
>>
>
> The end of the command line seems to have been eaten.
>
> What's the full command line? I would recommend you to use earlycon for
> Linux to get some early log. The parameter looks like:
>
> earlycon=uart,mmio32,0x07000000
>
> (Note, I do not know if the parameters are correct)
>
> (XEN)  RESVD[0]: 000000007ffa1000 - 000000007ffa15e8
>> (XEN)  RESVD[1]: 000000007ec00000 - 000000007ec04000
>> (XEN)
>> (XEN) Command line: console=dtuart dtuart=/soc@01c00000/serial@01c28000
>> dom0_meM
>>
>
> Same here.
>
> (XEN) Placing Xen at 0x000000007fc00000-0x000000007fe00000
>> (XEN) Update BOOTMOD_XEN from 000000007ea00000-000000007eb01701 =>
>> 000000007fc01
>> (XEN) Xen heap: 000000007c000000-000000007e000000 (8192 pages)
>> (XEN) Dom heap: 253952 pages
>> (XEN) Domain heap initialised
>> (XEN) Platform: Generic System
>> (XEN) Looking for dtuart at "/soc@01c00000/serial@01c28000", options ""
>> (XEN) Unable to find device "/soc@01c00000/serial@01c28000"
>> (XEN) Bad console= option 'dtuart'
>>
>
> Not related to your issue, but Xen is not able to find the serial you
> passed on the command line.
>
>   Xen 4.6.2-pre
>> (XEN) Xen version 4.6.2-pre (bgohil@) (arm-eabi-gcc (Linaro GCC
>> 5.3-2016.02) 5.6
>>
>
> The board is not officially supported by Xen. I would highly recommend you
> to use Xen upstream (i.e master or staging) when trying to port the
> hypervisor on a new board.
>
>
> (XEN) Latest ChangeSet: Tue Apr 26 12:07:49 2016 +0200 git:39546d1
>> (XEN) Processor: 410fc075: "ARM Limited", variant: 0x0, part 0xc07, rev
>> 0x5
>> (XEN) 32-bit Execution:
>> (XEN)   Processor Features: 00001131:00011011
>> (XEN)     Instruction Sets: AArch32 A32 Thumb Thumb-2 ThumbEE Jazelle
>> (XEN)     Extensions: GenericTimer Security
>> (XEN)   Debug Features: 02010555
>> (XEN)   Auxiliary Features: 00000000
>> (XEN)   Memory Model Features: 10101105 40000000 01240000 02102211
>> (XEN)  ISA Features: 02101110 13112111 21232041 11112131 10011142 00000000
>> (XEN) Using PSCI-0.1 for SMP bringup
>> (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: 160 lines, 4 cpus, secure (IID 0100143b).
>> (XEN) Using scheduler: SMP Credit Scheduler (credit)
>> (XEN) Allocated console ring of 32 KiB.
>> (XEN) VFP implementer 0x41 architecture 2 part 0x30 variant 0x7 rev 0x5
>> (XEN) Bringing up CPU1
>> - CPU 00000001 booting -
>> - Xen starting in Hyp mode -
>> - Setting up control registers -
>> - Turning on paging -
>> - Ready -
>> (XEN) CPU 1 booted.
>> (XEN) Bringing up CPU2
>> - CPU 00000002 booting -
>> - Xen starting in Hyp mode -
>> - Setting up control registers -
>> - Turning on paging -
>> - Ready -
>> (XEN) CPU 2 booted.
>> (XEN) Bringing up CPU3
>> - CPU 00000003 booting -
>> - Xen starting in Hyp mode -
>> - Setting up control registers -
>> - Turning on paging -
>> - Ready -
>> (XEN) CPU 3 booted.
>> (XEN) Brought up 4 CPUs
>> (XEN) P2M: 40-bit IPA
>> (XEN) P2M: 3 levels with order-1 root, VTCR 0x80003558
>> (XEN) I/O virtualisation disabled
>> (XEN) *** LOADING DOMAIN 0 ***
>> (XEN) Loading kernel from boot module @ 000000007f600000
>> (XEN) Allocating 1:1 mappings totalling 128MB for dom0:
>> (XEN) BANK[0] 0x00000070000000-0x00000078000000 (128MB)
>> (XEN) Grant table range: 0x0000007fc00000-0x0000007fc61000
>> (XEN) Loading zImage from 000000007f600000 to
>> 0000000077c00000-0000000077f55328
>> (XEN) Allocating PPI 16 for event channel interrupt
>> (XEN) Loading dom0 DTB to 0x0000000077a00000-0x0000000077a03cd0
>> (XEN) Scrubbing Free RAM on 1 nodes using 4 CPUs
>> (XEN) ..done.
>> (XEN) Initial low memory virq threshold set at 0x4000 pages.
>> (XEN) Std. Loglevel: All
>> (XEN) Guest Loglevel: All
>> (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch
>> input to Xe)
>> (XEN) Freed 264kB init memory.
>> (XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER4
>> (XEN) traps.c:2447:d0v0 HSR=0x93840047 pc=0xc08170e8 gva=0xc8800384
>> gpa=0x000004
>>
>
> It looks like your guest received a data abort when trying to access the
> physical address 0x000004.
>
> I would recommend you to find who is trying to access this address. You
> can use addr2line with the PC to find the associated line code.
>
> Regards,
>
> --
> Julien Grall
>



-- 
Regards,
Bharat Gohil
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to