Re: Questions about User Mode Linux
michi: Thank you. 2011/10/12 mic...@michaelblizek.twilightparadox.com: Hi! On 19:15 Wed 12 Oct , jiangtao.jit wrote: Hi: Need help with UML issue 1.is User Mode Linux still supported? I think so 2.where can I find the latest Docs and guidelines? I usually refer to http://user-mode-linux.sourceforge.net/old/index.html . It probably is not really the latest version, but it has been good enough for me so far. 3.compile error? on kernel version 2.6.39 gcc 4.1.2 I compile with: make ARCH=um linux errors ocurred /usr/bin/ld:arch/um/kernel/vmlinux.lds:237: syntax error collect2: ld returned 1 exit status KSYM .tmp_kallsyms1.S nm: '.tmp_vmlinux1': No such file No valid symbol. make: *** [.tmp_kallsyms1.S] Error 1 1) gcc 4.1.2 looks very old. Even my debian stable here already has 4.4.5. 2) I use the command ARCH=um make linux. It will probably not make any difference, but ... 3) Sometimes UML is a real pain. When I upgrade my testing kernel, I usually have to spend some time searching the internet for fixes. I do not remember this error, tough. You can find my current (3.0) kernel at http://repo.or.cz/w/cor.git , if you are interested. -Michi -- programing a layer 3+4 network protocol for mesh networks see http://michaelblizek.twilightparadox.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Questions about User Mode Linux
Hi! After migrating from i386 to x86_64, my uml started to segfault in weird ways. In the end, I figured that make clean/mrproper/distclean does not really clean up properly. I had to use ARCH=um make distclean. The command make distclean did not remove these files: arch/um/include/shared/kern_constants.h arch/um/include/shared/user_constants.h arch/um/kernel/config.c arch/um/kernel/config.tmp arch/um/kernel/vmlinux.lds arch/um/sys-x86_64/vdso/vdso.lds arch/um/sys-x86_64/vdso/vdso.so arch/um/sys-x86_64/vdso/vdso.so.dbg arch/um/sys-x86_64/vdso/vdso-syms.lds Why is this the case? -Michi ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Questions about User Mode Linux
Hi! On 20:47 Thu 13 Oct , Richard Weinberger wrote: Am 13.10.2011 20:10, schrieb mic...@michaelblizek.twilightparadox.com: After migrating from i386 to x86_64, my uml started to segfault in weird ways. What exactly is the problem? Without any details nobody can and will help you. I have attached the trace below, if you are interested. It happened during/after /sbin/init was executed. Version is f2c0d0266cc5eb36a4aa44944b4096ec121490aa of linus'es git tree. However, everything is running now. It was caused by uncleaned files. I am just reporting, because this was suprising to me. In the end, I figured that make clean/mrproper/distclean does not really clean up properly. I had to use ARCH=um make distclean. The command make distclean did not remove these files: arch/um/include/shared/kern_constants.h arch/um/include/shared/user_constants.h arch/um/kernel/config.c arch/um/kernel/config.tmp arch/um/kernel/vmlinux.lds arch/um/sys-x86_64/vdso/vdso.lds arch/um/sys-x86_64/vdso/vdso.so arch/um/sys-x86_64/vdso/vdso.so.dbg arch/um/sys-x86_64/vdso/vdso-syms.lds make clean ARCH=um works fine on my system. Yes, the point is ARCH=um. I do not really understand why it is needed for clean operations? trace: $ gdb --args ./linux ubda=root.img Core dump limits : soft - 0 hard - NONE Checking that ptrace can change system call numbers...OK Checking syscall emulation patch for ptrace...OK Checking advanced syscall emulation patch for ptrace...OK Checking for tmpfs mount on /dev/shm...nothing mounted on /dev/shm Checking PROT_EXEC mmap in /tmp/...OK Checking for the skas3 patch in the host: - /proc/mm...not found: No such file or directory - PTRACE_FAULTINFO...not found - PTRACE_LDT...not found UML running in SKAS0 mode Adding 22114304 bytes to physical memory to account for exec-shield gap Initializing cgroup subsys cpu Linux version 3.1.0-rc1-106673-g7208f79-dirty (michi@grml) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1570 Thu Oct 13 18:43:52 CEST 2011 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 13405 Kernel command line: ubda=root.img root=98:0 PID hash table entries: 256 (order: -1, 2048 bytes) Dentry cache hash table entries: 8192 (order: 4, 65536 bytes) Inode-cache hash table entries: 4096 (order: 3, 32768 bytes) Memory: 27880k available NR_IRQS:15 | Locking API testsuite: | spin |wlock |rlock |mutex | wsem | rsem | -- A-A deadlock:failed|failed| ok |failed|failed|failed| A-B-B-A deadlock:failed|failed| ok |failed|failed|failed| A-B-B-C-C-A deadlock:failed|failed| ok |failed|failed|failed| A-B-C-A-B-C deadlock:failed|failed| ok |failed|failed|failed| A-B-B-C-C-D-D-A deadlock:failed|failed| ok |failed|failed|failed| A-B-C-D-B-D-D-A deadlock:failed|failed| ok |failed|failed|failed| A-B-C-D-B-C-D-A deadlock:failed|failed| ok |failed|failed|failed| double unlock:failed|failed|failed| ok |failed|failed| initialize held:failed|failed|failed|failed|failed|failed| bad unlock order: ok | ok | ok | ok | ok | ok | -- recursive read-lock: | ok | |failed| recursive read-lock #2: | ok | |failed| mixed read-write-lock: |failed| |failed| mixed write-read-lock: |failed| |failed| -- hard-irqs-on + irq-safe-A/12:failed|failed| ok | soft-irqs-on + irq-safe-A/12:failed|failed| ok | hard-irqs-on + irq-safe-A/21:failed|failed| ok | soft-irqs-on + irq-safe-A/21:failed|failed| ok | sirq-safe-A = hirqs-on/12:failed|failed| ok | sirq-safe-A = hirqs-on/21:failed|failed| ok | hard-safe-A + irqs-on/12:failed|failed| ok | soft-safe-A + irqs-on/12:failed|failed| ok | hard-safe-A + irqs-on/21:failed|failed| ok | soft-safe-A + irqs-on/21:failed|failed| ok | hard-safe-A + unsafe-B #1/123:failed|failed| ok | soft-safe-A + unsafe-B #1/123:failed|failed| ok | hard-safe-A + unsafe-B #1/132:failed|failed| ok | soft-safe-A + unsafe-B #1/132:failed|failed| ok | hard-safe-A + unsafe-B #1/213:failed|failed| ok | soft-safe-A + unsafe-B #1/213:failed|failed| ok | hard-safe-A + unsafe-B #1/231:failed|failed| ok | soft-safe-A + unsafe-B #1/231:failed|failed| ok | hard-safe-A + unsafe-B #1/312:failed|failed| ok | soft-safe-A + unsafe-B #1/312:failed|failed| ok |
Re: Questions about User Mode Linux
Hi! On 19:15 Wed 12 Oct , jiangtao.jit wrote: Hi: Need help with UML issue 1.is User Mode Linux still supported? I think so 2.where can I find the latest Docs and guidelines? I usually refer to http://user-mode-linux.sourceforge.net/old/index.html . It probably is not really the latest version, but it has been good enough for me so far. 3.compile error? on kernel version 2.6.39 gcc 4.1.2 I compile with: make ARCH=um linux errors ocurred /usr/bin/ld:arch/um/kernel/vmlinux.lds:237: syntax error collect2: ld returned 1 exit status KSYM.tmp_kallsyms1.S nm: '.tmp_vmlinux1': No such file No valid symbol. make: *** [.tmp_kallsyms1.S] Error 1 1) gcc 4.1.2 looks very old. Even my debian stable here already has 4.4.5. 2) I use the command ARCH=um make linux. It will probably not make any difference, but ... 3) Sometimes UML is a real pain. When I upgrade my testing kernel, I usually have to spend some time searching the internet for fixes. I do not remember this error, tough. You can find my current (3.0) kernel at http://repo.or.cz/w/cor.git , if you are interested. -Michi -- programing a layer 3+4 network protocol for mesh networks see http://michaelblizek.twilightparadox.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Questions about User Mode Linux
Hi! On 17:25 Wed 12 Oct , mic...@michaelblizek.twilightparadox.com wrote: ... 3) Sometimes UML is a real pain. When I upgrade my testing kernel, I usually have to spend some time searching the internet for fixes. I do not remember this error, tough. You can find my current (3.0) kernel at http://repo.or.cz/w/cor.git , if you are interested. Oh, no. After migrating to 64bit my UML is broken again... -Michi -- programing a layer 3+4 network protocol for mesh networks see http://michaelblizek.twilightparadox.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies