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

Re: [Xen-devel] Xen-ARM couldn't boot up



Thanks.  It seems I have to add the mmc patch in wiki, otherwise the mmc couldn''t initialize correctly.
Well, Some warnings are in termial0, is it all right?


(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 216kB init memory.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.9.0-rc1+ (joshzhao@ubuntu-desktop) (gcc version 4.6.3 (GCC) ) #8 Thu Mar 7 16:00:16 CST 2013
[    0.000000] CPU: ARMv7 Processor [412fc0f0] revision 0 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] Machine: ARM-Versatile Express, model: V2P-CA15
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: at arch/arm/mach-vexpress/v2m.c:426 v2m_dt_init_early+0x4c/0x70()
[    0.000000] [<c000d2f0>] (unwind_backtrace+0x0/0xe0) from [<c00144a4>] (warn_slowpath_common+0x48/0x64)
[    0.000000] [<c00144a4>] (warn_slowpath_common+0x48/0x64) from [<c0014578>] (warn_slowpath_null+0x18/0x1c)
[    0.000000] [<c0014578>] (warn_slowpath_null+0x18/0x1c) from [<c0366224>] (v2m_dt_init_early+0x4c/0x70)
[    0.000000] [<c0366224>] (v2m_dt_init_early+0x4c/0x70) from [<c0362c0c>] (setup_arch+0x560/0x61c)
[    0.000000] [<c0362c0c>] (setup_arch+0x560/0x61c) from [<c035f4fc>] (start_kernel+0x70/0x2bc)
[    0.000000] [<c035f4fc>] (start_kernel+0x70/0x2bc) from [<80008070>] (0x80008070)
[    0.000000] ---[ end trace 1b75b31a2719ed1c ]---
[    0.000000] vexpress: DT HBI (237) is not matching hardware (0)!
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: earlyprintk=xenboot console=ttyAMA1 root=/dev/mmcblk0p2 rootwait mmci.fmax=4000000
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] __ex_table already sorted, skipping sort
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 126008k/126008k available, 5064k 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 : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]       .text : 0xc0008000 - 0xc035e004   (3417 kB)
[    0.000000]       .init : 0xc035f000 - 0xc0381c84   ( 140 kB)
[    0.000000]       .data : 0xc0382000 - 0xc03a3c80   ( 136 kB)
[    0.000000]        .bss : 0xc03a3c80 - 0xc03c6348   ( 138 kB)
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Using SP804 '/smb/motherboard/iofpga@3,00000000/timer@110000' as a clock & events source
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] Console: colour dummy device 80x30
[    0.000766] Calibrating delay loop... 98.71 BogoMIPS (lpj=493568)
[    0.090009] pid_max: default: 32768 minimum: 301
[    0.090382] Mount-cache hash table entries: 512
[    0.091844] CPU: Testing write buffer coherency: ok
[    0.092170] Setting up static identity map for 0xc02abca8 - 0xc02abd00
[    0.095903] Xen 4.2 support found, events_irq=31 gnttab_frame_pfn=b0000
[    0.096005] Grant tables using version 1 layout.
[    0.096159] Grant table initialized
[    0.096616] NET: Registered protocol family 16
[    0.098722] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.101758] ------------[ cut here ]------------
[    0.101848] WARNING: at kernel/irq/irqdomain.c:137 irq_domain_legacy_revmap+0x2c/0x48()
[    0.101996] [<c000d2f0>] (unwind_backtrace+0x0/0xe0) from [<c00144a4>] (warn_slowpath_common+0x48/0x64)
[    0.102152] [<c00144a4>] (warn_slowpath_common+0x48/0x64) from [<c0014578>] (warn_slowpath_null+0x18/0x1c)
[    0.102310] [<c0014578>] (warn_slowpath_null+0x18/0x1c) from [<c00467d4>] (irq_domain_legacy_revmap+0x2c/0x48)
[    0.102470] [<c00467d4>] (irq_domain_legacy_revmap+0x2c/0x48) from [<c00471c8>] (irq_create_mapping+0x48/0x10c)
[    0.102630] [<c00471c8>] (irq_create_mapping+0x48/0x10c) from [<c004732c>] (irq_create_of_mapping+0xa0/0xf4)
[    0.102787] [<c004732c>] (irq_create_of_mapping+0xa0/0xf4) from [<c02114b8>] (irq_of_parse_and_map+0x28/0x30)
[    0.102938] [<c02114b8>] (irq_of_parse_and_map+0x28/0x30) from [<c02114d4>] (of_irq_to_resource+0x14/0x6c)
[    0.103087] [<c02114d4>] (of_irq_to_resource+0x14/0x6c) from [<c0211550>] (of_irq_count+0x24/0x34)
[    0.103233] [<c0211550>] (of_irq_count+0x24/0x34) from [<c0211ad8>] (of_device_alloc+0x64/0x154)
[    0.103384] [<c0211ad8>] (of_device_alloc+0x64/0x154) from [<c0211bfc>] (of_platform_device_create_pdata+0x34/0x78)
[    0.103546] [<c0211bfc>] (of_platform_device_create_pdata+0x34/0x78) from [<c0211dfc>] (of_platform_bus_create+0x1bc/0x254)
[    0.103710] [<c0211dfc>] (of_platform_bus_create+0x1bc/0x254) from [<c0211fb4>] (of_platform_populate+0x5c/0x88)
[    0.103859] [<c0211fb4>] (of_platform_populate+0x5c/0x88) from [<c0365edc>] (v2m_dt_init+0x24/0x40)
[    0.104004] [<c0365edc>] (v2m_dt_init+0x24/0x40) from [<c03623c0>] (customize_machine+0x1c/0x28)
[    0.104156] [<c03623c0>] (customize_machine+0x1c/0x28) from [<c035f7d8>] (do_one_initcall+0x90/0x160)
[    0.104307] [<c035f7d8>] (do_one_initcall+0x90/0x160) from [<c035f988>] (kernel_init_freeable+0xe0/0x1a4)
[    0.104457] [<c035f988>] (kernel_init_freeable+0xe0/0x1a4) from [<c02a76f4>] (kernel_init+0x8/0xe4)
[    0.104595] [<c02a76f4>] (kernel_init+0x8/0xe4) from [<c0009318>] (ret_from_fork+0x14/0x3c)
[    0.104675] ---[ end trace 1b75b31a2719ed1d ]---
[    0.104726] ------------[ cut here ]------------
[    0.104816] WARNING: at kernel/irq/irqdomain.c:137 irq_domain_legacy_revmap+0x2c/0x48()
[    0.104964] [<c000d2f0>] (unwind_backtrace+0x0/0xe0) from [<c00144a4>] (warn_slowpath_common+0x48/0x64)
[    0.105120] [<c00144a4>] (warn_slowpath_common+0x48/0x64) from [<c0014578>] (warn_slowpath_null+0x18/0x1c)
[    0.105278] [<c0014578>] (warn_slowpath_null+0x18/0x1c) from [<c00467d4>] (irq_domain_legacy_revmap+0x2c/0x48)
[    0.105439] [<c00467d4>] (irq_domain_legacy_revmap+0x2c/0x48) from [<c004732c>] (irq_create_of_mapping+0xa0/0xf4)
[    0.105597] [<c004732c>] (irq_create_of_mapping+0xa0/0xf4) from [<c02114b8>] (irq_of_parse_and_map+0x28/0x30)
[    0.105749] [<c02114b8>] (irq_of_parse_and_map+0x28/0x30) from [<c02114d4>] (of_irq_to_resource+0x14/0x6c)
[    0.105967] [<c02114d4>] (of_irq_to_resource+0x14/0x6c) from [<c0211550>] (of_irq_count+0x24/0x34)
[    0.106112] [<c0211550>] (of_irq_count+0x24/0x34) from [<c0211ad8>] (of_device_alloc+0x64/0x154)
[    0.106264] [<c0211ad8>] (of_device_alloc+0x64/0x154) from [<c0211bfc>] (of_platform_device_create_pdata+0x34/0x78)
[    0.106426] [<c0211bfc>] (of_platform_device_create_pdata+0x34/0x78) from [<c0211dfc>] (of_platform_bus_create+0x1bc/0x254)
[    0.106590] [<c0211dfc>] (of_platform_bus_create+0x1bc/0x254) from [<c0211fb4>] (of_platform_populate+0x5c/0x88)
[    0.106739] [<c0211fb4>] (of_platform_populate+0x5c/0x88) from [<c0365edc>] (v2m_dt_init+0x24/0x40)
[    0.106884] [<c0365edc>] (v2m_dt_init+0x24/0x40) from [<c03623c0>] (customize_machine+0x1c/0x28)
[    0.107036] [<c03623c0>] (customize_machine+0x1c/0x28) from [<c035f7d8>] (do_one_initcall+0x90/0x160)
[    0.107186] [<c035f7d8>] (do_one_initcall+0x90/0x160) from [<c035f988>] (kernel_init_freeable+0xe0/0x1a4)
[    0.107336] [<c035f988>] (kernel_init_freeable+0xe0/0x1a4) from [<c02a76f4>] (kernel_init+0x8/0xe4)
[    0.107475] [<c02a76f4>] (kernel_init+0x8/0xe4) from [<c0009318>] (ret_from_fork+0x14/0x3c)
[    0.107555] ---[ end trace 1b75b31a2719ed1e ]---
[    0.108635] ------------[ cut here ]------------
[    0.108726] WARNING: at kernel/irq/irqdomain.c:137 irq_domain_legacy_revmap+0x2c/0x48()
[    0.108874] [<c000d2f0>] (unwind_backtrace+0x0/0xe0) from [<c00144a4>] (warn_slowpath_common+0x48/0x64)
[    0.109029] [<c00144a4>] (warn_slowpath_common+0x48/0x64) from [<c0014578>] (warn_slowpath_null+0x18/0x1c)
[    0.109187] [<c0014578>] (warn_slowpath_null+0x18/0x1c) from [<c00467d4>] (irq_domain_legacy_revmap+0x2c/0x48)
[    0.109348] [<c00467d4>] (irq_domain_legacy_revmap+0x2c/0x48) from [<c00471c8>] (irq_create_mapping+0x48/0x10c)
[    0.109508] [<c00471c8>] (irq_create_mapping+0x48/0x10c) from [<c004732c>] (irq_create_of_mapping+0xa0/0xf4)
[    0.109664] [<c004732c>] (irq_create_of_mapping+0xa0/0xf4) from [<c02114b8>] (irq_of_parse_and_map+0x28/0x30)
[    0.109816] [<c02114b8>] (irq_of_parse_and_map+0x28/0x30) from [<c02114d4>] (of_irq_to_resource+0x14/0x6c)
[    0.109971] [<c02114d4>] (of_irq_to_resource+0x14/0x6c) from [<c0211550>] (of_irq_count+0x24/0x34)
[    0.110143] [<c0211550>] (of_irq_count+0x24/0x34) from [<c0211ad8>] (of_device_alloc+0x64/0x154)
[    0.110294] [<c0211ad8>] (of_device_alloc+0x64/0x154) from [<c0211bfc>] (of_platform_device_create_pdata+0x34/0x78)
[    0.110456] [<c0211bfc>] (of_platform_device_create_pdata+0x34/0x78) from [<c0211dfc>] (of_platform_bus_create+0x1bc/0x254)
[    0.110620] [<c0211dfc>] (of_platform_bus_create+0x1bc/0x254) from [<c0211fb4>] (of_platform_populate+0x5c/0x88)
[    0.110769] [<c0211fb4>] (of_platform_populate+0x5c/0x88) from [<c0365edc>] (v2m_dt_init+0x24/0x40)
[    0.110914] [<c0365edc>] (v2m_dt_init+0x24/0x40) from [<c03623c0>] (customize_machine+0x1c/0x28)
[    0.111066] [<c03623c0>] (customize_machine+0x1c/0x28) from [<c035f7d8>] (do_one_initcall+0x90/0x160)
[    0.111217] [<c035f7d8>] (do_one_initcall+0x90/0x160) from [<c035f988>] (kernel_init_freeable+0xe0/0x1a4)
[    0.111367] [<c035f988>] (kernel_init_freeable+0xe0/0x1a4) from [<c02a76f4>] (kernel_init+0x8/0xe4)
[    0.111505] [<c02a76f4>] (kernel_init+0x8/0xe4) from [<c0009318>] (ret_from_fork+0x14/0x3c)
[    0.111585] ---[ end trace 1b75b31a2719ed1f ]---
[    0.111636] ------------[ cut here ]------------
[    0.111726] WARNING: at kernel/irq/irqdomain.c:137 irq_domain_legacy_revmap+0x2c/0x48()
[    0.111958] [<c000d2f0>] (unwind_backtrace+0x0/0xe0) from [<c00144a4>] (warn_slowpath_common+0x48/0x64)
[    0.112113] [<c00144a4>] (warn_slowpath_common+0x48/0x64) from [<c0014578>] (warn_slowpath_null+0x18/0x1c)
[    0.112271] [<c0014578>] (warn_slowpath_null+0x18/0x1c) from [<c00467d4>] (irq_domain_legacy_revmap+0x2c/0x48)
[    0.112432] [<c00467d4>] (irq_domain_legacy_revmap+0x2c/0x48) from [<c004732c>] (irq_create_of_mapping+0xa0/0xf4)
[    0.112591] [<c004732c>] (irq_create_of_mapping+0xa0/0xf4) from [<c02114b8>] (irq_of_parse_and_map+0x28/0x30)
[    0.112742] [<c02114b8>] (irq_of_parse_and_map+0x28/0x30) from [<c02114d4>] (of_irq_to_resource+0x14/0x6c)
[    0.112891] [<c02114d4>] (of_irq_to_resource+0x14/0x6c) from [<c0211550>] (of_irq_count+0x24/0x34)
[    0.113037] [<c0211550>] (of_irq_count+0x24/0x34) from [<c0211ad8>] (of_device_alloc+0x64/0x154)
[    0.113188] [<c0211ad8>] (of_device_alloc+0x64/0x154) from [<c0211bfc>] (of_platform_device_create_pdata+0x34/0x78)
[    0.113351] [<c0211bfc>] (of_platform_device_create_pdata+0x34/0x78) from [<c0211dfc>] (of_platform_bus_create+0x1bc/0x254)
[    0.113514] [<c0211dfc>] (of_platform_bus_create+0x1bc/0x254) from [<c0211fb4>] (of_platform_populate+0x5c/0x88)
[    0.113663] [<c0211fb4>] (of_platform_populate+0x5c/0x88) from [<c0365edc>] (v2m_dt_init+0x24/0x40)
[    0.113809] [<c0365edc>] (v2m_dt_init+0x24/0x40) from [<c03623c0>] (customize_machine+0x1c/0x28)
[    0.113961] [<c03623c0>] (customize_machine+0x1c/0x28) from [<c035f7d8>] (do_one_initcall+0x90/0x160)
[    0.114111] [<c035f7d8>] (do_one_initcall+0x90/0x160) from [<c035f988>] (kernel_init_freeable+0xe0/0x1a4)
[    0.114261] [<c035f988>] (kernel_init_freeable+0xe0/0x1a4) from [<c02a76f4>] (kernel_init+0x8/0xe4)
[    0.114400] [<c02a76f4>] (kernel_init+0x8/0xe4) from [<c0009318>] (ret_from_fork+0x14/0x3c)
[    0.114480] ---[ end trace 1b75b31a2719ed20 ]---
[    0.130577] Serial: AMBA PL011 UART driver
[    0.130795] 1c090000.uart: ttyAMA0 at MMIO 0x1c090000 (irq = 37) is a PL011 rev2
[    0.131460] 1c0a0000.uart: ttyAMA1 at MMIO 0x1c0a0000 (irq = 38) is a PL011 rev2
[    0.131540] console [ttyAMA1] enabled, bootconsole disabled



