环境:xen虚机跑rehl6.3,内核版本2.6.32,然后在上编译2.6.38和2.6.33内核都试过了。
编译内核过程没有报错,重启无法启动,信息:
- Started domain test_10.11.6.214
- (early) NX (Execute Disable) protection: active
- (early) DMI not present or invalid.
- (early) e820 update range: 0000000000000000 - 0000000000010000 (early) (usable)(early) ==> (early) (reserved)(early)
- (early) e820 remove range: 00000000000a0000 - 0000000000100000 (early) (usable)(early)
- (early) No AGP bridge found
- (early) last_pfn = 0x200800 max_arch_pfn = 0x400000000
- (early) last_pfn = 0x100000 max_arch_pfn = 0x400000000
- (early) initial memory mapped : 0 - 05fff000
- (early) init_memory_mapping: 0000000000000000-0000000100000000
- (early) 0000000000 - 0100000000 page 4k
- (early) kernel direct mapping tables up to 100000000 @ 57fa000-5fff000
- (early) init_memory_mapping: 0000000100000000-0000000200800000
- (early) 0100000000 - 0200800000 page 4k
- (early) kernel direct mapping tables up to 200800000 @ feff2000-100000000
- (early) RAMDISK: 020b4000 - 043bd000
- (early) crashkernel: memory value expected
- (early) No NUMA configuration found
- (early) Faking a node at 0000000000000000-0000000200800000
- (early) Initmem setup node 0 0000000000000000-0000000200800000
- (early) NODE_DATA [00000001fffd9000 - 00000001ffffffff]
- (early) Zone PFN ranges:
- (early) DMA (early) 0x00000010 -> 0x00001000
- (early) DMA32 (early) 0x00001000 -> 0x00100000
- (early) Normal (early) 0x00100000 -> 0x00200800
- (early) Movable zone start PFN for each node
- (early) early_node_map[2] active PFN ranges
- (early) 0: 0x00000010 -> 0x000000a0
- (early) 0: 0x00000100 -> 0x00200800
- (early) On node 0 totalpages: 2099088
- (early) DMA zone: 56 pages used for memmap
- (early) DMA zone: 6 pages reserved
- (early) DMA zone: 3922 pages, LIFO batch:0
- (early) DMA32 zone: 14280 pages used for memmap
- (early) DMA32 zone: 1030200 pages, LIFO batch:31
- (early) Normal zone: 14364 pages used for memmap
- (early) Normal zone: 1036260 pages, LIFO batch:31
- (early) SFI: Simple Firmware Interface v0.81
- (early) SMP: Allowing 2 CPUs, 0 hotplug CPUs
- (early) No local APIC present
- (early) APIC: disable apic facility
- (early) APIC: switched to apic NOOP
- (early) nr_irqs_gsi: 16
- (early) PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
- (early) PCI: Warning: Cannot find a gap in the 32bit address range
- (early) PCI: Unassigned devices with 32bit resource registers may break!
- (early) Allocating PCI resources starting at 200900000 (gap: 200900000:400000)
- (early) Booting paravirtualized kernel on Xen
- (early) Xen version: 3.1.2-274.18.1.el5 (preserve-AD)
- (early) setup_percpu: NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
- (early) PERCPU: Embedded 29 pages/cpu @ffff8801fff50000 s88640 r8192 d21952 u118784
- (early) pcpu-alloc: s88640 r8192 d21952 u118784 alloc=29*4096(early)
- (early) pcpu-alloc: (early) [0] (early) 0 (early) [0] (early) 1 (early)
- (early) Built 1 zonelists in Zone order, mobility grouping on. Total pages: 2070382
- (early) Policy zone: Normal
- (early) Kernel command line: ro root=/dev/mapper/vgroot-lvroot rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vgroot/lvswap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vgroot/lvroot rd_NO_DM rhgb quiet earlyprintk=xen xencons=hvc0 nomodeset initcall_debug debug
- (early) PID hash table entries: 4096 (order: 3, 32768 bytes)
- (early) Checking aperture...
- (early) No AGP bridge found
- (early) Memory: 8120020k/8396800k available (4850k kernel code, 448k absent, 276332k reserved, 7480k data, 1492k init)
- (early) Hierarchical RCU implementation.
- (early) RCU-based detection of stalled CPUs is disabled.
- (early) NR_IRQS:262400 nr_irqs:288 16
- (early) Console: colour dummy device 80x25
- (early) Initializing cgroup subsys cpuset
- (early) Initializing cgroup subsys cpu
- (early) Linux version 2.6.38 (root@tc_6_214) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Dec 7 12:18:57 CST 2012
- (early) Command line: ro root=/dev/mapper/vgroot-lvroot rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vgroot/lvswap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vgroot/lvroot rd_NO_DM rhgb quiet earlyprintk=xen xencons=hvc0 nomodeset initcall_debug debug
- (early) ACPI in unprivileged domain disabled
- (early) released 0 pages of unused memory
- (early) BIOS-provided physical RAM map:
- (early) Xen: 0000000000000000 - 00000000000a0000 (usable)
- (early) Xen: 00000000000a0000 - 0000000000100000 (reserved)
- (early) Xen: 0000000000100000 - 0000000200800000 (usable)
- (early) bootconsole [xenboot0] enabled
- (early) NX (Execute Disable) protection: active
- (early) DMI not present or invalid.
- (early) e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
- (early) e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
- (early) No AGP bridge found
- (early) last_pfn = 0x200800 max_arch_pfn = 0x400000000
- (early) last_pfn = 0x100000 max_arch_pfn = 0x400000000
- (early) initial memory mapped : 0 - 05fff000
- (early) init_memory_mapping: 0000000000000000-0000000100000000
- (early) 0000000000 - 0100000000 page 4k
- (early) kernel direct mapping tables up to 100000000 @ 57fa000-5fff000
- (early) init_memory_mapping: 0000000100000000-0000000200800000
- (early) 0100000000 - 0200800000 page 4k
- (early) kernel direct mapping tables up to 200800000 @ feff2000-100000000
- (early) RAMDISK: 020b4000 - 043bd000
- (early) crashkernel: memory value expected
- (early) No NUMA configuration found
- (early) Faking a node at 0000000000000000-0000000200800000
- (early) Initmem setup node 0 0000000000000000-0000000200800000
- (early) NODE_DATA [00000001fffd9000 - 00000001ffffffff]
- (early) Zone PFN ranges:
- (early) DMA 0x00000010 -> 0x00001000
- (early) DMA32 0x00001000 -> 0x00100000
- (early) Normal 0x00100000 -> 0x00200800
- (early) Movable zone start PFN for each node
- (early) early_node_map[2] active PFN ranges
- (early) 0: 0x00000010 -> 0x000000a0
- (early) 0: 0x00000100 -> 0x00200800
- (early) On node 0 totalpages: 2099088
- (early) DMA zone: 56 pages used for memmap
- (early) DMA zone: 6 pages reserved
- (early) DMA zone: 3922 pages, LIFO batch:0
- (early) DMA32 zone: 14280 pages used for memmap
- (early) DMA32 zone: 1030200 pages, LIFO batch:31
- (early) Normal zone: 14364 pages used for memmap
- (early) Normal zone: 1036260 pages, LIFO batch:31
- (early) SFI: Simple Firmware Interface v0.81
- (early) SMP: Allowing 2 CPUs, 0 hotplug CPUs
- (early) No local APIC present
- (early) APIC: disable apic facility
- (early) APIC: switched to apic NOOP
- (early) nr_irqs_gsi: 16
- (early) PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
- (early) PCI: Warning: Cannot find a gap in the 32bit address range
- (early) PCI: Unassigned devices with 32bit resource registers may break!
- (early) Allocating PCI resources starting at 200900000 (gap: 200900000:400000)
- (early) Booting paravirtualized kernel on Xen
- (early) Xen version: 3.1.2-274.18.1.el5 (preserve-AD)
- (early) setup_percpu: NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
- (early) PERCPU: Embedded 29 pages/cpu @ffff8801fff50000 s88640 r8192 d21952 u118784
- (early) pcpu-alloc: s88640 r8192 d21952 u118784 alloc=29*4096
- (early) pcpu-alloc: [0] 0 [0] 1
- (early) Built 1 zonelists in Zone order, mobility grouping on. Total pages: 2070382
- (early) Policy zone: Normal
- (early) Kernel command line: ro root=/dev/mapper/vgroot-lvroot rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vgroot/lvswap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vgroot/lvroot rd_NO_DM rhgb quiet earlyprintk=xen xencons=hvc0 nomodeset initcall_debug debug
- (early) PID hash table entries: 4096 (order: 3, 32768 bytes)
- (early) Checking aperture...
- (early) No AGP bridge found
- (early) Memory: 8120020k/8396800k available (4850k kernel code, 448k absent, 276332k reserved, 7480k data, 1492k init)
- (early) Hierarchical RCU implementation.
- (early) RCU-based detection of stalled CPUs is disabled.
- (early) NR_IRQS:262400 nr_irqs:288 16
- (early) Console: colour dummy device 80x25
- (early) console [tty0] enabled
- console [hvc0] enabled, bootconsole disabled
- (early) console [hvc0] enabled, bootconsole disabled
- allocated 85196800 bytes of page_cgroup
- please try 'cgroup_disable=memory' option if you don't want memory cgroups
- Xen: using vcpuop timer interface
- installing Xen timer for CPU 0
- Detected 2393.998 MHz processor.
- Calibrating delay loop (skipped), value calculated using timer frequency.. 4787.99 BogoMIPS (lpj=2393998)
- pid_max: default: 32768 minimum: 301
- Security Framework initialized
- SELinux: Initializing.
- SELinux: Starting in permissive mode
- Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
- Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
- Mount-cache hash table entries: 256
- Initializing cgroup subsys ns
- ns_cgroup deprecated: consider using the 'clone_children' flag without the ns_cgroup.
- Initializing cgroup subsys cpuacct
- Initializing cgroup subsys memory
- Initializing cgroup subsys devices
- Initializing cgroup subsys freezer
- Initializing cgroup subsys net_cls
- Initializing cgroup subsys blkio
- CPU: Unsupported number of siblings 32
- SMP alternatives: switching to UP code
- ftrace: allocating 19034 entries in 75 pages
- BUG: unable to handle kernel NULL pointer dereference at (null)
- IP: [] set_cpu_sibling_map+0x103/0x2f9
- PGD 0
- Oops: 0002 [#1] SMP
- last sysfs file:
- CPU 0
- Modules linked in:
- Pid: 1, comm: swapper Not tainted 2.6.38 #1
- RIP: e030:[] [] set_cpu_sibling_map+0x103/0x2f9
- RSP: e02b:ffff8801eeb43e10 EFLAGS: 00010246
- RAX: 0000000000000000 RBX: 0000000000014c80 RCX: 0000000000000000
- RDX: ffff8801fff50000 RSI: ffffffff81bf8040 RDI: 0000000000000000
- RBP: ffff8801eeb43e70 R08: 0000000000000000 R09: 0000000000000000
- R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801fff64c80
- R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
- FS: 0000000000000000(0000) GS:ffff8801fff50000(0000) knlGS:0000000000000000
- CS: e033 DS: 0000 ES: 0000 CR0: 000000008005003b
- CR2: 0000000000000000 CR3: 0000000001a03000 CR4: 0000000000000620
- DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
- DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000000
- Process swapper (pid: 1, threadinfo ffff8801eeb42000, task ffff8801eeb414a0)
- Stack:
- 0000000000000002 0000000000000200 0000000000000200 ffffffff81613dc0
- 0000000000000002 00000000ffffffff ffffffff8100816f ffffffff81d6f2a8
- 0000000000001000 0000000000000000 0000000000000000 0000000000000000
- Call Trace:
- [] ? xen_restore_fl_direct_end+0x0/0x1
- [] xen_smp_prepare_cpus+0x36/0x135
- [] kernel_init+0x1bc/0x330
- [] kernel_thread_helper+0x4/0x10
- [] ? int_ret_from_sys_call+0x7/0x1b
- [] ? retint_restore_args+0x5/0x6
- [] ? kernel_thread_helper+0x0/0x10
- Code: 48 63 d2 e8 7b e1 d7 ff 3b 05 e5 ee 74 00 89 c2 0f 8c 6c ff ff ff eb 17 48 8b 14 d5 c0 85 bf 81 48 c7 c0 58 db 00 00 48 8b 04 10 <3e> 0f ab 38 49 8b 84 24 a0 00 00 00 3e 44 0f ab 28 65 66 8b 04
- RIP [] set_cpu_sibling_map+0x103/0x2f9
- RSP
- CR2: 0000000000000000
- ---[ end trace a7919e7f17c0a725 ]---
- Kernel panic - not syncing: Attempted to kill init!
- Pid: 1, comm: swapper Tainted: G D 2.6.38 #1
- Call Trace:
- [] ? panic+0x91/0x1a8
- [] ? enqueue_task_fair+0x220/0x470
- [] ? do_exit+0x6f3/0x830
- [] ? _raw_spin_unlock_irqrestore+0x16/0x20
- [] ? oops_end+0xab/0xf0
- [] ? no_context+0xfb/0x260
- [] ? __bad_area_nosemaphore+0x125/0x1e0
- [] ? bad_area_nosemaphore+0x13/0x20
- [] ? do_page_fault+0x310/0x4b0
- [] ? page_fault+0x25/0x30
- [] ? set_cpu_sibling_map+0x103/0x2f9
- [] ? xen_restore_fl_direct_end+0x0/0x1
- [] ? xen_smp_prepare_cpus+0x36/0x135
- [] ? kernel_init+0x1bc/0x330
- [] ? kernel_thread_helper+0x4/0x10
- [] ? int_ret_from_sys_call+0x7/0x1b
- [] ? retint_restore_args+0x5/0x6
- [] ? kernel_thread_helper+0x0/0x10
- [@tc_6_210 ~]#
貌似是bug,
- PCI: Warning: Cannot find a gap in the 32bit address range
- PCI: Unassigned devices with 32bit resource registers may break!
- BUG: unable to handle kernel NULL pointer dereference at (null)
- IP: [] set_cpu_sibling_map+0x103/0x2f9
- Kernel panic - not syncing: Attempted to kill init!
编译过程没有看到
WARNING: at arch/x86/xen/mmu.c:475报错,后续在物理机器上再试试把。
确认是bug,换成vritualBox上同样环境上编译成功,重启也正常。
阅读(4611) | 评论(0) | 转发(0) |