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

Re: [Xen-users] Booting dom0 on OMAP5432 board



Hello everyone, thought I'd chime in on this since I've been chasing similar
issues the last few days with the OMAP5432EVM board.

For reference I have been using:
- Upstream Xen (4.5 compiled with early printk=omap5432)
- Upstream Linux (3.17.x)
- An older u-boot (2013.01) that was included with the TI-OMAP5432SDK that
starts the board correctly in HYP mode

-----------

After checking my fdt before boot as Ian suggested I did notice that there was
an error, apparently introduced by copying the commands in to terminal from a
text file.  I resolved this error by transferring those commands into uboot
script and running them that way.

At this point I was still having the same problem Konstantin is currently
having.  Going off some previous experience with the Arndale (that's related to
the known issue regarding memory banks, even though that issue is supposed to be
resolved in upstream Xen) I bumped the dom0_mem down to 128MB and was finally
able to some output from Linux as follows, I did not have to move the dom0
bootargs as Ian suggested in his later e-mail to get this output:

...
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to 
Xen)
(XEN) Freed 256kB init memory.
6Booting Linux on physical CPU 0x0
6Initializing cgroup subsys cpuset
6Initializing cgroup subsys cpu
6Initializing cgroup subsys cpuacct
5Linux version 3.17.0-rc4-armv7-lpae-x5 (arlx@arlx-58) (gcc version 4.8.3
20140401 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC
4.8-2014.04) ) #12 SMP Thu Sep 25 11:40:50 EDT 2014
6CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
6CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
6Machine model: TI OMAP5 uEVM board
4Forcing write-allocate cache policy for SMP
6Memory policy: Data cache writealloc
7On node 0 totalpages: 32256
7free_area_init_node: node 0, pgdat c0d05b40, node_mem_map c7cf8000
7  Normal zone: 256 pages used for memmap
7  Normal zone: 0 pages reserved
7  Normal zone: 32256 pages, LIFO batch:7
4  HighMem zone: 1048572 pages exceeds freesize 0
6psci: probing for conduit method from DT.
6psci: PSCIv0.2 detected in firmware.
6psci: Using standard PSCI v0.2 function IDs
6OMAP5432 ES2.0
6PERCPU: Embedded 9 pages/cpu @c7cae000 s14464 r8192 d14208 u36864
7pcpu-alloc: s14464 r8192 d14208 u36864 alloc=9*4096
7pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32000
5Kernel command line: console=hvc0,115200n8 earlyprintk=xen debug loglevel=8
root=/dev/mmcblk0p2 rw rootwait fixrtc
6PID hash table entries: 512 (order: -1, 2048 bytes)
6Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
6Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
6allocated 258048 bytes of page_cgroup
6please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 112936K/129024K available (8777K kernel code, 645K rwdata, 3432K rodata,
538K init, 918K bss, 16088K reserved, 0K highmem)
5Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
    vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0bf4964   (12211 kB)
      .init : 0xc0bf5000 - 0xc0c7b880   ( 539 kB)
      .data : 0xc0c7c000 - 0xc0d1d460   ( 646 kB)
       .bss : 0xc0d1d460 - 06SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2,
Nodes=1
6Hierarchical RCU implementation.
6       RCU dyntick-idle grace-period acceleration is enabled.
6       RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
6RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
6NR_IRQS:16 nr_irqs:16 16
6OMAP clockevent source: timer1 at 32768 Hz
6sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 65536000000000ns
6OMAP clocksource: 32k_counter at 32768 Hz
0Internal error: Oops - undefined instruction: 0 [#1] SMP ARM
dModules linked in:
dCPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.17.0-rc4-armv7-lpae-x5 #12
dtask: c0c88be0 ti: c0c7c000 task.ti: c0c7c000
PC is at omap_smc1+0x10/0x18
LR is at omap5_realtime_timer_init+0x408/0x428
pc : [<c003a6d8>]    lr : [<c0c006f0>]    psr: 600001d3
sp : c0c7df58  ip : 00000109  fp : c0d1d500
r10: 00000000  r9 : c0c84540  r8 : c0c63c28
r7 : c7cda66c  r6 : c0d1e718  r5 : 00000008  r4 : fa243200
r3 : 005dc000  r2 : 000bb800  r1 : 005dc000  r0 : 005dc000
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment kernel
Control: 30c5387d  Table: a8003000  DAC: fffffffd
0Process swapper/0 (pid: 0, stack limit = 0xc0c7c248)
0Stack: (0xc0c7df58 to 0xc0c7e000)
0df40:                                                       000bb800 005dc000
0df60: fa243200 00000008 c0d1e718 c7cda66c c0c63c28 c0c84540 00000000 c0d1d500
0df80: c0c8b2dc c0c006f0 00000001 c7cc2340 00000000 c78066f4 ffffffff c7cc2340
0dfa0: 00000000 c0d1d500 ffffffff c0bf5b00 ffffffff ffffffff c0bf5608 00000000
0dfc0: ffffffff 00000000 00000000 c0c63c28 00000000 c0d1e114 c0c845d0 c0c63c24
0dfe0: c0c8aa48 a8007000 412fc0f2 00000000 00000000 a8008084 00000000 00000000
[<c003a6d8>] (omap_smc1) from [<005dc000>] (0x5dc000)
0Code: e92d5ffc e1a0c000 e1a00001 f57ff04f (e1600070)
4---[ end trace f24b6c88ae00fa9a ]---
0Kernel panic - not syncing: Attempted to kill the idle task!
0---[ end Kernel panic - not syncing: Attempted to kill the idle task!
5random: nonblocking pool is initialized

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

I discovered this behavior is apparently linked to a secure monitor call
(omap_smc1 called out in the stack trace above) in the Linux code located in
$LINUX_SOURCE/arch/arm/mach-omap2/timer.c

The function in question is as follows:

#ifdef CONFIG_SOC_HAS_REALTIME_COUNTER
static unsigned long arch_timer_freq;

void set_cntfreq(void)
{
        omap_smc1(OMAP5_DRA7_MON_SET_CNTFRQ_INDEX, arch_timer_freq);
}
#endif

Digging through some recent git logs it appears this line was added to address
some issues with TI's DRA7XX boards.  I would assume an smc function would cause
issues running in Xen as Xen is running in HYP mode and the smc call has to be
escalated to SECURE mode?

In any case, for experimentation purposes, I simply commented out the
"omap_smc1" line in that file and recompiled the kernel. At the surface it
didn't seem as though that function had much of an impact on the OMAP5432.  This
change did result in the dom0 linux boot getting further but still did not
succeed; output was as follows:

(XEN) Freed 256kB init memory.
6Booting Linux on physical CPU 0x0
6Initializing cgroup subsys cpuset
6Initializing cgroup subsys cpu
6Initializing cgroup subsys cpuacct
5Linux version 3.17.0-rc4-armv7-lpae-x5 (arlx@arlx-58) (gcc version 4.8.3
20140401 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC
4.8-2014.04) ) #11 SMP Mon Sep 22 16:11:12 EDT 2014
6CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
6CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
6Machine model: TI OMAP5 uEVM board
4Forcing write-allocate cache policy for SMP
6Memory policy: Data cache writealloc
7On node 0 totalpages: 32256
7free_area_init_node: node 0, pgdat c0d05b40, node_mem_map c7cf8000
7  Normal zone: 256 pages used for memmap
7  Normal zone: 0 pages reserved
7  Normal zone: 32256 pages, LIFO batch:7
4  HighMem zone: 1048572 pages exceeds freesize 0
6psci: probing for conduit method from DT.
6psci: PSCIv0.2 detected in firmware.
6psci: Using standard PSCI v0.2 function IDs
6OMAP5432 ES2.0
6PERCPU: Embedded 9 pages/cpu @c7cae000 s14464 r8192 d14208 u36864
7pcpu-alloc: s14464 r8192 d14208 u36864 alloc=9*4096
7pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32000
5Kernel command line: console=hvc0,115200n8 earlyprintk=xen debug loglevel=8
root=/dev/mmcblk0p2 rw rootwait fixrtc
6PID hash table entries: 512 (order: -1, 2048 bytes)
6Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
6Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
6allocated 258048 bytes of page_cgroup
6please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 112936K/129024K available (8777K kernel code, 645K rwdata, 3432K rodata,
538K init, 918K bss, 16088K reserved, 0K highmem)
5Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
    vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0bf4964   (12211 kB)
      .init : 0xc0bf5000 - 0xc0c7b880   ( 539 kB)
      .data : 0xc0c7c000 - 0xc0d1d460   ( 646 kB)
       .bss : 0xc0d1d460 - 06SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2,
Nodes=1
6Hierarchical RCU implementation.
6       RCU dyntick-idle grace-period acceleration is enabled.
6       RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
6RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
6NR_IRQS:16 nr_irqs:16 16
6OMAP clockevent source: timer1 at 32768 Hz
6sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 65536000000000ns
6OMAP clocksource: 32k_counter at 32768 Hz
6Architected cp15 timer(s) running at 6.14MHz (virt).
6sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 2796202663936ns
6Switching to timer-based delay loop, resolution 162ns
6Console: colour dummy device 80x30
6Calibrating delay loop (skipped), value calculated using timer frequency..
12.28 BogoMIPS (lpj=61440)
6pid_max: default: 32768 minimum: 301
6Security Framework initialized
6AppArmor: AppArmor disabled by boot time parameter
6Yama: becoming mindful.
6Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
6Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
6Initializing cgroup subsys memory
6Initializing cgroup subsys devices
6Initializing cgroup subsys freezer
6Initializing cgroup subsys net_cls
6Initializing cgroup subsys blkio
6CPU: Testing write buffer coherency: ok
3/cpus/cpu@0 missing clock-frequency property
3/cpus/cpu@1 missing clock-frequency property
6CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
6Xen 4.5 support found, events_irq=31 gnttab_frame=0x000000004b000000
6xen:grant_table: Grant tables using version 1 layout
Grant table initialized
6xen:events: Using FIFO-based ABI
6Xen: initializing cpu0
6Setting up static identity map for 0xa8858700 - 0xa8858798
CPU1: Booted secondary processor
6Xen: initializing cpu1
6CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
6Brought up 2 CPUs
6SMP: Total of 2 processors activated.
6CPU: All CPU(s) started in SVC mode.
6devtmpfs: initialized
6VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
4omap_hwmod: l3_main_3 using broken dt data from ocp
4omap_hwmod: l3_main_2 using broken dt data from ocp
4------------[ cut here ]------------
4WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2542 
_init+0x4cc/0x4dc()
dModules linked in:
dCPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.17.0-rc4-armv7-lpae-x5 #11
[<c00269c0>] (unwind_backtrace) from [<c0022d0c>] (show_stack+0x10/0x14)
[<c0022d0c>] (show_stack) from [<c0850ca4>] (dump_stack+0x84/0x94)
[<c0850ca4>] (dump_stack) from [<c004cf20>] (warn_slowpath_common+0x70/0x8c)
[<c004cf20>] (warn_slowpath_common) from [<c004cf6c>] 
(warn_slowpath_fmt+0x30/0x40)
[<c004cf6c>] (warn_slowpath_fmt) from [<c0c01b40>] (_init+0x4cc/0x4dc)
[<c0c01b40>] (_init) from [<c0c021a0>] (__omap_hwmod_setup_all+0x44/0x8c)
[<c0c021a0>] (__omap_hwmod_setup_all) from [<c000891c>] 
(do_one_initcall+0xd8/0x204)
[<c000891c>] (do_one_initcall) from [<c0bf5e38>] 
(kernel_init_freeable+0x1e0/0x280)
[<c0bf5e38>] (kernel_init_freeable) from [<c084ab98>] (kernel_init+0xc/0xe8)
[<c084ab98>] (kernel_init) from [<c001f898>] (ret_from_fork+0x14/0x3c)
4---[ end trace 6338789eb5a532ef ]---
4------------[ cut here ]------------
4WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2542 
_init+0x4cc/0x4dc()
dModules linked in:
dCPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W      
3.17.0-rc4-armv7-lpae-x5 #11
[<c00269c0>] (unwind_backtrace) from [<c0022d0c>] (show_stack+0x10/0x14)
[<c0022d0c>] (show_stack) from [<c0850ca4>] (dump_stack+0x84/0x94)
[<c0850ca4>] (dump_stack) from [<c004cf20>] (warn_slowpath_common+0x70/0x8c)
[<c004cf20>] (warn_slowpath_common) from [<c004cf6c>] 
(warn_slowpath_fmt+0x30/0x40)
[<c004cf6c>] (warn_slowpath_fmt) from [<c0c01b40>] (_init+0x4cc/0x4dc)
[<c0c01b40>] (_init) from [<c0c021a0>] (__omap_hwmod_setup_all+0x44/0x8c)
[<c0c021a0>] (__omap_hwmod_setup_all) from [<c000891c>] 
(do_one_initcall+0xd8/0x204)
[<c000891c>] (do_one_initcall) from [<c0bf5e38>] 
(kernel_init_freeable+0x1e0/0x280)
[<c0bf5e38>] (kernel_init_freeable) from [<c084ab98>] (kernel_init+0xc/0xe8)
[<c084ab98>] (kernel_init) from [<c001f898>] (ret_from_fork+0x14/0x3c)
4---[ end trace 6338789eb5a532f0 ]---
4omap_hwmod: dss_dispc: cannot be enabled for reset (3)
4omap_hwmod: dss_dsi1: cannot be enabled for reset (3)
4omap_hwmod: dss_dsi2: cannot be enabled for reset (3)
4omap_hwmod: dss_hdmi: cannot be enabled for reset (3)
6xor: measuring software checksum speed
6   arm4regs  :  1803.200 MB/sec
6   8regs     :  1180.800 MB/sec
6   32regs    :  1204.000 MB/sec
6   neon      :  2873.600 MB/sec
6xor: using function: neon (2873.600 MB/sec)
6pinctrl core: initialized pinctrl subsystem
6regulator-dummy: no parameters
6NET: Registered protocol family 16
6DMA: preallocated 256 KiB pool for atomic coherent allocations
4xen:swiotlb_xen: Warning: only able to allocate 4 MB for software IO TLB
6software IO TLB [mem 0xaec00000-0xaf000000] (4MB) mapped at [c6c00000-c6ffffff]
6OMAP GPIO hardware version 0.1
6No ATAGs?6OMAP DMA hardware revision 0.0
raid6: int32x1    164 MB/s
raid6: int32x2    239 MB/s
raid6: int32x4    280 MB/s
raid6: int32x8    297 MB/s
raid6: neonx1     684 MB/s
raid6: neonx2    1060 MB/s
raid6: neonx4    1509 MB/s
raid6: neonx8    1381 MB/s
raid6: using algorithm neonx4 (1509 MB/s)
raid6: using intx1 recovery algorithm
4edma-dma-engine: probe of edma-dma-engine.0 failed with error -22
6xen:balloon: Initialising balloon driver
6xen_balloon: Initialising balloon driver
6vmmcsd_fixed: 3000 mV
5SCSI subsystem initialized
7libata version 3.00 loaded.
6usbcore: registered new interface driver usbfs
6usbcore: registered new interface driver hub
6usbcore: registered new device driver usb
4hsusb2_phy supply vcc not found, using dummy regulator
4hsusb3_phy supply vcc not found, using dummy regulator
6media: Linux media interface: v0.10
6Linux video capture interface: v2.00
6pps_core: LinuxPPS API ver. 1 registered
6pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
<giometti@xxxxxxxx>
6PTP clock support registered
6NetLabel: Initializing
6NetLabel:  domain hash size = 128
6NetLabel:  protocols = UNLABELED CIPSOv4
6NetLabel:  unlabeled traffic allowed by default
6Switched to clocksource arch_sys_counter
3/thermal-zones/cpu_thermal/cooling-maps/map0: could not find phandle
3missing cooling_device property
3failed to build thermal zone cpu_thermal: -22
6NET: Registered protocol family 2
6TCP established hash table entries: 1024 (order: 0, 4096 bytes)
6TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
6TCP: Hash tables configured (established 1024 bind 1024)
6TCP: reno registered
6UDP hash table entries: 256 (order: 1, 8192 bytes)
6UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
6NET: Registered protocol family 1
6RPC: Registered named UNIX socket transport module.
6RPC: Registered udp transport module.
6RPC: Registered tcp transport module.
6RPC: Registered tcp NFSv4.1 backchannel transport module.
3kvm [1]: HYP mode not available
6futex hash table entries: 512 (order: 3, 32768 bytes)
6audit: initializing netlink subsys (disabled)
5audit: type=2000 audit(2.500:1): initialized
5VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
5NFS: Registering the id_resolver key type
5Key type id_resolver registered
5Key type id_legacy registered
6nfs4filelayout_init: NFSv4 File Layout Driver Registering...
6fuse init (API version 7.23)
6SGI XFS with ACLs, security attributes, realtime, no debug enabled
6msgmni has been set to 220
6Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
6io scheduler noop registered
6io scheduler deadline registered
6io scheduler cfq registered (default)
6OMAP DSS rev 6.1
6xen:xen_evtchn: Event-channel device installed
6pbias_mmc_omap5: 1800 <--> 3000 mV at 3000 mV
6abb_mpu: 1060 <--> 1250 mV
6abb_mm: 1025 <--> 1120 mV
[    0.187796] omap_hwmod: dss_rfbi: doesn't have mpu register target base
[    0.295987] omap_hwmod: uart3: doesn't have mpu register target base
[    0.937594] platform 50000000.gpmc: Cannot lookup hwmod 'gpmc'
[    0.937691] omap-gpmc 50000000.gpmc: _od_fail_runtime_resume: FIXME: missing
hwmod/omap_dev info
[    0.937705] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[    2.369486] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM dummy 
slot
[    2.388102] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver
[    2.430722] omap_i2c 48070000.i2c: could not find pctldev for node
/ocp/pinmux@4a002840/pinmux_i2c1_pins, deferring probe
[    2.430738] platform 48070000.i2c: Driver omap_i2c requests probe deferral
[    2.431145] omap_i2c 48072000.i2c: bus 1 rev0.12 at 100 kHz
[    2.431518] omap_i2c 48060000.i2c: bus 2 rev0.12 at 100 kHz
[    2.431886] omap_i2c 4807a000.i2c: bus 3 rev0.12 at 100 kHz
[    2.431929] omap_i2c 4807c000.i2c: could not find pctldev for node
/ocp/pinmux@4a002840/pinmux_i2c5_pins, deferring probe
[    2.431943] platform 4807c000.i2c: Driver omap_i2c requests probe deferral
[    2.454413] omap-iommu 4a066000.mmu: 4a066000.mmu registered
[    2.454506] omap-iommu 55082000.mmu: 55082000.mmu registered
[    2.692441] pinctrl-single 4a002840.pinmux: 219 pins at pa fc002840 size 438
[    2.692623] pinctrl-single 4ae0c840.pinmux: 28 pins at pa fce0c840 size 56
[    2.699391] tpd12s015 encoder@0: failed to parse CT CP HPD gpio
[    2.699416] platform encoder@0: Driver tpd12s015 requests probe deferral
[    2.699874] connector-hdmi connector@0: failed to find video source
[    2.699892] platform connector@0: Driver connector-hdmi requests probe 
deferral
6console [hvc0] enabled
6Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.881014] omap_uart 4806a000.serial: no wakeirq for uart0
64806a000.serial: ttyO0 at MMIO 0x4806a000 (irq = 104, base_baud = 3000000) is a
OMAP UART0
[    2.895146] omap_uart 4806c000.serial: no wakeirq for uart0
64806c000.serial: ttyO1 at MMIO 0x4806c000 (irq = 105, base_baud = 3000000) is a
OMAP UART1
[    2.909256] omap_uart 4806e000.serial: no wakeirq for uart0
64806e000.serial: ttyO3 at MMIO 0x4806e000 (irq = 102, base_baud = 3000000) is a
OMAP UART3
[    2.923430] omap_uart 48066000.serial: no wakeirq for uart0
648066000.serial: ttyO4 at MMIO 0x48066000 (irq = 137, base_baud = 3000000) is a
OMAP UART4
[    2.937571] omap_uart 48068000.serial: no wakeirq for uart0
648068000.serial: ttyO5 at MMIO 0x48068000 (irq = 138, base_baud = 3000000) is a
OMAP UART5
6serial: Freescale lpuart driver
6[drm] Initialized drm 1.1.0 20060810
6usbcore: registered new interface driver udl
3Error: Driver 'tfp410' is already registered, aborting...
[    2.971104] ahci 4a140000.sata: forcing PORTS_IMPL to 0x1
[    2.976485] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1
impl platform mode
[    2.985101] ahci 4a140000.sata: flags: 64bit ncq sntf pm led clo only pmp pio
slum part ccc apst
[    2.995244] scsi host0: ahci_platform
6ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 86
6xen_netfront: Initialising Xen virtual ethernet driver
6ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
6ehci-platform: EHCI generic platform driver
6ehci-omap: OMAP-EHCI Host Controller driver
[    3.041987] ehci-omap 4a064c00.ehci: EHCI Host Controller
[    3.047529] ehci-omap 4a064c00.ehci: new USB bus registered, assigned bus
number 1
[    3.055168] ehci-omap 4a064c00.ehci: irq 109, io mem 0x4a064c00
[    3.079503] ehci-omap 4a064c00.ehci: USB 2.0 started, EHCI 1.00
[    3.085600] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.092371] usb usb1: New USB device strings: Mfr=3, Product=2, 
SerialNumber=1
[    3.099681] usb usb1: Product: EHCI Host Controller
[    3.104635] usb usb1: Manufacturer: Linux 3.17.0-rc4-armv7-lpae-x5 ehci_hcd
[    3.111711] usb usb1: SerialNumber: 4a064c00.ehci
[    3.117092] hub 1-0:1.0: USB hub found
[    3.120845] hub 1-0:1.0: 3 ports detected
6tegra-ehci: Tegra EHCI driver
6usbcore: registered new interface driver usb-storage
6mousedev: PS/2 mouse device common for all mice
6i2c /dev entries driver
6IR Sharp protocol handler initialized
6IR XMP protocol handler initialized
[    3.184750] ti-soc-thermal 4a0021e0.bandgap: Delay 1000 ms is not supported
[    3.191747] ti-soc-thermal 4a0021e0.bandgap: Delay 1000 ms is not supported
6omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
6sdhci: Secure Digital Host Controller Interface driver
6sdhci: Copyright(c) Pierre Ossman
4mmc0: host does not support reading read-only switch. assuming write-enable.
4480ad000.mmc supply vmmc not found, using dummy regulator
[    3.299904] omap_hsmmc 480ad000.mmc: could not set regulator OCR (-22)
6mmc0: new high speed SDHC card at address 1234
6mmcblk0: mmc0:1234 SA08G 7.28 GiB
6 mmcblk0: p1 p2
4480d1000.mmc supply vmmc not found, using dummy regulator
[    3.344983] omap_hsmmc 480d1000.mmc: could not set regulator OCR (-22)
[    3.351686] omap_hsmmc 480d1000.mmc: could not set regulator OCR (-22)
6ata1: SATA link down (SStatus 0 SControl 300)
6mmc1: BKOPS_EN bit is not set
4480d5000.mmc supply vmmc not found, using dummy regulator
[    3.394920] omap_hsmmc 480d5000.mmc: could not set regulator OCR (-22)
[    3.401663] omap_hsmmc 480d5000.mmc: could not set regulator OCR (-22)
6mmc1: new high speed MMC card at address 0001
6mmcblk1: mmc1:0001 SEM04G 3.68 GiB
6mmcblk1boot0: mmc1:0001 SEM04G partition 1 2.00 MiB
6mmcblk1boot1: mmc1:0001 SEM04G partition 2 2.00 MiB
6 mmcblk1: unknown partition table
6 mmcblk1boot1: unknown partition table
6 mmcblk1boot0: unknown partition table
6sdhci-pltfm: SDHCI platform and OF driver helper
[    3.445877] u6ledtrig-cpu: registered to indicate activity on CPUs
sb 1-3: new high6hidraw: raw HID events driver (C) Jiri Kosina
-speed USB device number 2 using ehci-omap
6usbcore: registered new interface driver usbhid
6usbhid: USB HID core driver
6ashmem: initialized
3emif_probe: error getting device data
3emif_probe: error getting device data
6oprofile: hardware counters not available
6oprofile: using timer interrupt.
6TCP: cubic registered
6NET: Registered protocol family 10
6mip6: Mobile IPv6
6NET: Registered protocol family 17
5Key type dns_resolver registered
6mpls_gso: MPLS GSO support
3omap_vc_init_channel: No PMIC info for vdd_core
3omap_vp_init: No PMIC info for vdd_core
3omap_vc_init_channel: No PMIC info for vdd_mm
3omap_vp_init: No PMIC info for vdd_mm
3omap_vc_init_channel: No PMIC info for vdd_mpu
3omap_vp_init: No PMIC info for vdd_mpu
4cpufreq_cpu0: failed to get cpu0 regulator: -19
3cpufreq_cpu0: failed to get cpu0 clock: -2
4cpufreq-cpu0: probe of cpufreq-cpu0.0 failed with error -2
6ThumbEE CPU extension supported.
5Registering SWP/SWPB emulation handler
6registered taskstats version 1
6Btrfs loaded
[    3.559848] dmm 4e000000.dmm: initialized all PAT entries
[    3.565416] platform omapdrm.0: Driver omapdrm requests probe deferral
[    3.573182] palmas 0-0048: Irq flag is 0x00000000
[    3.580780] palmas 0-0048: Muxing GPIO 2, PWM 0, LED 0
6smps123: 600 <--> 1500 mV at 1050 mV
6smps45: 600 <--> 1310 mV at 1050 mV
6smps6: 1200 mV
6smps7: 1800 mV
6smps8: 600 <--> 1310 mV at 1050 mV
6smps9: 2100 mV
6smps10_out2: 5000 mV
[    3.621895] usb 1-3: New USB device found, idVendor=0424, idProduct=9730
[    3.628590] usb 1-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
6smps10_out1: 5000 mV
6ldo1: 1500 <--> 1800 mV
6ldo2: 2800 mV
6ldo3: 1500 mV
6ldo4: 1500 <--> 1800 mV
6ldo5: 1800 mV
6ldo6: 1200 mV
6ldo7: 2000 mV
6ldo8: 3000 mV
6ldo9: 1800 <--> 3000 mV at 3000 mV
6ldoln: 1800 mV
6ldousb: 3250 mV
6REGEN1: no parameters
6REGEN2: no parameters
6regen3: no parameters
6SYSEN1: no parameters
6SYSEN2: no parameters
[    3.694618] twl6040 0-004b: clk32k is not handled
[    3.702694] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
[    3.709323] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz
[    3.715088] tpd12s015 encoder@0: failed to parse CT CP HPD gpio
[    3.720993] platform encoder@0: Driver tpd12s015 requests probe deferral
[    3.728057] connector-hdmi connector@0: failed to find video source
[    3.734316] platform connector@0: Driver connector-hdmi requests probe 
deferral
[    3.741938] platform omapdrm.0: Driver omapdrm requests probe deferral
3drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
6ldo9: disabling
6ldo8: disabling
6ldo3: disabling
3mmcblk0: error -110 sending status command, retrying
3mmcblk0: error -110 sending status command, retrying
3mmcblk0: error -110 sending status command, aborting
3end_request: I/O error, dev mmcblk0, sector 26626
3EXT4-fs (mmcblk0p2): unable to read superblock
3mmcblk0: error -110 sending status command, retrying
3mmcblk0: error -110 sending status command, retrying
3mmcblk0: error -110 sending status command, aborting
3end_request: I/O error, dev mmcblk0, sector 26626
3EXT4-fs (mmcblk0p2): unable to read superblock
3mmcblk0: error -110 sending status command, retrying
3mmcblk0: error -110 sending status command, retrying
3mmcblk0: error -110 sending status command, aborting
3end_request: I/O error, dev mmcblk0, sector 26626
3EXT4-fs (mmcblk0p2): unable to read superblock
3mmcblk0: error -110 sending status command, retrying
3mmcblk0: error -110 sending status command, retrying
3mmcblk0: error -110 sending status command, aborting
3end_request: I/O error, dev mmcblk0, sector 26624
3FAT-fs (mmcblk0p2): unable to read boot sector
VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -5
Please append a correct "root=" boot option; here are the available partitions:
b300         7639040 mmcblk0  driver: mmcblk
  b301           12288 mmcblk0p1 00000000-01
  b302         7625728 mmcblk0p2 00000000-02