2013/3/7 Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
The command line comes from device tree, so you need to change
xen,dom0-bootargs in the DTS, build it again and rebuild Xen with the
updated DTB.

On Thu, 7 Mar 2013, Josh Zhao wrote:
> Hi Ian,
> Thanks for answering my questions. I use gnome-terminal instead of xterm, now It works as what I want. I
> tried use motherboard.mmc.p_mmc_file=vexpress.img which I downloaded from linaro.  The terminal1 still has
> "VFS: Cannot open root device "mmcblk0" or unknown-block(0,0): error -6" issue. So I modified 
> CONFIG_CMDLINE="earlyprintk=xenboot console=ttyAMA1 root=/dev/nfs nfsroot=172.26.18.144:/srv/nfsroot/ rw
> ip=dhcp" in .config file  and re-compiled kernel.
> I run it again but it still has the "mmcblk0 ..." problem. I was wondering how Dom0 kernel get the command
> line?
>
> Thanks,
>
> josh zhao
>
>
>  
>
>
> 2013/3/6 Ian Campbell <ian.campbell@xxxxxxxxxx>
>       On Wed, 2013-03-06 at 02:47 +0000, Josh Zhao wrote:
>
>       > (1) How I pass the FS image to Dom0 kernel?
>
> -C motherboard.mmc.p_mmc_file=<filename>
>
> > (2) I am wondering how to redirect model_shell's terminals output into
> > a file?  Because I couldn't  copy the output from the terminals.
>
> Can't you? The terminals are just xterm+telnet's to localhost, by
> default port 5000+N but you can change that with -C
> motherboard.terminal_0.start_port=FOO, I'd have thought cut-n-paste woud
> just work. You could use -C motherboard.terminal_0.start_telnet=0 to
> disable the automatic telnet and use whatever you like (e.g. netcat to a
> file) instead.
>
> I'm pretty sure all of this is in the fast models documentation and you
> can see the list of options by passing the -l option.
>
> Ian.
>
>
>
>

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

 


Rackspace

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