All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* xen on J6 evm - console not responding
@ 2015-06-17 14:04 Korupol, Naveen (EXT)
  2015-06-17 14:31 ` Ian Campbell
  0 siblings, 1 reply; 9+ messages in thread
From: Korupol, Naveen (EXT) @ 2015-06-17 14:04 UTC (permalink / raw)
  To: xen-devel@lists.xenproject.org

Hi Ian

I have Xen and Dom-0 booting up in a stable state on a J6 evm board.
I can see xl commands responding correctly from the scripts too,
But I cannot enter the login name at the login prompt from a getty setup in inittab.
I have /dev/hvc0 in the file system, I am using an initramfs which might have something missing.

Can you please suggest what could be missing/incorrect in my setup.
Please find the trailing log from my boot up - thanks

Naveen


 ..
..
..
..
Starting /usr/local/sbin/xenstored with args ..
xenstored.pid is77
Setting domain 0 name, domid and JSON config...
Done setting up Dom0
Starting xenconsoled...
$Starting domain watchdog daemon: success for $xenwatchdogd startup
r=0

NNN_Debug xl info

host                   : hydbad
release                : 3.19.0
version                : #415 SMP Tue Jun 16 17:18:28 EDT 2015
machine                : armv7l
nr_cpus                : 2
max_cpu_id             : 127
nr_nodes               : 1
cores_per_socket       : 1
threads_per_core       : 1
cpu_mhz                : 6
hw_caps                : 00000000:00000000:00000000:00000000:00000000:00000000:00000000:00000000
virt_caps              :
total_memory           : 1536
free_memory            : 222
sharing_freed_memory   : 0
sharing_used_memory    : 0
outstanding_claims     : 0
free_cpus              : 0
cpu_topology           :
cpu:    core    socket     node
  0:       0        0        0
  1:       0        0        0
numa_info              :
node:    memsize    memfree    distances
   0:      1536        413      20
xen_major              : 4
xen_minor              : 5
xen_extra              : .0
xen_version            : 4.5.0
xen_caps               : xen-3.0-armv7l 
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0x200000
xen_changeset          : 
xen_commandline        : dom0_mem=2048M console=dtuart dtuart=serial0 dom0_max_vcpus=1 bootscrub=0 flask_enforcing=1 noreboot
cc_compiler            : arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.9.1-16ubuntu6) 4.9.1
cc_compile_by          : root
cc_compile_domain      : 
cc_compile_date        : Tue May 19 13:38:59 EDT 2015
xend_config_format     : 4

NNN_Debug xl list

Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  1088     1     r-----       6.2

NNN_Debug ps

PID   USER     TIME   COMMAND
    1 root       0:03 init
    2 root       0:00 [kthreadd]
    3 root       0:00 [ksoftirqd/0]
    4 root       0:00 [kworker/0:0]
    5 root       0:00 [kworker/0:0H]
    6 root       0:00 [kworker/u2:0]
    7 root       0:00 [rcu_sched]
    8 root       0:00 [rcu_bh]
    9 root       0:00 [migration/0]
   10 root       0:00 [khelper]
   11 root       0:00 [kdevtmpfs]
   12 root       0:00 [netns]
   13 root       0:00 [perf]
   14 root       0:00 [xenwatch]
   15 root       0:00 [xenbus]
   16 root       0:00 [writeback]
   17 root       0:00 [kworker/0:1]
   18 root       0:00 [crypto]
   19 root       0:00 [bioset]
   20 root       0:00 [kblockd]
   21 root       0:00 [xenbus_frontend]
   22 root       0:00 [ata_sff]
   23 root       0:00 [rpciod]
   24 root       0:00 [kswapd0]
   25 root       0:00 [fsnotify_mark]
   26 root       0:00 [nfsiod]
   34 root       0:00 [khvcd]
   35 root       0:00 [kpsmoused]
   36 root       0:00 [ipv6_addrconf]
   37 root       0:00 [kworker/u2:1]
   38 root       0:00 [deferwq]
   39 root       0:00 [kworker/u2:2]
   40 root       0:00 {rc} /bin/sh /etc/rc
   77 root       0:00 /usr/local/sbin/xenstored --pid-file /var/run/xenstored.p
   86 root       0:00 /usr/local/sbin/xenconsoled --pid-file=/var/run/xenconsol
   98 root       0:00 /usr/local/sbin/xenwatchdogd 30 15
  103 root       0:00 ps la

Xen 4.5.0 ++ Linux 3.19.0 hydbad /dev/hvc0

hydbad login:

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xen on J6 evm - console not responding
  2015-06-17 14:04 xen on J6 evm - console not responding Korupol, Naveen (EXT)
@ 2015-06-17 14:31 ` Ian Campbell
  2015-06-17 14:42   ` Korupol, Naveen (EXT)
  2015-06-17 14:46   ` Korupol, Naveen (EXT)
  0 siblings, 2 replies; 9+ messages in thread
From: Ian Campbell @ 2015-06-17 14:31 UTC (permalink / raw)
  To: Korupol, Naveen (EXT); +Cc: xen-devel@lists.xenproject.org

On Wed, 2015-06-17 at 14:04 +0000, Korupol, Naveen (EXT) wrote:
> Hi Ian
> 
> I have Xen and Dom-0 booting up in a stable state on a J6 evm board.
> I can see xl commands responding correctly from the scripts too,
> But I cannot enter the login name at the login prompt from a getty setup in inittab.
> I have /dev/hvc0 in the file system, I am using an initramfs which might have something missing.
> 
> Can you please suggest what could be missing/incorrect in my setup.
> Please find the trailing log from my boot up - thanks

I can't think of anything off hand. Please could you send the contents
of /etc/inittab and /etc/rc (assuming that is what is running all those
xl commands).

What major/minor number does /dev/hvc0 have in your initramfs?

Does Xen see the keypresses, i.e. can you press Ctrl-A three times and
get a response?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xen on J6 evm - console not responding
  2015-06-17 14:31 ` Ian Campbell
@ 2015-06-17 14:42   ` Korupol, Naveen (EXT)
  2015-06-17 14:55     ` Ian Campbell
  2015-06-17 14:46   ` Korupol, Naveen (EXT)
  1 sibling, 1 reply; 9+ messages in thread
From: Korupol, Naveen (EXT) @ 2015-06-17 14:42 UTC (permalink / raw)
  To: Ian Campbell, Korupol, Naveen (EXT); +Cc: xen-devel@lists.xenproject.org

Hi Ian

Here is the information:

/etc/inittab
# Boot-time system configuration/initialization script.
# This is run first except when booting in single-user mode.
#
::sysinit:/etc/rc

# /bin/sh invocations on selected ttys
#
# Note below that we prefix the shell commands with a "-" to indicate to the
# shell that it is supposed to be a login shell.  Normally this is handled by
# login, but since we are bypassing login in this case, BusyBox lets you do
# this yourself...
#
# /sbin/getty invocations for selected ttys
hvc0::respawn:/sbin/getty 115200 hvc0

# Stuff to do when restarting the init process
::restart:/init

# Stuff to do before rebooting
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r


/etc/rc (assuming that is what is running all those xl commands - yes).
#!/bin/sh       
echo
echo "Simple initramfs is active - this is from /etc/rc"
echo

# export LD_DEBUG=files
echo PATH = $PATH
echo LD_PRELOAD = $LD_PRELOAD

echo LIBPATH = $LIBPATH
export LIBPATH=/usr/local/lib;$LIBPATH
echo LIBPATH = $LIBPATH

echo LD_LIBRARY_PATH = $LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/lib;$LD_LIBRARY_PATH
echo LD_LIBRARY_PATH = $LD_LIBRARY_PATH

./etc/init.d/mountall.sh

./etc/init.d/hostname.sh

./etc/init.d/xencommons start
./etc/init.d/xendomains start
./etc/init.d/xen-watchdog start

echo
echo "NNN_Debug xl info"
echo
./usr/local/sbin/xl info -n
sleep 1

echo
echo "NNN_Debug xl list"
echo
./usr/local/sbin/xl list
sleep 1

echo
echo "NNN_Debug ps"
echo
ps la
sleep 1


What major/minor number does /dev/hvc0 have in your initramfs?
229 0 as below

/dev
crw-rw-rw- 1 	root root   	5,  1 	Jun  9 14:59 console
crw-rw-rw- 1 	root root 	229,  0 	Jun  5 14:50 hvc0
brw-r--r-- 1	root root   	7,  0 	Jun  5 14:51 loop0
brw-rw-rw- 1 	root root 	179,  0 	Jun  5 14:46 mmcblk0
brw-rw-rw- 1 	root root 	179,  1 	Jun  5 14:49 mmcblk0p1
brw-rw-rw- 1 	root root 	179,  2 	Jun  5 14:49 mmcblk0p2
brw-rw-rw- 1 	root root 	179,  3 	Jun  5 14:49 mmcblk0p3
crw-rw-rw- 1 	root root   	1,  3 	Jun  9 14:59 null
cr--r--r-- 1 	root root   	1,  8 	Jun  9 14:59 random
crw-rw-rw- 1 	root root  	 5,  0 	Jun  9 14:59 tty
crw-rw-rw- 1 	root root   	4, 64 	Jun  9 14:59 ttyS0
cr--r--r-- 1 	root root   	1,  9 	Jun  9 14:59 urandom
drwxrwxrwx 2 	root root    	4096 	Jun 15 13:53 xen
crw-rw-rw- 1 	root root   	1,  5 	Jun  9 14:59 zero

Does Xen see the keypresses, i.e. can you press Ctrl-A three times and get a response?
No: Ctrl-A does not work either.

Thanks
Naveen

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xen on J6 evm - console not responding
  2015-06-17 14:31 ` Ian Campbell
  2015-06-17 14:42   ` Korupol, Naveen (EXT)
@ 2015-06-17 14:46   ` Korupol, Naveen (EXT)
  1 sibling, 0 replies; 9+ messages in thread
From: Korupol, Naveen (EXT) @ 2015-06-17 14:46 UTC (permalink / raw)
  To: Ian Campbell, Korupol, Naveen (EXT); +Cc: xen-devel@lists.xenproject.org

Hi Ian,

hvc0::respawn:/sbin/getty 115200 hvc0
is on a new line in /etc/inittab

Naveen

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xen on J6 evm - console not responding
  2015-06-17 14:42   ` Korupol, Naveen (EXT)
@ 2015-06-17 14:55     ` Ian Campbell
  2015-06-17 15:03       ` Korupol, Naveen (EXT)
  2015-06-17 15:05       ` Ian Campbell
  0 siblings, 2 replies; 9+ messages in thread
From: Ian Campbell @ 2015-06-17 14:55 UTC (permalink / raw)
  To: Korupol, Naveen (EXT); +Cc: xen-devel@lists.xenproject.org

On Wed, 2015-06-17 at 14:42 +0000, Korupol, Naveen (EXT) wrote:
> Does Xen see the keypresses, i.e. can you press Ctrl-A three times and
> get a response? 
> No: Ctrl-A does not work either.

OK, that indicates an issue with the serial port rather than anything to
do with the dom0 configuration.

I'm going to assume this isn't a h/w issue and that you've tested the
serial port works e.g. with native Linux? It could also be a RTS/CTS
misconfiguration between Xen and the host terminal emulator, I suppose,
so that's worth checking.

Otherwise it seems like the issue is either with the Xen serial port
driver for your platform or with the DTB description of hte IRQ or
something like that.

J6 EVM is an Omap5, right? With the same UART as people have reported
successes with on other OMAP5 platforms e.g. at
http://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/OMAP5432_uEVM ?

Please could you post a full serial log of the boot, perhaps that will
give us a clue.

Ian.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xen on J6 evm - console not responding
  2015-06-17 14:55     ` Ian Campbell
@ 2015-06-17 15:03       ` Korupol, Naveen (EXT)
  2015-06-17 15:05       ` Ian Campbell
  1 sibling, 0 replies; 9+ messages in thread
From: Korupol, Naveen (EXT) @ 2015-06-17 15:03 UTC (permalink / raw)
  To: Ian Campbell, Korupol, Naveen (EXT); +Cc: xen-devel@lists.xenproject.org

Hi Ian

Here is the complete boot up log:

Thanks
Naveen

U-Boot SPL 2015.04-rc1 (Mar 10 2015 - 13:35:08)
DRA752 ES1.1
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img


U-Boot 2015.04-rc1 (Mar 10 2015 - 13:35:08)

CPU  : DRA752 ES1.1
Board: DRA7xx
I2C:   ready
DRAM:  1.5 GiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Card did not respond to voltage select!
MMC init failed
Using default environment

SCSI:  SATA link 0 timeout.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst 
scanning bus for devices...
Found 0 device(s).
Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading uEnv.txt
271 bytes read in 13 ms (19.5 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc0 ...
reading dra7-evm.dtb
73750 bytes read in 14 ms (5 MiB/s)
reading xen-uImage
754588 bytes read in 63 ms (11.4 MiB/s)
reading uImage
29087088 bytes read in 2183 ms (12.7 MiB/s)
reading initrd.img
695550 bytes read in 55 ms (12.1 MiB/s)
## Booting kernel from Legacy Image at 90000000 ...
   Image Name:   Xen.Trial.31.++debug
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    754524 Bytes = 736.8 KiB
   Load Address: 80200000
   Entry Point:  80200000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 825f0000
   Booting using the fdt blob at 0x825f0000
   Loading Kernel Image ... OK
   reserving fdt memory region: addr=825f0000 size=13000
   Loading Device Tree to 83fea000, end 83ffffff ... OK

Starting kernel ...

- UART enabled -
- CPU 00000000 booting -
- Xen starting in Hyp mode -
- Zero BSS -
- Setting up control registers -
- Turning on paging -
- Ready -
(XEN)  NNN_Debug >> start_xen 
(XEN) Checking for initrd in /chosen
(XEN) Initrd 00000000a0000000-00000000a00a9cfe
(XEN) RAM: 0000000080000000 - 00000000dfffffff
(XEN) 
(XEN) MODULE[0]: 0000000083fea000 - 0000000083ffd000 Device Tree  
(XEN) MODULE[1]: 00000000a0000000 - 00000000a00a9cfe Ramdisk      
(XEN) MODULE[2]: 00000000b0000000 - 00000000b2000000 Kernel       
(XEN)  RESVD[0]: 00000000825f0000 - 0000000082603000
(XEN)  RESVD[1]: 0000000083fea000 - 0000000083ffd000
(XEN) 
(XEN) Command line: dom0_mem=2048M console=dtuart dtuart=serial0 dom0_max_vcpus=1 bootscrub=0 flask_enforcing=1 noreboot
(XEN) Placing Xen at 0x00000000dfe00000-0x00000000e0000000
(XEN) Update BOOTMOD_XEN from 0000000080200000-0000000080301701 => 00000000dfe00000-00000000dff01701
(XEN) Xen heap: 00000000d2000000-00000000de000000 (49152 pages)
(XEN) Dom heap: 344064 pages
(XEN) Domain heap initialised
(XEN) Looking for UART console serial0
 Xen 4.5.0
(XEN) Xen version 4.5.0 (root@) (arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.9.1-16ubuntu6) 4.9.1) debug=y Tue May 19 13:38:59 EDT 2015
(XEN) Latest ChangeSet: 
(XEN) Processor: 412fc0f2: "ARM Limited", variant: 0x2, part 0xc0f, rev 0x2
(XEN) 32-bit Execution:
(XEN)   Processor Features: 00001131:00011011
(XEN)     Instruction Sets: AArch32 A32 Thumb Thumb-2 ThumbEE Jazelle
(XEN)     Extensions: GenericTimer Security
(XEN)   Debug Features: 02010555
(XEN)   Auxiliary Features: 00000000
(XEN)   Memory Model Features: 10201105 20000000 01240000 02102211
(XEN)  ISA Features: 02101110 13112111 21232041 11112131 10011142 00000000
(XEN) Platform: TI DRA7
(XEN) Set AuxCoreBoot1 to 00000000dfe0004c (0020004c)
(XEN) Set AuxCoreBoot0 to 0x20
(XEN) Generic Timer IRQ: phys=30 hyp=26 virt=27
(XEN) Using generic timer at 6144 KHz
(XEN) GICv2 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) GICv2: 192 lines, 2 cpus, secure (IID 0000043b).
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) xen init done.
(XEN) I/O virtualisation disabled
(XEN) Allocated console ring of 16 KiB.
(XEN) VFP implementer 0x41 architecture 4 part 0x30 variant 0xf rev 0x0
(XEN) Bringing up CPU1
- CPU 00000001 booting -
- NOT HYP, setting it ... -
- Xen starting in Hyp mode -
- Setting up control registers -
- Turning on paging -
- Ready -
(XEN) CPU 1 booted.
(XEN) Brought up 2 CPUs
(XEN) P2M: 40-bit IPA
(XEN) P2M: 3 levels with order-1 root, VTCR 0x80003558
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Loading kernel from boot module @ 00000000b0000000
(XEN) Loading ramdisk from boot module @ 00000000a0000000
(XEN) Allocating 1:1 mappings totalling 2048MB for dom0:
(XEN) WARNING: Failed to allocate requested dom0 memory. 960MB unallocated
(XEN) BANK[0] 0x00000084000000-0x000000a0000000 (448MB)
(XEN) BANK[1] 0x000000a4000000-0x000000b0000000 (192MB)
(XEN) BANK[2] 0x000000b4000000-0x000000d0000000 (448MB)
(XEN) Loading zImage from 00000000b0000040 to 000000008a400000-000000008bfbd530
(XEN) NNN_Debug >> Loading dom0 initrd from 00000000a0000000 to 0x000000008c200000-0x000000008c2a9cfe
(XEN) Loading dom0 DTB to 0x000000008c000000-0x000000008c00fb9c
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 280kB 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.19.0 (root@hydbad) (gcc version 4.9.1 (Ubuntu/Linaro 4.9.1-16ubuntu6) ) #416 SMP Wed Jun 17 10:54:07 EDT 2015
[    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=70c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] Machine model: TI DRA742
[    0.000000] Ignoring memory range 0x84000000 - 0x88000000
[    0.000000] cma: Reserved 16 MiB at 0x00000000cec00000
[    0.000000] Forcing write-allocate cache policy for SMP
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] NNN_Debug >> dra7xx_init_early + 
[    0.000000] DRA752 ES1.1
[    0.000000] NNN_Debug >> dra7xx_init_early with i=0 
[    0.000000] PERCPU: Embedded 11 pages/cpu @eed7f000 s14720 r8192 d22144 u45056
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 259922
[    0.000000] Kernel command line: console=hvc0 root=/dev/ram0 rw rootwait nomodeset clk_ignore_unused dom0_max_vcpus=1
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 978728K/1046528K available (4560K kernel code, 407K rwdata, 2256K rodata, 24788K init, 8252K bss, 51416K reserved, 16384K cma-reserved, 382976K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf800000 - 0xbfe00000   (   6 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06b0624   (6818 kB)
[    0.000000]       .init : 0xc06b1000 - 0xc1ee6000   (24788 kB)
[    0.000000]       .data : 0xc1ee6000 - 0xc1f4bca8   ( 408 kB)
[    0.000000]        .bss : 0xc1f4bca8 - 0xc275ae40   (8253 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 65536000000000ns
[    0.000030] OMAP clocksource: 32k_counter at 32768 Hz
[    0.000366] Architected cp15 timer(s) running at 6.14MHz (virt).
[    0.000396] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 2796202663936ns
[    0.000404] Switching to timer-based delay loop, resolution 162ns
[    0.001054] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.001065] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.001068] ... MAX_LOCK_DEPTH:          48
[    0.001068] ... MAX_LOCKDEP_KEYS:        8191
[    0.001074] ... CLASSHASH_SIZE:          4096
[    0.001083] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.001090] ... MAX_LOCKDEP_CHAINS:      65536
[    0.001098] ... CHAINHASH_SIZE:          32768
[    0.001098]  memory used by lock dependency info: 5167 kB
[    0.001098]  per task-struct memory footprint: 1152 bytes
[    0.001123] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.28 BogoMIPS (lpj=61440)
[    0.001129] pid_max: default: 32768 minimum: 301
[    0.001355] Security Framework initialized
[    0.001465] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001477] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.003389] Initializing cgroup subsys memory
[    0.003434] Initializing cgroup subsys devices
[    0.003481] Initializing cgroup subsys freezer
[    0.003537] Initializing cgroup subsys blkio
[    0.003578] Initializing cgroup subsys perf_event
[    0.003641] CPU: Testing write buffer coherency: ok
[    0.004394] /cpus/cpu@0 missing clock-frequency property
[    0.004403] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.004651] Xen 4.5 support found, events_irq=20 gnttab_frame=0x000000004b000000
[    0.004822] xen:grant_table: Grant tables using version 1 layout
[    0.004852] Grant table initialized
[    0.004906] xen:events: Using FIFO-based ABI
[    0.004915] Xen: initializing cpu0
[    0.005002] Setting up static identity map for 0x88449e20 - 0x88449e6c
[    0.006958] Brought up 1 CPUs
[    0.006970] SMP: Total of 1 processors activated (12.28 BogoMIPS).
[    0.006980] CPU: All CPU(s) started in SVC mode.
[    0.008623] devtmpfs: initialized
[    0.010089] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.011708] pinctrl core: initialized pinctrl subsystem
[    0.059082] NET: Registered protocol family 16
[    0.061305] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.063049] xen:swiotlb_xen: Warning: only able to allocate 4 MB for software IO TLB
[    0.064209] software IO TLB [mem 0xb6000000-0xb6400000] (4MB) mapped at [ee000000-ee3fffff]
[    0.070884] OMAP GPIO hardware version 0.1
[    0.085399] platform 4e000000.dmm: Cannot lookup hwmod 'dmm'
[    0.093860] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/pinmux@4a003400/nand_flash_x16, deferring probe
[    0.093876] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
[    0.097562] No ATAGs?
[    0.097622] hw-breakpoint: Failed to enable monitor mode on CPU 0.
[    0.099792] OMAP DMA hardware revision 0.0
[    0.141510] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver
[    0.141809] xen:balloon: Initialising balloon driver
[    0.142181] xen_balloon: Initialising balloon driver
[    0.147161] SCSI subsystem initialized
[    0.147918] usbcore: registered new interface driver usbfs
[    0.148040] usbcore: registered new interface driver hub
[    0.148114] usbcore: registered new device driver usb
[    0.151032] Switched to clocksource arch_sys_counter
[    0.233814] NET: Registered protocol family 2
[    0.234892] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.235077] TCP bind hash table entries: 8192 (order: 6, 294912 bytes)
[    0.237335] TCP: Hash tables configured (established 8192 bind 8192)
[    0.237441] TCP: reno registered
[    0.237457] UDP hash table entries: 512 (order: 3, 40960 bytes)
[    0.237762] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes)
[    0.238649] NET: Registered protocol family 1
[    0.239482] RPC: Registered named UNIX socket transport module.
[    0.239496] RPC: Registered udp transport module.
[    0.239502] RPC: Registered tcp transport module.
[    0.239502] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.617614] Trying to unpack rootfs image as initramfs...
[    3.046081] rootfs image is not initramfs (no cpio magic); looks like an initrd
[    3.049014] Freeing initrd memory: 680K (c4200000 - c42aa000)
[    3.049657] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 1 counters available
[    3.052642] futex hash table entries: 256 (order: 2, 16384 bytes)
[    3.052801] audit: initializing netlink subsys (disabled)
[    3.052895] audit: type=2000 audit(3.050:1): initialized
[    3.055201] VFS: Disk quotas dquot_6.5.2
[    3.055286] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.056714] NFS: Registering the id_resolver key type
[    3.056915] Key type id_resolver registered
[    3.056915] Key type id_legacy registered
[    3.057031] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    3.059478] bounce: pool size: 64 pages
[    3.059539] io scheduler noop registered
[    3.059548] io scheduler deadline registered
[    3.059600] io scheduler cfq registered (default)
[    3.062072] xen:xen_evtchn: Event-channel device installed
[    3.836768] console [hvc0] enabled
[    3.855669] brd: module loaded
[    3.866804] loop: module loaded
[    3.871521] platform 4a140000.sata: Driver ahci requests probe deferral
[    3.879106] mtdoops: mtd device (mtddev=name/number) must be supplied
[    3.886442] xen_netfront: Initialising Xen virtual ethernet driver
[    3.892938] usbcore: registered new interface driver asix
[    3.898364] usbcore: registered new interface driver ax88179_178a
[    3.904571] usbcore: registered new interface driver cdc_ether
[    3.910522] usbcore: registered new interface driver smsc95xx
[    3.916351] usbcore: registered new interface driver net1080
[    3.922119] usbcore: registered new interface driver cdc_subset
[    3.928114] usbcore: registered new interface driver zaurus
[    3.933852] usbcore: registered new interface driver cdc_ncm
[    3.940002] usbcore: registered new interface driver cdc_wdm
[    3.945756] usbcore: registered new interface driver usb-storage
[    3.951848] usbcore: registered new interface driver usbtest
[    3.958187] mousedev: PS/2 mouse device common for all mice
[    3.965106] i2c /dev entries driver
[    3.968567] Driver for 1-wire Dallas network protocol.
[    3.978383] Driver 'mmcblk' needs updating - please use bus_type methods
[    4.056091] ledtrig-cpu: registered to indicate activity on CPUs
[    4.062378] usbcore: registered new interface driver usbhid
[    4.067898] usbhid: USB HID core driver
[    4.073610] oprofile: using timer interrupt.
[    4.078220] TCP: cubic registered
[    4.081515] Initializing XFRM netlink socket
[    4.086011] NET: Registered protocol family 10
[    4.091926] NET: Registered protocol family 17
[    4.096350] NET: Registered protocol family 15
[    4.100980] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    4.113769] Key type dns_resolver registered
[    4.122397] omap_voltage_late_init: Voltage driver support not added
[    4.133602] ThumbEE CPU extension supported.
[    4.137962] Registering SWP/SWPB emulation handler
[    4.143432] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
[    4.157257] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/pinmux@4a003400/nand_flash_x16, deferring probe
[    4.168238] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
[    4.175781] platform 4a140000.sata: Driver ahci requests probe deferral
[    4.182864] console [netcon0] enabled
[    4.186462] netconsole: network logging started
[    4.191403] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    4.242822] clk: Not disabling unused clocks
[    4.267969] Freeing unused kernel memory: 24788K (c06b1000 - c1ee6000)
command='/etc/rc' action=1 tty=''

command='/sbin/getty 115200 hvc0' action=8 tty='/dev/hvc0'

command='/init' action=80 tty=''

command='/sbin/reboot' action=20 tty=''

command='/sbin/swapoff -a' action=40 tty=''

command='/bin/umount -a -r' action=40 tty=''


Simple initramfs is active - this is from /etc/rc

PATH = /sbin:/usr/sbin:/bin:/usr/bin
LD_PRELOAD =
LIBPATH =
/etc/rc: line 11: /usr/local/lib: Permission denied
LIBPATH = /usr/local/lib
LD_LIBRARY_PATH =
/etc/rc: line 15: /usr/local/lib: Permission denied
LD_LIBRARY_PATH = /usr/local/lib
Starting /usr/local/sbin/xenstored with args*^
xenstored.pid is77
Setting domain 0 name, domid and JSON config...
Done setting up Dom0
Starting xenconsoled...
$Starting domain watchdog daemon: success for $xenwatchdogd startup
r=0

NNN_Debug xl info

host                   : hydbad
release                : 3.19.0
version                : #416 SMP Wed Jun 17 10:54:07 EDT 2015
machine                : armv7l
nr_cpus                : 2
max_cpu_id             : 127
nr_nodes               : 1
cores_per_socket       : 1
threads_per_core       : 1
cpu_mhz                : 6
hw_caps                : 00000000:00000000:00000000:00000000:00000000:00000000:00000000:00000000
virt_caps              :
total_memory           : 1536
free_memory            : 222
sharing_freed_memory   : 0
sharing_used_memory    : 0
outstanding_claims     : 0
free_cpus              : 0
cpu_topology           :
cpu:    core    socket     node
  0:       0        0        0
  1:       0        0        0
