From: <ua...@al...> - 2000-05-23 10:35:05
|
First of all thanks Jeff for your reply The problem about missing "asm/arch/*.h" was becuase I was trying to build the kernel with "make vmlinux", building it with "make linux" worked Ok... but I still have some problems, I hope this time I include enough info arch = i386 host kernel = 2.2.99-pre98 & 2.2.15 uml kernel = 2.2.99-pre98 when I execute "./linux" it keeps heating nearly all CPU, there is no printk output at all I include all strace output but first take a look at last few lines: 862 execve("./linux", ["./linux"], [/* 29 vars */]) = 0 862 fcntl(0, F_GETFD) = 0 862 fcntl(1, F_GETFD) = 0 862 fcntl(2, F_GETFD) = 0 862 personality(PER_LINUX) = 0 862 geteuid() = 1000 862 getuid() = 1000 862 getegid() = 1000 862 getgid() = 1000 862 brk(0) = 0x101bbf6c 862 brk(0x101bbf8c) = 0x101bbf8c 862 brk(0x101bc000) = 0x101bc000 862 brk(0x101bd000) = 0x101bd000 862 getpid() = 862 862 execve("./linux", ["./linux", " "...], [/* 29 vars */]) = 0 862 fcntl(0, F_GETFD) = 0 862 fcntl(1, F_GETFD) = 0 862 fcntl(2, F_GETFD) = 0 862 personality(PER_LINUX) = 0 862 geteuid() = 1000 862 getuid() = 1000 862 getegid() = 1000 862 getgid() = 1000 862 brk(0) = 0x101bbf6c 862 brk(0x101bbf8c) = 0x101bbf8c 862 brk(0x101bc000) = 0x101bc000 862 brk(0x101bd000) = 0x101bd000 862 getpid() = 862 862 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0 862 getitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}) = 0 862 ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0 862 getpid() = 862 862 open("/proc/862/maps", O_RDONLY) = 4 862 read(4, "10000000-100dc000 r-xp 00000000 "..., 38) = 38 862 read(4, "6", 1) = 1 862 read(4, "1", 1) = 1 862 read(4, "0", 1) = 1 862 read(4, "5", 1) = 1 862 read(4, "5", 1) = 1 862 read(4, "9", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "h", 1) = 1 862 read(4, "o", 1) = 1 862 read(4, "m", 1) = 1 862 read(4, "e", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "u", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "i", 1) = 1 862 read(4, "s", 1) = 1 862 read(4, "s", 1) = 1 862 read(4, "e", 1) = 1 862 read(4, "s", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "d", 1) = 1 862 read(4, "a", 1) = 1 862 read(4, "t", 1) = 1 862 read(4, "a", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "u", 1) = 1 862 read(4, "m", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "i", 1) = 1 862 read(4, "n", 1) = 1 862 read(4, "u", 1) = 1 862 read(4, "x", 1) = 1 862 read(4, "\n", 1) = 1 862 read(4, "100dc000-10186000 rw-p 000db000 "..., 38) = 38 862 read(4, "6", 1) = 1 862 read(4, "1", 1) = 1 862 read(4, "0", 1) = 1 862 read(4, "5", 1) = 1 862 read(4, "5", 1) = 1 862 read(4, "9", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "h", 1) = 1 862 read(4, "o", 1) = 1 862 read(4, "m", 1) = 1 862 read(4, "e", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "u", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "i", 1) = 1 862 read(4, "s", 1) = 1 862 read(4, "s", 1) = 1 862 read(4, "e", 1) = 1 862 read(4, "s", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "d", 1) = 1 862 read(4, "a", 1) = 1 862 read(4, "t", 1) = 1 862 read(4, "a", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "u", 1) = 1 862 read(4, "m", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "i", 1) = 1 862 read(4, "n", 1) = 1 862 read(4, "u", 1) = 1 862 read(4, "x", 1) = 1 862 read(4, "\n", 1) = 1 862 open("vm_file", O_RDWR|O_CREAT|O_EXCL, 0777) = 5 862 unlink("vm_file") = 0 862 lseek(5, 696320, SEEK_SET) = 696320 862 write(5, "\0", 1) = 1 862 old_mmap(NULL, 696320, PROT_READ|PROT_WRITE, MAP_SHARED, 5, 0) = 0x40000000 862 munmap(0x100dc000, 696320) = 0 862 old_mmap(0x100dc000, 696320, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_FIXED, 5, 0) = 0x100dc000 862 munmap(0x40000000, 696320) = 0 862 close(4) = 0 862 getpid() = 862 862 open("/proc/862/maps", O_RDONLY) = 4 862 read(4, "10000000-100dc000 r-xp 00000000 "..., 38) = 38 862 read(4, "6", 1) = 1 862 read(4, "1", 1) = 1 862 read(4, "0", 1) = 1 862 read(4, "5", 1) = 1 862 read(4, "5", 1) = 1 862 read(4, "9", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "h", 1) = 1 862 read(4, "o", 1) = 1 862 read(4, "m", 1) = 1 862 read(4, "e", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "u", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "i", 1) = 1 862 read(4, "s", 1) = 1 862 read(4, "s", 1) = 1 862 read(4, "e", 1) = 1 862 read(4, "s", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "d", 1) = 1 862 read(4, "a", 1) = 1 862 read(4, "t", 1) = 1 862 read(4, "a", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "u", 1) = 1 862 read(4, "m", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "i", 1) = 1 862 read(4, "n", 1) = 1 862 read(4, "u", 1) = 1 862 read(4, "x", 1) = 1 862 read(4, "\n", 1) = 1 862 read(4, "100dc000-10186000 rw-s 00000000 "..., 38) = 38 862 read(4, "1", 1) = 1 862 read(4, "7", 1) = 1 862 read(4, "5", 1) = 1 862 read(4, "3", 1) = 1 862 read(4, "0", 1) = 1 862 read(4, "9", 1) = 1 862 read(4, "8", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "h", 1) = 1 862 read(4, "o", 1) = 1 862 read(4, "m", 1) = 1 862 read(4, "e", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "u", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "i", 1) = 1 862 read(4, "s", 1) = 1 862 read(4, "s", 1) = 1 862 read(4, "e", 1) = 1 862 read(4, "s", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "d", 1) = 1 862 read(4, "a", 1) = 1 862 read(4, "t", 1) = 1 862 read(4, "a", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "u", 1) = 1 862 read(4, "m", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "/", 1) = 1 862 read(4, "v", 1) = 1 862 read(4, "m", 1) = 1 862 read(4, "_", 1) = 1 862 read(4, "f", 1) = 1 862 read(4, "i", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "e", 1) = 1 862 read(4, " ", 1) = 1 862 read(4, "(", 1) = 1 862 read(4, "d", 1) = 1 862 read(4, "e", 1) = 1 862 read(4, "l", 1) = 1 862 read(4, "e", 1) = 1 862 read(4, "t", 1) = 1 862 read(4, "e", 1) = 1 862 read(4, "d", 1) = 1 862 read(4, ")", 1) = 1 862 read(4, "\n", 1) = 1 862 read(4, "10186000-101bd000 rwxp 00000000 "..., 38) = 38 862 read(4, "0", 1) = 1 862 read(4, "\n", 1) = 1 862 open("vm_file", O_RDWR|O_CREAT|O_EXCL, 0777) = 6 862 unlink("vm_file") = 0 862 lseek(6, 221184, SEEK_SET) = 221184 862 write(6, "\0", 1) = 1 862 old_mmap(NULL, 221184, PROT_READ|PROT_WRITE, MAP_SHARED, 6, 0) = 0x40000000 862 munmap(0x10186000, 221184) = 0 862 old_mmap(0x10186000, 221184, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_SHARED|MAP_FIXED, 6, 0) = 0x10186000 862 munmap(0x40000000, 221184) = 0 862 close(4) = 0 862 old_mmap(0x40000000, 536870912, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40000000 862 getpid() = 862 862 munmap(0x40000000, 536870912) = 0 862 old_mmap(0x50000000, 41943040, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x50000000 862 munmap(0x50000000, 41943040) = 0 862 open("vm_file", O_RDWR|O_CREAT|O_EXCL, 0777) = 4 862 unlink("vm_file") = 0 862 lseek(4, 16777216, SEEK_SET) = 16777216 862 write(4, "\0", 1) = 1 862 old_mmap(0x50000000, 16777216, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_FIXED, 4, 0) = 0x50000000 862 fstat(4, {st_mode=S_IFREG|0775, st_size=16777217, ...}) = 0 862 mprotect(0x100de000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 862 mprotect(0x50001000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 862 pipe([7, 8]) = 0 fn=0x411, child_stack=0x50001ff4, flags=0x7, args=0x1000000862 clone() = 864 862 rt_sigaction(SIGIO, {0x10087634, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 862 select(9, [7], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted) ^^^^^^ Please note the these arguments... is it correct? <-- Here I press Control-C 862 --- SIGINT (Interrupt) --- 862 +++ killed by SIGINT +++ what it's happening here? I've tried with several kernel with diferent config options (devfs on/on and debugging on/off), with host kernel 2.2.15 and 2.3.99-pre8 I also tried running it by passing ubd0=root_fs, but as I said before __it doesn't show any printk__ Thanks in advance Ulisses Debian/GNU Linux: a dream come true ----------------------------------------------------------------------------- "Computers are useless. They can only give answers." Pablo Picasso ---> Visita http://www.valux.org/ para saber acerca de la <--- ---> Asociación Valenciana de Usuarios de Linux <--- |