免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7441 | 回复: 0
打印 上一主题 下一主题

user mode linux 出问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-08-25 21:42 |只看该作者 |倒序浏览
(实验环境是64位的ubuntu10.10,编译的是2.6.38的内核)
我是这样子做的:
一、
make ARCH=um defconfig
make ARCH=um menuconfig


然后选择了kernel hacking 中的:
1)complie the kernel with debug info
2)complie the kernel with frame pointers
保存.config

二、
make ARCH=um
make modules_install INSTALL_MOD_PATH=mods ARCH=um

三、
1)到官网下载了64ubuntu10.10的根文件系统,root_fs
2)将root_fs挂载到 /mnt,然后将源码下 /mods/lib/modules/2.6.38全部拷贝到根文件系统/lib/modules下,然后卸载该文件
3) 制作交换分区文件系统swap_fs

四、
1)运行   ./linux ubda=./root_fs  ubdb=./swap_fs con=pts con0=fd:0,fd:1



可是执行的过程下却一直卡在那边。不知道是怎么回事,麻烦大哥大姐指点下,谢谢了。
  1. lys@lys:~/桌面/linux-2.6.38$ ./linux ubda=./root_fs ubdb=./swap_fs con=pts con0=fd:0,fd:1
  2. Core dump limits :
  3.         soft - 0
  4.         hard - NONE
  5. Checking that ptrace can change system call numbers...OK
  6. Checking syscall emulation patch for ptrace...OK
  7. Checking advanced syscall emulation patch for ptrace...OK
  8. Checking for tmpfs mount on /dev/shm...OK
  9. Checking PROT_EXEC mmap in /dev/shm/...OK
  10. Checking for the skas3 patch in the host:
  11.   - /proc/mm...not found: No such file or directory
  12.   - PTRACE_FAULTINFO...not found
  13.   - PTRACE_LDT...not found
  14. UML running in SKAS0 mode
  15. Adding 12951552 bytes to physical memory to account for exec-shield gap
  16. Linux version 2.6.38 (root@lys) (gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) ) #1 Thu Aug 25 17:14:58 CST 2011
  17. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 11198
  18. Kernel command line: ubda=./root_fs ubdb=./swap_fs con=pts con0=fd:0,fd:1 root=98:0
  19. PID hash table entries: 256 (order: -1, 2048 bytes)
  20. Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
  21. Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
  22. Memory: 28176k available
  23. NR_IRQS:15
  24. Calibrating delay loop... 576.71 BogoMIPS (lpj=2883584)
  25. pid_max: default: 32768 minimum: 301
  26. Mount-cache hash table entries: 256
  27. Checking that host ptys support output SIGIO...Yes
  28. Checking that host ptys support SIGIO on close...No, enabling workaround
  29. Using 2.6 host AIO
  30. NET: Registered protocol family 16
  31. bio: create slab <bio-0> at 0
  32. Switching to clocksource itimer
  33. NET: Registered protocol family 2
  34. IP route cache hash table entries: 512 (order: 0, 4096 bytes)
  35. TCP established hash table entries: 2048 (order: 3, 32768 bytes)
  36. TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
  37. TCP: Hash tables configured (established 2048 bind 2048)
  38. TCP reno registered
  39. UDP hash table entries: 128 (order: 0, 4096 bytes)
  40. UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
  41. NET: Registered protocol family 1
  42. mconsole (version 2) initialized on /home/lys/.uml/TIHQ33/mconsole
  43. Checking host MADV_REMOVE support...OK
  44. VFS: Disk quotas dquot_6.5.2
  45. Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
  46. msgmni has been set to 55
  47. io scheduler noop registered
  48. io scheduler deadline registered
  49. io scheduler cfq registered (default)
  50. TCP cubic registered
  51. NET: Registered protocol family 17
  52. Initialized stdio console driver
  53. Console initialized on /dev/tty0
  54. console [tty0] enabled
  55. Initializing software serial port version 1
  56. console [mc-1] enabled
  57. ubda: unknown partition table
  58. ubdb: unknown partition table
  59. Switched to NOHz mode on CPU #0
  60. EXT3-fs (ubda): error: couldn't mount because of unsupported optional features (240)
  61. EXT2-fs (ubda): error: couldn't mount because of unsupported optional features (240)
  62. EXT4-fs (ubda): mounted filesystem with ordered data mode. Opts: (null)
  63. VFS: Mounted root (ext4 filesystem) readonly on device 98:0.
  64. Virtual console 7 assigned device '/dev/pts/7'
  65. init: ureadahead main process (218) terminated with status 5
  66. Virtual console 1 assigned device '/dev/pts/8'
  67. Virtual console 2 assigned device '/dev/pts/9'
  68. Virtual console 3 assigned device '/dev/pts/10'
  69. Virtual console 4 assigned device '/dev/pts/11'
  70. Virtual console 5 assigned device '/dev/pts/12'
  71. Virtual console 6 assigned device '/dev/pts/13'
  72. Virtual console 8 assigned device '/dev/pts/14'
  73. Virtual console 9 assigned device '/dev/pts/15'
  74. Virtual console 10 assigned device '/dev/pts/16'
  75. Virtual console 11 assigned device '/dev/pts/17'
  76. Virtual console 12 assigned device '/dev/pts/18'
  77. init: console-setup main process (238) terminated with status 1
  78. udevd[247]: failed to create queue file: No such file or directory

  79. udevd[247]: error creating queue file

  80. init: udev main process (247) terminated with status 1
  81. init: udev main process ended, respawning
  82. init: udevmonitor main process (250) terminated with status 2
  83. udevadm[420]: error sending message: Connection refused

  84. line_ioctl: tty7: unknown ioctl: 0x4b70
  85. line_ioctl: tty7: unknown ioctl: 0x5602
  86. line_ioctl: tty7: unknown ioctl: 0x5603
  87. line_ioctl: tty7: unknown ioctl: 0x4b3a
  88. line_ioctl: tty7: unknown ioctl: 0x5606
  89. line_ioctl: tty1: unknown ioctl: 0x4b3a
  90. mountall: Disconnected from Plymouth
  91. init: plymouth main process (219) killed by SEGV signal
  92. init: plymouth-splash main process (421) terminated with status 2
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP