Mailing List Archive

Issue in booting linux DomU in arm hw
Hi,
I am trying to run Mainline linux kernel v5.4.0-rc3 as DomU. My setup
details below.
Target hw: Pine64+
Architecture: aarch64 (arm64)
Xen version: 4.6.5
Dom0: Mainline linux Kernel v5.4.0-rc3

DomU config file:
kernel = "path to kernel image"
memory = "128"
name = "domU"
vcpus = 1
disk = [ 'phy:/dev/loop0,xvda,w' ]
extra = "earlyprintk=xenboot console=hvc0 root=/dev/xvda debug rw init=/bin/sh"

I loaded the DomU as below.
ubuntu@LXC_NAME:~/workspace/domu$ sudo losetup /dev/loop0 rootfs.ext4
ubuntu@LXC_NAME:~/workspace/domu$ sudo xl -vvv create -d domu.config
Parsing config from domu.config
{
"c_info": {
"type": "pv",
"name": "domU",
"uuid": "cb580dd8-95c1-41a9-9233-4ba295cc6595",
"run_hotplug_scripts": "True"
},
"b_info": {
"max_vcpus": 1,
"avail_vcpus": [
0
],
"max_memkb": 131072,
"target_memkb": 131072,
"shadow_memkb": 2048,
"sched_params": {

},
"claim_mode": "True",
"kernel": "/home/ubuntu/workspace/domu/Image",
"cmdline": "earlyprintk=xenboot console=hvc0 root=/dev/xvda
debug rw init=/bin/sh",
"type.pv": {

},
"arch_arm": {

}
},
"disks": [.
{
"pdev_path": "/dev/loop0",
"vdev": "xvda",
"format": "raw",
"readwrite": 1
}
],
"on_reboot": "restart"
}
libxl: debug: libxl_create.c:1563:do_domain_create: ao 0x238de720:
create: how=(nil) callback=(nil) poller=0x238de7b0
libxl: debug: libxl_arm.c:59:libxl__arch_domain_prepare_config:
Configure the domain
libxl: debug: libxl_arm.c:62:libxl__arch_domain_prepare_config: -
Allocate 0 SPIs
libxl: debug: libxl_device.c:337:libxl__device_disk_set_backend: Disk
vdev=xvda spec.backend=unknown
libxl: debug: libxl_device.c:366:libxl__device_disk_set_backend: Disk
vdev=xvda, using backend phy
libxl: debug: libxl_create.c:947:initiate_domain_create: running bootloader
libxl: debug: libxl_bootloader.c:330:libxl__bootloader_run: no
bootloader configured, using user supplied kernel
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch
w=0x238df4f0: deregister unregistered
domainbuilder: detail: xc_dom_allocate: cmdline="earlyprintk=xenboot
console=hvc0 root=/dev/xvda debug rw init=/bin/sh", features="(null)"
libxl: debug: libxl_dom.c:625:libxl__build_pv: pv kernel mapped 0 path
/home/ubuntu/workspace/domu/Image
domainbuilder: detail: xc_dom_kernel_file:
filename="/home/ubuntu/workspace/domu/Image"
domainbuilder: detail: xc_dom_malloc_filemap : 25540 kB
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.6, caps
xen-3.0-aarch64 xen-3.0-armv7l
domainbuilder: detail: xc_dom_rambase_init: RAM starts at 40000
domainbuilder: detail: xc_dom_parse_image: called
domainbuilder: detail: xc_dom_find_loader: trying multiboot-binary loader ...
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying Linux zImage (ARM64)
loader ...
domainbuilder: detail: loader probe OK
domainbuilder: detail: xc_dom_parse_zimage64_kernel: called
domainbuilder: detail: xc_dom_parse_zimage64_kernel: xen-3.0-aarch64:
0x40080000 -> 0x41971200
libxl: debug: libxl_arm.c:776:libxl__arch_domain_init_hw_description:
constructing DTB for Xen version 4.6 guest
libxl: debug: libxl_arm.c:777:libxl__arch_domain_init_hw_description:
- vGIC version: V2
libxl: debug: libxl_arm.c:273:make_chosen_node: /chosen/bootargs =
earlyprintk=xenboot console=hvc0 root=/dev/xvda debug rw init=/bin/sh
libxl: debug: libxl_arm.c:380:make_memory_nodes: Creating placeholder
node /memory@40000000
libxl: debug: libxl_arm.c:380:make_memory_nodes: Creating placeholder
node /memory@200000000
libxl: debug: libxl_arm.c:871:libxl__arch_domain_init_hw_description:
fdt total size 1294
domainbuilder: detail: xc_dom_devicetree_mem: called
domainbuilder: detail: xc_dom_mem_init: mem 128 MB, pages 0x8000 pages, 4k each
domainbuilder: detail: xc_dom_mem_init: 0x8000 pages
domainbuilder: detail: xc_dom_boot_mem_init: called
domainbuilder: detail: set_mode: guest xen-3.0-aarch64, address size 64
domainbuilder: detail: xc_dom_malloc : 256 kB
domainbuilder: detail: populate_guest_memory: populating RAM @
0000000040000000-0000000048000000 (128MB)
domainbuilder: detail: populate_one_size: populated 0x40/0x40 entries
with shift 9
domainbuilder: detail: arch_setup_meminit: placing boot modules at 0x47fff000
domainbuilder: detail: arch_setup_meminit: devicetree: 0x47fff000 -> 0x48000000
libxl: debug: libxl_arm.c:902:finalise_one_memory_node: Populating
placeholder node /memory@40000000
libxl: debug: libxl_arm.c:896:finalise_one_memory_node: Nopping out
placeholder node /memory@200000000
domainbuilder: detail: xc_dom_build_image: called
domainbuilder: detail: xc_dom_alloc_segment: kernel :
0x40080000 -> 0x41972000 (pfn 0x40080 + 0x18f2 pages)
domainbuilder: detail: xc_dom_malloc : 149 kB
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn
0x40080+0x18f2 at 0xffff82c62000
domainbuilder: detail: xc_dom_load_zimage_kernel: called
domainbuilder: detail: xc_dom_load_zimage_kernel: kernel seg
0x40080000-0x41972000
domainbuilder: detail: xc_dom_load_zimage_kernel: copy 26153472 bytes
from blob 0xffff84595000 to dst 0xffff82c62000
domainbuilder: detail: xc_dom_alloc_segment: devicetree :
0x47fff000 -> 0x48000000 (pfn 0x47fff + 0x1 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn
0x47fff+0x1 at 0xffff861c7000
domainbuilder: detail: alloc_magic_pages: called
domainbuilder: detail: count_pgtables_arm: called
domainbuilder: detail: xc_dom_build_image : virt_alloc_end : 0x48000000
domainbuilder: detail: xc_dom_build_image : virt_pgtab_end : 0x0
domainbuilder: detail: xc_dom_boot_image: called
domainbuilder: detail: arch_setup_bootearly: doing nothing
domainbuilder: detail: xc_dom_compat_check: supported guest type:
xen-3.0-aarch64 <= matches
domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-armv7l
domainbuilder: detail: setup_pgtables_arm: called
domainbuilder: detail: clear_page: pfn 0x39000, mfn 0x39000
domainbuilder: detail: clear_page: pfn 0x39001, mfn 0x39001
domainbuilder: detail: start_info_arm: called
domainbuilder: detail: domain builder memory footprint
domainbuilder: detail: allocated
domainbuilder: detail: malloc : 408 kB
domainbuilder: detail: anon mmap : 0 bytes
domainbuilder: detail: mapped
domainbuilder: detail: file mmap : 25540 kB
domainbuilder: detail: domU mmap : 25548 kB
domainbuilder: detail: vcpu_arm64: called
domainbuilder: detail: DTB 47fff000
domainbuilder: detail: Initial state CPSR 0x1c5 PC 0x40080000
domainbuilder: detail: launch_vm: called, ctxt=0xffff861c9004
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0x38000
domainbuilder: detail: xc_dom_release: called
libxl: debug: libxl_device.c:337:libxl__device_disk_set_backend: Disk
vdev=xvda spec.backend=phy
libxl: debug: libxl_event.c:639:libxl__ev_xswatch_register: watch
w=0x238e0bd0 wpath=/local/domain/0/backend/vbd/1/51712/state
token=3/0: register slotnum=3
libxl: debug: libxl_create.c:1586:do_domain_create: ao 0x238de720:
inprogress: poller=0x238de7b0, flags=i
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x238e0bd0
wpath=/local/domain/0/backend/vbd/1/51712/state token=3/0: event
epath=/local/domain/0/backend/vbd/1/51712/state
libxl: debug: libxl_event.c:884:devstate_callback: backend
/local/domain/0/backend/vbd/1/51712/state wanted state 2 still waiting
state 1
libxl: debug: libxl_event.c:576:watchfd_callback: watch w=0x238e0bd0
wpath=/local/domain/0/backend/vbd/1/51712/state token=3/0: event
epath=/local/domain/0/backend/vbd/1/51712/state
libxl: debug: libxl_event.c:880:devstate_callback: backend
/local/domain/0/backend/vbd/1/51712/state wanted state 2 ok
libxl: debug: libxl_event.c:677:libxl__ev_xswatch_deregister: watch
w=0x238e0bd0 wpath=/local/domain/0/backend/vbd/1/51712/state
token=3/0: deregister slotnum=3
libxl: debug: libxl_device.c:991:device_backend_callback: calling
device_backend_cleanup
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch
w=0x238e0bd0: deregister unregistered
libxl: error: libxl.c:1991:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:1041:device_hotplug: Failed to get domid
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch
w=0x238e0cd0: deregister unregistered
libxl: error: libxl_create.c:1176:domcreate_launch_dm: unable to add
disk devices
libxl: error: libxl.c:1991:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:849:libxl__initiate_device_remove: unable
to get my domid
libxl: debug: libxl_event.c:691:libxl__ev_xswatch_deregister: watch
w=0x238d9210: deregister unregistered
libxl: error: libxl.c:1991:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl.c:1684:devices_destroy_cb: libxl__devices_destroy
failed for 1
libxl: debug: libxl.c:1738:devices_destroy_cb: forked pid 679 for
destroy of domain 1
libxl: debug: libxl_event.c:1874:libxl__ao_complete: ao 0x238de720:
complete, rc=-3
libxl: debug: libxl_event.c:1843:libxl__ao__destroy: ao 0x238de720: destroy
libxl: debug: libxl.c:1477:libxl_domain_destroy: ao 0x238d8a90:
create: how=(nil) callback=(nil) poller=0x238de7b0
libxl: error: libxl.c:1610:libxl__destroy_domid: non-existant domain 1
libxl: error: libxl.c:1568:domain_destroy_callback: unable to destroy
guest with domid 1
libxl: error: libxl.c:1495:domain_destroy_cb: destruction of domain 1 failed
libxl: debug: libxl_event.c:1874:libxl__ao_complete: ao 0x238d8a90:
complete, rc=-21
libxl: debug: libxl.c:1486:libxl_domain_destroy: ao 0x238d8a90:
inprogress: poller=0x238de7b0, flags=ic
libxl: debug: libxl_event.c:1843:libxl__ao__destroy: ao 0x238d8a90: destroy
xc: debug: hypercall buffer: total allocations:97 total releases:97
xc: debug: hypercall buffer: current allocations:0 maximum allocations:3
xc: debug: hypercall buffer: cache current size:3
xc: debug: hypercall buffer: cache hits:87 misses:3 toobig:7
ubuntu@LXC_NAME:~/workspace/domu$ sudo xl list
Name ID Mem VCPUs State Time(s)
(null) 0 256 2 r----- 9.8

-------------------------------------------------------------------------------------------

I cannot diagnose the issue. Could you throw some light on what went wrong?

log of xen boot:
?a????xP " HELLO! BOOT0 is starting!
boot0 commit : 045061a8bb2580cb3fa02e301f52a015040c158f

boot0 version : 4.0.0
set pll start
set pll end
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
DRAM driver version: V1.1
rsb_send_initseq: rsb clk 400Khz -> 3Mhz
PMU: AXP81X
ddr voltage = 1500 mv
DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM clk = 672 MHz
DRAM zq value: 003b3bdd
DRAM single rank full DQ OK
DRAM size = 1024 MB
DRAM init ok
dram size =1024
card boot number = 0, boot0 copy = 0
card no is 0
sdcard 0 line count 4
[mmc]: mmc driver ver 2015-05-08 20:06
[mmc]: sdc0 spd mode error, 2
[mmc]: Wrong media type 0x00000000
[mmc]: ***Try SD card 0***
[mmc]: HSSDR52/SDR25 4 bit
[mmc]: 50000000 Hz
[mmc]: 15193 MB
[mmc]: ***SD/MMC 0 init OK!!!***
sdcard 0 init ok
The size of uboot is 000f8000.
sum=f4287e29
src_sum=f4287e29
Succeed in loading uboot from sdmmc flash.
boot0: start load other image
boot0: Loading BL3-1
Loading file 0 at address 0x40000000,size 0x0000a400 success
boot0: Loading scp
Loading file 2 at address 0x00040000,size 0x00019c00 success
set arisc reset to de-assert state
Ready to disable icache.
? Configuring SPC Controller
NOTICE: BL3-1: v1.0(debug):864ef11
NOTICE: BL3-1: Built : 21:59:22, May 8 2017
INFO: BL3-1: Initializing runtime services
INFO: BL3-1: Preparing for EL3 exit to normal world
INFO: BL3-1: Next image address = 0x4a000000
INFO: BL3-1: Next image spsr = 0x1d3


U-Boot 2014.07-00014-gc616876 (May 30 2017 - 18:44:41) Allwinner Technology

uboot commit : c616876a3e07117d9bf1a5fdadbc7e7c233c4f34

rsb: secure monitor exist
[ 0.406]pmbus: ready
[ 0.409][ARISC] :arisc initialize
[ 0.848][ARISC] :arisc_dvfs_cfg_vf_table: support only one vf_table
[SCP] :sunxi-arisc driver begin startup 2
[SCP] :arisc_para size:1a8
[SCP] :arisc version: [v0.1.76]
[SCP] :sunxi-arisc driver v1.10 is starting
[ 1.013][ARISC] :sunxi-arisc driver startup succeeded
[ 1.058]PMU: AXP81X
[ 1.060]PMU: AXP81X found
bat_vol=123, ratio=100
[ 1.067]PMU: dcdc2 1100
[ 1.070]PMU: cpux 1008 Mhz,AXI=336 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=100Mhz AHB2=300Mhz MBus=400Mhz
device_type = 3253, onoff=1
dcdc1_vol = 3300, onoff=1
dcdc2_vol = 1100, onoff=1
dcdc6_vol = 1100, onoff=1
aldo1_vol = 2800, onoff=0
aldo2_vol = 1800, onoff=1
aldo3_vol = 3000, onoff=1
dldo1_vol = 3300, onoff=0
dldo2_vol = 3300, onoff=0
dldo3_vol = 2800, onoff=0
dldo4_vol = 3300, onoff=1
eldo1_vol = 1800, onoff=1
eldo2_vol = 1800, onoff=0
eldo3_vol = 1800, onoff=0
fldo1_vol = 1200, onoff=0
fldo2_vol = 1100, onoff=1
gpio0_vol = 3100, onoff=0
vbus not exist
no battery, limit to dc
run key detect
no key found
no uart input
DRAM: 1008 MiB
fdt addr: 0x76eba000
Relocation Offset is: 35f0c000
In: serial
Out: serial
Err: serial
gic: sec monitor mode
[ 1.912]start
drv_disp_init
init_clocks: finish init_clocks.
fdt_get_one_gpio lcd0.lcd_gpio_1 fail
fdt_get_one_gpio lcd0.lcd_gpio_2 fail
fdt_get_one_gpio lcd0.lcd_gpio_3 fail
fdt_get_one_gpio lcd0.lcd_gpio_scl fail
fdt_get_one_gpio lcd0.lcd_gpio_sda fail
pwm_request:pwm number = 1
pwm_request: reg = 0x1f03800.pchip->pwm = 16
reg_busy_offset=0, reg_busy_shift = 0, reg_enable_offset = 0
request pwm success, pwm = 16!
sunxi_pwm_config: reg_shift = 0, reg_width = 4, prescale temp = f, pres=15
PWM _TEST: duty_ns=3906, period_ns=20000, freq=50000, per_scal=0,
period_reg=0x1df005e
enable power vcc-hdmi-33, ret=0
drv_disp_init finish
boot_disp.output_disp=0
boot_disp.output_type=3
boot_disp.output_mode=5
fetch script data boot_disp.auto_hpd fail
disp0 device type(4) enable
attched ok, mgr0<-->device1, type=4, mode=5
[ 2.953]end
workmode = 0,storage type = 1
[ 2.957]MMC: 0
[mmc]: mmc driver ver 2015-06-03 13:50:00
SUNXI SD/MMC: 0
[mmc]: start mmc_calibrate_delay_unit, don't access device...
[mmc]: delay chain cal done, sample: 200(ps)
[mmc]: media type 0x0
[mmc]: Wrong media type 0x0
[mmc]: ************Try SD card 0************
[mmc]: host caps: 0x27
[mmc]: MID 03 PSN 01132d3b
[mmc]: PNM SL16G -- 0x53-4c-31-36-47
[mmc]: PRV 8.0
[mmc]: MDT m-3 y-2015
[mmc]: speed mode : HSSDR52/SDR25
[mmc]: clock : 50000000 Hz
[mmc]: bus_width : 4 bit
[mmc]: user capacity : 15193 MB
[mmc]: ************SD/MMC 0 init OK!!!************
[mmc]: erase_grp_size : 0x1WrBlk*0x200=0x200 Byte
[mmc]: secure_feature : 0x0
[mmc]: secure_removal_type : 0x0
[ 3.276]sunxi flash init ok
[mmc]: Has init
[ 3.345]---drivers/mmc/mmc.c 2733 mmc_init
reading uboot.env

** Unable to read "uboot.env" from mmc0:1 **
Using default environment

--------fastboot partitions--------
mbr not exist
base bootcmd=run mmcbootcmd
bootcmd set setargs_mmc
key 0
recovery key high 12, low 10
fastboot key high 6, low 4
no misc partition is found
to be run cmd=run mmcbootcmd
update dtb dram start
update dtb dram end
serial is: 841051900800580804cb
check for ANX9807
get Pine64 model from DRAM size
DRAM >512M
Pine64 model: pine64-plus
no battery exist
sunxi_bmp_logo_display
[mmc]: Has init
[ 3.742]---drivers/mmc/mmc.c 2733 mmc_init
reading bootlogo.bmp
** Unable to read file bootlogo.bmp **
sunxi bmp info error : unable to open logo file bootlogo.bmp
[ 3.759]inter uboot shell
autoboot in 1 seconds, Press s to abort
[mmc]: Has init
[ 4.940]---drivers/mmc/mmc.c 2733 mmc_init
reading uEnv.txt
** Unable to read file uEnv.txt **
[mmc]: Has init
[ 4.953]---drivers/mmc/mmc.c 2733 mmc_init
reading boot.scr
1063 bytes read in 3 ms (345.7 KiB/s)
Booting with script ...
## Executing script at 41000000
[mmc]: Has init
[ 4.978]---drivers/mmc/mmc.c 2733 mmc_init
26153472 bytes read in 1386 ms (18 MiB/s)
[mmc]: Has init
[ 6.377]---drivers/mmc/mmc.c 2733 mmc_init
690136 bytes read in 45 ms (14.6 MiB/s)
[mmc]: Has init
[ 6.434]---drivers/mmc/mmc.c 2733 mmc_init
23466 bytes read in 61 ms (375 KiB/s)
## Booting kernel from Legacy Image at 42000000 ...
Image Name:
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 690072 Bytes = 673.9 KiB
Load Address: 40200000
Entry Point: 40200000
Verifying Checksum ... OK
## Flattened Device Tree blob at 58000000
Booting using the fdt blob at 0x58000000
Loading Kernel Image ... OK
reserving fdt memory region: addr=58000000 size=6000
Loading Device Tree to 44ff6000, end 44ffefff ... OK

Starting kernel ...

[mmc]: MMC Device 2 not found
[mmc]: mmc 2 not find, so not exit
INFO: BL3-1: Next image address = 0x40200000
INFO: BL3-1: Next image spsr = 0x3c9
(XEN) Xen version 4.6.5 (Ubuntu 4.6.5-0ubuntu1.4)
(stefan.bader@canonical.com) (gcc (Ubuntu/Linaro
5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609) debug=n Fri Oct 13 15:45:11
UTC 2017
(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) 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)
(XEN) Allocated console ring of 16 KiB.
(XEN) Bringing up CPU1
(XEN) Bringing up CPU2
(XEN) Bringing up CPU3
(XEN) Brought up 4 CPUs
(XEN) P2M: 40-bit IPA with 40-bit PA
(XEN) P2M: 3 levels with order-1 root, VTCR 0x80023558
(XEN) I/O virtualisation disabled
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading kernel from boot module @ 0000000052000000
(XEN) Allocating 1:1 mappings totalling 256MB for dom0:
(XEN) BANK[0] 0x00000060000000-0x00000070000000 (256MB)
(XEN) Grant table range: 0x0000007fe00000-0x0000007fe51000
(XEN) Loading zImage from 0000000052000000 to 0000000060080000-0000000061971200
(XEN) Allocating PPI 16 for event channel interrupt
(XEN) Loading dom0 DTB to 0x0000000068000000-0x0000000068005a67
(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: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch
input to Xen)
(XEN) Freed 276kB 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 ICACTIVER20
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER24
(XEN) d0v0: vGICD: unhandled word write 0xffffffff to ICACTIVER0
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.4.0-rc3 (janani@janani-Vostro-2520)
(gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #2 SMP
PREEMPT Fri Nov 1 13:01:35 IST 2019
[ 0.000000] Machine model: Pine64+
[ 0.000000] printk: debug: ignoring loglevel setting.
[ 0.000000] Xen 4.6 support found
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 32 MiB at 0x000000006e000000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem
0x0000000060000000-0x000000006fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x6df5e800-0x6df5ffff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000060000000-0x000000006fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000060000000-0x000000006fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000060000000-0x000000006fffffff]
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] DMA32 zone: 1024 pages used for memmap
[ 0.000000] DMA32 zone: 0 pages reserved
[ 0.000000] DMA32 zone: 65536 pages, LIFO batch:15
[ 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 22 pages/cpu s52952 r8192 d28968 u90112
[ 0.000000] pcpu-alloc: s52952 r8192 d28968 u90112 alloc=22*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] CPU features: detected: ARM erratum 843419
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64512
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: console=hvc0 earlyprintk=xen
ignore_loglevel clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait
panic=10
[ 0.000000] Dentry cache hash table entries: 32768 (order: 6,
262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072
bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 185740K/262144K available (12156K kernel code,
1860K rwdata, 6420K rodata, 5056K init, 452K bss, 43636K reserved,
32768K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay
is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] random: get_random_bytes called from
start_kernel+0x2b8/0x458 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff
max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000004] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps
every 4398046511097ns
[ 0.000675] Console: colour dummy device 80x25
[ 0.001333] printk: console [hvc0] enabled
[ 0.001411] Calibrating delay loop (skipped), value calculated
using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.001441] pid_max: default: 32768 minimum: 301
[ 0.001535] LSM: Security Framework initializing
[ 0.001605] Mount-cache hash table entries: 512 (order: 0, 4096
bytes, linear)
[ 0.001628] Mountpoint-cache hash table entries: 512 (order: 0,
4096 bytes, linear)
[ 0.024078] ASID allocator initialised with 32768 entries
[ 0.024464] xen:grant_table: Grant tables using version 1 layout
[ 0.024500] Grant table initialized
[ 0.024534] xen:events: Using FIFO-based ABI
[ 0.024584] Xen: initializing cpu0
[ 0.032090] rcu: Hierarchical SRCU implementation.
[ 0.041674] EFI services will not be available.
[ 0.048156] smp: Bringing up secondary CPUs ...
(XEN) d0v1: vGICD: unhandled word write 0xffffffff to ICACTIVER0
[ 0.080375] Detected VIPT I-cache on CPU1
[ 0.080476] Xen: initializing cpu1
[ 0.080500] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.080632] smp: Brought up 1 node, 2 CPUs
[ 0.080679] SMP: Total of 2 processors activated.
[ 0.080696] CPU features: detected: 32-bit EL0 Support
[ 0.080713] CPU features: detected: CRC32 instructions
[ 0.086597] CPU: All CPU(s) started at EL1
[ 0.086641] alternatives: patching kernel code
[ 0.087763] devtmpfs: initialized
[ 0.093209] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.093254] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.094445] pinctrl core: initialized pinctrl subsystem
[ 0.095708] DMI not present or invalid.
[ 0.096097] NET: Registered protocol family 16
[ 0.101358] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.101394] audit: initializing netlink subsys (disabled)
[ 0.101563] audit: type=2000 audit(0.100:1): state=initialized
audit_enabled=0 res=1
[ 0.103304] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.103495] xen:swiotlb_xen: Warning: only able to allocate 4 MB
for software IO TLB
[ 0.104787] software IO TLB: mapped [mem 0x6c000000-0x6c400000] (4MB)
[ 0.106041] Serial: AMBA PL011 UART driver
[ 0.123539] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.123572] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.123590] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.123609] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.126364] cryptd: max_cpu_qlen set to 1000
[ 0.131182] ACPI: Interpreter disabled.
[ 0.131860] xen:balloon: Initialising balloon driver
[ 0.132468] iommu: Default domain type: Translated
[ 0.132743] vgaarb: loaded
[ 0.133069] SCSI subsystem initialized
[ 0.133277] libata version 3.00 loaded.
[ 0.133514] usbcore: registered new interface driver usbfs
[ 0.133569] usbcore: registered new interface driver hub
[ 0.133620] usbcore: registered new device driver usb
[ 0.134225] pps_core: LinuxPPS API ver. 1 registered
[ 0.134242] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
Rodolfo Giometti <giometti@linux.it>
[ 0.134274] PTP clock support registered
[ 0.134393] EDAC MC: Ver: 3.0.0
[ 0.135437] FPGA manager framework
[ 0.135529] Advanced Linux Sound Architecture Driver Initialized.
[ 0.136360] clocksource: Switched to clocksource arch_sys_counter
[ 0.136527] VFS: Disk quotas dquot_6.6.0
[ 0.136592] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.136835] pnp: PnP ACPI: disabled
[ 0.144251] thermal_sys: Registered thermal governor 'step_wise'
[ 0.144255] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.144883] NET: Registered protocol family 2
[ 0.145290] tcp_listen_portaddr_hash hash table entries: 256
(order: 0, 4096 bytes, linear)
[ 0.145325] TCP established hash table entries: 2048 (order: 2,
16384 bytes, linear)
[ 0.145366] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 0.145417] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.145500] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.145537] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.145656] NET: Registered protocol family 1
[ 0.146197] RPC: Registered named UNIX socket transport module.
[ 0.146218] RPC: Registered udp transport module.
[ 0.146232] RPC: Registered tcp transport module.
[ 0.146246] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.146270] PCI: CLS 0 bytes, default 64
[ 0.147002] hw perfevents: failed to parse interrupt-affinity[0] for pmu
[ 0.147025] hw perfevents: /pmu: failed to register PMU devices!
[ 0.147058] armv8-pmu: probe of pmu failed with error -22
[ 0.147253] kvm [1]: HYP mode not available
[ 0.155793] Initialise system trusted keyrings
[ 0.155999] workingset: timestamp_bits=44 max_order=16 bucket_order=0
[ 0.163002] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.163821] NFS: Registering the id_resolver key type
[ 0.163859] Key type id_resolver registered
[ 0.163872] Key type id_legacy registered
[ 0.163892] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.164098] 9p: Installing v9fs 9p2000 file system support
[ 0.179997] Key type asymmetric registered
[ 0.180018] Asymmetric key parser 'x509' registered
[ 0.180070] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 245)
[ 0.180093] io scheduler mq-deadline registered
[ 0.180108] io scheduler kyber registered
[ 0.181715] sun50i-de2-bus 1000000.bus: Error couldn't map SRAM to device
[ 0.182453] sun4i-usb-phy 1c19400.phy: failed to get clock usb0_phy
[ 0.188170] sun50i-a64-r-pinctrl 1f02c00.pinctrl: initialized sunXi
PIO driver
[ 0.191707] EINJ: ACPI disabled.
[ 0.200733] xen:xen_evtchn: Event-channel device installed
[ 0.206985] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.209400] SuperH (H)SCI(F) driver initialized
[ 0.209911] msm_serial: driver initialized
[ 0.211124] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.217821] loop: module loaded
[ 0.217922] Invalid max_queues (4), will use default max: 2.
[ 0.222131] libphy: Fixed MDIO Bus: probed
[ 0.222443] tun: Universal TUN/TAP device driver, 1.6
[ 0.223240] thunder_xcv, ver 1.0
[ 0.223292] thunder_bgx, ver 1.0
[ 0.223341] nicpf, ver 1.0
[ 0.223886] hclge is initializing
[ 0.223902] hns3: Hisilicon Ethernet Network Driver for Hip08
Family - version
[ 0.223921] hns3: Copyright (c) 2017 Huawei Corporation.
[ 0.223984] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 0.224000] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.224050] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.6.0-k
[ 0.224068] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 0.224120] igbvf: Intel(R) Gigabit Virtual Function Network Driver
- version 2.4.0-k
[ 0.224140] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 0.224487] sky2: driver version 1.30
[ 0.224985] xen_netfront: Initialising Xen virtual ethernet driver
[ 0.225218] VFIO - User Level meta-driver version: 0.3
[ 0.226750] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.226774] ehci-pci: EHCI PCI platform driver
[ 0.226817] ehci-platform: EHCI generic platform driver
[ 0.227049] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.227084] ehci-platform 1c1a000.usb: new USB bus registered,
assigned bus number 1
[ 0.227228] ehci-platform 1c1a000.usb: irq 16, io mem 0x01c1a000
[ 0.240379] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.240997] hub 1-0:1.0: USB hub found
[ 0.241035] hub 1-0:1.0: 1 port detected
[ 0.241582] ehci-orion: EHCI orion driver
[ 0.241755] ehci-exynos: EHCI EXYNOS driver
[ 0.241849] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.241886] ohci-pci: OHCI PCI platform driver
[ 0.241955] ohci-platform: OHCI generic platform driver
[ 0.242107] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.242139] ohci-platform 1c1a400.usb: new USB bus registered,
assigned bus number 2
[ 0.242277] ohci-platform 1c1a400.usb: irq 17, io mem 0x01c1a400
[ 0.304921] hub 2-0:1.0: USB hub found
[ 0.304958] hub 2-0:1.0: 1 port detected
[ 0.305474] ohci-exynos: OHCI EXYNOS driver
[ 0.306061] usbcore: registered new interface driver usb-storage
[ 0.309090] sun6i-rtc 1f00000.rtc: registered as rtc0
[ 0.309115] sun6i-rtc 1f00000.rtc: RTC enabled
[ 0.309381] i2c /dev entries driver
[ 0.313792] sdhci: Secure Digital Host Controller Interface driver
[ 0.313813] sdhci: Copyright(c) Pierre Ossman
[ 0.314187] Synopsys Designware Multimedia Card Interface Driver
[ 0.315090] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.316489] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.317679] usbcore: registered new interface driver usbhid
[ 0.317698] usbhid: USB HID core driver
[ 0.323589] NET: Registered protocol family 17
[ 0.323784] 9pnet: Installing 9P2000 support
[ 0.323856] Key type dns_resolver registered
[ 0.324317] registered taskstats version 1
[ 0.324332] Loading compiled-in X.509 certificates
[ 0.337774] sun50i-a64-r-pinctrl 1f02c00.pinctrl: 1f02c00.pinctrl
supply vcc-pl not found, using dummy regulator
[ 0.338005] sunxi-rsb 1f03400.rsb: RSB running at 3030303 Hz
[ 0.338478] axp20x-rsb sunxi-rsb-3a3: AXP20x variant AXP803 found
[ 0.348286] dcdc1: supplied by regulator-dummy
[ 0.348763] dcdc2: supplied by regulator-dummy
[ 0.349001] dcdc4: supplied by regulator-dummy
[ 0.349249] dcdc5: supplied by regulator-dummy
[ 0.349331] vcc-dram: Bringing 1500000uV into 1360000-1360000uV
[ 0.349569] dcdc6: supplied by regulator-dummy
[ 0.349798] dc1sw: supplied by regulator-dummy
[ 0.349987] aldo1: supplied by regulator-dummy
[ 0.350222] aldo2: supplied by regulator-dummy
[ 0.350489] aldo3: supplied by regulator-dummy
[ 0.350741] dldo1: supplied by regulator-dummy
[ 0.350980] dldo2: supplied by regulator-dummy
[ 0.351233] dldo3: supplied by regulator-dummy
[ 0.351479] dldo4: supplied by regulator-dummy
[ 0.351729] eldo1: supplied by regulator-dummy
[ 0.351974] eldo2: supplied by regulator-dummy
[ 0.352221] eldo3: supplied by regulator-dummy
[ 0.352518] fldo1: supplied by regulator-dummy
[ 0.352776] fldo2: supplied by regulator-dummy
[ 0.353050] rtc-ldo: supplied by regulator-dummy
[ 0.353246] ldo-io0: supplied by regulator-dummy
[ 0.353494] ldo-io1: supplied by regulator-dummy
[ 0.353718] axp20x-rsb sunxi-rsb-3a3: AXP20X driver loaded
[ 0.358562] sun50i-a64-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.359964] ehci-platform 1c1b000.usb: EHCI Host Controller
[ 0.360005] ehci-platform 1c1b000.usb: new USB bus registered,
assigned bus number 3
[ 0.360141] ehci-platform 1c1b000.usb: irq 18, io mem 0x01c1b000
[ 0.372432] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[ 0.373089] hub 3-0:1.0: USB hub found
[ 0.373127] hub 3-0:1.0: 1 port detected
[ 0.374725] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[ 0.374768] ohci-platform 1c1b400.usb: new USB bus registered,
assigned bus number 4
[ 0.374923] ohci-platform 1c1b400.usb: irq 19, io mem 0x01c1b400
[ 0.436946] hub 4-0:1.0: USB hub found
[ 0.436983] hub 4-0:1.0: 1 port detected
[ 0.438698] usb_phy_generic usb_phy_generic.0.auto:
usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 0.439388] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 0.439422] musb-hdrc musb-hdrc.1.auto: new USB bus registered,
assigned bus number 5
[ 0.440042] hub 5-0:1.0: USB hub found
[ 0.440080] hub 5-0:1.0: 1 port detected
[ 0.441907] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl
supply vcc-ph not found, using dummy regulator
[ 0.444011] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl
supply vcc-pf not found, using dummy regulator
[ 0.444745] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[ 0.470039] sunxi-mmc 1c0f000.mmc: initialized, max. request size:
16384 KB, uses new timings mode
[ 0.470504] sun6i-rtc 1f00000.rtc: setting system clock to
1970-01-01T00:00:06 UTC (6)
[ 0.470772] clk: Not disabling unused clocks
[ 0.470793] ALSA device list:
[ 0.470808] No soundcards found.
[ 0.471126] Waiting for root device /dev/mmcblk0p2...
[ 0.523320] mmc0: new high speed SDHC card at address aaaa
[ 0.528093] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[ 0.534109] mmcblk0: p1 p2
[ 0.614058] random: fast init done
[ 0.674722] EXT4-fs (mmcblk0p2): recovery complete
[ 0.676363] EXT4-fs (mmcblk0p2): mounted filesystem with ordered
data mode. Opts: (null)
[ 0.676446] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 0.677465] devtmpfs: mounted
[ 0.680217] Freeing unused kernel memory: 5056K
[ 0.680328] Run /sbin/init as init process
[ 0.931083] systemd[1]: System time before build time, advancing clock.
[ 1.683281] NET: Registered protocol family 10
[ 1.684172] Segment Routing with IPv6
[ 1.710577] random: systemd: uninitialized urandom read (16 bytes read)
[ 1.712594] random: systemd: uninitialized urandom read (16 bytes read)
[ 1.732603] systemd[1]: systemd 229 running in system mode. (+PAM
+AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP
+GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[ 1.732833] systemd[1]: Detected virtualization xen.
[ 1.732866] systemd[1]: Detected architecture arm64.

Welcome to Ubuntu 16.04.6 LTS!

[ 1.735085] systemd[1]: Set hostname to <LXC_NAME>.
[ 1.751448] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.007795] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 2.008677] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 2.008959] systemd[1]: Reached target Encrypted Volumes.
[ OK ] Reached target Encrypted Volumes.
[ 2.009425] systemd[1]: Listening on Journal Audit Socket.
[ OK ] Listening on Journal Audit Socket.
[ 2.009754] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 2.010345] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ OK ] Started Trigger resolvconf update for networkd DNS.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Created slice System Slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Reached target Slices.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Reached target Remote File Systems (Pre).
[ OK ] Reached target Remote File Systems.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Reached target Paths.
[ OK ] Reached target Swap.
[ OK ] Listening on Journal Socket.
Starting Remount Root and Kernel File Systems...
Mounting Huge Pages File System...
Starting Create list of required st... nodes for the current kernel...
Mounting POSIX Message Queue File System...
Mounting Debug File System...
Starting Nameserver information manager...
Starting Set console keymap...
Starting Load Kernel Modules...
[ OK ] Listening on Journal Socket (/dev/log).
Starting Journal Service...
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started Create list of required sta...ce nodes for the current kernel.
[ OK ] Started Load Kernel Modules.
[ OK ] Mounted Huge Pages File System.
[ OK ] Mounted Debug File System.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Started Nameserver information manager.
[ OK ] Reached target Network (Pre).
Mounting Configuration File System...
Starting Apply Kernel Variables...
Starting Create Static Device Nodes in /dev...
Starting udev Coldplug all Devices...
Starting Load/Save Random Seed...
[ OK ] Mounted Configuration File System.
[ OK ] Started Journal Service.
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Load/Save Random Seed.
Starting Flush Journal to Persistent Storage...
[ OK ] Started Create Static Device Nodes in /dev.
Starting udev Kernel Device Manager...
[ 2.441260] systemd-journald[188]: Received request to flush
runtime journal from PID 1
[ OK ] Started Set console keymap.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Raise network interfaces...
Starting Set console font and keymap...
[ OK ] Started Flush Journal to Persistent Storage.
Starting Create Volatile Files and Directories...
[ OK ] Started udev Kernel Device Manager.
Starting LSB: QEMU KVM module loading script...
[ OK ] Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown...
Starting Network Time Synchronization...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Network Time Synchronization.
[ OK ] Started LSB: QEMU KVM module loading script.
[ OK ] Reached target System Time Synchronized.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily apt upgrade and clean activities.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Started Message of the Day.
[ OK ] Reached target Timers.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"...
Starting System Logging Service...
[ OK ] Started Regular background program processing daemon.
Starting Permit User Sessions...
Starting LSB: Xenstore daemon...
[ OK ] Started D-Bus System Message Bus.
[ 3.448251] bridge: filtering via arp/ip/ip6tables is no longer
available by default. Update your scripts to load br_netfilter if you
need this.
[ 3.743688] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled
(timeout=16 sec, nowayout=0)
[ 4.919062] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl
supply vcc-pd not found, using dummy regulator
[ 4.919286] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[ 4.919309] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[ 4.919435] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 4.923953] dwmac-sun8i 1c30000.ethernet: No HW DMA feature
register supported
[ 4.923989] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload
Engine supported
[ 4.924010] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 4.924027] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 4.924046] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 4.924065] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 4.924088] dwmac-sun8i 1c30000.ethernet: device MAC address
ca:98:90:f1:b0:f6
[ 4.924323] libphy: stmmac: probed
[ 4.927377] mdio_bus stmmac-0: MDIO device at address 1 is missing.
[ 5.434576] lima 1c40000.gpu: IRQ ppmmu2 not found
[ 5.434615] lima 1c40000.gpu: IRQ ppmmu3 not found
[ 5.434647] lima 1c40000.gpu: gp - mali400 version major 1 minor 1
[ 5.434715] lima 1c40000.gpu: pp0 - mali400 version major 1 minor 1
[ 5.434777] lima 1c40000.gpu: pp1 - mali400 version major 1 minor 1
[ 5.434829] lima 1c40000.gpu: IRQ pp2 not found
[ 5.434848] lima 1c40000.gpu: IRQ pp3 not found
[ 5.434867] lima 1c40000.gpu: l2 cache 64K, 4-way, 64byte cache
line, 64bit external bus
[ 5.435433] lima 1c40000.gpu: bus rate = 200000000
[ 5.435456] lima 1c40000.gpu: mod rate = 297000000
[ 5.435899] [drm] Initialized lima 1.0.0 20190217 for 1c40000.gpu on minor 0
Starting Login Service...
[ OK ] Started System Logging Service.
[ OK ] Started Set console font and keymap.
[ OK ] Started Permit User Sessions.
[ 5.822995] sun4i-drm display-engine: bound 1100000.mixer (ops
sun8i_mixer_ops [sun8i_mixer])
[ 5.828992] sun4i-drm display-engine: bound 1200000.mixer (ops
sun8i_mixer_ops [sun8i_mixer])
[ 5.829646] sun4i-drm display-engine: No panel or bridge found...
RGB output disabled
[ 5.829698] sun4i-drm display-engine: bound 1c0c000.lcd-controller
(ops sun4i_tcon_ops [sun4i_tcon])
[ 5.830006] sun4i-drm display-engine: bound 1c0d000.lcd-controller
(ops sun4i_tcon_ops [sun4i_tcon])
[ 5.831747] sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller
v1.32a with HDCP (sun8i_dw_hdmi_phy)
[ 5.835836] sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI
I2C bus driver
[ 5.839358] sun4i-drm display-engine: bound 1ee0000.hdmi (ops
sun8i_dw_hdmi_ops [sun8i_drm_hdmi])
[ 5.839404] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 5.839421] [drm] No driver support for vblank timestamp query.
[ 5.839865] [drm] Initialized sun4i-drm 1.0.0 20150629 for
display-engine on minor 1
[ 5.840003] [drm] Cannot find any crtc or sizes
[ OK ] Found device /dev/hvc0.
[ OK ] Started LSB: Set the CPU Frequency Scaling governor to "ondemand".
Starting Set console scheme...
[ OK ] Created slice system-getty.slice.
[ OK ] Started Set console scheme.
[ OK ] Started Login Service.
[ OK ] Started LSB: Xenstore daemon.
Starting LSB: Xen daemons...
[ 6.410368] xenbr0: port 1(eth0) entered blocking state
[ 6.410406] xenbr0: port 1(eth0) entered disabled state
[ 6.410676] device eth0 entered promiscuous mode
[ 6.414801] dwmac-sun8i 1c30000.ethernet eth0: no phy at addr -1
[ 6.414844] dwmac-sun8i 1c30000.ethernet eth0: stmmac_open: Cannot
attach to PHY (error: -19)
[ OK ] Started ifup for xenbr0.
[ OK ] Found device /sys/subsystem/net/devices/xenbr0.
[FAILED] Failed to start LSB: Xen daemons.
See 'systemctl status xen.service' for details.
Starting LSB: Start/stop secondary xen domains...
[ OK ] Started LSB: Start/stop secondary xen domains.
[ OK ] Started Raise network interfaces.
[ OK ] Reached target Network.
Starting /etc/rc.local Compatibility...
[ OK ] Started /etc/rc.local Compatibility.
[ OK ] Started Getty on tty1.
[ OK ] Started Serial Getty on hvc0.
[ OK ] Reached target Login Prompts.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.