b308         3866624 mmcblk1  driver: mmcblk
b318            2048 mmcblk1boot1  (driver?)
b310            2048 mmcblk1boot0  (driver?)
0Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(179,2)
dCPU: 1 PID: 1 Comm: swapper/0 Tainted: G        W      
3.17.0-rc4-armv7-lpae-x5 #11
[<c00269c0>] (unwind_backtrace) from [<c0022d0c>] (show_stack+0x10/0x14)
[<c0022d0c>] (show_stack) from [<c0850ca4>] (dump_stack+0x84/0x94)
[<c0850ca4>] (dump_stack) from [<c084c52c>] (panic+0xa4/0x21c)
[<c084c52c>] (panic) from [<c0bf6224>] (mount_block_root+0x240/0x2c8)
[<c0bf6224>] (mount_block_root) from [<c0bf6468>] 
(prepare_namespace+0x158/0x19c)
[<c0bf6468>] (prepare_namespace) from [<c0bf5ec8>]
(kernel_init_freeable+0x270/0x280)
[<c0bf5ec8>] (kernel_init_freeable) from [<c084ab98>] (kernel_init+0xc/0xe8)
[<c084ab98>] (kernel_init) from [<c001f898>] (ret_from_fork+0x14/0x3c)
2CPU0: stopping
dCPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W      
3.17.0-rc4-armv7-lpae-x5 #11
[<c00269c0>] (unwind_backtrace) from [<c0022d0c>] (show_stack+0x10/0x14)
[<c0022d0c>] (show_stack) from [<c0850ca4>] (dump_stack+0x84/0x94)
[<c0850ca4>] (dump_stack) from [<c0024be4>] (handle_IPI+0x190/0x214)
[<c0024be4>] (handle_IPI) from [<c000863c>] (gic_handle_irq+0x58/0x5c)
[<c000863c>] (gic_handle_irq) from [<c0856dc0>] (__irq_svc+0x40/0x54)
Exception stack(0xc0c7df40 to 0xc0c7df88)
df40: ffffffed 00000000 ffffffed c002c2a0 c0c7c000 c0d09ce0 c0c84644 c0c845e0
df60: 00000000 00000000 c0c7a428 00000000 00000000 c0c7df88 c0020438 c002043c
df80: 60000113 ffffffff
[<c0856dc0>] (__irq_svc) from [<c002043c>] (arch_cpu_idle+0x38/0x3c)
[<c002043c>] (arch_cpu_idle) from [<c0080f04>] (cpu_startup_entry+0x218/0x2bc)
[<c0080f04>] (cpu_startup_entry) from [<c0bf5c4c>] (start_kernel+0x408/0x414)
[<c0bf5c4c>] (start_kernel) from [<a8008084>] (0xa8008084)
0---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(179,2)

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

