* [uml-devel] building from source @ 2004-09-29 23:47 atanugul 2004-10-01 19:25 ` BlaisorBlade 0 siblings, 1 reply; 4+ messages in thread From: atanugul @ 2004-09-29 23:47 UTC (permalink / raw) To: user-mode-linux-devel; +Cc: user-mode-linux-user Hi! I tried building a uml kernel from source.I have a debian 2.6.6 kernel on my system. I downloaded a 2.4.26 kernel and a matching uml patch (uml-patch-2.4.26-1.bz2) for it.I followed the steps specified in the user-mode-linux. Everything went well till step 5. When I did `make linux ARCH=um' I got the following error messages: make -C arch/um/sys-i386/util mk_sc make[1]: Entering directory `/build/kernel-source-2.4.26/arch/um/sys-i386/util'gcc -c mk_sc.c gcc -o mk_sc mk_sc.o make[1]: Leaving directory `/build/kernel-source-2.4.26/arch/um/sys-i386/util'make -C arch/um/kernel/skas include/skas_ptregs.h make[1]: Entering directory `/build/kernel-source-2.4.26/arch/um/kernel/skas' make -C util make[2]: Entering directory `/build/kernel-source-2.4.26/arch/um/kernel/skas/util'gcc -c mk_ptregs.c gcc -o mk_ptregs mk_ptregs.o make[2]: Leaving directory `/build/kernel-source-2.4.26/arch/um/kernel/skas/util'util/mk_ptregs > include/skas_ptregs.h make[1]: Leaving directory `/build/kernel-source-2.4.26/arch/um/kernel/skas' arch/um/sys-i386/util/mk_sc > arch/um/include/sysdep-i386/sc.h make -C arch/um/sys-i386/util mk_thread make[1]: Entering directory `/build/kernel-source-2.4.26/arch/um/sys-i386/util'gcc -c mk_thread_user.c gcc -D__KERNEL__ -I/build/kernel-source-2.4.26/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -U__i386__ -Ui386 -fprofile-arcs -ftest-coverage -g -D__arch_um__ -DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE -I/build/kernel-source-2.4.26/arch/um/include -Derrno=kernel_errno -I/build/kernel-source-2.4.26/arch/um/kernel/tt/include -I/build/kernel-source-2.4.26/arch/um/kernel/skas/include -c mk_thread_kern.cIn file included from mk_thread_kern.c:3: /build/kernel-source-2.4.26/include/linux/sched.h:366: error: `CONFIG_NR_CPUS' undeclared here (not in a function)/build/kernel-source-2.4.26/include/linux/sched.h:366: error: `CONFIG_NR_CPUS' undeclared here (not in a function)/build/kernel-source-2.4.26/include/linux/sched.h:528: error: `CONFIG_NR_CPUS' undeclared here (not in a function)make[1]: *** [mk_thread_kern.o] Error 1 make[1]: Leaving directory `/build/kernel-source-2.4.26/arch/um/sys-i386/util'make: *** [arch/um/sys-i386/util/mk_thread] Error 2 Can anyone tell me what i should do? Thanks, Ashwin. ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] building from source 2004-09-29 23:47 [uml-devel] building from source atanugul @ 2004-10-01 19:25 ` BlaisorBlade 2004-10-08 0:34 ` atanugul 0 siblings, 1 reply; 4+ messages in thread From: BlaisorBlade @ 2004-10-01 19:25 UTC (permalink / raw) To: user-mode-linux-devel; +Cc: atanugul, user-mode-linux-user On Thursday 30 September 2004 01:47, atanugul@csee.wvu.edu wrote: > Hi! > I tried building a uml kernel from source.I have a debian 2.6.6 kernel on > my system. I downloaded a 2.4.26 kernel and a matching uml patch > (uml-patch-2.4.26-1.bz2) for it.I followed the steps specified in the > user-mode-linux. You should use either 2.4.26-3 on a 2.4.26 vanilla kernel or 2.4.24-1 on a 2.4.24 vanilla kernel. All the releases between those two have various problems. In fact, the 2.4.26-3um patch fixes exactly this problem (which happens because you enabled CONFIG_SMP). Bye > Everything went well till step 5. When I did `make linux > ARCH=um' I got the following error messages: > gcc -D__KERNEL__ -I/build/kernel-source-2.4.26/include -Wall > -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 > -U__i386__ -Ui386 -fprofile-arcs -ftest-coverage -g -D__arch_um__ > -DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE > -I/build/kernel-source-2.4.26/arch/um/include -Derrno=kernel_errno > -I/build/kernel-source-2.4.26/arch/um/kernel/tt/include > -I/build/kernel-source-2.4.26/arch/um/kernel/skas/include -c > mk_thread_kern.cIn file included from mk_thread_kern.c:3: > /build/kernel-source-2.4.26/include/linux/sched.h:366: error: > `CONFIG_NR_CPUS' undeclared here (not in a > function)/build/kernel-source-2.4.26/include/linux/sched.h:366: error: > `CONFIG_NR_CPUS' undeclared here (not in a > function)/build/kernel-source-2.4.26/include/linux/sched.h:528: error: > `CONFIG_NR_CPUS' undeclared here (not in a function)make[1]: *** > [mk_thread_kern.o] Error 1 make[1]: Leaving directory > `/build/kernel-source-2.4.26/arch/um/sys-i386/util'make: *** > [arch/um/sys-i386/util/mk_thread] Error 2 > Can anyone tell me what i should do? -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] building from source 2004-10-01 19:25 ` BlaisorBlade @ 2004-10-08 0:34 ` atanugul 2004-10-08 9:40 ` BlaisorBlade 0 siblings, 1 reply; 4+ messages in thread From: atanugul @ 2004-10-08 0:34 UTC (permalink / raw) To: blaisorblade_spam; +Cc: user-mode-linux-devel, atanugul, user-mode-linux-user Hi! Building from source worked fine. Thanks for your help, but i am having a problem with my uml.when i tried running it i got the follwing errors. How can i make ti run? Debian:~# linux ubd0=/uml/root_fs_debian2.2_small Checking for the skas3 patch in the host...not found Checking for /proc/mm...not found tracing thread pid = 3037 Checking for /dev/anon on the host...Not available (open failed with errno 2) Checking for /dev/anon on the host...Not available (open failed with errno 2) Checking for /dev/anon on the host...Not available (open failed with errno 2) Checking for /dev/anon on the host...Not available (open failed with errno 2) Linux version 2.4.26-2um (root@mizar) (gcc version 3.3.4 (Debian 1:3.3.4-3)) #2 Fri Jul 16 17:51:17 PDT 2004On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: ubd0=/uml/root_fs_debian2.2_small root=/dev/ubd0 Calibrating delay loop... 3335.78 BogoMIPS Memory: 28148k available Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) Inode cache hash table entries: 2048 (order: 2, 16384 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Checking for host processor cmov support...Yes Checking for host processor xmm support...No Checking that ptrace can change system call numbers...OK Checking that host ptys support output SIGIO...Yes Checking that host ptys support SIGIO on close...No, enabling workaround POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd VFS: Disk quotas vdquot_6.5.1 Journalled Block Device driver loaded devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x0 SGI XFS with ACLs, no debug enabled SGI XFS Quota Management subsystem Disabling 2.6 AIO in tt mode pty: 256 Unix98 ptys configured RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) Initializing Cryptographic API Initializing software serial port version 1 mconsole (version 2) initialized on /root/.uml/8V6n5Q/mconsole Partition check: ubda: unknown partition table Initializing stdio console driver NET4: Linux TCP/IP 1.0 for NET4.0 how can i make it run? Thanks, Ashwin > On Thursday 30 September 2004 01:47, atanugul@csee.wvu.edu wrote: >> Hi! >> I tried building a uml kernel from source.I have a debian 2.6.6 kernel >> on my system. I downloaded a 2.4.26 kernel and a matching uml patch >> (uml-patch-2.4.26-1.bz2) for it.I followed the steps specified in the >> user-mode-linux. > You should use either 2.4.26-3 on a 2.4.26 vanilla kernel or 2.4.24-1 > on a 2.4.24 vanilla kernel. All the releases between those two have > various problems. In fact, the 2.4.26-3um patch fixes exactly this > problem (which happens because you enabled CONFIG_SMP). > > Bye > >> Everything went well till step 5. When I did `make linux >> ARCH=um' I got the following error messages: > >> gcc -D__KERNEL__ -I/build/kernel-source-2.4.26/include -Wall >> -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common >> -O2 -U__i386__ -Ui386 -fprofile-arcs -ftest-coverage -g -D__arch_um__ >> -DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE >> -I/build/kernel-source-2.4.26/arch/um/include -Derrno=kernel_errno >> -I/build/kernel-source-2.4.26/arch/um/kernel/tt/include >> -I/build/kernel-source-2.4.26/arch/um/kernel/skas/include -c >> mk_thread_kern.cIn file included from mk_thread_kern.c:3: >> /build/kernel-source-2.4.26/include/linux/sched.h:366: error: >> `CONFIG_NR_CPUS' undeclared here (not in a >> function)/build/kernel-source-2.4.26/include/linux/sched.h:366: error: >> `CONFIG_NR_CPUS' undeclared here (not in a >> function)/build/kernel-source-2.4.26/include/linux/sched.h:528: error: >> `CONFIG_NR_CPUS' undeclared here (not in a function)make[1]: *** >> [mk_thread_kern.o] Error 1 make[1]: Leaving directory >> `/build/kernel-source-2.4.26/arch/um/sys-i386/util'make: *** >> [arch/um/sys-i386/util/mk_thread] Error 2 > >> Can anyone tell me what i should do? > > -- > Paolo Giarrusso, aka Blaisorblade > Linux registered user n. 292729 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] building from source 2004-10-08 0:34 ` atanugul @ 2004-10-08 9:40 ` BlaisorBlade 0 siblings, 0 replies; 4+ messages in thread From: BlaisorBlade @ 2004-10-08 9:40 UTC (permalink / raw) To: atanugul; +Cc: user-mode-linux-devel, user-mode-linux-user On Friday 08 October 2004 02:34, atanugul@csee.wvu.edu wrote: > Hi! > Building from source worked fine. Thanks for your help, but i am having a > problem with my uml.when i tried running it i got the follwing errors. How > can i make ti run? The messages you get are fine ... the problem is that the version you used is botched. Use 2.4.26-3 and you'll be fine. Alternatively, IIRC if you redirect stdin and stdout somewhere else it will maybe work (use /dev/zero for stdin). I.e. linux ubd0=/uml/root_fs_debian2.2_small < /dev/zero | tee UmlOutput > Debian:~# linux ubd0=/uml/root_fs_debian2.2_small > Checking for the skas3 patch in the host...not found > Checking for /proc/mm...not found > tracing thread pid = 3037 > Checking for /dev/anon on the host...Not available (open failed with errno > 2) Checking for /dev/anon on the host...Not available (open failed with > errno 2) Checking for /dev/anon on the host...Not available (open failed > with errno 2) Checking for /dev/anon on the host...Not available (open > failed with errno 2) Linux version 2.4.26-2um (root@mizar) (gcc version > 3.3.4 (Debian > 1:3.3.4-3)) #2 Fri Jul 16 17:51:17 PDT 2004On node 0 totalpages: 8192 > zone(0): 8192 pages. > zone(1): 0 pages. > zone(2): 0 pages. > Kernel command line: ubd0=/uml/root_fs_debian2.2_small root=/dev/ubd0 > Calibrating delay loop... 3335.78 BogoMIPS > Memory: 28148k available > Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) > Inode cache hash table entries: 2048 (order: 2, 16384 bytes) > Mount cache hash table entries: 512 (order: 0, 4096 bytes) > Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) > Page-cache hash table entries: 8192 (order: 3, 32768 bytes) > Checking for host processor cmov support...Yes > Checking for host processor xmm support...No > Checking that ptrace can change system call numbers...OK > Checking that host ptys support output SIGIO...Yes > Checking that host ptys support SIGIO on close...No, enabling workaround > POSIX conformance testing by UNIFIX > Linux NET4.0 for Linux 2.4 > Based upon Swansea University Computer Society NET3.039 > Initializing RT netlink socket > Starting kswapd > VFS: Disk quotas vdquot_6.5.1 > Journalled Block Device driver loaded > devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au) > devfs: boot_options: 0x0 > SGI XFS with ACLs, no debug enabled > SGI XFS Quota Management subsystem > Disabling 2.6 AIO in tt mode > pty: 256 Unix98 ptys configured > RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize > loop: loaded (max 8 devices) > Initializing Cryptographic API > Initializing software serial port version 1 > mconsole (version 2) initialized on /root/.uml/8V6n5Q/mconsole > Partition check: > ubda: unknown partition table > Initializing stdio console driver > NET4: Linux TCP/IP 1.0 for NET4.0 > > how can i make it run? > > Thanks, > Ashwin > > > On Thursday 30 September 2004 01:47, atanugul@csee.wvu.edu wrote: > >> Hi! > >> I tried building a uml kernel from source.I have a debian 2.6.6 kernel > >> on my system. I downloaded a 2.4.26 kernel and a matching uml patch > >> (uml-patch-2.4.26-1.bz2) for it.I followed the steps specified in the > >> user-mode-linux. > > > > You should use either 2.4.26-3 on a 2.4.26 vanilla kernel or 2.4.24-1 > > on a 2.4.24 vanilla kernel. All the releases between those two have > > various problems. In fact, the 2.4.26-3um patch fixes exactly this > > problem (which happens because you enabled CONFIG_SMP). > > > > Bye > > > >> Everything went well till step 5. When I did `make linux > >> ARCH=um' I got the following error messages: > >> > >> gcc -D__KERNEL__ -I/build/kernel-source-2.4.26/include -Wall > >> -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common > >> -O2 -U__i386__ -Ui386 -fprofile-arcs -ftest-coverage -g -D__arch_um__ > >> -DSUBARCH=\"i386\" -D_LARGEFILE64_SOURCE > >> -I/build/kernel-source-2.4.26/arch/um/include -Derrno=kernel_errno > >> -I/build/kernel-source-2.4.26/arch/um/kernel/tt/include > >> -I/build/kernel-source-2.4.26/arch/um/kernel/skas/include -c > >> mk_thread_kern.cIn file included from mk_thread_kern.c:3: > >> /build/kernel-source-2.4.26/include/linux/sched.h:366: error: > >> `CONFIG_NR_CPUS' undeclared here (not in a > >> function)/build/kernel-source-2.4.26/include/linux/sched.h:366: error: > >> `CONFIG_NR_CPUS' undeclared here (not in a > >> function)/build/kernel-source-2.4.26/include/linux/sched.h:528: error: > >> `CONFIG_NR_CPUS' undeclared here (not in a function)make[1]: *** > >> [mk_thread_kern.o] Error 1 make[1]: Leaving directory > >> `/build/kernel-source-2.4.26/arch/um/sys-i386/util'make: *** > >> [arch/um/sys-i386/util/mk_thread] Error 2 > >> > >> Can anyone tell me what i should do? > > > > -- > > Paolo Giarrusso, aka Blaisorblade > > Linux registered user n. 292729 -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-08 9:40 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-09-29 23:47 [uml-devel] building from source atanugul 2004-10-01 19:25 ` BlaisorBlade 2004-10-08 0:34 ` atanugul 2004-10-08 9:40 ` BlaisorBlade
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox