problems compiling xen on a crusoe
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
Quoted 13 lines
Quoted 4 lines · Keir Fraser
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.confis "-O3 -march=i686 -pipe -fomit-frame-pointer(quoted diff) +0
-2-mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0 -falign-loops=0"
Quoted 6 lines
Quoted 2 lines
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
Quoted 6 lines · Keir Fraser
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
Quoted 16 lines
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.Sdid make a difference at the following line though:
128start_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 lgdtgdt_descr
Quoted 3 lines
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
Quoted 16 lines · Keir Fraser
Quoted 12 lines
The infinite loops in
x86_32.Sdid make a difference at the following line though:
128start_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 lgdtgdt_descrQuoted 3 lines
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.
Quoted 5 lines
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.
Quoted 11 lines
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),$1fLet 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
Quoted 15 lines
Quoted 11 lines
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),$1fLet 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?
Quoted 8 lines
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
a wild guess. does TM5800 supports 4mb pages??
Quoted 30 lines · Keir Fraser
Quoted 15 lines
Quoted 11 lines
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),$1fLet 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?
Quoted 8 lines
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
Quoted 10 lines
-------------------------------------------------------
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
[email protected]
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
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
Quoted 47 lines
a wild guess. does TM5800 supports 4mb pages??
Quoted 40 lines · Keir Fraser
Quoted 15 lines
Quoted 11 lines
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),$1fLet 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?
Quoted 8 lines
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
[email protected]
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
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.
Quoted 53 lines · Keir Fraser
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.Quoted 45 lines
a wild guess. does TM5800 supports 4mb pages??
Quoted 40 lines · Keir Fraser
Quoted 15 lines
Quoted 11 lines
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),$1fLet 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?
Quoted 8 lines
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
[email protected]
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
processor : 0vendor_id : GenuineTMx86
cpu family : 6
model : 4
model name : Transmeta(tm) Crusoe(tm) Processor TM5800
stepping : 3
cpu MHz : 995.547
cache size : 512 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr cx8 sep cmov mmx longrun lrti
bogomips : 1966.08
Quoted 62 lines · A Streetcar Named
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
Quoted 53 lines · <[email protected]> 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.Quoted 45 lines
a wild guess. does TM5800 supports 4mb pages??
Quoted 40 lines · Keir Fraser
Quoted 15 lines
Quoted 11 lines
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),$1fLet 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?
Quoted 8 lines
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
[email protected]
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
Quoted 1 line
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
Quoted 4 lines
Quoted 1 line
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