All of lore.kernel.org
 help / color / mirror / Atom feed
* the /dev/xvda can not be mounted and read/write when using xl create domU
@ 2014-04-16 15:29 duqi
  2014-04-16 15:47 ` Wei Huang
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: duqi @ 2014-04-16 15:29 UTC (permalink / raw)
  To: xen-devel
  Cc: Wei Huang, 宫晓利,
	Julien Grall, Ian Campbell, Stefano Stabellini (Xen mainlister)

Hello everyone,

I have tried to boot the domU folow the below instrctions:
The domU kernel that I used is from https://github.com/linux-sunxi/linux-sunxi.git  and the 'sunxi-devel' branch. I  have compiled the ramdisk with the domu kernel to boot the domu.

When I xl console the domU , I tried to mount the /dev/xvda to the /mnt and I met this error:
# mount /dev/xvda /mnt
[  681.934232] end_request: I/O error, dev xvda, sector 2
[  681.934401] EXT3-fs (xvda): error: unable to read superblock
[  681.947103] end_request: I/O error, dev xvda, sector 2
[  681.947244] EXT2-fs (xvda): error: unable to read superblock
[  681.967089] end_request: I/O error, dev xvda, sector 2
[  681.967226] EXT4-fs (xvda): unable to read superblock
mount: mounting /dev/xvda on /mnt failed: Invalid argument
#

Then I tried "# dd if=/dev/zero of=/dev/xvda bs=1 count=1000 seek=10000" to test the read and write of /dev/xvda, it also met error:
[  632.851166] end_request: I/O error, dev xvda, sector 16
dd: writing '/dev/xvda': Input/output error
1+0 records in
0+0 records out

(2) the domu_all.cfg is here:
root@linaro-alip:~# cat domu_all.cfg 
kernel = "/root/zImage" 
memory = "64" 
name = "dom11" 
vcpus = 1 
serial="pty"
root="/dev/xvda" 
extra = "4 console=hvc0,xencons=tty"
disk = [ 'phy:/dev/loop2,xvda,w' ]
vif=[ 'mac=00:16:3e:56:af:69,bridge=xenbr0,type=netfront', ]

Then I boot the domU follow the instructions:
losetup /dev/loop2 /root/domU/rootfs.img
xl -vvv create domu_all.cfg


Add some information : I want to use the raring rootfs as the rootfs of domu, and the /dev/xvda as the root device of domu, now I compiled the kernel with ramdisk for debug.

Could you give me some advices ? Thank you very much.

Here is the kernel dump of domU:

root@linaro-alip:~# xl console dom11
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.15.0-rc1-128773-gf7b9c0f-dirty (root@Lenovo-G480) (gcc version 4.8.2 20131014 (prerelease) (cross4
[    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: XENVM-4.4
[    0.000000] cma: CMA: failed to reserve 64 MiB
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] psci: probing function IDs from device-tree
[    0.000000] PERCPU: Embedded 8 pages/cpu @c3f6f000 s8896 r8192 d15680 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: root=/dev/xvda 4 console=hvc0,xencons=tty
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 52384K/65536K available (6317K kernel code, 787K rwdata, 2416K rodata, 2692K init, 292K bss, 13152K reser)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0208000 - 0xc0a8f994   (8735 kB)
[    0.000000]       .init : 0xc0a90000 - 0xc0d312c0   (2693 kB)
[    0.000000]       .data : 0xc0d32000 - 0xc0df6ea0   ( 788 kB)
[    0.000000]        .bss : 0xc0df6ea8 - 0xc0e40110   ( 293 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=4 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] Architected cp15 timer(s) running at 24.00MHz (virt).
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 2863311519744ns
[    0.000016] Switching to timer-based delay loop
[    0.000152] Console: colour dummy device 80x30
[    0.000181] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000194] pid_max: default: 32768 minimum: 301
[    0.000321] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000332] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000879] CPU: Testing write buffer coherency: ok
[    0.001145] /cpus/cpu@0 missing clock-frequency property
[    0.001163] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001205] Xen 4.4 support found, events_irq=31 gnttab_frame=0xb0000000
[    0.001285] xen:grant_table: Grant tables using version 1 layout
[    0.001332] Grant table initialized
[    0.001416] xen:events: Using FIFO-based ABI
[    0.001439] Xen: initializing cpu0
[    0.001553] Setting up static identity map for 0x807fe120 - 0x807fe1b8
[    0.002319] Brought up 1 CPUs
[    0.002332] SMP: Total of 1 processors activated.
[    0.002341] CPU: All CPU(s) started in SVC mode.
[    0.002957] devtmpfs: initialized
[    0.003728] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.003991] pinctrl core: initialized pinctrl subsystem
[    0.004395] regulator-dummy: no parameters
[    0.005068] NET: Registered protocol family 16
[    0.005187] DMA: failed to allocate 256 KiB pool for atomic coherent allocation
[    0.007939] No ATAGs?
[    0.008417] Serial: AMBA PL011 UART driver
[    0.016931] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM dummy slot
[    0.016969] edma-dma-engine: probe of edma-dma-engine.0 failed with error -5
[    0.017090] xen:balloon: Initialising balloon driver
[    0.022741] vgaarb: loaded
[    0.023384] SCSI subsystem initialized
[    0.024138] usbcore: registered new interface driver usbfs
[    0.024224] usbcore: registered new interface driver hub
[    0.024584] usbcore: registered new device driver usb
[    0.025051] Linux video capture interface: v2.00
[    0.025101] pps_core: LinuxPPS API ver. 1 registered
[    0.025111] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.025146] PTP clock support registered
[    0.025204] EDAC MC: Ver: 3.0.0
[    0.026062] Advanced Linux Sound Architecture Driver Initialized.
[    0.027270] Switched to clocksource arch_sys_counter
[    0.038473] NET: Registered protocol family 2
[    0.039042] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.039076] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.039100] TCP: Hash tables configured (established 1024 bind 1024)
[    0.039157] TCP: reno registered
[    0.039172] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.039206] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.039376] NET: Registered protocol family 1
[    0.039780] RPC: Registered named UNIX socket transport module.
[    0.039795] RPC: Registered udp transport module.
[    0.039802] RPC: Registered tcp transport module.
[    0.039809] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.184584] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.196325] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.197108] NFS: Registering the id_resolver key type
[    0.197176] Key type id_resolver registered
[    0.197185] Key type id_legacy registered
[    0.197234] msgmni has been set to 102
[    0.197970] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.197986] io scheduler noop registered
[    0.197994] io scheduler deadline registered
[    0.198189] io scheduler cfq registered (default)
[    0.260058] console [hvc0] enabled
[    0.260155] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.261940] msm_serial: driver initialized
[    0.262148] STMicroelectronics ASC driver initialized
[    0.262568] serial: Freescale lpuart driver
[    0.262771] [drm] Initialized drm 1.1.0 20060810
[    0.267247] loop: module loaded
[    0.283758] xen_netfront: Initialising Xen virtual ethernet driver
[    0.299796] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    0.299970] usbcore: registered new interface driver pegasus
[    0.300080] usbcore: registered new interface driver asix
[    0.300152] usbcore: registered new interface driver ax88179_178a
[    0.300220] usbcore: registered new interface driver cdc_ether
[    0.300302] usbcore: registered new interface driver smsc75xx
[    0.300384] usbcore: registered new interface driver smsc95xx
[    0.300447] usbcore: registered new interface driver net1080
[    0.300511] usbcore: registered new interface driver cdc_subset
[    0.300626] usbcore: registered new interface driver zaurus
[    0.300787] usbcore: registered new interface driver cdc_ncm
[    0.300841] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.300865] ehci-pci: EHCI PCI platform driver
[    0.300953] ehci-platform: EHCI generic platform driver
[    0.301107] ehci-omap: OMAP-EHCI Host Controller driver
[    0.301196] ehci-orion: EHCI orion driver
[    0.301271] SPEAr-ehci: EHCI SPEAr driver
[    0.301342] tegra-ehci: Tegra EHCI driver
[    0.301803] usbcore: registered new interface driver usb-storage
[    0.303013] mousedev: PS/2 mouse device common for all mice
[    0.304514] i2c /dev entries driver
[    0.304994] usbcore: registered new interface driver uvcvideo
[    0.305020] USB Video Class driver (1.1.1)
[    0.305034] gspca_main: v2.14.0 registered
[    0.305669] xen_wdt: Xen WatchDog Timer Driver v0.01
[    0.306421] xen_wdt: initialized (timeout=60s, nowayout=0)
[    0.307004] sdhci: Secure Digital Host Controller Interface driver
[    0.307036] sdhci: Copyright(c) Pierre Ossman
[    0.307504] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.307947] usbcore: registered new interface driver usbhid
[    0.307973] usbhid: USB HID core driver
[    0.311044] TCP: cubic registered
[    0.311084] NET: Registered protocol family 17
[    0.311387] Key type dns_resolver registered
[    0.311502] ThumbEE CPU extension supported.
[    0.323687] Registering SWP/SWPB emulation handler
[    0.329080] blkfront: xvda: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: enabled;
[    0.347192]  xvda: unknown partition table
[    0.367730] Setting capacity to 10240
[    0.367787] xvda: detected capacity change from 0 to 5242880
[    0.417924] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    0.418071] ALSA device list:
[    0.418093]   No soundcards found.
[    0.421706] Freeing unused kernel memory: 2692K (c0a90000 - c0d31000)


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

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

* Re: the /dev/xvda can not be mounted and read/write when using xl create domU
  2014-04-16 15:29 the /dev/xvda can not be mounted and read/write when using xl create domU duqi
@ 2014-04-16 15:47 ` Wei Huang
  2014-04-16 16:47   ` Ian Campbell
  2014-04-16 16:45 ` Julien Grall
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 12+ messages in thread
From: Wei Huang @ 2014-04-16 15:47 UTC (permalink / raw)
  To: duqi, xen-devel
  Cc: 宫晓利,
	Julien Grall, Ian Campbell, Stefano Stabellini (Xen mainlister)

On 04/16/2014 10:29 AM, duqi wrote:
> Hello everyone,
>
> I have tried to boot the domU folow the below instrctions:
> The domU kernel that I used is from https://github.com/linux-sunxi/linux-sunxi.git  and the 'sunxi-devel' branch. I  have compiled the ramdisk with the domu kernel to boot the domu.
>
> When I xl console the domU , I tried to mount the /dev/xvda to the /mnt and I met this error:
> # mount /dev/xvda /mnt
> [  681.934232] end_request: I/O error, dev xvda, sector 2
> [  681.934401] EXT3-fs (xvda): error: unable to read superblock
> [  681.947103] end_request: I/O error, dev xvda, sector 2
> [  681.947244] EXT2-fs (xvda): error: unable to read superblock
> [  681.967089] end_request: I/O error, dev xvda, sector 2
> [  681.967226] EXT4-fs (xvda): unable to read superblock
> mount: mounting /dev/xvda on /mnt failed: Invalid argument
> #
>
> Then I tried "# dd if=/dev/zero of=/dev/xvda bs=1 count=1000 seek=10000" to test the read and write of /dev/xvda, it also met error:
> [  632.851166] end_request: I/O error, dev xvda, sector 16
> dd: writing '/dev/xvda': Input/output error
> 1+0 records in
> 0+0 records out
>
> (2) the domu_all.cfg is here:
> root@linaro-alip:~# cat domu_all.cfg
> kernel = "/root/zImage"
> memory = "64"
> name = "dom11"
> vcpus = 1
> serial="pty"
> root="/dev/xvda"
> extra = "4 console=hvc0,xencons=tty"
> disk = [ 'phy:/dev/loop2,xvda,w' ]
> vif=[ 'mac=00:16:3e:56:af:69,bridge=xenbr0,type=netfront', ]

