Chinaunix首页 | 论坛 | 博客
  • 博客访问: 816302
  • 博文数量: 120
  • 博客积分: 7531
  • 博客等级: 少将
  • 技术积分: 1253
  • 用 户 组: 普通用户
  • 注册时间: 2005-10-11 12:18
文章分类

全部博文(120)

文章存档

2013年(1)

2012年(7)

2011年(1)

2010年(7)

2009年(15)

2008年(13)

2007年(22)

2006年(45)

2005年(9)

分类: LINUX

2012-12-07 17:13:47

环境:xen虚机跑rehl6.3,内核版本2.6.32,然后在上编译2.6.38和2.6.33内核都试过了。
编译内核过程没有报错,重启无法启动,信息:

  1. Started domain test_10.11.6.214
  2. (early) NX (Execute Disable) protection: active
  3. (early) DMI not present or invalid.
  4. (early) e820 update range: 0000000000000000 - 0000000000010000 (early) (usable)(early)  ==> (early) (reserved)(early) 
  5. (early) e820 remove range: 00000000000a0000 - 0000000000100000 (early) (usable)(early) 
  6. (early) No AGP bridge found
  7. (early) last_pfn = 0x200800 max_arch_pfn = 0x400000000
  8. (early) last_pfn = 0x100000 max_arch_pfn = 0x400000000
  9. (early) initial memory mapped : 0 - 05fff000
  10. (early) init_memory_mapping: 0000000000000000-0000000100000000
  11. (early)  0000000000 - 0100000000 page 4k
  12. (early) kernel direct mapping tables up to 100000000 @ 57fa000-5fff000
  13. (early) init_memory_mapping: 0000000100000000-0000000200800000
  14. (early)  0100000000 - 0200800000 page 4k
  15. (early) kernel direct mapping tables up to 200800000 @ feff2000-100000000
  16. (early) RAMDISK: 020b4000 - 043bd000
  17. (early) crashkernel: memory value expected
  18. (early) No NUMA configuration found
  19. (early) Faking a node at 0000000000000000-0000000200800000
  20. (early) Initmem setup node 0 0000000000000000-0000000200800000
  21. (early)   NODE_DATA [00000001fffd9000 - 00000001ffffffff]
  22. (early) Zone PFN ranges:
  23. (early)   DMA      (early) 0x00000010 -> 0x00001000
  24. (early)   DMA32    (early) 0x00001000 -> 0x00100000
  25. (early)   Normal   (early) 0x00100000 -> 0x00200800
  26. (early) Movable zone start PFN for each node
  27. (early) early_node_map[2] active PFN ranges
  28. (early)     0: 0x00000010 -> 0x000000a0
  29. (early)     0: 0x00000100 -> 0x00200800
  30. (early) On node 0 totalpages: 2099088
  31. (early)   DMA zone: 56 pages used for memmap
  32. (early)   DMA zone: 6 pages reserved
  33. (early)   DMA zone: 3922 pages, LIFO batch:0
  34. (early)   DMA32 zone: 14280 pages used for memmap
  35. (early)   DMA32 zone: 1030200 pages, LIFO batch:31
  36. (early)   Normal zone: 14364 pages used for memmap
  37. (early)   Normal zone: 1036260 pages, LIFO batch:31
  38. (early) SFI: Simple Firmware Interface v0.81
  39. (early) SMP: Allowing 2 CPUs, 0 hotplug CPUs
  40. (early) No local APIC present
  41. (early) APIC: disable apic facility
  42. (early) APIC: switched to apic NOOP
  43. (early) nr_irqs_gsi: 16
  44. (early) PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
  45. (early) PCI: Warning: Cannot find a gap in the 32bit address range
  46. (early) PCI: Unassigned devices with 32bit resource registers may break!
  47. (early) Allocating PCI resources starting at 200900000 (gap: 200900000:400000)
  48. (early) Booting paravirtualized kernel on Xen
  49. (early) Xen version: 3.1.2-274.18.1.el5 (preserve-AD)
  50. (early) setup_percpu: NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
  51. (early) PERCPU: Embedded 29 pages/cpu @ffff8801fff50000 s88640 r8192 d21952 u118784
  52. (early) pcpu-alloc: s88640 r8192 d21952 u118784 alloc=29*4096(early) 
  53. (early) pcpu-alloc: (early) [0] (early) 0 (early) [0] (early) 1 (early) 
  54. (early) Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 2070382
  55. (early) Policy zone: Normal
  56. (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
  57. (early) PID hash table entries: 4096 (order: 3, 32768 bytes)
  58. (early) Checking aperture...
  59. (early) No AGP bridge found
  60. (early) Memory: 8120020k/8396800k available (4850k kernel code, 448k absent, 276332k reserved, 7480k data, 1492k init)
  61. (early) Hierarchical RCU implementation.
  62. (early)         RCU-based detection of stalled CPUs is disabled.
  63. (early) NR_IRQS:262400 nr_irqs:288 16
  64. (early) Console: colour dummy device 80x25
  65. (early) Initializing cgroup subsys cpuset
  66. (early) Initializing cgroup subsys cpu
  67. (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
  68. (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
  69. (early) ACPI in unprivileged domain disabled
  70. (early) released 0 pages of unused memory
  71. (early) BIOS-provided physical RAM map:
  72. (early)  Xen: 0000000000000000 - 00000000000a0000 (usable)
  73. (early)  Xen: 00000000000a0000 - 0000000000100000 (reserved)
  74. (early)  Xen: 0000000000100000 - 0000000200800000 (usable)
  75. (early) bootconsole [xenboot0] enabled
  76. (early) NX (Execute Disable) protection: active
  77. (early) DMI not present or invalid.
  78. (early) e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
  79. (early) e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
  80. (early) No AGP bridge found
  81. (early) last_pfn = 0x200800 max_arch_pfn = 0x400000000
  82. (early) last_pfn = 0x100000 max_arch_pfn = 0x400000000
  83. (early) initial memory mapped : 0 - 05fff000
  84. (early) init_memory_mapping: 0000000000000000-0000000100000000
  85. (early)  0000000000 - 0100000000 page 4k
  86. (early) kernel direct mapping tables up to 100000000 @ 57fa000-5fff000
  87. (early) init_memory_mapping: 0000000100000000-0000000200800000
  88. (early)  0100000000 - 0200800000 page 4k
  89. (early) kernel direct mapping tables up to 200800000 @ feff2000-100000000
  90. (early) RAMDISK: 020b4000 - 043bd000
  91. (early) crashkernel: memory value expected
  92. (early) No NUMA configuration found
  93. (early) Faking a node at 0000000000000000-0000000200800000
  94. (early) Initmem setup node 0 0000000000000000-0000000200800000
  95. (early)   NODE_DATA [00000001fffd9000 - 00000001ffffffff]
  96. (early) Zone PFN ranges:
  97. (early)   DMA      0x00000010 -> 0x00001000
  98. (early)   DMA32    0x00001000 -> 0x00100000
  99. (early)   Normal   0x00100000 -> 0x00200800
  100. (early) Movable zone start PFN for each node
  101. (early) early_node_map[2] active PFN ranges
  102. (early)     0: 0x00000010 -> 0x000000a0
  103. (early)     0: 0x00000100 -> 0x00200800
  104. (early) On node 0 totalpages: 2099088
  105. (early)   DMA zone: 56 pages used for memmap
  106. (early)   DMA zone: 6 pages reserved
  107. (early)   DMA zone: 3922 pages, LIFO batch:0
  108. (early)   DMA32 zone: 14280 pages used for memmap
  109. (early)   DMA32 zone: 1030200 pages, LIFO batch:31
  110. (early)   Normal zone: 14364 pages used for memmap
  111. (early)   Normal zone: 1036260 pages, LIFO batch:31
  112. (early) SFI: Simple Firmware Interface v0.81
  113. (early) SMP: Allowing 2 CPUs, 0 hotplug CPUs
  114. (early) No local APIC present
  115. (early) APIC: disable apic facility
  116. (early) APIC: switched to apic NOOP
  117. (early) nr_irqs_gsi: 16
  118. (early) PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
  119. (early) PCI: Warning: Cannot find a gap in the 32bit address range
  120. (early) PCI: Unassigned devices with 32bit resource registers may break!
  121. (early) Allocating PCI resources starting at 200900000 (gap: 200900000:400000)
  122. (early) Booting paravirtualized kernel on Xen
  123. (early) Xen version: 3.1.2-274.18.1.el5 (preserve-AD)
  124. (early) setup_percpu: NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
  125. (early) PERCPU: Embedded 29 pages/cpu @ffff8801fff50000 s88640 r8192 d21952 u118784
  126. (early) pcpu-alloc: s88640 r8192 d21952 u118784 alloc=29*4096
  127. (early) pcpu-alloc: [0] 0 [0] 1 
  128. (early) Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 2070382
  129. (early) Policy zone: Normal
  130. (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
  131. (early) PID hash table entries: 4096 (order: 3, 32768 bytes)
  132. (early) Checking aperture...
  133. (early) No AGP bridge found
  134. (early) Memory: 8120020k/8396800k available (4850k kernel code, 448k absent, 276332k reserved, 7480k data, 1492k init)
  135. (early) Hierarchical RCU implementation.
  136. (early)         RCU-based detection of stalled CPUs is disabled.
  137. (early) NR_IRQS:262400 nr_irqs:288 16
  138. (early) Console: colour dummy device 80x25
  139. (early) console [tty0] enabled
  140. console [hvc0] enabled, bootconsole disabled
  141. (early) console [hvc0] enabled, bootconsole disabled
  142. allocated 85196800 bytes of page_cgroup
  143. please try 'cgroup_disable=memory' option if you don't want memory cgroups
  144. Xen: using vcpuop timer interface
  145. installing Xen timer for CPU 0
  146. Detected 2393.998 MHz processor.
  147. Calibrating delay loop (skipped), value calculated using timer frequency.. 4787.99 BogoMIPS (lpj=2393998)
  148. pid_max: default: 32768 minimum: 301
  149. Security Framework initialized
  150. SELinux:  Initializing.
  151. SELinux:  Starting in permissive mode
  152. Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
  153. Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
  154. Mount-cache hash table entries: 256
  155. Initializing cgroup subsys ns
  156. ns_cgroup deprecated: consider using the 'clone_children' flag without the ns_cgroup.
  157. Initializing cgroup subsys cpuacct
  158. Initializing cgroup subsys memory
  159. Initializing cgroup subsys devices
  160. Initializing cgroup subsys freezer
  161. Initializing cgroup subsys net_cls
  162. Initializing cgroup subsys blkio
  163. CPU: Unsupported number of siblings 32
  164. SMP alternatives: switching to UP code
  165. ftrace: allocating 19034 entries in 75 pages
  166. BUG: unable to handle kernel NULL pointer dereference at           (null)
  167. IP: [] set_cpu_sibling_map+0x103/0x2f9
  168. PGD 0 
  169. Oops: 0002 [#1] SMP 
  170. last sysfs file: 
  171. CPU 0 
  172. Modules linked in:

  173. Pid: 1, comm: swapper Not tainted 2.6.38 #1  
  174. RIP: e030:[]  [] set_cpu_sibling_map+0x103/0x2f9
  175. RSP: e02b:ffff8801eeb43e10  EFLAGS: 00010246
  176. RAX: 0000000000000000 RBX: 0000000000014c80 RCX: 0000000000000000
  177. RDX: ffff8801fff50000 RSI: ffffffff81bf8040 RDI: 0000000000000000
  178. RBP: ffff8801eeb43e70 R08: 0000000000000000 R09: 0000000000000000
  179. R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801fff64c80
  180. R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
  181. FS:  0000000000000000(0000) GS:ffff8801fff50000(0000) knlGS:0000000000000000
  182. CS:  e033 DS: 0000 ES: 0000 CR0: 000000008005003b
  183. CR2: 0000000000000000 CR3: 0000000001a03000 CR4: 0000000000000620
  184. DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
  185. DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000000
  186. Process swapper (pid: 1, threadinfo ffff8801eeb42000, task ffff8801eeb414a0)
  187. Stack:
  188.  0000000000000002 0000000000000200 0000000000000200 ffffffff81613dc0
  189.  0000000000000002 00000000ffffffff ffffffff8100816f ffffffff81d6f2a8
  190.  0000000000001000 0000000000000000 0000000000000000 0000000000000000
  191. Call Trace:
  192.  [] ? xen_restore_fl_direct_end+0x0/0x1
  193.  [] xen_smp_prepare_cpus+0x36/0x135
  194.  [] kernel_init+0x1bc/0x330
  195.  [] kernel_thread_helper+0x4/0x10
  196.  [] ? int_ret_from_sys_call+0x7/0x1b
  197.  [] ? retint_restore_args+0x5/0x6
  198.  [] ? kernel_thread_helper+0x0/0x10
  199. 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 
  200. RIP  [] set_cpu_sibling_map+0x103/0x2f9
  201.  RSP
  202. CR2: 0000000000000000
  203. ---[ end trace a7919e7f17c0a725 ]---
  204. Kernel panic - not syncing: Attempted to kill init!
  205. Pid: 1, comm: swapper Tainted: G      D     2.6.38 #1
  206. Call Trace:
  207.  [] ? panic+0x91/0x1a8
  208.  [] ? enqueue_task_fair+0x220/0x470
  209.  [] ? do_exit+0x6f3/0x830
  210.  [] ? _raw_spin_unlock_irqrestore+0x16/0x20
  211.  [] ? oops_end+0xab/0xf0
  212.  [] ? no_context+0xfb/0x260
  213.  [] ? __bad_area_nosemaphore+0x125/0x1e0
  214.  [] ? bad_area_nosemaphore+0x13/0x20
  215.  [] ? do_page_fault+0x310/0x4b0
  216.  [] ? page_fault+0x25/0x30
  217.  [] ? set_cpu_sibling_map+0x103/0x2f9
  218.  [] ? xen_restore_fl_direct_end+0x0/0x1
  219.  [] ? xen_smp_prepare_cpus+0x36/0x135
  220.  [] ? kernel_init+0x1bc/0x330
  221.  [] ? kernel_thread_helper+0x4/0x10
  222.  [] ? int_ret_from_sys_call+0x7/0x1b
  223.  [] ? retint_restore_args+0x5/0x6
  224.  [] ? kernel_thread_helper+0x0/0x10
  225. [@tc_6_210 ~]# 
貌似是bug,

点击(此处)折叠或打开

  1. PCI: Warning: Cannot find a gap in the 32bit address range
  2. PCI: Unassigned devices with 32bit resource registers may break!
  3. BUG: unable to handle kernel NULL pointer dereference at (null)
  4. IP: [] set_cpu_sibling_map+0x103/0x2f9
  5. Kernel panic - not syncing: Attempted to kill init!
编译过程没有看到WARNING: at arch/x86/xen/mmu.c:475报错,后续在物理机器上再试试把。

确认是bug,换成vritualBox上同样环境上编译成功,重启也正常。

阅读(4611) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~