Ubuntu 16.04.6 LTS LXC_NAME hvc0

LXC_NAME login: ubuntu
-------------------------------------------------------------------------------------------------------------

Thanks,
Janani Dharani kumar

_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users
Re: Issue in booting linux DomU in arm hw [ In reply to ]
Hello,

On 14/11/2019 15:18, Janani Krishnan wrote:
> I am trying to run Mainline linux kernel v5.4.0-rc3 as DomU. My setup
> details below.
> Target hw: Pine64+
> Architecture: aarch64 (arm64)
> Xen version: 4.6.5
> Dom0: Mainline linux Kernel v5.4.0-rc3

Xen 4.6 is not meant to support Pine64+. But, this is a pretty old
version which is not supported anymore by the community (included
security issues).

I would strongly recommend to move to the latest release (4.12) or soon
to be release (4.13).

Cheers,

--
Julien Grall

_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users
Re: Issue in booting linux DomU in arm hw [ In reply to ]
(+ Andre)

Hi,

Thank you for the details but please avoid to drop the ML from the CC List.

On 24/11/2019 10:21, dharani kumar wrote:
> Dear Julien,
> - Where Xen is loaded
> Xen is present in the RAM at 0x42000000. Load address and entry point
> given in the uImage is 0x40200000.
> Size of Xen 853328bytes.
> - Memory banks
> I dont find any mention of memory bank in the processor user manual.

They should be dumped by Xen when earlyprintk are enabled. I think
CONFIG_EARLY_PRINTK=sun7i should do the job for you.

> - Any reserved regions
> Memory mapping page says 0x40000000 to 0xFFFFFFFF is meant for SDRAM.
> - Which exact version of the pine64 are you using?
> I am using PineA64+ (1GB RAM Variant)
> - What's your device-tree?
> Device tree is built from mainline kernel. sun50i-a64-pine64-plus.dtb

I have CCed Andre who IIRC has a pine64+. @Andre, do you know whether
there is anything specific do to on the board to get Xen booting?

It looks like Xen will crash at boot (re-pasting the log below as the
e-mail wasn't on xen-users):

[mmc]: MMC Device 2 not found
[mmc]: mmc 2 not find, so not exit
INFO: BL3-1: Next image address = 0x40200000
INFO: BL3-1: Next image spsr = 0x3c9
Xen 4.12.1
(XEN) Xen version 4.12.1 (root@) (gcc (Ubuntu/Linaro
5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609) debug=n Thu Nov 21 20:03:32
UTC 2019
(XEN) Latest ChangeSet:
(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) Generic Timerder 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) XSM Framework v1.0.0 initialized
(XEN) Initialising XSM SILO mode
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2)
(XEN) Initializing Credit2 scheduler
(XEN) Allocated console ring of 16 KiB.
(XEN) Bringing up CPU1
(XEN) Bringing up CPU2
(XEN) Bringing up CPU3
(XEN) Brought up 4 CPUs
(XEN) P2M: 40-bit IPA with 40-bit PA and 8-bit VMID
(XEN) P2M: 3 levels with order-1 root, VTCR 0x80023558
(XEN) I/O virtualisation disabled
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading Domd0 kernel from boot module @ 0000000052000000
(XEN) Allocating 1:1 mappings totalling 256MB for dom0:
(XEN) BANK[0] 0x00000060000000-0x00000070000000 (256MB)
(XEN) Grant table range: 0x00000040200000-0x00000040240000
(XEN) Allocating PPI 16 for event channel interrupt
(XEN) Loading zImage from 0000000052000000 to
0000000060080000-0000000061971200
(XEN) Loading dom0 DTB to 0x0000000068000000-0x00000000680056c9
(XEN) Initial low memory virq threshold set at 0x4000 pages.
(XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input)
(XEN) Data Abort Trap. Syndrome=0x5
(XEN) Walking Hypervisor VA 0x7fffd0d98 on CPU0 via TTBR 0x0000000040308000
(XEN) 0TH[0x0] = 0x000000004030ff7f
(XEN) 1ST[0x1f] = 0x0000000000000000
(XEN) CPU0: Unexpected Trap: Data Abort
(XEN) ----[ Xen-4.12.1 arm64 debug=n Not tainted ]----
(XEN) CPU: 0
(XEN) PC: 00000000002186d8 page_alloc.c#free_heap_pages+0x38/0x518
(XEN) LR: 000000000021a68c
(XEN) SP: 000080003fff7d80
(XEN) CPSR: 20000249 MODE:64-bit EL2h (Hypervisor, handler)
(XEN) X0: 00000007fffd0d88 X1: 0000000000000000 X2: 0000000000000000
(XEN) X3: ffffffffffffffff X4: 0000000000000000 X5: 0000000000041000
(XEN) X6: 00000007fffd0d88 X7: 0000000000000001 X8: 00000000000000d8
(XEN) X9: 0000000000306000 X10: 000000000026c828 X11: 00000000002515e0
(XEN) X12: 0000000000014400 X13: 0000000000000001 X14: 0000000000000000
(XEN) X15: 0000000000286000 X16: 0000000000000000 X17: 0000000000000000
(XEN) X18: 0000000000286000 X19: 0000000000000051 X20: 0000000000286000
(XEN) X21: 0000000000286000 X22: 0000000000286000 X23: 0000000000286000
(XEN) X24: 0000000000000000 X25: 00000000002d8000 X26: 0000000000286000
(XEN) X27: 0000000000000000 X28: 00000007fffd0d88 FP: 0000000000000000
(XEN)
(XEN) VTCR_EL2: 80023558
(XEN) VTTBR_EL2: 00004cb9f4e3b990
(XEN)
(XEN) SCTLR_EL2: 30cd183d
(XEN) HCR_EL2: 000000000000003a
(XEN) TTBR0_EL2: 0000000040308000
(XEN)
(XEN) ESR_EL2: 96000005
(XEN) HPFAR_EL2: 00000000b7a551e0
(XEN) FAR_EL2: 00000007fffd0d98
(XEN)
(XEN) Xen stack trace from sp=000080003fff7d80:
(XEN) 0000000000000051 00000007fffd0d88 0000000000000000 0000000000286378
(XEN) 0000000000286000 0000000000000001 00000000002d8000 0000000000286000
(XEN) 0000000000286000 0000000000286000 000000000021a68c 00000000002863a0
(XEN) 0000000000297ed8 d37edb4bfbffdfff 0000000000287000 0000000000051000
(XEN) 0000000040287000 0000000040287000 0000000000316000 0000000000000004
(XEN) 0000000000280780 0000000000316448 0000000000000004 00000000002b0070
(XEN) 0000000000252030 00000000002d8000 0000000000285280 00000000002863a0
(XEN) 0000000000316000 0000000000000004 000080001801e000 00000000002d8000
(XEN) 0000000000285280 0000000000316458 00000000002558f0 ffe7ffffff9edfbb
(XEN) 0000000000298e94 fc796dda7fffffff 0000000000000000 0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) 0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) Xen call trace:
(XEN) [<00000000002186d8>] page_alloc.c#free_heap_pages+0x38/0x518 (PC)
(XEN) [<000000000021a68c>] page_alloc.c#init_heap_pages+0xf4/0x470 (LR)
(XEN)
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) CPU0: Unexpected Trap: Data Abort
(XEN) ****************************************