Based on the log, I think your loop2 might have problem. If you are 
using image from Linaro, you should specify the offset in losetup. Here 
is one:

 > losetup -o 54525952 /dev/loop2 ./rootfs.img

You can also try to mount /dev/loop2 in Dom0. If it is successful, DomU 
should work.

>
> Then I boot the domU follow the instructions:
> losetup /dev/loop2 /root/domU/rootfs.img
> xl -vvv create domu_all.cfg
>
>
> Add some information : I want to use the raring rootfs as the rootfs of domu, and the /dev/xvda as the root device of domu, now I compiled the kernel with ramdisk for debug.
>
> Could you give me some advices ? Thank you very much.
>
> Here is the kernel dump of domU:
>
> root@linaro-alip:~# xl console dom11
> [    0.000000] Booting Linux on physical CPU 0x0
> [    0.000000] Linux version 3.15.0-rc1-128773-gf7b9c0f-dirty (root@Lenovo-G480) (gcc version 4.8.2 20131014 (prerelease) (cross4
> [    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: XENVM-4.4
> [    0.000000] cma: CMA: failed to reserve 64 MiB
> [    0.000000] Memory policy: Data cache writealloc
> [    0.000000] psci: probing function IDs from device-tree
> [    0.000000] PERCPU: Embedded 8 pages/cpu @c3f6f000 s8896 r8192 d15680 u32768
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
> [    0.000000] Kernel command line: root=/dev/xvda 4 console=hvc0,xencons=tty
> [    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
> [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
> [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
> [    0.000000] Memory: 52384K/65536K available (6317K kernel code, 787K rwdata, 2416K rodata, 2692K init, 292K bss, 13152K reser)
> [    0.000000] Virtual kernel memory layout:
> [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
> [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
> [    0.000000]     vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
> [    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
> [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
> [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
> [    0.000000]       .text : 0xc0208000 - 0xc0a8f994   (8735 kB)
> [    0.000000]       .init : 0xc0a90000 - 0xc0d312c0   (2693 kB)
> [    0.000000]       .data : 0xc0d32000 - 0xc0df6ea0   ( 788 kB)
> [    0.000000]        .bss : 0xc0df6ea8 - 0xc0e40110   ( 293 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=4 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] Architected cp15 timer(s) running at 24.00MHz (virt).
> [    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 2863311519744ns
> [    0.000016] Switching to timer-based delay loop
> [    0.000152] Console: colour dummy device 80x30
> [    0.000181] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
> [    0.000194] pid_max: default: 32768 minimum: 301
> [    0.000321] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.000332] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.000879] CPU: Testing write buffer coherency: ok
> [    0.001145] /cpus/cpu@0 missing clock-frequency property
> [    0.001163] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
> [    0.001205] Xen 4.4 support found, events_irq=31 gnttab_frame=0xb0000000
> [    0.001285] xen:grant_table: Grant tables using version 1 layout
> [    0.001332] Grant table initialized
> [    0.001416] xen:events: Using FIFO-based ABI
> [    0.001439] Xen: initializing cpu0
> [    0.001553] Setting up static identity map for 0x807fe120 - 0x807fe1b8
> [    0.002319] Brought up 1 CPUs
> [    0.002332] SMP: Total of 1 processors activated.
> [    0.002341] CPU: All CPU(s) started in SVC mode.
> [    0.002957] devtmpfs: initialized
> [    0.003728] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
> [    0.003991] pinctrl core: initialized pinctrl subsystem
> [    0.004395] regulator-dummy: no parameters
> [    0.005068] NET: Registered protocol family 16
> [    0.005187] DMA: failed to allocate 256 KiB pool for atomic coherent allocation
> [    0.007939] No ATAGs?
> [    0.008417] Serial: AMBA PL011 UART driver
> [    0.016931] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM dummy slot
> [    0.016969] edma-dma-engine: probe of edma-dma-engine.0 failed with error -5
> [    0.017090] xen:balloon: Initialising balloon driver
> [    0.022741] vgaarb: loaded
> [    0.023384] SCSI subsystem initialized
> [    0.024138] usbcore: registered new interface driver usbfs
> [    0.024224] usbcore: registered new interface driver hub
> [    0.024584] usbcore: registered new device driver usb
> [    0.025051] Linux video capture interface: v2.00
> [    0.025101] pps_core: LinuxPPS API ver. 1 registered
> [    0.025111] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
> [    0.025146] PTP clock support registered
> [    0.025204] EDAC MC: Ver: 3.0.0
> [    0.026062] Advanced Linux Sound Architecture Driver Initialized.
> [    0.027270] Switched to clocksource arch_sys_counter
> [    0.038473] NET: Registered protocol family 2
> [    0.039042] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.039076] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
> [    0.039100] TCP: Hash tables configured (established 1024 bind 1024)
> [    0.039157] TCP: reno registered
> [    0.039172] UDP hash table entries: 256 (order: 1, 8192 bytes)
> [    0.039206] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
> [    0.039376] NET: Registered protocol family 1
> [    0.039780] RPC: Registered named UNIX socket transport module.
> [    0.039795] RPC: Registered udp transport module.
> [    0.039802] RPC: Registered tcp transport module.
> [    0.039809] RPC: Registered tcp NFSv4.1 backchannel transport module.
> [    0.184584] futex hash table entries: 256 (order: 2, 16384 bytes)
> [    0.196325] squashfs: version 4.0 (2009/01/31) Phillip Lougher
> [    0.197108] NFS: Registering the id_resolver key type
> [    0.197176] Key type id_resolver registered
> [    0.197185] Key type id_legacy registered
> [    0.197234] msgmni has been set to 102
> [    0.197970] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
> [    0.197986] io scheduler noop registered
> [    0.197994] io scheduler deadline registered
> [    0.198189] io scheduler cfq registered (default)
> [    0.260058] console [hvc0] enabled
> [    0.260155] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
> [    0.261940] msm_serial: driver initialized
> [    0.262148] STMicroelectronics ASC driver initialized
> [    0.262568] serial: Freescale lpuart driver
> [    0.262771] [drm] Initialized drm 1.1.0 20060810
> [    0.267247] loop: module loaded
> [    0.283758] xen_netfront: Initialising Xen virtual ethernet driver
> [    0.299796] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
> [    0.299970] usbcore: registered new interface driver pegasus
> [    0.300080] usbcore: registered new interface driver asix
> [    0.300152] usbcore: registered new interface driver ax88179_178a
> [    0.300220] usbcore: registered new interface driver cdc_ether
> [    0.300302] usbcore: registered new interface driver smsc75xx
> [    0.300384] usbcore: registered new interface driver smsc95xx
> [    0.300447] usbcore: registered new interface driver net1080
> [    0.300511] usbcore: registered new interface driver cdc_subset
> [    0.300626] usbcore: registered new interface driver zaurus
> [    0.300787] usbcore: registered new interface driver cdc_ncm
> [    0.300841] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [    0.300865] ehci-pci: EHCI PCI platform driver
> [    0.300953] ehci-platform: EHCI generic platform driver
> [    0.301107] ehci-omap: OMAP-EHCI Host Controller driver
> [    0.301196] ehci-orion: EHCI orion driver
> [    0.301271] SPEAr-ehci: EHCI SPEAr driver
> [    0.301342] tegra-ehci: Tegra EHCI driver
> [    0.301803] usbcore: registered new interface driver usb-storage
> [    0.303013] mousedev: PS/2 mouse device common for all mice
> [    0.304514] i2c /dev entries driver
> [    0.304994] usbcore: registered new interface driver uvcvideo
> [    0.305020] USB Video Class driver (1.1.1)
> [    0.305034] gspca_main: v2.14.0 registered
> [    0.305669] xen_wdt: Xen WatchDog Timer Driver v0.01
> [    0.306421] xen_wdt: initialized (timeout=60s, nowayout=0)
> [    0.307004] sdhci: Secure Digital Host Controller Interface driver
> [    0.307036] sdhci: Copyright(c) Pierre Ossman
> [    0.307504] sdhci-pltfm: SDHCI platform and OF driver helper
> [    0.307947] usbcore: registered new interface driver usbhid
> [    0.307973] usbhid: USB HID core driver
> [    0.311044] TCP: cubic registered
> [    0.311084] NET: Registered protocol family 17
> [    0.311387] Key type dns_resolver registered
> [    0.311502] ThumbEE CPU extension supported.
> [    0.323687] Registering SWP/SWPB emulation handler
> [    0.329080] blkfront: xvda: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: enabled;
> [    0.347192]  xvda: unknown partition table
> [    0.367730] Setting capacity to 10240
> [    0.367787] xvda: detected capacity change from 0 to 5242880
> [    0.417924] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
> [    0.418071] ALSA device list:
> [    0.418093]   No soundcards found.
> [    0.421706] Freeing unused kernel memory: 2692K (c0a90000 - c0d31000)
>
>
> duqi.
>


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

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

* Re: the /dev/xvda can not be mounted and read/write when using xl create domU
  2014-04-16 15:29 the /dev/xvda can not be mounted and read/write when using xl create domU duqi
  2014-04-16 15:47 ` Wei Huang
@ 2014-04-16 16:45 ` Julien Grall
  2014-04-17  9:07   ` Ian Campbell
  2014-04-17  6:09 ` duqi
  2014-04-17  9:10 ` Ian Campbell
  3 siblings, 1 reply; 12+ messages in thread
From: Julien Grall @ 2014-04-16 16:45 UTC (permalink / raw)
  To: duqi
  Cc: Wei Huang, 宫晓利,
	Stefano Stabellini (Xen mainlister),
	Ian Campbell, xen-devel

On 04/16/2014 04:29 PM, duqi wrote:
> Hello everyone,

Hello Duqi,

> (2) the domu_all.cfg is here:
> root@linaro-alip:~# cat domu_all.cfg 
> kernel = "/root/zImage" 
> memory = "64" 
> name = "dom11" 
> vcpus = 1 
> serial="pty"
> root="/dev/xvda" 
> extra = "4 console=hvc0,xencons=tty"

Where does the 4 comes from? Is it the partition number? If so, it
should be in root= not extra.

-- 
Julien Grall

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

* Re: the /dev/xvda can not be mounted and read/write when using xl create domU
  2014-04-16 15:47 ` Wei Huang
@ 2014-04-16 16:47   ` Ian Campbell
  2014-04-17  5:43     ` duqi
  0 siblings, 1 reply; 12+ messages in thread
From: Ian Campbell @ 2014-04-16 16:47 UTC (permalink / raw)
  To: Wei Huang
  Cc: duqi, Julien Grall, 宫晓利,
	Stefano Stabellini (Xen mainlister),
	xen-devel

On Wed, 2014-04-16 at 10:47 -0500, Wei Huang wrote:
> On 04/16/2014 10:29 AM, duqi wrote:
> > Hello everyone,
> >
> > I have tried to boot the domU folow the below instrctions:
> > The domU kernel that I used is from https://github.com/linux-sunxi/linux-sunxi.git  and the 'sunxi-devel' branch. I  have compiled the ramdisk with the domu kernel to boot the domu.
> >
> > When I xl console the domU , I tried to mount the /dev/xvda to the /mnt and I met this error:
> > # mount /dev/xvda /mnt
> > [  681.934232] end_request: I/O error, dev xvda, sector 2
> > [  681.934401] EXT3-fs (xvda): error: unable to read superblock
> > [  681.947103] end_request: I/O error, dev xvda, sector 2
> > [  681.947244] EXT2-fs (xvda): error: unable to read superblock
> > [  681.967089] end_request: I/O error, dev xvda, sector 2
> > [  681.967226] EXT4-fs (xvda): unable to read superblock
> > mount: mounting /dev/xvda on /mnt failed: Invalid argument
> > #
> >
> > Then I tried "# dd if=/dev/zero of=/dev/xvda bs=1 count=1000 seek=10000" to test the read and write of /dev/xvda, it also met error:
> > [  632.851166] end_request: I/O error, dev xvda, sector 16
> > dd: writing '/dev/xvda': Input/output error
> > 1+0 records in
> > 0+0 records out
> >
> > (2) the domu_all.cfg is here:
> > root@linaro-alip:~# cat domu_all.cfg
> > kernel = "/root/zImage"
> > memory = "64"
> > name = "dom11"
> > vcpus = 1
> > serial="pty"
> > root="/dev/xvda"
> > extra = "4 console=hvc0,xencons=tty"
> > disk = [ 'phy:/dev/loop2,xvda,w' ]
> > vif=[ 'mac=00:16:3e:56:af:69,bridge=xenbr0,type=netfront', ]
> 
> Based on the log, I think your loop2 might have problem. If you are 
> using image from Linaro, you should specify the offset in losetup. Here 
> is one:
> 
>  > losetup -o 54525952 /dev/loop2 ./rootfs.img

Or use root=/dev/xvda2 on the guest command line/cfg, which would be
more usual I think.

(I'm not convinced this is the error though, since it seems xvda just
isn't working).

duqi could you post the output of "xenstore-ls -fp" while the guest is
running but not able to access its disk.

What is your rootfs device? (IOW what physical medium contains
rootfs.img)
 
> You can also try to mount /dev/loop2 in Dom0.

Yes, that would be a useful sanity check.

Ian.

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

* Re: the /dev/xvda can not be mounted and read/write when using xl create domU
  2014-04-16 16:47   ` Ian Campbell
@ 2014-04-17  5:43     ` duqi
  2014-04-17 14:58       ` Wei Huang
  0 siblings, 1 reply; 12+ messages in thread
From: duqi @ 2014-04-17  5:43 UTC (permalink / raw)
  To: Ian Campbell, Wei Huang, xen-devel
  Cc: Julien Grall, 宫晓利,
	Stefano Stabellini (Xen mainlister)

At 2014-04-17 00:47:15, "Ian Campbell" <Ian.Campbell@citrix.com> wrote:
>On Wed, 2014-04-16 at 10:47 -0500, Wei Huang wrote:
>> On 04/16/2014 10:29 AM, duqi wrote:
>> > Hello everyone,
>> >
>> > I have tried to boot the domU folow the below instrctions:
>> > The domU kernel that I used is from https://github.com/linux-sunxi/linux-sunxi.git  and the 'sunxi-devel' branch. I  have compiled the ramdisk with the domu kernel to boot the domu.
>> >
>> > When I xl console the domU , I tried to mount the /dev/xvda to the /mnt and I met this error:
>> > # mount /dev/xvda /mnt
>> > [  681.934232] end_request: I/O error, dev xvda, sector 2
>> > [  681.934401] EXT3-fs (xvda): error: unable to read superblock
>> > [  681.947103] end_request: I/O error, dev xvda, sector 2
>> > [  681.947244] EXT2-fs (xvda): error: unable to read superblock
>> > [  681.967089] end_request: I/O error, dev xvda, sector 2
>> > [  681.967226] EXT4-fs (xvda): unable to read superblock
>> > mount: mounting /dev/xvda on /mnt failed: Invalid argument
>> > #
>> >
>> > Then I tried "# dd if=/dev/zero of=/dev/xvda bs=1 count=1000 seek=10000" to test the read and write of /dev/xvda, it also met error:
>> > [  632.851166] end_request: I/O error, dev xvda, sector 16
>> > dd: writing '/dev/xvda': Input/output error
>> > 1+0 records in
>> > 0+0 records out
>> >
>> > (2) the domu_all.cfg is here:
>> > root@linaro-alip:~# cat domu_all.cfg
>> > kernel = "/root/zImage"
>> > memory = "64"
>> > name = "dom11"
>> > vcpus = 1
>> > serial="pty"
>> > root="/dev/xvda"
>> > extra = "4 console=hvc0,xencons=tty"
>> > disk = [ 'phy:/dev/loop2,xvda,w' ]
>> > vif=[ 'mac=00:16:3e:56:af:69,bridge=xenbr0,type=netfront', ]
>> 
>> Based on the log, I think your loop2 might have problem. If you are 
>> using image from Linaro, you should specify the offset in losetup. Here 
>> is one:
>> 
>>  > losetup -o 54525952 /dev/loop2 ./rootfs.img
>

Thanks very much for your advices.
I want to know  how the "54525952" offset can be computed? 
Mr Huang, could you give me some advice? 

>Or use root=/dev/xvda2 on the guest command line/cfg, which would be
>more usual I think.
>
>(I'm not convinced this is the error though, since it seems xvda just
>isn't working).
>
>duqi could you post the output of "xenstore-ls -fp" while the guest is
>running but not able to access its disk.
>

Hi, here is my config of guest now:
kernel = "/root/zImage" 
memory = "64" 
name = "dom11" 
vcpus = 1 
serial="pty"
root="/dev/xvda2"
extra = "console=hvc0,xencons=tty"
disk = [ 'phy:/dev/loop2,xvda,w' ]
vif=[ 'mac=00:16:3e:56:af:69,bridge=xenbr0,type=netfront', ]

and here is the output of "xenstore-ls -fp" while the guest is running:
root@linaro-alip:~# xenstore-ls -fp
/tool = ""   (n0)
/tool/xenstored = ""   (n0)
/local = ""   (n0)
/local/domain = ""   (n0)
/local/domain/0 = ""   (n0)
/local/domain/0/name = "Domain-0"   (n0)
/local/domain/0/domid = "0"   (n0)
/local/domain/0/libxl = ""   (n0)
/local/domain/0/libxl/disable_udev = "1"   (n0)
/local/domain/0/backend = ""   (n0)
/local/domain/0/backend/vbd = ""   (n0)
/local/domain/0/backend/vbd/16 = ""   (n0)
/local/domain/0/backend/vbd/16/51712 = ""   (n0,r16)
/local/domain/0/backend/vbd/16/51712/frontend = "/local/domain/16/device/vbd/51712"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/params = "/dev/loop2"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/script = "/etc/xen/scripts/block"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/physical-device = "7:0"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/frontend-id = "16"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/online = "1"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/removable = "0"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/bootable = "1"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/state = "4"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/dev = "xvda"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/type = "phy"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/mode = "w"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/device-type = "disk"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/feature-flush-cache = "1"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/discard-granularity = "4096"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/discard-alignment = "0"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/discard-secure = "0"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/feature-discard = "1"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/feature-barrier = "1"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/feature-persistent = "1"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/feature-max-indirect-segments = "256"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/sectors = "2965504"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/info = "0"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/sector-size = "512"   (n0,r16)
/local/domain/0/backend/vbd/16/51712/physical-sector-size = "512"   (n0,r16)
/local/domain/0/backend/console = ""   (n0)
/local/domain/0/backend/console/16 = ""   (n0)
/local/domain/0/backend/console/16/0 = ""   (n0,r16)
/local/domain/0/backend/console/16/0/frontend = "/local/domain/16/console"   (n0,r16)
/local/domain/0/backend/console/16/0/frontend-id = "16"   (n0,r16)
/local/domain/0/backend/console/16/0/online = "1"   (n0,r16)
/local/domain/0/backend/console/16/0/state = "1"   (n0,r16)
/local/domain/0/backend/console/16/0/domain = "dom11"   (n0,r16)
/local/domain/0/backend/console/16/0/protocol = "vt100"   (n0,r16)
/local/domain/0/backend/vif = ""   (n0)
/local/domain/0/backend/vif/16 = ""   (n0)
/local/domain/0/backend/vif/16/0 = ""   (n0,r16)
/local/domain/0/backend/vif/16/0/frontend = "/local/domain/16/device/vif/0"   (n0,r16)
/local/domain/0/backend/vif/16/0/frontend-id = "16"   (n0,r16)
/local/domain/0/backend/vif/16/0/online = "1"   (n0,r16)
/local/domain/0/backend/vif/16/0/state = "4"   (n0,r16)
/local/domain/0/backend/vif/16/0/script = "/etc/xen/scripts/vif-bridge"   (n0,r16)
/local/domain/0/backend/vif/16/0/mac = "00:16:3e:56:af:69"   (n0,r16)
/local/domain/0/backend/vif/16/0/bridge = "xenbr0"   (n0,r16)
/local/domain/0/backend/vif/16/0/handle = "0"   (n0,r16)
/local/domain/0/backend/vif/16/0/type = "vif"   (n0,r16)
/local/domain/0/backend/vif/16/0/feature-sg = "1"   (n0,r16)
/local/domain/0/backend/vif/16/0/feature-gso-tcpv4 = "1"   (n0,r16)
/local/domain/0/backend/vif/16/0/feature-gso-tcpv6 = "1"   (n0,r16)
/local/domain/0/backend/vif/16/0/feature-ipv6-csum-offload = "1"   (n0,r16)
/local/domain/0/backend/vif/16/0/feature-rx-copy = "1"   (n0,r16)
/local/domain/0/backend/vif/16/0/feature-rx-flip = "0"   (n0,r16)
/local/domain/0/backend/vif/16/0/feature-split-event-channels = "1"   (n0,r16)
/local/domain/0/backend/vif/16/0/hotplug-status = "connected"   (n0,r16)
/local/domain/16 = ""   (n0,r16)
/local/domain/16/vm = "/vm/3d9ec855-2ecd-4b5e-bd6a-9a0bda9b3194"   (n0,r16)
/local/domain/16/name = "dom11"   (n0,r16)
/local/domain/16/cpu = ""   (n0,r16)
/local/domain/16/cpu/0 = ""   (n0,r16)
/local/domain/16/cpu/0/availability = "online"   (n0,r16)
/local/domain/16/memory = ""   (n0,r16)
/local/domain/16/memory/static-max = "65536"   (n0,r16)
/local/domain/16/memory/target = "65537"   (n0,r16)
/local/domain/16/memory/videoram = "-1"   (n0,r16)
/local/domain/16/device = ""   (n0,r16)
/local/domain/16/device/suspend = ""   (n0,r16)
/local/domain/16/device/suspend/event-channel = ""   (n16)
/local/domain/16/device/vbd = ""   (n0,r16)
/local/domain/16/device/vbd/51712 = ""   (n16,r0)
/local/domain/16/device/vbd/51712/backend = "/local/domain/0/backend/vbd/16/51712"   (n16,r0)
/local/domain/16/device/vbd/51712/backend-id = "0"   (n16,r0)
/local/domain/16/device/vbd/51712/state = "4"   (n16,r0)
/local/domain/16/device/vbd/51712/virtual-device = "51712"   (n16,r0)
/local/domain/16/device/vbd/51712/device-type = "disk"   (n16,r0)
/local/domain/16/device/vbd/51712/protocol = "arm-abi"   (n16,r0)
/local/domain/16/device/vbd/51712/ring-ref = "8"   (n16,r0)
/local/domain/16/device/vbd/51712/event-channel = "3"   (n16,r0)
/local/domain/16/device/vbd/51712/feature-persistent = "1"   (n16,r0)
/local/domain/16/device/vif = ""   (n0,r16)
/local/domain/16/device/vif/0 = ""   (n16,r0)
/local/domain/16/device/vif/0/backend = "/local/domain/0/backend/vif/16/0"   (n16,r0)
/local/domain/16/device/vif/0/backend-id = "0"   (n16,r0)
/local/domain/16/device/vif/0/state = "4"   (n16,r0)
/local/domain/16/device/vif/0/handle = "0"   (n16,r0)
/local/domain/16/device/vif/0/mac = "00:16:3e:56:af:69"   (n16,r0)
/local/domain/16/device/vif/0/tx-ring-ref = "768"   (n16,r0)
/local/domain/16/device/vif/0/rx-ring-ref = "769"   (n16,r0)
/local/domain/16/device/vif/0/event-channel-tx = "4"   (n16,r0)
/local/domain/16/device/vif/0/event-channel-rx = "5"   (n16,r0)
/local/domain/16/device/vif/0/request-rx-copy = "1"   (n16,r0)
/local/domain/16/device/vif/0/feature-rx-notify = "1"   (n16,r0)
/local/domain/16/device/vif/0/feature-sg = "1"   (n16,r0)
/local/domain/16/device/vif/0/feature-gso-tcpv4 = "1"   (n16,r0)
/local/domain/16/device/vif/0/feature-gso-tcpv6 = "1"   (n16,r0)
/local/domain/16/device/vif/0/feature-ipv6-csum-offload = "1"   (n16,r0)
/local/domain/16/control = ""   (n0,r16)
/local/domain/16/control/shutdown = ""   (n16)
/local/domain/16/control/platform-feature-multiprocessor-suspend = "1"   (n0,r16)
/local/domain/16/control/platform-feature-xs_reset_watches = "1"   (n0,r16)
/local/domain/16/data = ""   (n16)
/local/domain/16/domid = "16"   (n0,r16)
/local/domain/16/store = ""   (n0,r16)
/local/domain/16/store/port = "1"   (n0,r16)
/local/domain/16/store/ring-ref = "540673"   (n0,r16)
/local/domain/16/console = ""   (n0,r16)
/local/domain/16/console/backend = "/local/domain/0/backend/console/16/0"   (n0,r16)
/local/domain/16/console/backend-id = "0"   (n16,r0)
/local/domain/16/console/limit = "1048576"   (n0,r16)
/local/domain/16/console/type = "xenconsoled"   (n0,r16)
/local/domain/16/console/output = "pty"   (n0,r16)
/local/domain/16/console/tty = "/dev/pts/0"   (n0,r16)
/local/domain/16/console/port = "2"   (n0,r16)
/local/domain/16/console/ring-ref = "540672"   (n0,r16)
/vm = ""   (n0)
/vm/3d9ec855-2ecd-4b5e-bd6a-9a0bda9b3194 = ""   (n0,r16)
/vm/3d9ec855-2ecd-4b5e-bd6a-9a0bda9b3194/uuid = "3d9ec855-2ecd-4b5e-bd6a-9a0bda9b3194"   (n0,r16)
/vm/3d9ec855-2ecd-4b5e-bd6a-9a0bda9b3194/name = "dom11"   (n0,r16)
/vm/3d9ec855-2ecd-4b5e-bd6a-9a0bda9b3194/image = ""   (n0,r16)
/vm/3d9ec855-2ecd-4b5e-bd6a-9a0bda9b3194/image/ostype = "linux"   (n0,r16)
/vm/3d9ec855-2ecd-4b5e-bd6a-9a0bda9b3194/image/kernel = "/root/zImage"   (n0,r16)
/vm/3d9ec855-2ecd-4b5e-bd6a-9a0bda9b3194/image/cmdline = "root=/dev/xvda2 console=hvc0,xencons=tty"   (n0,r16)
/vm/3d9ec855-2ecd-4b5e-bd6a-9a0bda9b3194/start_time = "9452.17"   (n0,r16)
/libxl = ""   (n0)
/libxl/16 = ""   (n0)
/libxl/16/dm-version = "qemu_xen_traditional"   (n0)


>What is your rootfs device? (IOW what physical medium contains
>rootfs.img)
> 
>> You can also try to mount /dev/loop2 in Dom0.
>
>Yes, that would be a useful sanity check.
>

I have tested the /dev/loop2 in Dom0.

First, before boot the guest, I tried to test the /dev/2 in Dom0 as below:
(1)root@linaro-alip:~# losetup /dev/loop2 /root/rootfs.img 
root@linaro-alip:~# mount /dev/loop2 /mnt
[11315.974201] EXT4-fs (loop2): mounted filesystem with ordered data mode. Opts: (null)
root@linaro-alip:~# cd /mnt
root@linaro-alip:/mnt# ls
SHA256SUMS  env.sh   install     mnt             root     srv  var
bin         etc      lib         networkinfo.sh  run      sys
boot        home     lost+found  opt             sbin     tmp
dev         init.sh  media       proc            selinux  usr
root@linaro-alip:/mnt# 

(2)root@linaro-alip:~# dd if=/dev/loop2 of=test bs=1 count=10000
10000+0 records in
10000+0 records out
10000 bytes (10 kB) copied, 0.181345 s, 55.1 kB/s

Second, I tested the /dev/xvda in guest, I found that through I dan not mount /dev/xvda to 
the /mnt ,but I can read/write the /dev/xvda and the limit is 4096B, I don't know how to explain it.
the test result is here:
when I tried to write to the /dev/xvda:
# dd if=/dev/zero of=/dev/xvda bs=1 count=1000 seek=3096
1000+0 records in
1000+0 records out
# dd if=/dev/zero of=/dev/xvda bs=1 count=1000 seek=3097
[  109.879542] end_request: I/O error, dev xvda, sector 8
dd: writing '/dev/xvda': Input/output error
1000+0 records in
999+0 records out

when I tried to read from the /dev/xvda, if the count exceed the 4096 , like 4097 , the guest's kernel crashed :
# dd if=/dev/xvda of=test bs=1 count=4096
[   92.017991] end_request: I/O error, dev xvda, sector 0
[   92.018047] Buffer I/O error on device xvda, logical block 0
[   92.018091] Buffer I/O error on device xvda, logical block 1
[   92.018117] Buffer I/O error on device xvda, logical block 2
[   92.018139] Buffer I/O error on device xvda, logical block 3
4096+0 records in
4096+0 records out
# dd if=/dev/xvda of=test bs=1 count=4097
[   95.300508] end_request: I/O error, dev xvda, sector 0
[   95.300563] Buffer I/O error on device xvda, logical block 0
[   95.319928] end_request: I/O error, dev xvda, sector 0
dd: /dev/xvda: Input/output error
# dd if=/dev/xvda of=test bs=1 count=4097
[   96.438770] end_request: I/O error, dev xvda, sector 0
[   96.438825] quiet_error: 4 callbacks suppressed
[   96.438845] Buffer I/O error on device xvda, logical block 0
[   96.438887] Buffer I/O error on device xvda, logical block 1
[   96.438911] Buffer I/O error on device xvda, logical block 2
[   96.438932] Buffer I/O error on device xvda, logical block 3
[   96.494271] end_request: I/O error, dev xvda, sector 32
[   96.494322] Buffer I/O error on device xvda, logical block 4
[   96.494350] Buffer I/O error on device xvda, logical block 5
[   96.494371] Buffer I/O error on device xvda, logical block 6
[   96.494393] Buffer I/O error on device xvda, logical block 7
[   96.494414] Buffer I/O error on device xvda, logical block 8
[   96.494434] Buffer I/O error on device xvda, logical block 9
[   96.534454] ------------[ cut here ]------------
[   96.534518] WARNING: CPU: 0 PID: 0 at drivers/block/xen-blkfront.c:1149 blkif_interrupt+0x394/0x7b8()
[   96.534544] xvda: response to read (id 0) couldn't be recycled!
[   96.534562] Modules linked in:
[   96.534591] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.15.0-rc1-128773-gf7b9c0f-dirty #12
[   96.534642] [<c0216234>] (unwind_backtrace) from [<c0211e5c>] (show_stack+0x10/0x14)
[   96.534682] [<c0211e5c>] (show_stack) from [<c07f9210>] (dump_stack+0x88/0x98)
[   96.534719] [<c07f9210>] (dump_stack) from [<c0242f7c>] (warn_slowpath_common+0x6c/0x88)
[   96.534754] [<c0242f7c>] (warn_slowpath_common) from [<c0242fc8>] (warn_slowpath_fmt+0x30/0x40)
[   96.534787] [<c0242fc8>] (warn_slowpath_fmt) from [<c0553fd4>] (blkif_interrupt+0x394/0x7b8)
[   96.534825] [<c0553fd4>] (blkif_interrupt) from [<c0280788>] (handle_irq_event_percpu+0x38/0x130)
[   96.534859] [<c0280788>] (handle_irq_event_percpu) from [<c02808c0>] (handle_irq_event+0x40/0x60)
[   96.534893] [<c02808c0>] (handle_irq_event) from [<c0283380>] (handle_edge_irq+0xa0/0x188)
[   96.534924] [<c0283380>] (handle_edge_irq) from [<c027fec4>] (generic_handle_irq+0x2c/0x3c)
[   96.534957] [<c027fec4>] (generic_handle_irq) from [<c04ae010>] (evtchn_fifo_handle_events+0x190/0x1a0)
[   96.534995] [<c04ae010>] (evtchn_fifo_handle_events) from [<c04ab4e0>] (__xen_evtchn_do_upcall+0x70/0xa4)
[   96.535032] [<c04ab4e0>] (__xen_evtchn_do_upcall) from [<c020e4c4>] (xen_arm_callback+0x8/0x10)
[   96.535066] [<c020e4c4>] (xen_arm_callback) from [<c0283ae4>] (handle_percpu_devid_irq+0x6c/0x84)
[   96.535101] [<c0283ae4>] (handle_percpu_devid_irq) from [<c027fec4>] (generic_handle_irq+0x2c/0x3c)
[   96.535133] [<c027fec4>] (generic_handle_irq) from [<c020f5c0>] (handle_IRQ+0x40/0x90)
[   96.535163] [<c020f5c0>] (handle_IRQ) from [<c02087ec>] (gic_handle_irq+0x2c/0x5c)
[   96.535193] [<c02087ec>] (gic_handle_irq) from [<c02129c0>] (__irq_svc+0x40/0x50)
[   96.535216] Exception stack(0xc0d33f50 to 0xc0d33f98)
[   96.535237] 3f40:                                     ffffffed 00000000 00000001 c021b860
[   96.535264] 3f60: c0d3a4c0 c0d32000 c0d3a458 00000000 00000000 c0d30098 ffffffed c0d32000
[   96.535289] 3f80: 00000000 c0d33f98 c020f8dc c020f8e0 60000013 ffffffff
[   96.535318] [<c02129c0>] (__irq_svc) from [<c020f8e0>] (arch_cpu_idle+0x38/0x3c)
[   96.535351] [<c020f8e0>] (arch_cpu_idle) from [<c0276570>] (cpu_startup_entry+0x148/0x238)
[   96.535384] [<c0276570>] (cpu_startup_entry) from [<c0a90ae8>] (start_kernel+0x348/0x354)
[   96.535409] ---[ end trace 3327f9668d429059 ]---

Then I went back to Dom0  and test the /dev/loop2, it always works. Here is the test:
root@linaro-alip:/# mount /dev/loop2 /mnt
[11597.873141] EXT4-fs (loop2): mounted filesystem with ordered data mode. Opts: (null)
root@linaro-alip:/# cd /mnt
root@linaro-alip:/mnt# ls
SHA256SUMS  env.sh   install     mnt             root     srv  var
bin         etc      lib         networkinfo.sh  run      sys
boot        home     lost+found  opt             sbin     tmp
dev         init.sh  media       proc            selinux  usr
root@linaro-alip:/mnt# 


Many thanks again.

duqi.

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

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

* Re: the /dev/xvda can not be mounted and read/write when using xl create domU
  2014-04-16 15:29 the /dev/xvda can not be mounted and read/write when using xl create domU duqi
  2014-04-16 15:47 ` Wei Huang
  2014-04-16 16:45 ` Julien Grall
@ 2014-04-17  6:09 ` duqi
  2014-04-17  9:10 ` Ian Campbell
  3 siblings, 0 replies; 12+ messages in thread
From: duqi @ 2014-04-17  6:09 UTC (permalink / raw)
  To: duqi
  Cc: Wei Huang, Ian Campbell, Stefano Stabellini (Xen mainlister),
	Julien Grall, 宫晓利,
	xen-devel

At 2014-04-16 11:29:54, "duqi" <duqi_2009@163.com> wrote:
>Hello everyone,
>
>I have tried to boot the domU folow the below instrctions:
>The domU kernel that I used is from https://github.com/linux-sunxi/linux-sunxi.git  and the 'sunxi-devel' branch. I  have compiled the ramdisk with the domu kernel to boot the domu.
>
>When I xl console the domU , I tried to mount the /dev/xvda to the /mnt and I met this error:
># mount /dev/xvda /mnt
>[  681.934232] end_request: I/O error, dev xvda, sector 2
>[  681.934401] EXT3-fs (xvda): error: unable to read superblock
>[  681.947103] end_request: I/O error, dev xvda, sector 2
>[  681.947244] EXT2-fs (xvda): error: unable to read superblock
>[  681.967089] end_request: I/O error, dev xvda, sector 2
>[  681.967226] EXT4-fs (xvda): unable to read superblock
>mount: mounting /dev/xvda on /mnt failed: Invalid argument
>#
>
>Then I tried "# dd if=/dev/zero of=/dev/xvda bs=1 count=1000 seek=10000" to test the read and write of /dev/xvda, it also met error:
>[  632.851166] end_request: I/O error, dev xvda, sector 16
>dd: writing '/dev/xvda': Input/output error
>1+0 records in
>0+0 records out
>
>(2) the domu_all.cfg is here:
>root@linaro-alip:~# cat domu_all.cfg 
>kernel = "/root/zImage" 
>memory = "64" 
>name = "dom11" 
>vcpus = 1 
>serial="pty"
>root="/dev/xvda" 
>extra = "4 console=hvc0,xencons=tty"
>disk = [ 'phy:/dev/loop2,xvda,w' ]
>vif=[ 'mac=00:16:3e:56:af:69,bridge=xenbr0,type=netfront', ]
>
>Then I boot the domU follow the instructions:
>losetup /dev/loop2 /root/domU/rootfs.img
>xl -vvv create domu_all.cfg
>
>
>Add some information : I want to use the raring rootfs as the rootfs of domu, and the /dev/xvda as the root device of domu, now I compiled the kernel with ramdisk for debug.
>
>Could you give me some advices ? Thank you very much.
>
>Here is the kernel dump of domU:
>
>root@linaro-alip:~# xl console dom11
>[    0.000000] Booting Linux on physical CPU 0x0
>[    0.000000] Linux version 3.15.0-rc1-128773-gf7b9c0f-dirty (root@Lenovo-G480) (gcc version 4.8.2 20131014 (prerelease) (cross4
>[    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: XENVM-4.4
>[    0.000000] cma: CMA: failed to reserve 64 MiB
>[    0.000000] Memory policy: Data cache writealloc
>[    0.000000] psci: probing function IDs from device-tree
>[    0.000000] PERCPU: Embedded 8 pages/cpu @c3f6f000 s8896 r8192 d15680 u32768
>[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
>[    0.000000] Kernel command line: root=/dev/xvda 4 console=hvc0,xencons=tty
>[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
>[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
>[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
>[    0.000000] Memory: 52384K/65536K available (6317K kernel code, 787K rwdata, 2416K rodata, 2692K init, 292K bss, 13152K reser)
>[    0.000000] Virtual kernel memory layout:
>[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
>[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
>[    0.000000]     vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
>[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
>[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
>[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
>[    0.000000]       .text : 0xc0208000 - 0xc0a8f994   (8735 kB)
>[    0.000000]       .init : 0xc0a90000 - 0xc0d312c0   (2693 kB)
>[    0.000000]       .data : 0xc0d32000 - 0xc0df6ea0   ( 788 kB)
>[    0.000000]        .bss : 0xc0df6ea8 - 0xc0e40110   ( 293 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=4 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] Architected cp15 timer(s) running at 24.00MHz (virt).
>[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 2863311519744ns
>[    0.000016] Switching to timer-based delay loop
>[    0.000152] Console: colour dummy device 80x30
>[    0.000181] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
>[    0.000194] pid_max: default: 32768 minimum: 301
>[    0.000321] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
>[    0.000332] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
>[    0.000879] CPU: Testing write buffer coherency: ok
>[    0.001145] /cpus/cpu@0 missing clock-frequency property
>[    0.001163] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
>[    0.001205] Xen 4.4 support found, events_irq=31 gnttab_frame=0xb0000000
>[    0.001285] xen:grant_table: Grant tables using version 1 layout
>[    0.001332] Grant table initialized
>[    0.001416] xen:events: Using FIFO-based ABI
>[    0.001439] Xen: initializing cpu0
>[    0.001553] Setting up static identity map for 0x807fe120 - 0x807fe1b8
>[    0.002319] Brought up 1 CPUs
>[    0.002332] SMP: Total of 1 processors activated.
>[    0.002341] CPU: All CPU(s) started in SVC mode.
>[    0.002957] devtmpfs: initialized
>[    0.003728] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
>[    0.003991] pinctrl core: initialized pinctrl subsystem
>[    0.004395] regulator-dummy: no parameters
>[    0.005068] NET: Registered protocol family 16
>[    0.005187] DMA: failed to allocate 256 KiB pool for atomic coherent allocation
>[    0.007939] No ATAGs?
>[    0.008417] Serial: AMBA PL011 UART driver
>[    0.016931] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM dummy slot
>[    0.016969] edma-dma-engine: probe of edma-dma-engine.0 failed with error -5
>[    0.017090] xen:balloon: Initialising balloon driver
>[    0.022741] vgaarb: loaded
>[    0.023384] SCSI subsystem initialized
>[    0.024138] usbcore: registered new interface driver usbfs
>[    0.024224] usbcore: registered new interface driver hub
>[    0.024584] usbcore: registered new device driver usb
>[    0.025051] Linux video capture interface: v2.00
>[    0.025101] pps_core: LinuxPPS API ver. 1 registered
>[    0.025111] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
>[    0.025146] PTP clock support registered
>[    0.025204] EDAC MC: Ver: 3.0.0
>[    0.026062] Advanced Linux Sound Architecture Driver Initialized.
>[    0.027270] Switched to clocksource arch_sys_counter
>[    0.038473] NET: Registered protocol family 2
>[    0.039042] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
>[    0.039076] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
>[    0.039100] TCP: Hash tables configured (established 1024 bind 1024)
>[    0.039157] TCP: reno registered
>[    0.039172] UDP hash table entries: 256 (order: 1, 8192 bytes)
>[    0.039206] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
>[    0.039376] NET: Registered protocol family 1
>[    0.039780] RPC: Registered named UNIX socket transport module.
>[    0.039795] RPC: Registered udp transport module.
>[    0.039802] RPC: Registered tcp transport module.
>[    0.039809] RPC: Registered tcp NFSv4.1 backchannel transport module.
>[    0.184584] futex hash table entries: 256 (order: 2, 16384 bytes)
>[    0.196325] squashfs: version 4.0 (2009/01/31) Phillip Lougher
>[    0.197108] NFS: Registering the id_resolver key type
>[    0.197176] Key type id_resolver registered
>[    0.197185] Key type id_legacy registered
>[    0.197234] msgmni has been set to 102
>[    0.197970] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
>[    0.197986] io scheduler noop registered
>[    0.197994] io scheduler deadline registered
>[    0.198189] io scheduler cfq registered (default)
>[    0.260058] console [hvc0] enabled
>[    0.260155] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
>[    0.261940] msm_serial: driver initialized
>[    0.262148] STMicroelectronics ASC driver initialized
>[    0.262568] serial: Freescale lpuart driver
>[    0.262771] [drm] Initialized drm 1.1.0 20060810
>[    0.267247] loop: module loaded
>[    0.283758] xen_netfront: Initialising Xen virtual ethernet driver
>[    0.299796] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
>[    0.299970] usbcore: registered new interface driver pegasus
>[    0.300080] usbcore: registered new interface driver asix
>[    0.300152] usbcore: registered new interface driver ax88179_178a
>[    0.300220] usbcore: registered new interface driver cdc_ether
>[    0.300302] usbcore: registered new interface driver smsc75xx
>[    0.300384] usbcore: registered new interface driver smsc95xx
>[    0.300447] usbcore: registered new interface driver net1080
>[    0.300511] usbcore: registered new interface driver cdc_subset
>[    0.300626] usbcore: registered new interface driver zaurus
>[    0.300787] usbcore: registered new interface driver cdc_ncm
>[    0.300841] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
>[    0.300865] ehci-pci: EHCI PCI platform driver
>[    0.300953] ehci-platform: EHCI generic platform driver
>[    0.301107] ehci-omap: OMAP-EHCI Host Controller driver
>[    0.301196] ehci-orion: EHCI orion driver
>[    0.301271] SPEAr-ehci: EHCI SPEAr driver
>[    0.301342] tegra-ehci: Tegra EHCI driver
>[    0.301803] usbcore: registered new interface driver usb-storage
>[    0.303013] mousedev: PS/2 mouse device common for all mice
>[    0.304514] i2c /dev entries driver
>[    0.304994] usbcore: registered new interface driver uvcvideo
>[    0.305020] USB Video Class driver (1.1.1)
>[    0.305034] gspca_main: v2.14.0 registered
>[    0.305669] xen_wdt: Xen WatchDog Timer Driver v0.01
>[    0.306421] xen_wdt: initialized (timeout=60s, nowayout=0)
>[    0.307004] sdhci: Secure Digital Host Controller Interface driver
>[    0.307036] sdhci: Copyright(c) Pierre Ossman
>[    0.307504] sdhci-pltfm: SDHCI platform and OF driver helper
>[    0.307947] usbcore: registered new interface driver usbhid
>[    0.307973] usbhid: USB HID core driver
>[    0.311044] TCP: cubic registered
>[    0.311084] NET: Registered protocol family 17
>[    0.311387] Key type dns_resolver registered
>[    0.311502] ThumbEE CPU extension supported.
>[    0.323687] Registering SWP/SWPB emulation handler
>[    0.329080] blkfront: xvda: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: enabled;
>[    0.347192]  xvda: unknown partition table
>[    0.367730] Setting capacity to 10240
>[    0.367787] xvda: detected capacity change from 0 to 5242880
>[    0.417924] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
>[    0.418071] ALSA device list:
>[    0.418093]   No soundcards found.
>[    0.421706] Freeing unused kernel memory: 2692K (c0a90000 - c0d31000)
>
>
>duqi.


Hi, everyone
If I don't compile the ramdisk into the domU kernel ,the domU kernel dump is here:

root@linaro-alip:~# xl console 18
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.15.0-rc1-128773-gf7b9c0f-dirty (root@Lenovo-G480) (gcc version 4.8.2 20131014 (prerelease) (cross4
[    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: XENVM-4.4
[    0.000000] cma: CMA: failed to reserve 64 MiB
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] psci: probing function IDs from device-tree
[    0.000000] PERCPU: Embedded 8 pages/cpu @c3f6f000 s8896 r8192 d15680 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: root=/dev/xvda2 console=hvc0,xencons=tty
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 54552K/65536K available (6330K kernel code, 787K rwdata, 2420K rodata, 504K init, 292K bss, 10984K reserv)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0208000 - 0xc0a93aa4   (8751 kB)
[    0.000000]       .init : 0xc0a94000 - 0xc0b122c0   ( 505 kB)
[    0.000000]       .data : 0xc0b14000 - 0xc0bd8ee0   ( 788 kB)
[    0.000000]        .bss : 0xc0bd8ee8 - 0xc0c22150   ( 293 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=4 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] Architected cp15 timer(s) running at 24.00MHz (virt).
[    0.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 2863311519744ns
[    0.000017] Switching to timer-based delay loop
[    0.000155] Console: colour dummy device 80x30
[    0.000184] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000198] pid_max: default: 32768 minimum: 301
[    0.000324] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000335] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000882] CPU: Testing write buffer coherency: ok
[    0.001138] /cpus/cpu@0 missing clock-frequency property
[    0.001158] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001202] Xen 4.4 support found, events_irq=31 gnttab_frame=0xb0000000
[    0.001283] xen:grant_table: Grant tables using version 1 layout
[    0.001329] Grant table initialized
[    0.001416] xen:events: Using FIFO-based ABI
[    0.001438] Xen: initializing cpu0
[    0.001549] Setting up static identity map for 0x80800f68 - 0x80801000
[    0.002309] Brought up 1 CPUs
[    0.002325] SMP: Total of 1 processors activated.
[    0.002334] CPU: All CPU(s) started in SVC mode.
[    0.002917] devtmpfs: initialized
[    0.003679] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.003950] pinctrl core: initialized pinctrl subsystem
[    0.004355] regulator-dummy: no parameters
[    0.005027] NET: Registered protocol family 16
[    0.005137] DMA: failed to allocate 256 KiB pool for atomic coherent allocation
[    0.007911] No ATAGs?
[    0.008383] Serial: AMBA PL011 UART driver
[    0.017039] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM dummy slot
[    0.017075] edma-dma-engine: probe of edma-dma-engine.0 failed with error -5
[    0.017196] xen:balloon: Initialising balloon driver
[    0.022586] vgaarb: loaded
[    0.023244] SCSI subsystem initialized
[    0.023981] usbcore: registered new interface driver usbfs
[    0.024063] usbcore: registered new interface driver hub
[    0.024390] usbcore: registered new device driver usb
[    0.024903] Linux video capture interface: v2.00
[    0.024952] pps_core: LinuxPPS API ver. 1 registered
[    0.024961] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024986] PTP clock support registered
[    0.025043] EDAC MC: Ver: 3.0.0
[    0.025918] Advanced Linux Sound Architecture Driver Initialized.
[    0.027165] Switched to clocksource arch_sys_counter
[    0.038556] NET: Registered protocol family 2
[    0.039089] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.039120] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.039144] TCP: Hash tables configured (established 1024 bind 1024)
[    0.039200] TCP: reno registered
[    0.039215] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.039248] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.039422] NET: Registered protocol family 1
[    0.039846] RPC: Registered named UNIX socket transport module.
[    0.039861] RPC: Registered udp transport module.
[    0.039868] RPC: Registered tcp transport module.
[    0.039875] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041262] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.053139] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.053939] NFS: Registering the id_resolver key type
[    0.054015] Key type id_resolver registered
[    0.054025] Key type id_legacy registered
[    0.054076] msgmni has been set to 106
[    0.054683] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.054697] io scheduler noop registered
[    0.054704] io scheduler deadline registered
[    0.054898] io scheduler cfq registered (default)
[    0.116631] console [hvc0] enabled
[    0.116730] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.118533] msm_serial: driver initialized
[    0.118743] STMicroelectronics ASC driver initialized
[    0.119124] serial: Freescale lpuart driver
[    0.119326] [drm] Initialized drm 1.1.0 20060810
[    0.123881] loop: module loaded
[    0.146829] xen_netfront: Initialising Xen virtual ethernet driver
[    0.162733] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    0.162861] usbcore: registered new interface driver pegasus
[    0.162976] usbcore: registered new interface driver asix
[    0.163043] usbcore: registered new interface driver ax88179_178a
[    0.163107] usbcore: registered new interface driver cdc_ether
[    0.163190] usbcore: registered new interface driver smsc75xx
[    0.163271] usbcore: registered new interface driver smsc95xx
[    0.163334] usbcore: registered new interface driver net1080
[    0.163395] usbcore: registered new interface driver cdc_subset
[    0.163458] usbcore: registered new interface driver zaurus
[    0.163655] usbcore: registered new interface driver cdc_ncm
[    0.163712] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.163734] ehci-pci: EHCI PCI platform driver
[    0.163824] ehci-platform: EHCI generic platform driver
[    0.163978] ehci-omap: OMAP-EHCI Host Controller driver
[    0.164063] ehci-orion: EHCI orion driver
[    0.164136] SPEAr-ehci: EHCI SPEAr driver
[    0.164210] tegra-ehci: Tegra EHCI driver
[    0.164681] usbcore: registered new interface driver usb-storage
[    0.165891] mousedev: PS/2 mouse device common for all mice
[    0.167536] i2c /dev entries driver
[    0.168039] usbcore: registered new interface driver uvcvideo
[    0.168067] USB Video Class driver (1.1.1)
[    0.168081] gspca_main: v2.14.0 registered
[    0.168692] xen_wdt: Xen WatchDog Timer Driver v0.01
[    0.169506] xen_wdt: initialized (timeout=60s, nowayout=0)
[    0.170077] sdhci: Secure Digital Host Controller Interface driver
[    0.170105] sdhci: Copyright(c) Pierre Ossman
[    0.170427] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.170837] usbcore: registered new interface driver usbhid
[    0.170863] usbhid: USB HID core driver
[    0.173846] TCP: cubic registered
[    0.173953] NET: Registered protocol family 17
[    0.174277] Key type dns_resolver registered
[    0.174383] ThumbEE CPU extension supported.
[    0.182340] Registering SWP/SWPB emulation handler
[    0.191431] blkfront: xvda: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: enabled;
[    0.209494]  xvda: unknown partition table
[    0.230554] Setting capacity to 3072000
[    0.230612] xvda: detected capacity change from 0 to 1572864000
[    0.277802] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    0.277940] ALSA device list:
[    0.277958]   No soundcards found.
[    0.278902] VFS: Cannot open root device "xvda2" or unknown-block(202,2): error -6
[    0.278932] Please append a correct "root=" boot option; here are the available partitions:
[    0.278963] ca00         1536000 xvda  driver: vbd
[    0.278986] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(202,2)
[    0.279013] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.15.0-rc1-128773-gf7b9c0f-dirty #17
[    0.279065] [<c0216234>] (unwind_backtrace) from [<c0211e5c>] (show_stack+0x10/0x14)
[    0.279098] [<c0211e5c>] (show_stack) from [<c07fc058>] (dump_stack+0x88/0x98)
[    0.279129] [<c07fc058>] (dump_stack) from [<c07f989c>] (panic+0xa4/0x20c)
[    0.279160] [<c07f989c>] (panic) from [<c0a95008>] (mount_block_root+0x1a0/0x230)
[    0.279189] [<c0a95008>] (mount_block_root) from [<c0a951a0>] (mount_root+0x108/0x110)
[    0.279216] [<c0a951a0>] (mount_root) from [<c0a95300>] (prepare_namespace+0x158/0x19c)
[    0.279243] [<c0a95300>] (prepare_namespace) from [<c0a94cc4>] (kernel_init_freeable+0x1d0/0x1e0)
[    0.279271] [<c0a94cc4>] (kernel_init_freeable) from [<c07f695c>] (kernel_init+0xc/0xe8)
[    0.279300] [<c07f695c>] (kernel_init) from [<c020ed78>] (ret_from_fork+0x14/0x3c)
[    0.279331] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(202,2)







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

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

* Re: the /dev/xvda can not be mounted and read/write when using xl create domU
  2014-04-16 16:45 ` Julien Grall
@ 2014-04-17  9:07   ` Ian Campbell
  0 siblings, 0 replies; 12+ messages in thread
From: Ian Campbell @ 2014-04-17  9:07 UTC (permalink / raw)
  To: Julien Grall
  Cc: Wei Huang, duqi, Stefano Stabellini (Xen mainlister),
	宫晓利,
	xen-devel

On Wed, 2014-04-16 at 17:45 +0100, Julien Grall wrote:
> On 04/16/2014 04:29 PM, duqi wrote:
> > Hello everyone,
> 
> Hello Duqi,
> 
> > (2) the domu_all.cfg is here:
> > root@linaro-alip:~# cat domu_all.cfg 
> > kernel = "/root/zImage" 
> > memory = "64" 
> > name = "dom11" 
> > vcpus = 1 
> > serial="pty"
> > root="/dev/xvda" 
> > extra = "4 console=hvc0,xencons=tty"
> 
> Where does the 4 comes from? Is it the partition number? If so, it
> should be in root= not extra.

It is the desired runlevel, it's consumed by /sbin/init.

Ian.

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

* Re: the /dev/xvda can not be mounted and read/write when using xl create domU
  2014-04-16 15:29 the /dev/xvda can not be mounted and read/write when using xl create domU duqi
                   ` (2 preceding siblings ...)
  2014-04-17  6:09 ` duqi
@ 2014-04-17  9:10 ` Ian Campbell
  2014-04-18  8:44   ` duqi
  3 siblings, 1 reply; 12+ messages in thread
From: Ian Campbell @ 2014-04-17  9:10 UTC (permalink / raw)
  To: duqi
  Cc: Wei Huang, Julien Grall, 宫晓利,
	Stefano Stabellini (Xen mainlister),
	xen-devel

On Wed, 2014-04-16 at 23:29 +0800, duqi wrote:
> Hello everyone,
> 
> I have tried to boot the domU folow the below instrctions:
> The domU kernel that I used is from https://github.com/linux-sunxi/linux-sunxi.git  and the 'sunxi-devel' branch. I  have compiled the ramdisk with the domu kernel to boot the domu.

> [    0.000000] Linux version 3.15.0-rc1-128773-gf7b9c0f-dirty (root@Lenovo-G480) (gcc version 4.8.2 20131014 (prerelease) (cross4

-dirty implies you have some local changes as well.

Anyway, it looks like your domU is a 3.15 kernel, what is your dom0
kernel version?

Perhaps you are tripping over the blkif ABI breakage in Linux versions
<= 3.13-rc5 which is described in:
http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions#Hypervisor_ABI_Compatibility

?

Ian.

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

* Re: the /dev/xvda can not be mounted and read/write when using xl create domU
  2014-04-17  5:43     ` duqi
@ 2014-04-17 14:58       ` Wei Huang
  0 siblings, 0 replies; 12+ messages in thread
From: Wei Huang @ 2014-04-17 14:58 UTC (permalink / raw)
  To: duqi, Ian Campbell, xen-devel
  Cc: Julien Grall, 宫晓利,
	Stefano Stabellini (Xen mainlister)


>
> Thanks very much for your advices.
> I want to know  how the "54525952" offset can be computed?
> Mr Huang, could you give me some advice?
>
This number comes from the offset of Linaro rootfs image file x 512. 
Here is the output from fdisk. You then calculate 106496 * 512.

Disk rootfs.img: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders, total 1048576 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

                Device Boot      Start         End      Blocks   Id  System
vexpress-a9-nano.img1   *          63      106494       53216    c  W95 
FAT32 ()
vexpress-a9-nano.img2          106496     1048575      471040   83  Linux

Given that you can mount /dev/loop2 in Dom0, I think you don't need this 
offset. Another advice/question I have is if you have ext4-fs support 
compiled in your DomU kernel?


>> Or use root=/dev/xvda2 on the guest command line/cfg, which would be
>> more usual I think.
>>
>> (I'm not convinced this is the error though, since it seems xvda just
>> isn't working).
>>
>> duqi could you post the output of "xenstore-ls -fp" while the guest is
>> running but not able to access its disk.
>>
>

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

* Re: the /dev/xvda can not be mounted and read/write when using xl create domU
  2014-04-17  9:10 ` Ian Campbell
@ 2014-04-18  8:44   ` duqi
  2014-04-18  9:10     ` Ian Campbell
  0 siblings, 1 reply; 12+ messages in thread
From: duqi @ 2014-04-18  8:44 UTC (permalink / raw)
  To: Ian Campbell, xen-devel
  Cc: Wei Huang, Julien Grall, 宫晓利,
	Stefano Stabellini (Xen mainlister)

On Wed, 2014-04-16 at 23:29 +0800, duqi wrote:
> Hello everyone,
> 
> I have tried to boot the domU folow the below instrctions:
> The domU kernel that I used is from https://github.com/linux-sunxi/linux-sunxi.git  and the 'sunxi-devel' branch. I  have compiled the ramdisk with the domu kernel to boot the domu.

> [    0.000000] Linux version 3.15.0-rc1-128773-gf7b9c0f-dirty (root@Lenovo-G480) (gcc version 4.8.2 20131014 (prerelease) (cross4

-dirty implies you have some local changes as well.

Anyway, it looks like your domU is a 3.15 kernel, what is your dom0
kernel version?

Hi, Mr Ian
Thanks very much for your advice.

My dom0 kernel version is 3.13.

Perhaps you are tripping over the blkif ABI breakage in Linux versions
<= 3.13-rc5 which is described in:
http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions#Hypervisor_ABI_Compatibility

I have changed the domu's kernel version which is  identical by the dom0's. And it works!!

But the rootfs has been stuck in init process. I'm sure the rootfs is normal for the dom0. Could you please give me some advices?

The domU's config is here:
kernel = "/root/zImage" 
memory = "64" 
name = "guest-3.13" 
vcpus = 1 
serial="pty"
root="/dev/xvda"
extra = "4 console=hvc0,xencons=tty"
disk = [ 'phy:/dev/loop2,xvda,w' ]
vif=[ 'mac=00:16:3e:56:af:69,bridge=xenbr0,type=netfront', ]

Many thanks again.

Here is domu's kerneldump:
[    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.8.2 20131014 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2013.10 - L4
[    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: XENVM-4.4
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] psci: probing function IDs from device-tree
[    0.000000] PERCPU: Embedded 9 pages/cpu @c0c29000 s13696 r8192 d14976 u36864
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: root=/dev/xvda 4 console=hvc0,xencons=tty
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] allocated 131072 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 52860K/65536K available (6584K kernel code, 806K rwdata, 2844K rodata, 677K init, 975K bss, 12676K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc093d42c   (9430 kB)
[    0.000000]       .init : 0xc093e000 - 0xc09e7580   ( 678 kB)
[    0.000000]       .data : 0xc09e8000 - 0xc0ab18c0   ( 807 kB)
[    0.000000]        .bss : 0xc0ab18c0 - 0xc0ba58a8   ( 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] Console: colour dummy device 80x30
[    0.000219] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000235] pid_max: default: 32768 minimum: 301
[    0.000382] Security Framework initialized
[    0.000433] SELinux:  Initializing.
[    0.000678] Mount-cache hash table entries: 512
[    0.001688] Initializing cgroup subsys memory
[    0.001737] Initializing cgroup subsys devices
[    0.001749] Initializing cgroup subsys freezer
[    0.001760] Initializing cgroup subsys net_cls
[    0.001770] Initializing cgroup subsys blkio
[    0.001779] Initializing cgroup subsys perf_event
[    0.001876] CPU: Testing write buffer coherency: ok
[    0.001922] ftrace: allocating 27590 entries in 54 pages
[    0.038382] /cpus/cpu@0 missing clock-frequency property
[    0.038413] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.038454] Setting up static identity map for 0x8063b1b0 - 0x8063b248
[    0.045524] Brought up 1 CPUs
[    0.045542] SMP: Total of 1 processors activated.
[    0.045550] CPU: All CPU(s) started in SVC mode.
[    0.046485] devtmpfs: initialized
[    0.047498] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.047572] Xen 4.4 support found, events_irq=31 gnttab_frame_pfn=b0000
[    0.047648] xen:grant_table: Grant tables using version 1 layout
[    0.047698] Grant table initialized
[    0.054242] atomic64 test passed
[    0.054263] pinctrl core: initialized pinctrl subsystem
[    0.054735] regulator-dummy: no parameters
[    0.055167] NET: Registered protocol family 16
[    0.055566] Xen: initializing cpu0
[    0.055862] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.058826] No ATAGs?
[    0.058854] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.058868] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.059361] Serial: AMBA PL011 UART driver
[    0.066464] bio: create slab <bio-0> at 0
[    0.067358] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM dummy slot
[    0.067399] edma-dma-engine: probe of edma-dma-engine.0 failed with error -5
[    0.067501] xen:balloon: Initialising balloon driver
[    0.079874] SCSI subsystem initialized
[    0.080607] usbcore: registered new interface driver usbfs
[    0.080691] usbcore: registered new interface driver hub
[    0.080880] usbcore: registered new device driver usb
[    0.081130] pps_core: LinuxPPS API ver. 1 registered
[    0.081140] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.081166] PTP clock support registered
[    0.082274] NetLabel: Initializing
[    0.082291] NetLabel:  domain hash size = 128
[    0.082298] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.082371] NetLabel:  unlabeled traffic allowed by default
[    0.082590] Switched to clocksource arch_sys_counter
[    0.139504] NET: Registered protocol family 2
[    0.140442] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140476] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.140501] TCP: Hash tables configured (established 1024 bind 1024)
[    0.140566] TCP: reno registered
[    0.140585] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.140620] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.140905] NET: Registered protocol family 1
[    0.141391] RPC: Registered named UNIX socket transport module.
[    0.141406] RPC: Registered udp transport module.
[    0.141414] RPC: Registered tcp transport module.
[    0.141421] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.143470] audit: initializing netlink socket (disabled)
[    0.143536] type=2000 audit(0.130:1): initialized
[    0.341027] zbud: loaded
[    0.341568] VFS: Disk quotas dquot_6.5.2
[    0.341839] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.344297] NFS: Registering the id_resolver key type
[    0.344379] Key type id_resolver registered
[    0.344389] Key type id_legacy registered
[    0.344410] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.344771] msgmni has been set to 103
[    0.348436] alg: No test for stdrng (krng)
[    0.348474] NET: Registered protocol family 38
[    0.348792] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.349015] io scheduler noop registered
[    0.349026] io scheduler deadline registered
[    0.349260] io scheduler cfq registered (default)
[    0.353906] console [hvc0] enabled
[    0.354002] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.355472] Serial: AMBA driver
[    0.355596] Serial: IMX driver
[    0.356548] [drm] Initialized drm 1.1.0 20060810
[    0.365491] brd: module loaded
[    0.370973] loop: module loaded
[    0.386176] libphy: Fixed MDIO Bus: probed
[    0.386490] xen_netfront: Initialising Xen virtual ethernet driver
[    0.406655] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.406717] sunxi-ehci: Allwinner sunXi EHCI driver
[    0.406841] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.406863] ohci-omap3: OHCI OMAP3 driver
[    0.407135] usbcore: registered new interface driver usbserial
[    0.407225] usbcore: registered new interface driver usbserial_generic
[    0.407291] usbserial: USB Serial support registered for generic
[    0.407800] mousedev: PS/2 mouse device common for all mice
[    0.408843] xen_wdt: Xen WatchDog Timer Driver v0.01
[    0.409473] xen_wdt: initialized (timeout=60s, nowayout=0)
[    0.409923] device-mapper: uevent: version 1.0.3
[    0.410668] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
[    0.411073] hidraw: raw HID events driver (C) Jiri Kosina
[    0.412056] usbcore: registered new interface driver usbhid
[    0.412086] usbhid: USB HID core driver
[    0.412530] drop_monitor: Initializing network drop monitor service
[    0.413196] ip_tables: (C) 2000-2006 Netfilter Core Team
[    0.413294] TCP: cubic registered
[    0.413317] Initializing XFRM netlink socket
[    0.414167] NET: Registered protocol family 10
[    0.416228] mip6: Mobile IPv6
[    0.416280] NET: Registered protocol family 17
[    0.416519] Bridge firewalling registered
[    0.416682] Key type dns_resolver registered
[    0.416823] ThumbEE CPU extension supported.
[    0.416867] Registering SWP/SWPB emulation handler
[    0.418032] registered taskstats version 1
[    0.484889] blkfront: xvda: flush diskcache: enabled; persistent grants: enabled; indirect descriptors: enabled;
[    0.501977]  xvda: unknown partition table
[    0.513603] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    0.513643] sr_init: No PMIC hook to init smartreflex
[    0.513751] sr_init: platform driver register failed for SR
[    0.514385] md: Waiting for all devices to be available before autodetect
[    0.514416] md: If you don't use raid, use raid=noautodetect
[    0.554556] md: Autodetecting RAID arrays.
[    0.554613] md: Scanned 0 and added 0 devices.
[    0.554629] md: autorun ...
[    0.554642] md: ... autorun DONE.
[    0.555943] EXT4-fs (xvda): couldn't mount as ext3 due to feature incompatibilities
[    0.556853] EXT4-fs (xvda): couldn't mount as ext2 due to feature incompatibilities
[    0.558548] EXT4-fs (xvda): INFO: recovery required on readonly filesystem
[    0.558601] EXT4-fs (xvda): write access will be enabled during recovery
[    1.607434] EXT4-fs (xvda): recovery complete
[    1.617535] EXT4-fs (xvda): mounted filesystem with ordered data mode. Opts: (null)
[    1.617675] VFS: Mounted root (ext4 filesystem) readonly on device 202:0.
[    1.621621] devtmpfs: mounted
[    1.622658] Freeing unused kernel memory: 676K (c093e000 - c09e7000)
[    2.036172] random: init urandom read with 25 bits of entropy available
[    2.376149] init: ureadahead main process (50) terminated with status 5