numa_info              :
node:    memsize    memfree    distances
   0:      1536        413      20
xen_major              : 4
xen_minor              : 5
xen_extra              : .0
xen_version            : 4.5.0
xen_caps               : xen-3.0-armv7l 
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0x200000
xen_changeset          : 
xen_commandline        : dom0_mem=2048M console=dtuart dtuart=serial0 dom0_max_vcpus=1 bootscrub=0 flask_enforcing=1 noreboot
cc_compiler            : arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.9.1-16ubuntu6) 4.9.1
cc_compile_by          : root
cc_compile_domain      : 
cc_compile_date        : Tue May 19 13:38:59 EDT 2015
xend_config_format     : 4

NNN_Debug xl vcpu-list

Name                                ID  VCPU   CPU State   Time(s) Affinity (Hard / Soft)
Domain-0                             0     0    0   r--       6.3  all / all

NNN_Debug ps

PID   USER     TIME   COMMAND
    1 root       0:03 init
    2 root       0:00 [kthreadd]
    3 root       0:00 [ksoftirqd/0]
    4 root       0:00 [kworker/0:0]
    5 root       0:00 [kworker/0:0H]
    6 root       0:00 [kworker/u2:0]
    7 root       0:00 [rcu_sched]
    8 root       0:00 [rcu_bh]
    9 root       0:00 [migration/0]
   10 root       0:00 [khelper]
   11 root       0:00 [kdevtmpfs]
   12 root       0:00 [netns]
   13 root       0:00 [perf]
   14 root       0:00 [xenwatch]
   15 root       0:00 [xenbus]
   16 root       0:00 [writeback]
   17 root       0:00 [kworker/0:1]
   18 root       0:00 [crypto]
   19 root       0:00 [bioset]
   20 root       0:00 [kblockd]
   21 root       0:00 [xenbus_frontend]
   22 root       0:00 [ata_sff]
   23 root       0:00 [rpciod]
   24 root       0:00 [kswapd0]
   25 root       0:00 [fsnotify_mark]
   26 root       0:00 [nfsiod]
   34 root       0:00 [khvcd]
   35 root       0:00 [kpsmoused]
   36 root       0:00 [ipv6_addrconf]
   37 root       0:00 [kworker/u2:1]
   38 root       0:00 [deferwq]
   39 root       0:00 [kworker/u2:2]
   40 root       0:00 {rc} /bin/sh /etc/rc
   77 root       0:00 /usr/local/sbin/xenstored --pid-file /var/run/xenstored.p
   86 root       0:00 /usr/local/sbin/xenconsoled --pid-file=/var/run/xenconsol
   98 root       0:00 /usr/local/sbin/xenwatchdogd 30 15
  103 root       0:00 ps la

Xen 4.5.0 ++ Linux 3.19.0 hydbad /dev/hvc0

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xen on J6 evm - console not responding
  2015-06-17 14:55     ` Ian Campbell
  2015-06-17 15:03       ` Korupol, Naveen (EXT)
@ 2015-06-17 15:05       ` Ian Campbell
  2015-06-30 16:44         ` Korupol, Naveen (EXT)
  1 sibling, 1 reply; 9+ messages in thread
From: Ian Campbell @ 2015-06-17 15:05 UTC (permalink / raw)
  To: Korupol, Naveen (EXT); +Cc: xen-devel@lists.xenproject.org

On Wed, 2015-06-17 at 15:55 +0100, Ian Campbell wrote:
> On Wed, 2015-06-17 at 14:42 +0000, Korupol, Naveen (EXT) wrote:
> > Does Xen see the keypresses, i.e. can you press Ctrl-A three times and
> > get a response? 
> > No: Ctrl-A does not work either.
> 
> OK, that indicates an issue with the serial port rather than anything to
> do with the dom0 configuration.
> 
> I'm going to assume this isn't a h/w issue and that you've tested the
> serial port works e.g. with native Linux? It could also be a RTS/CTS
> misconfiguration between Xen and the host terminal emulator, I suppose,
> so that's worth checking.
> 
> Otherwise it seems like the issue is either with the Xen serial port
> driver for your platform or with the DTB description of hte IRQ or
> something like that.

e.g. there was a report just now on xen-users from someone who had a
similar problem and it turned out their DTB had the wrong SPI for the
UART...

> 
> J6 EVM is an Omap5, right? With the same UART as people have reported
> successes with on other OMAP5 platforms e.g. at
> http://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/OMAP5432_uEVM ?
> 
> Please could you post a full serial log of the boot, perhaps that will
> give us a clue.
> 
> Ian.
> 
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xen on J6 evm - console not responding
  2015-06-17 15:05       ` Ian Campbell
@ 2015-06-30 16:44         ` Korupol, Naveen (EXT)
  2015-06-30 16:54           ` Ian Campbell
  0 siblings, 1 reply; 9+ messages in thread
From: Korupol, Naveen (EXT) @ 2015-06-30 16:44 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel@lists.xenproject.org

Hi Ian

After little more debugging, I found that the dtb that I am using to launch Xen and Linux is good until Linux starts to boot.

There is a little pause in the console after Xen boot completes and Linux boot log shows up.

During this window of time, console input still works...Ctrl-a sequence also works,
Which makes the dtb out of the culprits list.
But after the Linux boot, and at the login prompt...input control is lost. Ctrl-a also doesn’t work.

I am still unable to find out what is making the launch of Linux to lose input control over the console.
( I tried getty on hvc0 and standard console as well...just in case...both lead to the same behavior )

Any clues ?

Thanks
Naveen

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: xen on J6 evm - console not responding
  2015-06-30 16:44         ` Korupol, Naveen (EXT)
@ 2015-06-30 16:54           ` Ian Campbell
  0 siblings, 0 replies; 9+ messages in thread
From: Ian Campbell @ 2015-06-30 16:54 UTC (permalink / raw)
  To: Korupol, Naveen (EXT); +Cc: xen-devel@lists.xenproject.org

On Tue, 2015-06-30 at 16:44 +0000, Korupol, Naveen (EXT) wrote:
> Hi Ian
> 
> After little more debugging, I found that the dtb that I am using to launch Xen and Linux is good until Linux starts to boot.
> 
> There is a little pause in the console after Xen boot completes and Linux boot log shows up.
> 
> During this window of time, console input still works...Ctrl-a sequence also works,
> Which makes the dtb out of the culprits list.
> But after the Linux boot, and at the login prompt...input control is lost. Ctrl-a also doesn’t work.
> 
> I am still unable to find out what is making the launch of Linux to lose input control over the console.
> ( I tried getty on hvc0 and standard console as well...just in case...both lead to the same behavior )

Does adding "clk_ignore_unused" to your kernel command line help?

That options stops Linux disabling clocks which are (unbeknownst to it)
in use by Xen. (Yes, we need a better answer for this...)

Ian.


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-06-30 16:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-17 14:04 xen on J6 evm - console not responding Korupol, Naveen (EXT)
2015-06-17 14:31 ` Ian Campbell
2015-06-17 14:42   ` Korupol, Naveen (EXT)
2015-06-17 14:55     ` Ian Campbell
2015-06-17 15:03       ` Korupol, Naveen (EXT)
2015-06-17 15:05       ` Ian Campbell
2015-06-30 16:44         ` Korupol, Naveen (EXT)
2015-06-30 16:54           ` Ian Campbell
2015-06-17 14:46   ` Korupol, Naveen (EXT)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.