Still not sure of the cause for this, tried all the simple things, but this card
and kernel will boot straight linux without Xen, so I don't think the card
itself or anything like that is the issue.

One thought was that removing that secure monitor call line messed up something
with the clocking on the board such that it can no longer get consistent
accurate reads from the SD card, but that's just one theory.

This is where I am currently and I am still working on the issue, just thought
I'd throw in this info to see if it gives anyone something to work from.  I've
attached the complete uboot/xen/linux logs for both boots to this e-mail if that
helps.

Let me know if I can provide any additional information, thanks for your time.

- Josh


> 
> ---- Boot log ----
> (XEN) Checking for initrd in /chosen
> (XEN) RAM: 0000000080000000 - 00000000feffffff
> (XEN)
> (XEN) MODULE[0]: 00000000825f0000 - 00000000825fd000 Device Tree
> (XEN) MODULE[1]: 00000000a0000000 - 00000000a0a00000 Kernel
> console=hvc0,115200n8 earlyprintk=xen debug ignore_loglevel
> root=/dev/mmcblk0p2 rw rootwait fixrtc
> (XEN)  RESVD[0]: 00000000825f0000 - 00000000825fd000
> (XEN)
> (XEN) Command line: sync_console console=dtuart dtuart=serial2
> loglvl=all guest_loglvl=all sync_console console_to_ring dom0_mem=512M
> (XEN) Placing Xen at 0x00000000fee00000-0x00000000ff000000
> (XEN) Update BOOTMOD_XEN from 0000000080200000-00000000802f9681 =>
> 00000000fee00000-00000000feef9681
> (XEN) Xen heap: 00000000ee000000-00000000fe000000 (65536 pages)
> (XEN) Dom heap: 454656 pages
> (XEN) Domain heap initialised
> (XEN) Looking for UART console serial2
> 
> But the final is the same:
> (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch
> input to Xen)
> (XEN) Freed 252kB init memory.
> 
> 
> On Thu, Sep 25, 2014 at 2:11 PM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
>> On Wed, 2014-09-24 at 20:17 +0400, Konstantin Belov wrote:
>>> Ian,
>>>  That's what I have in FDT before bootm command:
>>>
>>> U-Boot# fdt print /chosen
>>> chosen {
>>>         xen,dom0-bootargs = "console=hvc0 earlyprintk=xen debug
>>> ignore_loglevel root=/dev/mmcblk0p2 rw rootwait fixrtc";
>>>         xen,xen-bootargs = "sync_console console=dtuart dtuart=serial2";
>>>         modules {
>>>                 #size-cells = <0x00000001>;
>>>                 #address-cells = <0x00000001>;
>>>                 module@0 {
>>>                         reg = <0xa0000000 0x00a00000>;
>>>                         compatible = "xen,linux-zimage", 
>>> "xen,multiboot-module";
>>>                 };
>>>         };
>>> };
>>>
>>> Also I tried to add more options for Xen (which I took from Arndale
>>> setup): "loglvl=all guest_loglvl=all sync_console console_to_ring"
>>> but this didn't add any extra info.
>>
>> I don't spot anything wrong with this :-(
>>
>> Could you try putting /chosen/xen,dom0-bootargs
>> into /chosen/modules/module@0/bootargs instead and see if that works?
>> Perhaps we have somehow regressed the former path (in which case it
>> should be fixed).
>>
>> Ian.
>>
>>
> 
> 
> 

Attachment: boot2.log
Description: Text document

Attachment: boot1.log
Description: Text document

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

 


Rackspace

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