Hi. I''m trying to compile Xen 2.0 on a crusoe-powered notebook, but make world seems to fail when making xen, even before building tools or the kernel. This is on a transmeta crusoe 5800 CPU, running Gentoo. Any idea what might be wrong? I have no idea what the error message below means. # make world make clean [snip] __ __ ____ ___ \ \/ /___ _ __ |___ \ / _ \ \ // _ \ ''_ \ __) || | | | / \ __/ | | | / __/ | |_| | /_/\_\___|_| |_| |_____(_)___/ make[3]: Leaving directory `/root/xen/t/xen-2.0/xen'' make -C common make[3]: Entering directory `/root/xen/t/xen-2.0/xen/common'' gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -pipe -I/root/xen/t/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c ac_timer.c -o ac_timer.o gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -pipe -I/root/xen/t/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c dom0_ops.c -o dom0_ops.o dom0_ops.c: In function `do_dom0_op'': /root/xen/t/xen-2.0/xen/include/asm/mm.h:160: error: can''t find a register in class `BREG'' while reloading `asm'' /root/xen/t/xen-2.0/xen/include/asm/mm.h:160: error: can''t find a register in class `BREG'' while reloading `asm'' make[3]: *** [dom0_ops.o] Error 1 make[3]: Leaving directory `/root/xen/t/xen-2.0/xen/common'' make[2]: *** [/root/xen/t/xen-2.0/xen/xen] Error 2 make[2]: Leaving directory `/root/xen/t/xen-2.0/xen'' make[1]: *** [xen] Error 2 make[1]: Leaving directory `/root/xen/t/xen-2.0'' make: *** [world] Error 2 ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
What GCC version are you using (gcc --version)? -- Keir> Hi. > > I''m trying to compile Xen 2.0 on a crusoe-powered notebook, but make > world seems to fail when making xen, even before building tools or the > kernel. This is on a transmeta crusoe 5800 CPU, running Gentoo. > > Any idea what might be wrong? I have no idea what the error message > below means. > > # make world > make clean > [snip] > __ __ ____ ___ > \ \/ /___ _ __ |___ \ / _ \ > \ // _ \ ''_ \ __) || | | | > / \ __/ | | | / __/ | |_| | > /_/\_\___|_| |_| |_____(_)___/ > > make[3]: Leaving directory `/root/xen/t/xen-2.0/xen'' > make -C common > make[3]: Entering directory `/root/xen/t/xen-2.0/xen/common'' > gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing > -iwithprefix include -Wall -Werror -pipe > -I/root/xen/t/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls > -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c > ac_timer.c -o ac_timer.o > gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing > -iwithprefix include -Wall -Werror -pipe > -I/root/xen/t/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls > -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c > dom0_ops.c -o dom0_ops.o > dom0_ops.c: In function `do_dom0_op'': > /root/xen/t/xen-2.0/xen/include/asm/mm.h:160: error: can''t find a > register in class `BREG'' while reloading `asm'' > /root/xen/t/xen-2.0/xen/include/asm/mm.h:160: error: can''t find a > register in class `BREG'' while reloading `asm'' > make[3]: *** [dom0_ops.o] Error 1 > make[3]: Leaving directory `/root/xen/t/xen-2.0/xen/common'' > make[2]: *** [/root/xen/t/xen-2.0/xen/xen] Error 2 > make[2]: Leaving directory `/root/xen/t/xen-2.0/xen'' > make[1]: *** [xen] Error 2 > make[1]: Leaving directory `/root/xen/t/xen-2.0'' > make: *** [world] Error 2 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
A Streetcar Named
2004-Nov-14 14:49 UTC
Re: [Xen-devel] problems compiling xen on a crusoe
gcc (GCC) 3.3.4 20040623 (Gentoo Hardened Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) On Sun, 14 Nov 2004 09:45:11 +0000, Keir Fraser <keir.fraser@cl.cam.ac.uk> wrote:> > What GCC version are you using (gcc --version)? > > -- Keir > > > > > Hi. > > > > I''m trying to compile Xen 2.0 on a crusoe-powered notebook, but make > > world seems to fail when making xen, even before building tools or the > > kernel. This is on a transmeta crusoe 5800 CPU, running Gentoo. > > > > Any idea what might be wrong? I have no idea what the error message > > below means. > > > > # make world > > make clean > > [snip] > > __ __ ____ ___ > > \ \/ /___ _ __ |___ \ / _ \ > > \ // _ \ ''_ \ __) || | | | > > / \ __/ | | | / __/ | |_| | > > /_/\_\___|_| |_| |_____(_)___/ > > > > make[3]: Leaving directory `/root/xen/t/xen-2.0/xen'' > > make -C common > > make[3]: Entering directory `/root/xen/t/xen-2.0/xen/common'' > > gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing > > -iwithprefix include -Wall -Werror -pipe > > -I/root/xen/t/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls > > -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c > > ac_timer.c -o ac_timer.o > > gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing > > -iwithprefix include -Wall -Werror -pipe > > -I/root/xen/t/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls > > -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c > > dom0_ops.c -o dom0_ops.o > > dom0_ops.c: In function `do_dom0_op'': > > /root/xen/t/xen-2.0/xen/include/asm/mm.h:160: error: can''t find a > > register in class `BREG'' while reloading `asm'' > > /root/xen/t/xen-2.0/xen/include/asm/mm.h:160: error: can''t find a > > register in class `BREG'' while reloading `asm'' > > make[3]: *** [dom0_ops.o] Error 1 > > make[3]: Leaving directory `/root/xen/t/xen-2.0/xen/common'' > > make[2]: *** [/root/xen/t/xen-2.0/xen/xen] Error 2 > > make[2]: Leaving directory `/root/xen/t/xen-2.0/xen'' > > make[1]: *** [xen] Error 2 > > make[1]: Leaving directory `/root/xen/t/xen-2.0'' > > make: *** [world] Error 2 > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: InterSystems CACHE > > FREE OODBMS DOWNLOAD - A multidimensional database that combines > > robust object and relational technologies, making it a perfect match > > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/xen-devel > >------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Please try adding ''-nopie'' to the ''CFLAGS := ...'' in xen/arch/x86/Rules.mk: CFLAGS := -nopie -nostdinc -fno-builtin -fno-common -fno-strict-aliasing If that doesn''t help then also try adding ''-fno-stack-protector'' and ''-f-nostack-protector-all''. Let me know if this works out and I''ll add the required options to the the repository (may not be because non-PIE/SSP GCCs may barf on the above command-line options). -- Keir> gcc (GCC) 3.3.4 20040623 (Gentoo Hardened Linux 3.3.4-r1, ssp-3.3.2-2, > pie-8.7.6) > > On Sun, 14 Nov 2004 09:45:11 +0000, Keir Fraser > <keir.fraser@cl.cam.ac.uk> wrote: > > > > What GCC version are you using (gcc --version)? > > > > -- Keir > > > > > > > > > Hi. > > > > > > I''m trying to compile Xen 2.0 on a crusoe-powered notebook, but make > > > world seems to fail when making xen, even before building tools or the > > > kernel. This is on a transmeta crusoe 5800 CPU, running Gentoo. > > > > > > Any idea what might be wrong? I have no idea what the error message > > > below means. > > > > > > # make world > > > make clean > > > [snip] > > > __ __ ____ ___ > > > \ \/ /___ _ __ |___ \ / _ \ > > > \ // _ \ ''_ \ __) || | | | > > > / \ __/ | | | / __/ | |_| | > > > /_/\_\___|_| |_| |_____(_)___/ > > > > > > make[3]: Leaving directory `/root/xen/t/xen-2.0/xen'' > > > make -C common > > > make[3]: Entering directory `/root/xen/t/xen-2.0/xen/common'' > > > gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing > > > -iwithprefix include -Wall -Werror -pipe > > > -I/root/xen/t/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls > > > -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c > > > ac_timer.c -o ac_timer.o > > > gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing > > > -iwithprefix include -Wall -Werror -pipe > > > -I/root/xen/t/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls > > > -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c > > > dom0_ops.c -o dom0_ops.o > > > dom0_ops.c: In function `do_dom0_op'': > > > /root/xen/t/xen-2.0/xen/include/asm/mm.h:160: error: can''t find a > > > register in class `BREG'' while reloading `asm'' > > > /root/xen/t/xen-2.0/xen/include/asm/mm.h:160: error: can''t find a > > > register in class `BREG'' while reloading `asm'' > > > make[3]: *** [dom0_ops.o] Error 1 > > > make[3]: Leaving directory `/root/xen/t/xen-2.0/xen/common'' > > > make[2]: *** [/root/xen/t/xen-2.0/xen/xen] Error 2 > > > make[2]: Leaving directory `/root/xen/t/xen-2.0/xen'' > > > make[1]: *** [xen] Error 2 > > > make[1]: Leaving directory `/root/xen/t/xen-2.0'' > > > make: *** [world] Error 2 > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: InterSystems CACHE > > > FREE OODBMS DOWNLOAD - A multidimensional database that combines > > > robust object and relational technologies, making it a perfect match > > > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > > > _______________________________________________ > > > Xen-devel mailing list > > > Xen-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/xen-devel > > > >------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
A Streetcar Named
2004-Nov-15 08:42 UTC
Re: [Xen-devel] problems compiling xen on a crusoe
-nopie fixed the originally reported error, but I subsequently got other errors that said something like "undefined reference to `__guard''" and "undefined reference to `__stack_smash_handler''". Adding -fno-stack-protector seems to have solved these as well, and I''m now compiling the kernels for the crusoe. Thanks! On Sun, 14 Nov 2004 15:06:49 +0000, Keir Fraser <keir.fraser@cl.cam.ac.uk> wrote:> > Please try adding ''-nopie'' to the ''CFLAGS := ...'' in > xen/arch/x86/Rules.mk: > CFLAGS := -nopie -nostdinc -fno-builtin -fno-common -fno-strict-aliasing > > If that doesn''t help then also try adding ''-fno-stack-protector'' and > ''-f-nostack-protector-all''. > > Let me know if this works out and I''ll add the required options to the > the repository (may not be because non-PIE/SSP GCCs may barf on the > above command-line options). > > -- Keir > > > > > > gcc (GCC) 3.3.4 20040623 (Gentoo Hardened Linux 3.3.4-r1, ssp-3.3.2-2, > > pie-8.7.6) > > > > On Sun, 14 Nov 2004 09:45:11 +0000, Keir Fraser > > <keir.fraser@cl.cam.ac.uk> wrote: > > > > > > What GCC version are you using (gcc --version)? > > > > > > -- Keir > > > > > > > > > > > > > Hi. > > > > > > > > I''m trying to compile Xen 2.0 on a crusoe-powered notebook, but make > > > > world seems to fail when making xen, even before building tools or the > > > > kernel. This is on a transmeta crusoe 5800 CPU, running Gentoo. > > > > > > > > Any idea what might be wrong? I have no idea what the error message > > > > below means. > > > > > > > > # make world > > > > make clean > > > > [snip] > > > > __ __ ____ ___ > > > > \ \/ /___ _ __ |___ \ / _ \ > > > > \ // _ \ ''_ \ __) || | | | > > > > / \ __/ | | | / __/ | |_| | > > > > /_/\_\___|_| |_| |_____(_)___/ > > > > > > > > make[3]: Leaving directory `/root/xen/t/xen-2.0/xen'' > > > > make -C common > > > > make[3]: Entering directory `/root/xen/t/xen-2.0/xen/common'' > > > > gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing > > > > -iwithprefix include -Wall -Werror -pipe > > > > -I/root/xen/t/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls > > > > -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c > > > > ac_timer.c -o ac_timer.o > > > > gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing > > > > -iwithprefix include -Wall -Werror -pipe > > > > -I/root/xen/t/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls > > > > -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c > > > > dom0_ops.c -o dom0_ops.o > > > > dom0_ops.c: In function `do_dom0_op'': > > > > /root/xen/t/xen-2.0/xen/include/asm/mm.h:160: error: can''t find a > > > > register in class `BREG'' while reloading `asm'' > > > > /root/xen/t/xen-2.0/xen/include/asm/mm.h:160: error: can''t find a > > > > register in class `BREG'' while reloading `asm'' > > > > make[3]: *** [dom0_ops.o] Error 1 > > > > make[3]: Leaving directory `/root/xen/t/xen-2.0/xen/common'' > > > > make[2]: *** [/root/xen/t/xen-2.0/xen/xen] Error 2 > > > > make[2]: Leaving directory `/root/xen/t/xen-2.0/xen'' > > > > make[1]: *** [xen] Error 2 > > > > make[1]: Leaving directory `/root/xen/t/xen-2.0'' > > > > make: *** [world] Error 2 > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by: InterSystems CACHE > > > > FREE OODBMS DOWNLOAD - A multidimensional database that combines > > > > robust object and relational technologies, making it a perfect match > > > > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > > > > _______________________________________________ > > > > Xen-devel mailing list > > > > Xen-devel@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/xen-devel > > > > > > > >------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> -nopie fixed the originally reported error, but I subsequently got > other errors that said something like "undefined reference to > `__guard''" and "undefined reference to `__stack_smash_handler''". > Adding -fno-stack-protector seems to have solved these as well, and > I''m now compiling the kernels for the crusoe. > > Thanks!I''ve checked in a patch to the unstable tree that will allow to build with PIE/SSP-enabled GCC. -- Keir ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
A Streetcar Named
2004-Nov-15 11:54 UTC
Re: [Xen-devel] problems compiling xen on a crusoe
On Mon, 15 Nov 2004 09:04:33 +0000, Keir Fraser <keir.fraser@cl.cam.ac.uk> wrote:> > -nopie fixed the originally reported error, but I subsequently got > > other errors that said something like "undefined reference to > > `__guard''" and "undefined reference to `__stack_smash_handler''". > > Adding -fno-stack-protector seems to have solved these as well, and > > I''m now compiling the kernels for the crusoe. > > > I''ve checked in a patch to the unstable tree that will allow to build > with PIE/SSP-enabled GCC.Perhaps I spoke too soon. Both Xen and the kernels compiled without error, but rebooting into Xen doesn''t seem to work. Grub seems to try to load the Xen kernel, then the machine spontaneously reboots. This seems to be the case even if I try to disable lots of stuff (below, but the same thing happens even without noht.*) At this point, my grub.conf has this: title Xen 2.0 / XenLinux 2.6.9-xen0-crusoe kernel (hd0,4)/boot/xen.gz dom0_mem=131072 console=vga noht noacpi noapic nosmp noreboot ignorebiostables module (hd0,4)/boot/vmlinuz-2.6.9-xen0-crusoe root=/dev/hda8 Is there any way to see more info on what''s happening after grub tries to load xen.gz? Perhaps I should try to recompile xen with -nopie and -fno-stack-protector-all? ... Okay, this is weird. -nopie -fno-stack-protector-all seems to fail as if stack protection was not turned off at all. So i recompiled Xen with -nopie -fno-stack-protector -fno-stack-protector-all (which produced a different binary from just the previous one without -fno-stack-protector-all), but the same problem persists with the machine rebooting spontaneously. Any ideas? ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> Perhaps I spoke too soon. Both Xen and the kernels compiled without > error, but rebooting into Xen doesn''t seem to work. Grub seems to try > to load the Xen kernel, then the machine spontaneously reboots. This > seems to be the case even if I try to disable lots of stuff (below, > but the same thing happens even without noht.*) > > At this point, my grub.conf has this: > > title Xen 2.0 / XenLinux 2.6.9-xen0-crusoe > kernel (hd0,4)/boot/xen.gz dom0_mem=131072 console=vga noht noacpi > noapic nosmp noreboot ignorebiostables > module (hd0,4)/boot/vmlinuz-2.6.9-xen0-crusoe root=/dev/hda8 > > Is there any way to see more info on what''s happening after grub tries > to load xen.gz? Perhaps I should try to recompile xen with -nopie and > -fno-stack-protector-all?Well, can you make your Xen image (xen-syms) available for me to download? I''ll take a look at it, since it must be crashing out very early indeed. If you want to find the point at which the image is crashing, you can try the following: Try adding ''for(;;);'' as the first piece of code in cmain() in xen/common/kernel.c. The idea is to move an infinite loop around until the kernel hangs rather then rebooting -- you can use this to determine which line of code is causing you to crash. If you still crash with the infinite for-loop in place, you''ll need to add: 1: jmp 1b ...to various places in xen/arch/boot/x86_32.S (various places after the label ''__start''). I''d start by placing it immediately before ''call cmain'' as one distinct possibility is that the calling convention for asm -> C is different for your compiler. If that still crashes then you can start moving the loop higher up in the assembly code. -- Keir ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Your image boots just fine for me (at least as far as booting DOM0, which is a lot further than you seem to think that you are getting). Are you definitely booting the xen.gz file, not xen-syms or anything like that? -- Keir> On Mon, 15 Nov 2004 12:04:47 +0000, Keir Fraser > <keir.fraser@cl.cam.ac.uk> wrote: > > > > Well, can you make your Xen image (xen-syms) available for me to > > download? I''ll take a look at it, since it must be crashing out very > > early indeed. > > > I don''t know if this is relevant, but my CFLAGS in /etc/make.conf is > "-O3 -march=i686 -pipe -fomit-frame-pointer > -mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0 > -falign-loops=0" > > > If you want to find the point at which the image is crashing, you can > > try the following: > > I''ll give these a shot; the crusoe is kinda slow though, and I > probably won''t have the laptop this week, so I might be a bit slow > trying this out. Thanks again!------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
A Streetcar Named
2004-Nov-15 13:57 UTC
Re: [Xen-devel] problems compiling xen on a crusoe
On Mon, 15 Nov 2004 13:12:24 +0000, Keir Fraser <keir.fraser@cl.cam.ac.uk> wrote:> > Your image boots just fine for me (at least as far as booting DOM0, > which is a lot further than you seem to think that you are getting). > > Are you definitely booting the xen.gz file, not xen-syms or anything > like that?Yep, I''m definitely trying to boot xen.gz (unless the grub menu extract I showed earlier was wrong)... Have tried adding printk''s and for (;;) {} in kernel.c - that didn''t help. The infinite loops in x86_32.S did make a difference at the following line though: 128 start_paging: 129 mov $idle_pg_table-__PAGE_OFFSET,%eax 130 mov %eax,%cr3 131 mov $0x80050033,%eax /* hi-to-lo: PG,AM,WP,NE,ET,MP,PE */ 132 mov %eax,%cr0 133 jmp 1f 134 1: /* Install relocated selectors (FS/GS unused). */ 135 lgdt gdt_descr Adding the 1: jump 1b before line 132 would make it hang; adding the line after 132 saw the computer rebooting continuously... I have no idea what to make of this though. ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> Yep, I''m definitely trying to boot xen.gz (unless the grub menu > extract I showed earlier was wrong)... > > Have tried adding printk''s and for (;;) {} in kernel.c - that didn''t help. > > The infinite loops in x86_32.S did make a difference at the following > line though: > 128 start_paging: > 129 mov $idle_pg_table-__PAGE_OFFSET,%eax > 130 mov %eax,%cr3 > 131 mov $0x80050033,%eax /* hi-to-lo: PG,AM,WP,NE,ET,MP,PE */ > 132 mov %eax,%cr0 > 133 jmp 1f > 134 1: /* Install relocated selectors (FS/GS unused). */ > 135 lgdt gdt_descr > > Adding the 1: jump 1b before line 132 would make it hang; adding the > line after 132 saw the computer rebooting continuously... I have no > idea what to make of this though.Hmm.... sounds like we don''t work so well with Crusoe. :-) Firstly, I don''t suggest that looping between lines 132 and 133 is very wise. The move to %cr0 and the following jump are supposed to happen right after one another. Put the loop immediately after line 134. Then, a few possibilities that might get you further: Change line 131 to: mov %cr0,%eax ; or $0x80050023,%eax ^ Note this digit changed! Change line 133 to: ljmp $(__HYPERVISOR_CS),$1f Let me know how you get on with these changes. Cheers, Keir ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
A Streetcar Named
2004-Nov-17 13:36 UTC
Re: [Xen-devel] problems compiling xen on a crusoe
On Mon, 15 Nov 2004 14:44:47 +0000, Keir Fraser <keir.fraser@cl.cam.ac.uk> wrote:> > > > The infinite loops in x86_32.S did make a difference at the following > > line though: > > 128 start_paging: > > 129 mov $idle_pg_table-__PAGE_OFFSET,%eax > > 130 mov %eax,%cr3 > > 131 mov $0x80050033,%eax /* hi-to-lo: PG,AM,WP,NE,ET,MP,PE */ > > 132 mov %eax,%cr0 > > 133 jmp 1f > > 134 1: /* Install relocated selectors (FS/GS unused). */ > > 135 lgdt gdt_descr > > > > Adding the 1: jump 1b before line 132 would make it hang; adding the > > line after 132 saw the computer rebooting continuously... I have no > > idea what to make of this though. > > Hmm.... sounds like we don''t work so well with Crusoe. :-) > Firstly, I don''t suggest that looping between lines 132 and 133 is > very wise. The move to %cr0 and the following jump are supposed to > happen right after one another. Put the loop immediately after line > 134.Only just got my hands on the notebook to test again. I vaguely remembered that I had tried putting the loop between lines 134 and 135 previously (with the result being that it still kept rebooting), which led me to move the loop higher up. Anyway, I''ve tried this again, and confirmed what I remembered. If you''re interested, I''ve put my xen images at the same location as previously, so xen-132-syms is for the loop inserted between lines 131 and 132, etc.> Then, a few possibilities that might get you further: > > Change line 131 to: > mov %cr0,%eax ; or $0x80050023,%eax > ^ > Note this digit changed! > > Change line 133 to: > ljmp $(__HYPERVISOR_CS),$1f > > Let me know how you get on with these changes.I''m not clear what you mean by this. Do you want me to change the source to this and compile it? 128 start_paging: 129 mov $idle_pg_table-__PAGE_OFFSET,%eax 130 mov %eax,%cr3 131 mov %cr0,%eax ; or $0x80050023,%eax 132 mov %eax,%cr0 133 ljmp $(__HYPERVISOR_CS),$1f 134 1: /* Install relocated selectors (FS/GS unused). */ 135 lgdt gdt_descr ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> > Then, a few possibilities that might get you further: > > > > Change line 131 to: > > mov %cr0,%eax ; or $0x80050023,%eax > > ^ > > Note this digit changed! > > > > Change line 133 to: > > ljmp $(__HYPERVISOR_CS),$1f > > > > Let me know how you get on with these changes. > > I''m not clear what you mean by this. Do you want me to change the > source to this and compile it? > > 128 start_paging: > 129 mov $idle_pg_table-__PAGE_OFFSET,%eax > 130 mov %eax,%cr3 > 131 mov %cr0,%eax ; or $0x80050023,%eax > 132 mov %eax,%cr0 > 133 ljmp $(__HYPERVISOR_CS),$1f > 134 1: /* Install relocated selectors (FS/GS unused). */ > 135 lgdt gdt_descrThat''s right. Recompile with above changes and see if it still reboots. -- Keir ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
a wild guess. does TM5800 supports 4mb pages?? On Wed, 17 Nov 2004, Keir Fraser wrote:> > > Then, a few possibilities that might get you further: > > > > > > Change line 131 to: > > > mov %cr0,%eax ; or $0x80050023,%eax > > > ^ > > > Note this digit changed! > > > > > > Change line 133 to: > > > ljmp $(__HYPERVISOR_CS),$1f > > > > > > Let me know how you get on with these changes. > > > > I''m not clear what you mean by this. Do you want me to change the > > source to this and compile it? > > > > 128 start_paging: > > 129 mov $idle_pg_table-__PAGE_OFFSET,%eax > > 130 mov %eax,%cr3 > > 131 mov %cr0,%eax ; or $0x80050023,%eax > > 132 mov %eax,%cr0 > > 133 ljmp $(__HYPERVISOR_CS),$1f > > 134 1: /* Install relocated selectors (FS/GS unused). */ > > 135 lgdt gdt_descr > > That''s right. Recompile with above changes and see if it still > reboots. > > -- Keir > > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xen-devel >------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
A good guess (I hadn''t thought of that), but the web seems to think the TM5800 does support PSE. It is worth a check though -- boot into native Linux and mail the output of ''cat /proc/cpuinfo''. Then we''ll know for sure. -- Keir> > > a wild guess. does TM5800 supports 4mb pages?? > > On Wed, 17 Nov 2004, Keir Fraser wrote: > > > > > Then, a few possibilities that might get you further: > > > > > > > > Change line 131 to: > > > > mov %cr0,%eax ; or $0x80050023,%eax > > > > ^ > > > > Note this digit changed! > > > > > > > > Change line 133 to: > > > > ljmp $(__HYPERVISOR_CS),$1f > > > > > > > > Let me know how you get on with these changes. > > > > > > I''m not clear what you mean by this. Do you want me to change the > > > source to this and compile it? > > > > > > 128 start_paging: > > > 129 mov $idle_pg_table-__PAGE_OFFSET,%eax > > > 130 mov %eax,%cr3 > > > 131 mov %cr0,%eax ; or $0x80050023,%eax > > > 132 mov %eax,%cr0 > > > 133 ljmp $(__HYPERVISOR_CS),$1f > > > 134 1: /* Install relocated selectors (FS/GS unused). */ > > > 135 lgdt gdt_descr > > > > That''s right. Recompile with above changes and see if it still > > reboots. > > > > -- Keir > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: InterSystems CACHE > > FREE OODBMS DOWNLOAD - A multidimensional database that combines > > robust object and relational technologies, making it a perfect match > > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/xen-devel > > >------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
A Streetcar Named
2004-Nov-18 07:40 UTC
Re: [Xen-devel] problems compiling xen on a crusoe
The changes at lines 131 and 133 didn''t seem to do anything (it still keeps rebooting itself). What does a semicolon do? (I didn''t reply yesterday as Windows seems to steal the MBR if I boot into it, and booting from a cdrom to fix that took the better part of half an hour yesterday, so I decided replying could wait until I found a machine/browser that supports the javascript gmail requires...) I didn''t quite follow the discussion on 4KSTACKS and PSE, but I''ll find out what cpuinfo says when I get hold of the notebook again tonight. On Wed, 17 Nov 2004 21:49:52 +0000, Keir Fraser <keir.fraser@cl.cam.ac.uk> wrote:> > A good guess (I hadn''t thought of that), but the web seems to think > the TM5800 does support PSE. It is worth a check though -- boot into > native Linux and mail the output of ''cat /proc/cpuinfo''. Then we''ll > know for sure. > > > a wild guess. does TM5800 supports 4mb pages?? > > > > On Wed, 17 Nov 2004, Keir Fraser wrote: > > > > > > > Then, a few possibilities that might get you further: > > > > > > > > > > Change line 131 to: > > > > > mov %cr0,%eax ; or $0x80050023,%eax > > > > > ^ > > > > > Note this digit changed! > > > > > > > > > > Change line 133 to: > > > > > ljmp $(__HYPERVISOR_CS),$1f > > > > > > > > > > Let me know how you get on with these changes. > > > > > > > > I''m not clear what you mean by this. Do you want me to change the > > > > source to this and compile it? > > > > > > > > 128 start_paging: > > > > 129 mov $idle_pg_table-__PAGE_OFFSET,%eax > > > > 130 mov %eax,%cr3 > > > > 131 mov %cr0,%eax ; or $0x80050023,%eax > > > > 132 mov %eax,%cr0 > > > > 133 ljmp $(__HYPERVISOR_CS),$1f > > > > 134 1: /* Install relocated selectors (FS/GS unused). */ > > > > 135 lgdt gdt_descr > > > > > > That''s right. Recompile with above changes and see if it still > > > reboots. > > > > > > -- Keir > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: InterSystems CACHE > > > FREE OODBMS DOWNLOAD - A multidimensional database that combines > > > robust object and relational technologies, making it a perfect match > > > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > > > _______________________________________________ > > > Xen-devel mailing list > > > Xen-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/xen-devel > > > > > > >------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
A Streetcar Named
2004-Nov-18 12:24 UTC
Re: [Xen-devel] problems compiling xen on a crusoe
processor : 0 vendor_id : GenuineTMx86 cpu family : 6 model : 4 model name : Transmeta(tm) Crusoe(tm) Processor TM5800 stepping : 3 cpu MHz : 995.547 cache size : 512 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr cx8 sep cmov mmx longrun lrti bogomips : 1966.08 On Thu, 18 Nov 2004 15:40:39 +0800, A Streetcar Named <desire@gmail.com> wrote:> > I didn''t quite follow the discussion on 4KSTACKS and PSE, but I''ll > find out what cpuinfo says when I get hold of the notebook again > tonight. > > On Wed, 17 Nov 2004 21:49:52 +0000, Keir Fraser > > <keir.fraser@cl.cam.ac.uk> wrote: > > > > A good guess (I hadn''t thought of that), but the web seems to think > > the TM5800 does support PSE. It is worth a check though -- boot into > > native Linux and mail the output of ''cat /proc/cpuinfo''. Then we''ll > > know for sure. > > > > > a wild guess. does TM5800 supports 4mb pages?? > > > > > > On Wed, 17 Nov 2004, Keir Fraser wrote: > > > > > > > > > Then, a few possibilities that might get you further: > > > > > > > > > > > > Change line 131 to: > > > > > > mov %cr0,%eax ; or $0x80050023,%eax > > > > > > ^ > > > > > > Note this digit changed! > > > > > > > > > > > > Change line 133 to: > > > > > > ljmp $(__HYPERVISOR_CS),$1f > > > > > > > > > > > > Let me know how you get on with these changes. > > > > > > > > > > I''m not clear what you mean by this. Do you want me to change the > > > > > source to this and compile it? > > > > > > > > > > 128 start_paging: > > > > > 129 mov $idle_pg_table-__PAGE_OFFSET,%eax > > > > > 130 mov %eax,%cr3 > > > > > 131 mov %cr0,%eax ; or $0x80050023,%eax > > > > > 132 mov %eax,%cr0 > > > > > 133 ljmp $(__HYPERVISOR_CS),$1f > > > > > 134 1: /* Install relocated selectors (FS/GS unused). */ > > > > > 135 lgdt gdt_descr > > > > > > > > That''s right. Recompile with above changes and see if it still > > > > reboots. > > > > > > > > -- Keir > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by: InterSystems CACHE > > > > FREE OODBMS DOWNLOAD - A multidimensional database that combines > > > > robust object and relational technologies, making it a perfect match > > > > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > > > > _______________________________________________ > > > > Xen-devel mailing list > > > > Xen-devel@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/xen-devel > > > > > > > > > > > >------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> > flags : fpu vme de pse tsc msr cx8 sep cmov mmx longrun lrti > ^^^ > so it should support PSE. >Yeah, I have no idea what is causing the reboots. It''s needs someone to sit down and fiddle with the code a bit and see what works. -- Keir ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> flags : fpu vme de pse tsc msr cx8 sep cmov mmx longrun lrti^^^ so it should support PSE. ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel