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

[Xen-devel] Debugging Dom0 on OMAP5


  • To: List Xen Developer <xen-devel@xxxxxxxxxxxxx>
  • From: Vaibhav Bedia <vaibhav.bedia@xxxxxxxxx>
  • Date: Sun, 20 Oct 2013 10:01:23 -0400
  • Delivery-date: Sun, 20 Oct 2013 14:02:09 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Hi,

I have been trying to get Dom0 running on OMAP5 for a while now.

Right now i can't get even a single print from Dom0.
Based on a recent thread on the list i have tried adding
xen_raw_console_write() in vprintk_emit() but even that doesn't help.

Strangely Xen keyhandlers other than 'd' are not working so i can't even
get Dom0 state dump.

I have tested the zImage boot on the board via bootz command of U-Boot
and that works fine.

Is there any constraint on where the xen-uImage and zImage should be
loaded? Any suggestions on how i could debug this?

So far i get just the following prints from Xen...

U-Boot# bootm $xen_addr_r - $dtb_addr_r
## Booting kernel from Legacy Image at 90000000 ...
   Image Name:
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    656180 Bytes = 640.8 KiB
   Load Address: 80200000
   Entry Point:  80200000
   Verifying Checksum ... OK
## Flattened Device Tree blob at a2000000
   Booting using the fdt blob at 0xa2000000
   Loading Kernel Image ... OK
   reserving fdt memory region: addr=a2000000 size=b000
   Using Device Tree in place at a2000000, end a200dfff
Trying to enter hypervisor mode

Starting kernel ...

- UART enabled -
- CPU 00000000 booting -
- Xen starting in Hyp mode -
- Zero BSS -
- Setting up control registers -
- Turning on paging -
- Ready -
Checking for initrd in /chosen
banks present 1
bank 0 start 0000000080000000size 000000007f000000
RAM: 0000000080000000 - 00000000feffffff

MODULE[1]: 00000000a2000000 - 00000000a200b000
MODULE[2]: 00000000a0000000 - 00000000a0a00000
 RESVD[0]: 00000000a2000000 - 00000000a200b000
Placing Xen at 0x00000000fee00000-0x00000000ff000000
Xen heap: 00000000ee000000-00000000fe000000 (65536 pages)
Dom heap: 454656 pages
Looking for UART console serial2
 __  __            _  _   _  _                      _        _     _
 \ \/ /___ _ __   | || | | || |     _   _ _ __  ___| |_ __ _| |__ | | ___
  \  // _ \ '_ \  | || |_| || |_ __| | | | '_ \/ __| __/ _` | '_ \| |/ _ \
  /  \  __/ | | | |__   _|__   _|__| |_| | | | \__ \ || (_| | |_) | |  __/
 /_/\_\___|_| |_|    |_|(_) |_|     \__,_|_| |_|___/\__\__,_|_.__/|_|\___|

