xenolinux compilation error
Hi,
I've got some problems while compiling a linux-2.4.25 kernel patched with xenolinux-2.4.25-sparse tree.
The command 'make dep bzImage' stops at:
....
mm/mm.o: In function `clear_page_tables':
mm/mm.o(.text+0x12b): undefined reference to XEN_flush_page_update_queue' mm/mm.o: In function pte_alloc':
mm/mm.o(.text+0x17c3): undefined reference to XEN_flush_page_update_queue' mm/mm.o: In function move_page_tables':
mm/mm.o(.text+0x80b6): undefined reference to XEN_flush_page_update_queue' mm/mm.o(.text+0x80df): undefined reference to XEN_flush_page_update_queue' mm/mm.o: In function `unuse_process':
mm/mm.o(.text+0xd630): undefined reference to XEN_flush_page_update_queue' fs/fs.o(.text+0x98eb): more undefined references to XEN_flush_page_update_queue' follow
make: ** [vmlinux] Erro 1
Has anyone got this?
Any idea?
Signature · 9 lines
Carlos ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Quoted 3 lines
Hi,
I've got some problems while compiling a linux-2.4.25 kernel patched with xenolinux-2.4.25-sparse tree.
The auto build daemon successfully built both the 1.2 and unstable trees last night, so I think it must be something odd about how you're building it.
Are you using a vanilla linux-2.4.25 tree as the base? Did you follow the instructions for running mkbuildtree correctly? Have you modified any of the kernel configuration parameters? Are you remembering to set ARCH=xen ?
I'd expect the appended sequence to work (from the xen-clone script).
Ian
tar -zxf linux-2.4.25.tgz # untar the vanilla build tree
cd xeno.bk/xenolinux-2.4.25-sparse # cd into sparse tree in repo
./mkbuildtree ../../linux-2.4.25 # patch the vanilla tree
cd ../..
mv linux-2.4.25 xenolinux-2.4.25 # rename to reflect change
cd xenolinux-2.4.25
make ARCH=xen oldconfig # use default config
make ARCH=xen dep
make ARCH=xen bzImage
make ARCH=xen modules # build modules if required
# you may then find the 'install' or 'dist' targets useful.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
ARCH=xen make dep bzImage
-- Keir
Quoted 21 lines
Hi,
I've got some problems while compiling a linux-2.4.25 kernel patched with xenolinux-2.4.25-sparse tree.The command 'make dep bzImage' stops at:
....
mm/mm.o: In function `clear_page_tables':
mm/mm.o(.text+0x12b): undefined reference toXEN_flush_page_update_queue' mm/mm.o: In functionpte_alloc':
mm/mm.o(.text+0x17c3): undefined reference toXEN_flush_page_update_queue' mm/mm.o: In functionmove_page_tables':
mm/mm.o(.text+0x80b6): undefined reference toXEN_flush_page_update_queue' mm/mm.o(.text+0x80df): undefined reference toXEN_flush_page_update_queue'mm/mm.o: In function `unuse_process':
mm/mm.o(.text+0xd630): undefined reference toXEN_flush_page_update_queue' fs/fs.o(.text+0x98eb): more undefined references toXEN_flush_page_update_queue' follow
make: ** [vmlinux] Erro 1
Quoted 16 lines
Has anyone got this?
Any idea?Signature · 13 lines
Carlos ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xen-devel
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
* Ian Pratt <[email protected]> [01-04-2004 10:53]:
Sorry,
here is my mistake,
Quoted 1 line
make ARCH=xen oldconfig # use default config
^^^^^^^^
Thanks,
Signature · 9 lines
Carlos ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
A question on xen-1.2??
In reply to Ian PrattI have been able to compile and boot xeno-linux-2.4.24-xeno (used linux-2.4.25 generics sources this time).
I see two messages at boot, parts of dmesg shown:
---
Linux version 2.4.25-xeno ([email protected]) (gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)) #1 Thu Apr 1 15:39:11 EST 2004 On node 0 totalpages: 32768
...
---> first one starts
RAMDISK: ext2 filesystem found at block 0
RAMDISK: image too big! (8000/4096 blocks)
Freeing initrd memory: 8000k freedroot_device_name = hda1
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 60k freed
EXT3 FS 2.4-0.9.19, 19 August 2002 on hd(3,1), internal journal
---> second one follows
Adding Swap: 262072k swap-space (priority -1)
ioctl 00005386 not supported by xl_block
-------------
Also, if the box is rebooted then there is a message
...
Syncing hardware clock to system time modeprobe: Can't locate module \
char-major-10-135
What module is that?
And the machine needs a hardware reset to reboot (as ti just sits there!)
This a Celeron based PC with Fedora-core-1 underlying system.
-ishwar
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Re: A question on xen-1.2??
Quoted 4 lines
I have been able to compile and boot xeno-linux-2.4.24-xeno (used linux-2.4.25 generics sources this time).
Quoted 9 lines
I see two messages at boot, parts of dmesg shown:
---
Linux version 2.4.25-xeno ([email protected]) (gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)) #1 Thu Apr 1 15:39:11 EST 2004 On node 0 totalpages: 32768
...
---> first one starts
RAMDISK: ext2 filesystem found at block 0
RAMDISK: image too big! (8000/4096 blocks)
Freeing initrd memory: 8000k freed
Are you intentionally trying to use an initrd ram disk? If so, what's in it? Why is it so big? (this is a linux issue, not a Xen one)
Quoted 11 lines
root_device_name= hda1
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 60k freed
EXT3 FS 2.4-0.9.19, 19 August 2002 onhd(3,1), internal journal---> second one follows
Adding Swap: 262072k swap-space (priority -1)
ioctl 00005386 not supported byxl_block
-------------
I'll bet this is some random ioctl to do with audio on a CDROM. We should figure out which one it is and add it to the list that we ignore without grumbling about (or add support if it might be useful). Stuff like this will go away in the new IO world anyhow.
Quoted 6 lines
Also, if the box is rebooted then there is a message
...
Syncing hardware clock to system time modeprobe: Can't locate module \
char-major-10-135What module is that?
Probably the RTC driver. You don't want to use it with Xen anyhow, so just disable it. (either remove the line from the rc scripts, or you may be able to alias it to null in your modules.conf).
Quoted 1 line
And the machine needs a hardware reset to reboot (as ti just sits there!)
Odd. Are you booting with 'noreboot' on the Xen command line?
Ian
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Re: A question on xen-1.2??
Quoted 14 lines · Ian Pratt
Quoted 4 lines
I have been able to compile and boot xeno-linux-2.4.24-xeno (used linux-2.4.25 generics sources this time).
Quoted 9 lines
I see two messages at boot, parts of dmesg shown:
---
Linux version 2.4.25-xeno ([email protected]) (gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)) #1 Thu Apr 1 15:39:11 EST 2004 On node 0 totalpages: 32768
...
---> first one starts
RAMDISK: ext2 filesystem found at block 0
RAMDISK: image too big! (8000/4096 blocks)
Freeing initrd memory: 8000k freed
Quoted 3 lines
Are you intentionally trying to use an initrd ram disk? If so, what's in it? Why is it so big? (this is a linux issue, not a Xen one)
Interestingly it only 98K initrd..
In linux domain initrd of 1600K are working (initrd-2.4.22-1.2115,nptl.img for uniprocessor kernel under Fedora).
Quoted 1 line
Odd. Are you booting with 'noreboot' on the Xen command line?
Yes, I am.
Thanks for the responses.
-ishwar
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Re: A question on xen-1.2??
Quoted 11 lines
Quoted 7 lines
Quoted 3 lines
RAMDISK: ext2 filesystem found at block 0
RAMDISK: image too big! (8000/4096 blocks)
Freeing initrd memory: 8000k freedAre you intentionally trying to use an initrd ram disk? If so, what's in it? Why is it so big? (this is a linux issue, not a Xen one)
Interestingly it only 98K initrd..
In linux domain initrd of 1600K are working (initrd-2.4.22-1.2115,nptl.img for uniprocessor kernel under Fedora).
It looks like Linux is seeing it as a huge initrd.
What version of Xen/Xenolinux are you using? Can you reproduce the problem using binaries from either the CD or the nightly builds? (the boot messages suggested that you were building your own). Is this a domain 0 boot or another domain?
Ian
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click