And here is what "xenstore-ls -fp" command prints in dom0:
root@linaro-alip:~# xenstore-ls -fp
/tool = ""   (n0)
/tool/xenstored = ""   (n0)
/local = ""   (n0)
/local/domain = ""   (n0)
/local/domain/0 = ""   (n0)
/local/domain/0/name = "Domain-0"   (n0)
/local/domain/0/domid = "0"   (n0)
/local/domain/0/libxl = ""   (n0)
/local/domain/0/libxl/disable_udev = "1"   (n0)
/local/domain/0/backend = ""   (n0)
/local/domain/0/backend/vbd = ""   (n0)
/local/domain/0/backend/vbd/1 = ""   (n0)
/local/domain/0/backend/vbd/1/51712 = ""   (n0,r1)
/local/domain/0/backend/vbd/1/51712/frontend = "/local/domain/1/device/vbd/51712"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/params = "/dev/loop2"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/script = "/etc/xen/scripts/block"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/physical-device = "7:2"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/frontend-id = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/online = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/removable = "0"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/bootable = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/state = "4"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/dev = "xvda"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/type = "phy"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/mode = "w"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/device-type = "disk"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/feature-flush-cache = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/discard-granularity = "4096"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/discard-alignment = "0"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/discard-secure = "0"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/feature-discard = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/feature-barrier = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/feature-persistent = "1"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/feature-max-indirect-segments = "256"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/sectors = "3072000"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/info = "0"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/sector-size = "512"   (n0,r1)
/local/domain/0/backend/vbd/1/51712/physical-sector-size = "512"   (n0,r1)
/local/domain/0/backend/console = ""   (n0)
/local/domain/0/backend/console/1 = ""   (n0)
/local/domain/0/backend/console/1/0 = ""   (n0,r1)
/local/domain/0/backend/console/1/0/frontend = "/local/domain/1/console"   (n0,r1)
/local/domain/0/backend/console/1/0/frontend-id = "1"   (n0,r1)
/local/domain/0/backend/console/1/0/online = "1"   (n0,r1)
/local/domain/0/backend/console/1/0/state = "1"   (n0,r1)
/local/domain/0/backend/console/1/0/domain = "guest-3.13"   (n0,r1)
/local/domain/0/backend/console/1/0/protocol = "vt100"   (n0,r1)
/local/domain/0/backend/vif = ""   (n0)
/local/domain/0/backend/vif/1 = ""   (n0)
/local/domain/0/backend/vif/1/0 = ""   (n0,r1)
/local/domain/0/backend/vif/1/0/frontend = "/local/domain/1/device/vif/0"   (n0,r1)
/local/domain/0/backend/vif/1/0/frontend-id = "1"   (n0,r1)
/local/domain/0/backend/vif/1/0/online = "1"   (n0,r1)
/local/domain/0/backend/vif/1/0/state = "4"   (n0,r1)
/local/domain/0/backend/vif/1/0/script = "/etc/xen/scripts/vif-bridge"   (n0,r1)
/local/domain/0/backend/vif/1/0/mac = "00:16:3e:56:af:69"   (n0,r1)
/local/domain/0/backend/vif/1/0/bridge = "xenbr0"   (n0,r1)
/local/domain/0/backend/vif/1/0/handle = "0"   (n0,r1)
/local/domain/0/backend/vif/1/0/type = "vif"   (n0,r1)
/local/domain/0/backend/vif/1/0/feature-sg = "1"   (n0,r1)
/local/domain/0/backend/vif/1/0/feature-gso-tcpv4 = "1"   (n0,r1)
/local/domain/0/backend/vif/1/0/feature-gso-tcpv6 = "1"   (n0,r1)
/local/domain/0/backend/vif/1/0/feature-ipv6-csum-offload = "1"   (n0,r1)
/local/domain/0/backend/vif/1/0/feature-rx-copy = "1"   (n0,r1)
/local/domain/0/backend/vif/1/0/feature-rx-flip = "0"   (n0,r1)
/local/domain/0/backend/vif/1/0/feature-split-event-channels = "1"   (n0,r1)
/local/domain/0/backend/vif/1/0/hotplug-status = "connected"   (n0,r1)
/local/domain/1 = ""   (n0,r1)
/local/domain/1/vm = "/vm/a27b6af3-f09f-4094-aa14-bbb6971272d6"   (n0,r1)
/local/domain/1/name = "guest-3.13"   (n0,r1)
/local/domain/1/cpu = ""   (n0,r1)
/local/domain/1/cpu/0 = ""   (n0,r1)
/local/domain/1/cpu/0/availability = "online"   (n0,r1)
/local/domain/1/memory = ""   (n0,r1)
/local/domain/1/memory/static-max = "65536"   (n0,r1)
/local/domain/1/memory/target = "65537"   (n0,r1)
/local/domain/1/memory/videoram = "-1"   (n0,r1)
/local/domain/1/device = ""   (n0,r1)
/local/domain/1/device/suspend = ""   (n0,r1)
/local/domain/1/device/suspend/event-channel = ""   (n1)
/local/domain/1/device/vbd = ""   (n0,r1)
/local/domain/1/device/vbd/51712 = ""   (n1,r0)
/local/domain/1/device/vbd/51712/backend = "/local/domain/0/backend/vbd/1/51712"   (n1,r0)
/local/domain/1/device/vbd/51712/backend-id = "0"   (n1,r0)
/local/domain/1/device/vbd/51712/state = "4"   (n1,r0)
/local/domain/1/device/vbd/51712/virtual-device = "51712"   (n1,r0)
/local/domain/1/device/vbd/51712/device-type = "disk"   (n1,r0)
/local/domain/1/device/vbd/51712/protocol = "arm-abi"   (n1,r0)
/local/domain/1/device/vbd/51712/ring-ref = "8"   (n1,r0)
/local/domain/1/device/vbd/51712/event-channel = "3"   (n1,r0)
/local/domain/1/device/vbd/51712/feature-persistent = "1"   (n1,r0)
/local/domain/1/device/vif = ""   (n0,r1)
/local/domain/1/device/vif/0 = ""   (n1,r0)
/local/domain/1/device/vif/0/backend = "/local/domain/0/backend/vif/1/0"   (n1,r0)
/local/domain/1/device/vif/0/backend-id = "0"   (n1,r0)
/local/domain/1/device/vif/0/state = "4"   (n1,r0)
/local/domain/1/device/vif/0/handle = "0"   (n1,r0)
/local/domain/1/device/vif/0/mac = "00:16:3e:56:af:69"   (n1,r0)
/local/domain/1/device/vif/0/tx-ring-ref = "768"   (n1,r0)
/local/domain/1/device/vif/0/rx-ring-ref = "769"   (n1,r0)
/local/domain/1/device/vif/0/event-channel-tx = "4"   (n1,r0)
/local/domain/1/device/vif/0/event-channel-rx = "5"   (n1,r0)
/local/domain/1/device/vif/0/request-rx-copy = "1"   (n1,r0)
/local/domain/1/device/vif/0/feature-rx-notify = "1"   (n1,r0)
/local/domain/1/device/vif/0/feature-sg = "1"   (n1,r0)
/local/domain/1/device/vif/0/feature-gso-tcpv4 = "1"   (n1,r0)
/local/domain/1/control = ""   (n0,r1)
/local/domain/1/control/shutdown = ""   (n1)
/local/domain/1/control/platform-feature-multiprocessor-suspend = "1"   (n0,r1)
/local/domain/1/control/platform-feature-xs_reset_watches = "1"   (n0,r1)
/local/domain/1/data = ""   (n1)
/local/domain/1/domid = "1"   (n0,r1)
/local/domain/1/store = ""   (n0,r1)
/local/domain/1/store/port = "1"   (n0,r1)
/local/domain/1/store/ring-ref = "540673"   (n0,r1)
/local/domain/1/console = ""   (n0,r1)
/local/domain/1/console/backend = "/local/domain/0/backend/console/1/0"   (n0,r1)
/local/domain/1/console/backend-id = "0"   (n1,r0)
/local/domain/1/console/limit = "1048576"   (n0,r1)
/local/domain/1/console/type = "xenconsoled"   (n0,r1)
/local/domain/1/console/output = "pty"   (n0,r1)
/local/domain/1/console/tty = "/dev/pts/0"   (n0,r1)
/local/domain/1/console/port = "2"   (n0,r1)
/local/domain/1/console/ring-ref = "540672"   (n0,r1)
/vm = ""   (n0)
/vm/a27b6af3-f09f-4094-aa14-bbb6971272d6 = ""   (n0,r1)
/vm/a27b6af3-f09f-4094-aa14-bbb6971272d6/uuid = "a27b6af3-f09f-4094-aa14-bbb6971272d6"   (n0,r1)
/vm/a27b6af3-f09f-4094-aa14-bbb6971272d6/name = "guest-3.13"   (n0,r1)
/vm/a27b6af3-f09f-4094-aa14-bbb6971272d6/image = ""   (n0,r1)
/vm/a27b6af3-f09f-4094-aa14-bbb6971272d6/image/ostype = "linux"   (n0,r1)
/vm/a27b6af3-f09f-4094-aa14-bbb6971272d6/image/kernel = "/root/zImage"   (n0,r1)
/vm/a27b6af3-f09f-4094-aa14-bbb6971272d6/image/cmdline = "root=/dev/xvda 4 console=hvc0,xencons=tty"   (n0,r1)
/vm/a27b6af3-f09f-4094-aa14-bbb6971272d6/start_time = "261.39"   (n0,r1)
/libxl = ""   (n0)
/libxl/1 = ""   (n0)
/libxl/1/dm-version = "qemu_xen_traditional"   (n0)

duqi.

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

* Re: the /dev/xvda can not be mounted and read/write when using xl create domU
  2014-04-18  8:44   ` duqi
@ 2014-04-18  9:10     ` Ian Campbell
  2014-04-18 10:09       ` duqi
  0 siblings, 1 reply; 12+ messages in thread
From: Ian Campbell @ 2014-04-18  9:10 UTC (permalink / raw)
  To: duqi
  Cc: Wei Huang, Julien Grall, 宫晓利,
	Stefano Stabellini (Xen mainlister),
	xen-devel

On Fri, 2014-04-18 at 16:44 +0800, duqi wrote:
> extra = "4 console=hvc0,xencons=tty"

Not sure where you got this from but ",xencons=tty" is bogus, I suggest
you drop it.

Do you know what runlevel 4 means to your initsystem? If not then
perhaps you should omit it.

Ian.

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

* Re: the /dev/xvda can not be mounted and read/write when using xl create domU
  2014-04-18  9:10     ` Ian Campbell
@ 2014-04-18 10:09       ` duqi
  0 siblings, 0 replies; 12+ messages in thread
From: duqi @ 2014-04-18 10:09 UTC (permalink / raw)
  To: Ian Campbell, xen-devel
  Cc: Wei Huang, Julien Grall, 宫晓利,
	Stefano Stabellini (Xen mainlister)

At 2014-04-18 17:10:10,"Ian Campbell" <Ian.Campbell@citrix.com> wrote:
>On Fri, 2014-04-18 at 16:44 +0800, duqi wrote:
>> extra = "4 console=hvc0,xencons=tty"
>
>Not sure where you got this from but ",xencons=tty" is bogus, I suggest
>you drop it.
>
>Do you know what runlevel 4 means to your initsystem? If not then
>perhaps you should omit it.
>
>Ian.
>

Hi, 
Thanks very much for your help.
I edited the $ROOTFS/etc/fstab and add one text:
/dev/xvda / ext4 defaults,noatime 0 1

The blog I follow is here:http://mer.jolladev.net/wiki.php?id=%E6%9E%84%E5%BB%BAdebian_linux_for_cubieboard2

duqi.

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

end of thread, other threads:[~2014-04-18 10:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-16 15:29 the /dev/xvda can not be mounted and read/write when using xl create domU duqi
2014-04-16 15:47 ` Wei Huang
2014-04-16 16:47   ` Ian Campbell
2014-04-17  5:43     ` duqi
2014-04-17 14:58       ` Wei Huang
2014-04-16 16:45 ` Julien Grall
2014-04-17  9:07   ` Ian Campbell
2014-04-17  6:09 ` duqi
2014-04-17  9:10 ` Ian Campbell
2014-04-18  8:44   ` duqi
2014-04-18  9:10     ` Ian Campbell
2014-04-18 10:09       ` duqi

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.