>
> Allwinner A64 user manual:
> http://files.pine64.org/doc/datasheet/pine64/Allwinner_A64_User_Manual_V1.0.pdf
>
> My boot script:
> setenv xen_addr_r 0x42000000
> setenv kernel_addr_r 0x52000000
> setenv kernel_size 0x18F1200
> setenv dtb_addr_r 0x58000000
>
> setenv xen_bootargs 'console=dtuart dtuart=/soc/serial@1c28000
> dom0_max_vcpus=2 dom0_mem=256M'
> setenv dom0_bootargs 'console=hvc0 earlyprintk=xen ignore_loglevel
> clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait panic=10'
>
> ext4load mmc 0:2 $kernel_addr_r /boot/Image
> ext4load mmc 0:2 $xen_addr_r /boot/xen-uImage
> ext4load mmc 0:2 $dtb_addr_r /boot/dts/allwinner/sun50i-a64-pine64-plus.dtb
>
> fdt addr $dtb_addr_r
> fdt resize
> fdt set /chosen xen,xen-bootargs \"$xen_bootargs\"
> fdt resize
> fdt set /chosen xen,dom0-bootargs \"$dom0_bootargs\"
> fdt mknode /chosen modules
> fdt set /chosen/modules '#address-cells' <1>
> fdt set /chosen/modules '#size-cells' <1>
> fdt mknode /chosen/modules module@0
> fdt set /chosen/modules/module@0 compatible xen,linux-zimage
> xen,multiboot-module
> fdt set /chosen/modules/module@0 reg <$kernel_addr_r $kernel_size>
> bootm $xen_addr_r - $dtb_addr_r
>
> Regards,
> Dharani.
>
>
> On Sat, Nov 23, 2019 at 11:18 PM Julien Grall <julien@xen.org> wrote:
>>
>> On 21/11/2019 20:31, dharani kumar wrote:
>>> Dear Julien,
>>
>> Hello,
>>
>>> I took your advise and stopped using Xen 4.6.5.
>>> I downloaded Xen RELEASE4.12.1 and built it native on Pine64.
>>> When i boot xen, xen traps while starting dom0.
>>> I used the same kernel image with xen 4.6.5 before, it ran dom0 without
>>> any problem.
>>> Could you help to understand the error? Thanks.
>>
>> It looks like Xen is trying to a page to the allocator that is not
>> valid. Could you give a bit more information your setup such as:
>> - Where Xen is loaded
>> - Memory banks
>> - Any reserved regions
>> - Which exact version of the pine64 are you using?
>> - What's your device-tree?
>>
>> Best reagrds,
>>
>> --
>> Julien Grall

--
Julien Grall

_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users
Re: Issue in booting linux DomU in arm hw [ In reply to ]
On 03/12/2019 21:01, Julien Grall wrote:

Hi,

> Thank you for the details but please avoid to drop the ML from the CC List.

thanks Julien for looping me in.

>
> On 24/11/2019 10:21, dharani kumar wrote:
>> Dear Julien,
>>    - Where Xen is loaded
>> Xen is present in the RAM at 0x42000000. Load address and entry point
>> given in the uImage is 0x40200000.
>> Size of Xen 853328bytes.
>>      - Memory banks
>> I dont find any mention of memory bank in the processor user manual.
>
> They should be dumped by Xen when earlyprintk are enabled. I think
> CONFIG_EARLY_PRINTK=sun7i should do the job for you.
>
>>      - Any reserved regions
>> Memory mapping page says 0x40000000 to 0xFFFFFFFF is meant for SDRAM.
>>      - Which exact version of the pine64 are you using?
>> I am using PineA64+ (1GB RAM Variant)
>>      - What's your device-tree?
>> Device tree is built from mainline kernel. sun50i-a64-pine64-plus.dtb
>
> I have CCed Andre who IIRC has a pine64+. @Andre, do you know whether
> there is anything specific do to on the board to get Xen booting?
>
> It looks like Xen will crash at boot (re-pasting the log below as the
> e-mail wasn't on xen-users):
>
> [mmc]: MMC Device 2 not found
> [mmc]: mmc 2 not find, so not exit
> INFO:    BL3-1: Next image address = 0x40200000
> INFO:    BL3-1: Next image spsr = 0x3c9

So this smells like you are using an Allwinner provided firmware, which
is not only ancient and broken in various ways, but also not supported.
I think the particular problem at hand is that ATF runs in the first MBs
of DRAM. IIRC they had some /memreserve/ in *their* DT to cover this,
but the mainline DT certainly hasn't.
Anyway, these days there is very little reason to use this outdated
firmware, especially when it comes to mainline software.
So please follow the instructions in U-Boot [1] to build the latest
firmware from mainline U-Boot/ATF sources.

If you are really desperate, you could also use some prebuilt firmware
packages, even though they are already old as well:
https://github.com/apritzel/pine64

I just tried this both with latest upstream and the old image, using
your U-Boot commands below. Just use "booti" instead of "bootm". I got
far into the Dom0 kernel. With the right DT (I used an older one) you
might as well reach the prompt.

Cheers,
Andre.

[1]
https://gitlab.denx.de/u-boot/u-boot/blob/master/board/sunxi/README.sunxi64

>  Xen 4.12.1
> (XEN) Xen version 4.12.1 (root@) (gcc (Ubuntu/Linaro
> 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609) debug=n  Thu Nov 21 20:03:32
> UTC 2019
> (XEN) Latest ChangeSet:
> (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) Generic Timerder 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) XSM Framework v1.0.0 initialized
> (XEN) Initialising XSM SILO mode
> (XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2)
> (XEN) Initializing Credit2 scheduler
> (XEN) Allocated console ring of 16 KiB.
> (XEN) Bringing up CPU1
> (XEN) Bringing up CPU2
> (XEN) Bringing up CPU3
> (XEN) Brought up 4 CPUs
> (XEN) P2M: 40-bit IPA with 40-bit PA and 8-bit VMID
> (XEN) P2M: 3 levels with order-1 root, VTCR 0x80023558
> (XEN) I/O virtualisation disabled
> (XEN) *** LOADING DOMAIN 0 ***
> (XEN) Loading Domd0 kernel from boot module @ 0000000052000000
> (XEN) Allocating 1:1 mappings totalling 256MB for dom0:
> (XEN) BANK[0] 0x00000060000000-0x00000070000000 (256MB)
> (XEN) Grant table range: 0x00000040200000-0x00000040240000
> (XEN) Allocating PPI 16 for event channel interrupt
> (XEN) Loading zImage from 0000000052000000 to
> 0000000060080000-0000000061971200
> (XEN) Loading dom0 DTB to 0x0000000068000000-0x00000000680056c9
> (XEN) Initial low memory virq threshold set at 0x4000 pages.
> (XEN) Scrubbing Free RAM in background
> (XEN) Std. Loglevel: Errors and warnings
> (XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
> (XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input)
> (XEN) Data Abort Trap. Syndrome=0x5
> (XEN) Walking Hypervisor VA 0x7fffd0d98 on CPU0 via TTBR 0x0000000040308000
> (XEN) 0TH[0x0] = 0x000000004030ff7f
> (XEN) 1ST[0x1f] = 0x0000000000000000
> (XEN) CPU0: Unexpected Trap: Data Abort
> (XEN) ----[ Xen-4.12.1  arm64  debug=n   Not tainted ]----
> (XEN) CPU:    0
> (XEN) PC:     00000000002186d8 page_alloc.c#free_heap_pages+0x38/0x518
> (XEN) LR:     000000000021a68c
> (XEN) SP:     000080003fff7d80
> (XEN) CPSR:   20000249 MODE:64-bit EL2h (Hypervisor, handler)
> (XEN)      X0: 00000007fffd0d88  X1: 0000000000000000  X2: 0000000000000000
> (XEN)      X3: ffffffffffffffff  X4: 0000000000000000  X5: 0000000000041000
> (XEN)      X6: 00000007fffd0d88  X7: 0000000000000001  X8: 00000000000000d8
> (XEN)      X9: 0000000000306000 X10: 000000000026c828 X11: 00000000002515e0
> (XEN)     X12: 0000000000014400 X13: 0000000000000001 X14: 0000000000000000
> (XEN)     X15: 0000000000286000 X16: 0000000000000000 X17: 0000000000000000
> (XEN)     X18: 0000000000286000 X19: 0000000000000051 X20: 0000000000286000
> (XEN)     X21: 0000000000286000 X22: 0000000000286000 X23: 0000000000286000
> (XEN)     X24: 0000000000000000 X25: 00000000002d8000 X26: 0000000000286000
> (XEN)     X27: 0000000000000000 X28: 00000007fffd0d88  FP: 0000000000000000
> (XEN)
> (XEN)   VTCR_EL2: 80023558
> (XEN)  VTTBR_EL2: 00004cb9f4e3b990
> (XEN)
> (XEN)  SCTLR_EL2: 30cd183d
> (XEN)    HCR_EL2: 000000000000003a
> (XEN)  TTBR0_EL2: 0000000040308000
> (XEN)
> (XEN)    ESR_EL2: 96000005
> (XEN)  HPFAR_EL2: 00000000b7a551e0
> (XEN)    FAR_EL2: 00000007fffd0d98
> (XEN)
> (XEN) Xen stack trace from sp=000080003fff7d80:
> (XEN)    0000000000000051 00000007fffd0d88 0000000000000000
> 0000000000286378
> (XEN)    0000000000286000 0000000000000001 00000000002d8000
> 0000000000286000
> (XEN)    0000000000286000 0000000000286000 000000000021a68c
> 00000000002863a0
> (XEN)    0000000000297ed8 d37edb4bfbffdfff 0000000000287000
> 0000000000051000
> (XEN)    0000000040287000 0000000040287000 0000000000316000
> 0000000000000004
> (XEN)    0000000000280780 0000000000316448 0000000000000004
> 00000000002b0070
> (XEN)    0000000000252030 00000000002d8000 0000000000285280
> 00000000002863a0
> (XEN)    0000000000316000 0000000000000004 000080001801e000
> 00000000002d8000
> (XEN)    0000000000285280 0000000000316458 00000000002558f0
> ffe7ffffff9edfbb
> (XEN)    0000000000298e94 fc796dda7fffffff 0000000000000000
> 0000000000000000
> (XEN)    0000000000000000 0000000000000000 0000000000000000
> 0000000000000000
> (XEN)    0000000000000000 0000000000000000 0000000000000000
> 0000000000000000
> (XEN)    0000000000000000 0000000000000000 0000000000000000
> 0000000000000000
> (XEN)    0000000000000000 0000000000000000 0000000000000000
> 0000000000000000
> (XEN)    0000000000000000 0000000000000000 0000000000000000
> 0000000000000000
> (XEN)    0000000000000000 0000000000000000 0000000000000000
> 0000000000000000
> (XEN)    0000000000000000 0000000000000000 0000000000000000
> 0000000000000000
> (XEN)    0000000000000000 0000000000000000 0000000000000000
> 0000000000000000
> (XEN)    0000000000000000 0000000000000000 0000000000000000
> 0000000000000000
> (XEN)    0000000000000000 0000000000000000 0000000000000000
> 0000000000000000
> (XEN) Xen call trace:
> (XEN)    [<00000000002186d8>] page_alloc.c#free_heap_pages+0x38/0x518 (PC)
> (XEN)    [<000000000021a68c>] page_alloc.c#init_heap_pages+0xf4/0x470 (LR)
> (XEN)
> (XEN)
> (XEN) ****************************************
> (XEN) Panic on CPU 0:
> (XEN) CPU0: Unexpected Trap: Data Abort
> (XEN) ****************************************
>
>
>
>>
>> Allwinner A64 user manual:
>> http://files.pine64.org/doc/datasheet/pine64/Allwinner_A64_User_Manual_V1.0.pdf
>>
>>
>> My boot script:
>> setenv xen_addr_r 0x42000000
>> setenv kernel_addr_r 0x52000000
>> setenv kernel_size 0x18F1200
>> setenv dtb_addr_r 0x58000000
>>
>> setenv xen_bootargs 'console=dtuart dtuart=/soc/serial@1c28000
>> dom0_max_vcpus=2 dom0_mem=256M'
>> setenv dom0_bootargs 'console=hvc0 earlyprintk=xen ignore_loglevel
>> clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait panic=10'
>>
>> ext4load mmc 0:2 $kernel_addr_r /boot/Image
>> ext4load mmc 0:2 $xen_addr_r /boot/xen-uImage
>> ext4load mmc 0:2 $dtb_addr_r
>> /boot/dts/allwinner/sun50i-a64-pine64-plus.dtb
>>
>> fdt addr $dtb_addr_r
>> fdt resize
>> fdt set /chosen xen,xen-bootargs \"$xen_bootargs\"
>> fdt resize
>> fdt set /chosen xen,dom0-bootargs \"$dom0_bootargs\"
>> fdt mknode /chosen modules
>> fdt set /chosen/modules '#address-cells' <1>
>> fdt set /chosen/modules '#size-cells' <1>
>> fdt mknode /chosen/modules module@0
>> fdt set /chosen/modules/module@0 compatible xen,linux-zimage
>> xen,multiboot-module
>> fdt set /chosen/modules/module@0 reg <$kernel_addr_r $kernel_size>
>> bootm $xen_addr_r - $dtb_addr_r
>>
>> Regards,
>> Dharani.
>>
>>
>> On Sat, Nov 23, 2019 at 11:18 PM Julien Grall <julien@xen.org> wrote:
>>>
>>> On 21/11/2019 20:31, dharani kumar wrote:
>>>> Dear Julien,
>>>
>>> Hello,
>>>
>>>> I took your advise and stopped using Xen 4.6.5.
>>>> I downloaded Xen RELEASE4.12.1 and built it native on Pine64.
>>>> When i boot xen, xen traps while starting dom0.
>>>> I used the same kernel image with xen 4.6.5 before, it ran dom0 without
>>>> any problem.
>>>> Could you help to understand the error? Thanks.
>>>
>>> It looks like Xen is trying to a page to the allocator that is not
>>> valid. Could you give a bit more information your setup such as:
>>>      - Where Xen is loaded
>>>      - Memory banks
>>>      - Any reserved regions
>>>      - Which exact version of the pine64 are you using?
>>>      - What's your device-tree?
>>>
>>> Best reagrds,
>>>
>>> --
>>> Julien Grall
>


_______________________________________________
Xen-users mailing list
Xen-users@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-users