(XEN) Xen version 4.4-unstable (vaibhav@) (arm-linux-gnueabi-gcc
(Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3) debug=y Sun Oct 20 09:36:13 EDT
2013
(XEN) Latest ChangeSet: Sat Oct 19 19:12:52 2013 -0400 git:871c1d1-dirty
(XEN) Processor: 412fc0f2: "ARM Limited", variant: 0x2, part 0xc0f, rev 0x2
(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: 10201105 20000000 01240000 02102211
(XEN)  ISA Features: 02101110 13112111 21232041 11112131 10011142 00000000
(XEN) Platform: TI OMAP5
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27
                                           (XEN) Using generic timer
at 0 KHz
                          (XEN) GIC initialization:
(XEN)         gic_dist_addr=0000000048211000
                                                (XEN)
gic_cpu_addr=0000000048212000
                                 (XEN)
gic_hyp_addr=0000000048214000
                                 (XEN)
gic_vcpu_addr=0000000048216000
                                (XEN)         gic_maintenance_irq=25

               (XEN) GIC: 192 lines, 2 cpus, secure (IID 0000043b).
                                                           (XEN) Using
scheduler: SMP Credit Scheduler (credit)
                                (XEN) Allocated console ring of 16
KiB.
                (XEN) VFP implementer 0x41 architecture 4 part 0x30
variant 0xf rev 0x0                                   (XEN) Brought up
1 CPUs
                                      (XEN) *** LOADING DOMAIN 0 ***

                 (XEN) Populate P2M 0xb0000000->0xc0000000 (1:1
mapping for dom0)                                     (XEN) Loading
kernel from boot module 2
                                   (XEN) zImage present @
00000000a0000000size is 0000000000a00000
      (XEN) zImage start 0
(XEN) zImage end 4165032
                                                      (XEN) Kernel
starts @00000000a0000000
                                  (XEN) We are PIC
(XEN) load_end 00000000c0000000
                                                 (XEN) load_end
00000000b8000000
                                  (XEN) load_end 00000000b8000000

            (XEN) load_addr 00000000b7c07258
                                                              (XEN)
load_addr 00000000b7c00000
                                            (XEN) Loading zImage from
00000000a0000000 to 00000000b7c00000-00000000b7ff8da8           (XEN)
Loading dom0 DTB to 0x00000000b8000000-0x00000000b800a707
                     (XEN) Setting pc for jump to b7c00000

 (XEN) DT address passed 00000000b8000000
                                             (XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch
input to Xen)                         (XEN) Freed 264kB init memory.

                   (XEN) *** Serial input -> Xen (type 'CTRL-a' three
times to switch input to DOM0)
(XEN) 'd' pressed -> dumping registers
(XEN)
(XEN) *** Dumping CPU0 host state: ***
(XEN) ----[ Xen-4.4-unstable  arm32  debug=y  Not tainted ]----
(XEN) CPU:    0
(XEN) PC:     00228a08 _spin_unlock_irq+0x68/0x78
(XEN) CPSR:   2000005a MODE:Hypervisor
(XEN)      R0: 002e6380 R1: 00000000 R2: 00000000 R3: 00000000
(XEN)      R4: 00000000 R5: 00000000 R6: 002e6380 R7: 4ffe27f8
(XEN)      R8: 400054c0 R9: 002e4254 R10:00264b80 R11:4000fee4 R12:002e6400
(XEN) HYP: SP: 4000fed4 LR: 0022bd28
(XEN)
(XEN)   VTCR_EL2: 80002558
(XEN)  VTTBR_EL2: 00010000a200e000
(XEN)
(XEN)  SCTLR_EL2: 30cd187f
(XEN)    HCR_EL2: 0000000000282835
(XEN)  TTBR0_EL2: 00000000feedf000
(XEN)
(XEN)    ESR_EL2: 00000000
(XEN)  HPFAR_EL2: 0000000000000000
(XEN)      HDFAR: 00000000
(XEN)      HIFAR: 00000000
(XEN)
(XEN) Xen stack trace from sp=4000fed4:
(XEN)    0024b4b8 00000001 00000000 4000ff04 0022bd28 00000000 002b1ff0 00000000
(XEN)    002ae000 002e7614 00264b80 4000ff2c 00227e7c 00000013 002e7614 002e7614
(XEN)    002e7614 002e7614 002e6310 00000000 00010000 4000ff34 00227f0c 4000ff54
(XEN)    00243cf8 4000ff58 00264b8c 00264b8c 00000002 0029fee8 fe000000 4000ff4c
(XEN)    0024b2f8 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(XEN)    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(XEN)    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(XEN)    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(XEN)    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(XEN)    00000000 00000000 00000000
(XEN) Xen call trace:
(XEN)    [<00228a08>] _spin_unlock_irq+0x68/0x78 (PC)
(XEN)    [<0022bd28>] timer_softirq_action+0x20c/0x230 (LR)
(XEN)    [<0022bd28>] timer_softirq_action+0x20c/0x230
(XEN)    [<00227e7c>] __do_softirq+0xe8/0xec
(XEN)    [<00227f0c>] do_softirq+0x14/0x18
(XEN)    [<00243cf8>] idle_loop+0x168/0x198
(XEN)    [<0024b2f8>] init_done+0x10/0x14
(XEN)


Regards,
Vaibhav

_______________________________________________
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®.