[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Xen on (RELEASE-4.4.0) crashed when booting on Cubieboard2



On Wed, 2014-04-09 at 22:08 +0800, duqi wrote:
> We have tried to follow the wiki page's instruction to boot dom0 on
> xen , but we found that there are something wrong with it. We made
> some simple modification about bootargs.

Can you say what you changed?

AFAICT: Added sync_console to the xen bootargs. Added a bunch of stuff
to the Linux command line, much of which looks unnecessary:

console=hvc0,115200n8:          the ",115200n8" is not needed.
debug ignore_loglevel rw:       OK
earlyprintk=xen:                I don't believe "=xen" does anything
init=/init:                     OK, but what does this do?

I notice that you don't seem to have earlyprintk enabled in your
hypervisor, although I suppose that doesn't matter here.

> fatload mmc 0 ${fdt_addr} /boot/sun7i-a20-cubieboard2-xen2.dtb

What is this? How does it differ from sun7i-a20-cubieboard2.dtb from the
kernel source? You should not need to modify the dtb to run under Xen.

> Whithout this change , it would be stuck at the start of the dom0's boot.

Where exactly?

> Add the modification , the dom0's booting is nothing different .

Are you saying that the modifications you made didn't help?

>  Coud you give me some advices?
> 
> Thank you very much.  
> 
> Here is the kerneldump now:
> Kernel image @ 0x7e800000 [ 0x000000 - 0x0cf700 ]
> ## Flattened Device Tree blob at 7ea00000
>    Booting using the fdt blob at 0x7ea00000
>    reserving fdt memory region: addr=7ea00000 size=3000
>    Using Device Tree in place at 7ea00000, end 7ea05fff
> 
> Starting kernel ...
> 
>  Xen 4.4.0
> (XEN) Xen version 4.4.0 (root@) (arm-linux-gnueabihf-gcc (Ubuntu/Linaro 
> 4.7.2-1ubuntu1) 4.7.2) debug=n Wed Apr  9 17:35:22 CST 24
> (XEN) Latest ChangeSet: Fri Mar 14 12:00:11 2014 +0000 git:69bae51-dirty
> (XEN) Console output is synchronous.
> (XEN) Processor: 410fc074: "ARM Limited", variant: 0x0, part 0xc07, rev 0x4
> (XEN) 32-bit Execution:
> (XEN)   Processor Features: 00001131:00011011
> (XEN)     Instruction Sets: AArch32 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) Generic Timer IRQ: phys=30 hyp=26 virt=27
> (XEN) Using generic timer at 24000 KHz
> (XEN) GIC 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) GIC: 160 lines, 2 cpus, secure (IID 0100143b).
> (XEN) Using scheduler: SMP Credit Scheduler (credit)
> (XEN) Allocated console ring of 16 KiB.
> (XEN) VFP implementer 0x41 architecture 2 part 0x30 variant 0x7 rev 0x4
> (XEN) Brought up 1 CPUs
> (XEN) *** LOADING DOMAIN 0 ***
> (XEN) Populate P2M 0x68000000->0x70000000 (1:1 mapping for dom0)
> (XEN) Loading kernel from boot module 2
> (XEN) Loading zImage from 000000007f400000 to 
> 000000006f800000-000000006ff08fa0
> (XEN) Loading dom0 DTB to 0x000000006f600000-0x000000006f6028f3
> (XEN) Scrubbing Free RAM: .........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) **********************************************
> (XEN) ******* WARNING: CONSOLE OUTPUT IS SYNCHRONOUS
> (XEN) ******* This option is intended to aid debugging of Xen by ensuring
> (XEN) ******* that all output is synchronously delivered on the serial line.
> (XEN) ******* However it can introduce SIGNIFICANT latencies and affect
> (XEN) ******* timekeeping. It is NOT recommended for production use!
> (XEN) **********************************************
> (XEN) 3... 2... 1... 
> (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to 
> Xen)
> (XEN) Freed 244kB init memory.
> [    0.000000] Booting Linux on physical CPU 0x0
> [    0.000000] Initializing cgroup subsys cpuset
> [    0.000000] Initializing cgroup subsys cpu
> [    0.000000] Initializing cgroup subsys cpuacct
> [    0.000000] Linux version 3.13.0-rc4 (root@Lenovo-G480) (gcc version 4.7.2 
> (Ubuntu/Linaro 4.7.2-1ubuntu1) ) #16 SMP Wed Apr 94
> [    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
> [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing 
> instruction cache
> [    0.000000] Machine model: Cubietech Cubieboard2
> [    0.000000] debug: ignoring loglevel setting.
> [    0.000000] Memory policy: Data cache writealloc
> [    0.000000] On node 0 totalpages: 32768
> [    0.000000] free_area_init_node: node 0, pgdat c0cbc3c0, node_mem_map 
> c0dc5000
> [    0.000000]   Normal zone: 256 pages used for memmap
> [    0.000000]   Normal zone: 0 pages reserved
> [    0.000000]   Normal zone: 32768 pages, LIFO batch:7
> [    0.000000] psci: probing function IDs from device-tree
> [    0.000000] PERCPU: Embedded 9 pages/cpu @c0ecc000 s13696 r8192 d14976 
> u36864
> [    0.000000] pcpu-alloc: s13696 r8192 d14976 u36864 alloc=9*4096
> [    0.000000] pcpu-alloc: [0] 0 
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total 
> pages: 32512
> [    0.000000] Kernel command line: console=hvc0,115200n8 debug 
> ignore_loglevel \ 
> [    0.000000] rw earlyprintk=xen clk_ignore_unused init=/init
> [    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] allocated 262144 bytes of page_cgroup
> [    0.000000] please try 'cgroup_disable=memory' option if you don't want 
> memory cgroups
> [    0.000000] Memory: 115512K/131072K available (6592K kernel code, 803K 
> rwdata, 2828K rodata, 2857K init, 975K bss, 15560K res)
> [    0.000000] Virtual kernel memory layout:
> [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
> [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
> [    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 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 - 0xc093b47c   (9422 kB)
> [    0.000000]       .init : 0xc093c000 - 0xc0c06580   (2858 kB)
> [    0.000000]       .data : 0xc0c08000 - 0xc0cd0c80   ( 804 kB)
> [    0.000000]        .bss : 0xc0cd0c80 - 0xc0dc4be8   ( 976 kB)
> [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
> [    0.000000] Hierarchical RCU implementation.
> [    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
> [    0.000000] NR_IRQS:16 nr_irqs:16 16
> [    0.000000] Architected cp15 timer(s) running at 24.00MHz (virt).
> [    0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 
> 2863311519744ns
> [    0.000000] Switching to timer-based delay loop
> [    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 
> 178956969942ns
> [    0.000000] sched_clock: 32 bits at 160MHz, resolution 6ns, wraps every 
> 26843545593ns
> [    0.000000] Console: colour dummy device 80x30
> [    0.000358] Calibrating delay loop (skipped), value calculated using timer 
> frequency.. 48.00 BogoMIPS (lpj=240000)
> [    0.000373] pid_max: default: 32768 minimum: 301
> [    0.000550] Security Framework initialized
> [    0.000604] SELinux:  Initializing.
> [    0.000648] SELinux:  Starting in permissive mode
> [    0.000843] Mount-cache hash table entries: 512
> [    0.003913] Initializing cgroup subsys memory
> [    0.003964] Initializing cgroup subsys devices
> [    0.003977] Initializing cgroup subsys freezer
> [    0.003987] Initializing cgroup subsys net_cls
> [    0.003997] Initializing cgroup subsys blkio
> [    0.004006] Initializing cgroup subsys perf_event
> [    0.004130] CPU: Testing write buffer coherency: ok
> [    0.004177] ftrace: allocating 27217 entries in 54 pages
> [    0.040679] /cpus/cpu@0 missing clock-frequency property
> [    0.040709] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
> [    0.040748] Setting up static identity map for 0x68638440 - 0x686384d8
> [    0.048085] Brought up 1 CPUs
> [    0.048103] SMP: Total of 1 processors activated.
> [    0.048112] CPU: All CPU(s) started in SVC mode.
> [    0.048920] devtmpfs: initialized
> [    0.053746] VFP support v0.3: implementor 41 architecture 2 part 30 
> variant 7 rev 4
> [    0.053875] Xen 4.4 support found, events_irq=31 gnttab_frame_pfn=1d00
> [    0.053952] xen:grant_table: Grant tables using version 1 layout
> [    0.054023] Grant table initialized
> [    0.060588] atomic64 test passed
> [    0.060607] pinctrl core: initialized pinctrl subsystem
> [    0.061059] regulator-dummy: no parameters
> [    0.061582] NET: Registered protocol family 16
> [    0.062114] Xen: initializing cpu0
> [    0.062401] DMA: preallocated 256 KiB pool for atomic coherent allocations
> [    0.064145] xen:swiotlb_xen: Warning: only able to allocate 8 MB for 
> software IO TLB
> [    0.067369] software IO TLB [mem 0x6d800000-0x6e000000] (8MB) mapped at 
> [c5800000-c5ffffff]
> [    0.069918] No ATAGs?
> [    0.069943] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 
> watchpoint registers.
> [    0.069954] hw-breakpoint: maximum watchpoint size is 8 bytes.
> [    0.070829] Serial: AMBA PL011 UART driver
> [    0.078203] bio: create slab <bio-0> at 0
> [    0.079239] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM dummy 
> slot
> [    0.079274] edma-dma-engine: probe of edma-dma-engine.0 failed with error 
> -5
> [    0.079418] xen:balloon: Initialising balloon driver
> [    0.079537] reg-fixed-voltage ahci-5v.4: could not find pctldev for node 
> /soc@01c00000/pinctrl@01c20800/ahci_pwr_pin@0, defere
> [    0.079556] platform ahci-5v.4: Driver reg-fixed-voltage requests probe 
> deferral
> [    0.079580] reg-fixed-voltage usb1-vbus.5: could not find pctldev for node 
> /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, dee
> [    0.079595] platform usb1-vbus.5: Driver reg-fixed-voltage requests probe 
> deferral
> [    0.079664] reg-fixed-voltage usb2-vbus.6: could not find pctldev for node 
> /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, dee
> [    0.079680] platform usb2-vbus.6: Driver reg-fixed-voltage requests probe 
> deferral
> [    0.080949] SCSI subsystem initialized
> [    0.081246] libata version 3.00 loaded.
> [    0.081547] usbcore: registered new interface driver usbfs
> [    0.081656] usbcore: registered new interface driver hub
> [    0.081826] usbcore: registered new device driver usb
> [    0.082082] pps_core: LinuxPPS API ver. 1 registered
> [    0.082093] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo 
> Giometti <giometti@xxxxxxxx>
> [    0.082119] PTP clock support registered
> [    0.083275] NetLabel: Initializing
> [    0.083290] NetLabel:  domain hash size = 128
> [    0.083296] NetLabel:  protocols = UNLABELED CIPSOv4
> [    0.083366] NetLabel:  unlabeled traffic allowed by default
> [    0.083725] Switched to clocksource arch_sys_counter
> [    0.139540] NET: Registered protocol family 2
> [    0.140540] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.140569] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
> [    0.140593] TCP: Hash tables configured (established 1024 bind 1024)
> [    0.140663] TCP: reno registered
> [    0.140681] UDP hash table entries: 256 (order: 1, 8192 bytes)
> [    0.140714] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
> [    0.141021] NET: Registered protocol family 1
> [    0.141504] RPC: Registered named UNIX socket transport module.
> [    0.141519] RPC: Registered udp transport module.
> [    0.141526] RPC: Registered tcp transport module.
> [    0.141533] RPC: Registered tcp NFSv4.1 backchannel transport module.
> [    0.315258] audit: initializing netlink socket (disabled)
> [    0.315325] type=2000 audit(0.300:1): initialized
> [    0.505186] zbud: loaded
> [    0.505818] VFS: Disk quotas dquot_6.5.2
> [    0.506096] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> [    0.508520] NFS: Registering the id_resolver key type
> [    0.508590] Key type id_resolver registered
> [    0.508599] Key type id_legacy registered
> [    0.508618] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
> [    0.508976] msgmni has been set to 225
> [    0.509349] SELinux:  Registering netfilter hooks
> [    0.512514] alg: No test for stdrng (krng)
> [    0.512547] NET: Registered protocol family 38
> [    0.512865] Block layer SCSI generic (bsg) driver version 0.4 loaded 
> (major 250)
> [    0.513075] io scheduler noop registered
> [    0.513086] io scheduler deadline registered
> [    0.513302] io scheduler cfq registered (default)
> [    0.516506] sunxi-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
> [    0.517786] xen:xen_evtchn: Event-channel device installed
> [    1.314027] console [hvc0] enabled
> [    1.317439] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> [    1.325154] Serial: AMBA driver
> [    1.328282] Serial: IMX driver
> [    1.332376] [drm] Initialized drm 1.1.0 20060810
> [    1.338817] libphy: Fixed MDIO Bus: probed
> [    1.343453] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [    1.349991] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [    1.356162] ohci-omap3: OHCI OMAP3 driver
> [    1.360534] usbcore: registered new interface driver usbserial
> [    1.366381] usbcore: registered new interface driver usbserial_generic
> [    1.372908] usbserial: USB Serial support registered for generic
> [    1.379269] mousedev: PS/2 mouse device common for all mice
> [    1.386133] device-mapper: uevent: version 1.0.3
> [    1.391177] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: 
> dm-devel@xxxxxxxxxx
> [    1.400531] #sunxi_mmc_probe# the host->sg_cpu=c883e000
> [    1.406026] sunxi-mci 1c0f000.mmc: base:0xc88be000 irq:64
> [    1.411671] hidraw: raw HID events driver (C) Jiri Kosina
> [    1.417115] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
> [    1.423668] mmc0: clock 0Hz busmode 2 powermode 1 cs 0 Vdd 21 width 0 
> timing 0
> [    1.431001] sunxi-mci 1c0f000.mmc: power on!
> [    1.436012] usbcore: registered new interface driver usbhid
> [    1.441520] usbhid: USB HID core driver
> [    1.445903] drop_monitor: Initializing network drop monitor service
> [    1.452381] ip_tables: (C) 2000-2006 Netfilter Core Team
> [    1.457709] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 
> timing 0
> [    1.465358] sunxi-mci 1c0f000.mmc: ios->clock: 400000
> [    1.470481] sunxi-mci 1c0f000.mmc: setting clk to 400000, rounded 400000
> 
> 
> duqi.



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.