From: <shu...@ne...> - 2002-05-22 14:21:11
|
Chandan, When I try to compile UML/WIN32 according to the instruction in page http://toad.net/~chandan/umlwin32/download.html, but I get the following error message. Did you have this problem ? After I checked the make file and I found it is because a command "rev" cannot be found. $ make linux ARCH=um gcc -D__WIN32__ -D__KERNEL__ -I/usr/src/umlwin32/include -Wall -Wstrict-prototyp es -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -g -U__i386__ -Ui386 -D UM_FASTCALL -D__arch_um__ -DSUBARCH=\"i386\" -DNESTING=0 -D_LARGEFILE64_SOURCE - I/usr/src/umlwin32/arch/um/include -Derrno=kernel_errno -DKBUILD_BASENAME=main -c -o init/main.o init/main.c init/main.c: In function `calibrate_delay': init/main.c:358: warning: unused variable `lps_precision' init/main.c:357: warning: unused variable `loopbit' init/main.c:357: warning: unused variable `ticks' init/main.c: In function `start_kernel': init/main.c:580: warning: assignment from incompatible pointer type . scripts/mkversion > .tmpversion gcc -D__WIN32__ -D__KERNEL__ -I/usr/src/umlwin32/include -Wall -Wstrict-prototyp es -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -g -U__i386__ -Ui386 -D UM_FASTCALL -D__arch_um__ -DSUBARCH=\"i386\" -DNESTING=0 -D_LARGEFILE64_SOURCE - I/usr/src/umlwin32/arch/um/include -Derrno=kernel_errno -DUTS_MACHINE='"um"' -D KBUILD_BASENAME=version -c -o init/version.o init/version.c make CFLAGS="-D__WIN32__ -D__KERNEL__ -I/usr/src/umlwin32/include -Wall -Wstrict -prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -g -U__i386__ -Ui386 -DUM_FASTCALL -D__arch_um__ -DSUBARCH=\"i386\" -DNESTING=0 -D_LARGEFILE64 _SOURCE -I/usr/src/umlwin32/arch/um/include -Derrno=kernel_errno " -C kernel make[1]: Entering directory `/usr/src/umlwin32/kernel' make all_targets make[2]: rev: Command not found make[2]: Entering directory `/usr/src/umlwin32/kernel' rm -f kernel.o ld -r -o kernel.o ld: no input files make[2]: *** [kernel.o] Error 1 make[2]: Leaving directory `/usr/src/umlwin32/kernel' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/umlwin32/kernel' make: *** [_dir_kernel] Error 2 Roger Chandan Kudige <ch...@to...> wrote: >The intent is to make UML/Win32, a native linux environment under windows >without using emulators or virtual machines. This means we will be able to >mount a standard ext2 filesystem (and other native linux fs), execute >native linux binaries etc. Infact ultimately I would like to be able to >install UML/Win32 from a standard distro (say Redhat), and have the entire >linux environment running on top of windows. It would have same features >as UML on linux for accessing the host resources (networking, devices >etc). > >All that being said, we need to keep in mind that there are lot of >limitations on a Win32 platform which might make this seamless >transparency a little more difficult. At this point, it looks like most of >the limitations can be overcome by a kernel-level driver in the worst case. >For example, in the current development version I needed to rebuild the >binaries with different section alignment due to windows mem-mapping >shortcomings. However there have been a lot of pointers from many people >on this mailing list outlining how this can be overcome. > >Moving along a bit further on this project, I think we will be in a >position to figure out which limitations are show-stoppers. > >-Chandan > >On Tue, 21 May 2002, Roger Ye wrote: > >> What kind of binary that can be loaded under UML/Win32 ? Is it native >Linux apps ? I think they should be native Linux apps under this >environment. I can think it is very useful, if I can run native Linux apps >and mount to a ext2 file system. I can use both Linux and Windows >environment at the same time. When I want to try some Linux stuff, I don't >need to keep rebooting my machine. I can do cross compilation on Windows >environment, but using a real Linux environment. I won't suffer from the >performance problem, because Linux kernel is just something like a Windows >NT service. It is definitely lighter than an Oracle database server. >> >> Roger >> >> Chandan Kudige <ch...@to...> wrote: >> >> >> Does anybody want to lead the development effort of this project ? We >> > >> >I would like to volunteer for this. >> > >> >> may use sourceforge to host the project, so many people can join the >> >> development. >> > >> >That would be great! >> >I have created a basic site for this at http://toad.net/~chandan/umlwin32 >> >but I am already running out of space here. It would be nice if we can >> >move over to sourceforge.net >> > >> >Cheers, >> >Chandan >> > >> >> >> >> Roger >> >> >> >> Henrik Nordstrom <hn...@ma...> wrote: >> >> >> >> >From my understanding these are just kernel-level entrypoints to >> >> >their corresponding executive services/calls. >> >> > >> >> >Meaning, for each ZwXXX there should be a corresponding userspace >> >> >executive service/call. These are exported by ntdll.dll. >> >> > >> >> >Quote from MSDN: >> >> >The ZwXxx routines provide a set of system entry points parallel to >> >> >some of the executive's system services. A call to a ZwXxx routine >> >> >from kernel-mode code results in a call to the corresponding system >> >> >service. >> >> > >> >> >Now, as Microsoft do not document the executive services, only the >> >> >public WIN32 calls and the kernel-mode DDK calls, one has to rely on >> >> >the ZwXXX documentation for the actual powers of these executive >> >> >services. The interface should be the same when called from >> >> >user-space as when called from kernel-space. >> >> > >> >> >See also http://www.sysinternals.com/ntw2k/info/ntdll.shtml for more >> >> >information. >> >> > >> >> >Regards >> >> >Henrik >> >> > >> >> > >> >> >On Monday 20 May 2002 18:29, Dan Aloni wrote: >> >> >> On Sat, May 18, 2002 at 11:21:18PM -0500, Jeff Dike wrote: >> >> >> > ch...@to... said: >> >> >> > > I have put up the patches for the current UML win32 at: http:// >> >> >> > > toad.net/~chandan/umlwin32/ >> >> >> >> >> >> [snip] >> >> >> >> >> >> > It is apparently possible to mmap on page boundaries on Windows. >> >> >> > See http://www.geocrawler.com/archives/3/709/2001/9/0/6662706/ >> >> >> > and http://www.geocrawler.com/archives/3/709/2001/9/0/6664156/ >> >> >> >> >> >> According to my understanding (and some documents in MSDN), the >> >> >> function mentioned in the post above (ZwMapViewOfSection) is an NT >> >> >> kernel function. >> >> >> >> >> >> Can it be called from userspace somehow? If not, UML-Win32 needs to >> >> >> have a NT kernel support driver or something like that. >> >> >> >> >> >> And it's not just about simple memory mapping. Digging a bit more >> >> >> about this set of functions (Zw*), shows that with these it is >> >> >> possible to attach the same "section" of memory in different >> >> >> processes, and allow child processes to inherit them. Maybe this >> >> >> can be used to easily implement fork() on NT. These memory sections >> >> >> remind me of vm_area_struct's in Linux. >> >> > >> >> >_______________________________________________________________ >> >> > >> >> >Don't miss the 2002 Sprint PCS Application Developer's Conference >> >> >August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm >> >> > >> >> >_______________________________________________ >> >> >User-mode-linux-devel mailing list >> >> >Use...@li... >> >> >https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel >> >> > >> >> >> >> >> >> __________________________________________________________________ >> >> Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ >> >> >> >> Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ >> >> >> >> >> >> _______________________________________________________________ >> >> >> >> Don't miss the 2002 Sprint PCS Application Developer's Conference >> >> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm >> >> >> >> _______________________________________________ >> >> User-mode-linux-devel mailing list >> >> Use...@li... >> >> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel >> >> >> > >> > >> >_______________________________________________________________ >> > >> >Don't miss the 2002 Sprint PCS Application Developer's Conference >> >August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm >> > >> >_______________________________________________ >> >User-mode-linux-devel mailing list >> >Use...@li... >> >https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel >> > >> >> >> __________________________________________________________________ >> Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ >> >> Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ >> >> >> _______________________________________________________________ >> >> Don't miss the 2002 Sprint PCS Application Developer's Conference >> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm >> >> _______________________________________________ >> User-mode-linux-devel mailing list >> Use...@li... >> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel >> > > __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ |
From: Adrian P. <ad...@po...> - 2002-05-22 15:08:01
|
>>>>> "Roger" == Roger Ye <shu...@ne...> writes: Roger> Chandan, When I try to compile UML/WIN32 according to the Roger> instruction in page Roger> http://toad.net/~chandan/umlwin32/download.html, but I get Roger> the following error message. Did you have this problem ? Roger> After I checked the make file and I found it is because a Roger> command "rev" cannot be found. rev - reverse lines of a file On my Debian machine its in util-linux. Sincerely, Adrian Phillips -- Your mouse has moved. Windows NT must be restarted for the change to take effect. Reboot now? [OK] |
From: Chandan K. <ch...@to...> - 2002-05-22 16:13:26
Attachments:
rev
|
Oops, I forgot all about this little utility ... I am attaching the rev bash script that I wrote which should be in the path. And, no its not the standard rev which reverses the lines, but rather reverses the order of the objfiles to be linked. This is because on cygwin, for some bizzaire reason, object files are processed in the reverse order, and specifically the initcalls get called in the wrong order. Please make sure that this 'rev' is in the search path before the standard rev (I was not aware of the standard rev utility). Chandan On 22 May 2002, Adrian Phillips wrote: > >>>>> "Roger" == Roger Ye <shu...@ne...> writes: > > Roger> Chandan, When I try to compile UML/WIN32 according to the > Roger> instruction in page > Roger> http://toad.net/~chandan/umlwin32/download.html, but I get > Roger> the following error message. Did you have this problem ? > Roger> After I checked the make file and I found it is because a > Roger> command "rev" cannot be found. > > rev - reverse lines of a file > > On my Debian machine its in util-linux. > > Sincerely, > > Adrian Phillips > > -- > Your mouse has moved. > Windows NT must be restarted for the change to take effect. > Reboot now? [OK] > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > User-mode-linux-devel mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel > |
From: Matt Z. <md...@de...> - 2002-05-22 16:24:33
|
On Wed, May 22, 2002 at 12:13:17PM -0400, Chandan Kudige wrote: > This is because on cygwin, for some bizzaire reason, object files are > processed in the reverse order, and specifically the initcalls get called > in the wrong order. > > Please make sure that this 'rev' is in the search path before the standard > rev (I was not aware of the standard rev utility). It would be wise to name this utility differently, to prevent confusion with the BSD rev utility. -- - mdz |
From: Chandan K. <ch...@to...> - 2002-05-23 04:48:30
|
The Makefile should work fine without the 'rev' since I have commented out the troublesome nbd device driver. Apply this patch to Rules.mk at the toplevel and you should be able to build it alright. --- Rules.make.old Thu May 23 00:39:17 2002 +++ Rules.make Wed May 22 23:32:05 2002 @@ -95,7 +95,7 @@ $(O_TARGET): $(obj-y) rm -f $@ ifneq "$(strip $(obj-y))" "" - $(LD) $(EXTRA_LDFLAGS) -r -o $@ $(shell rev $(filter $(obj-y), $^)) + $(LD) $(EXTRA_LDFLAGS) -r -o $@ $(filter $(obj-y), $^) else $(AR) rcs $@ endif On Wed, 22 May 2002, Matt Zimmerman wrote: > On Wed, May 22, 2002 at 12:13:17PM -0400, Chandan Kudige wrote: > > > This is because on cygwin, for some bizzaire reason, object files are > > processed in the reverse order, and specifically the initcalls get called > > in the wrong order. > > > > Please make sure that this 'rev' is in the search path before the standard > > rev (I was not aware of the standard rev utility). > > It would be wise to name this utility differently, to prevent confusion with > the BSD rev utility. > > -- > - mdz > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > User-mode-linux-devel mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel > |