Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Xen 2.6.25 dom0 kernel ebuild

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
219 posts
  • Page 5 of 9
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 9
  • Next
Author
Message
Floppe
n00b
n00b
Posts: 50
Joined: Thu Feb 27, 2003 8:15 am
Location: Finland

  • Quote

Post by Floppe » Wed May 13, 2009 7:55 am

Hi,

I've downloaded and compiled 2.6.27-xen-r5 and it is working fine. However, I have no /dev/hvc0 and no xen console option in kernel config so I have no clue on how inittab should be to get a login prompt when running xm console domain from dom0? Everything else works, I see the boot messages and so on.

Thanks for your great work on this one. So good to have a newer kernel than 2.6.18 for guest.
// Floppe
Top
_Razorblade_
n00b
n00b
Posts: 33
Joined: Thu Jan 01, 2004 2:56 pm

  • Quote

Post by _Razorblade_ » Wed May 13, 2009 7:58 am

hvc0 is only used for pv-guest support in vanilla kernels, xvc0 is what you want in your domUs on a full xen-kernel.
Top
Floppe
n00b
n00b
Posts: 50
Joined: Thu Feb 27, 2003 8:15 am
Location: Finland

  • Quote

Post by Floppe » Wed May 13, 2009 8:04 am

Oh, that was easy :)

Thank you!
Top
andylyon
n00b
n00b
Posts: 74
Joined: Tue Jun 13, 2006 10:42 am

new ebuild

  • Quote

Post by andylyon » Sun May 17, 2009 1:34 pm

I have uploaded 2.6.29-r3 ebuild which uses v5 of my xen-patches and also v5 genpatches which includes incremental patches to 2.6.29.2.

Andy
Top
xpetex
n00b
n00b
Posts: 7
Joined: Wed May 20, 2009 3:16 pm

  • Quote

Post by xpetex » Wed May 20, 2009 3:18 pm

thx :D
Top
andylyon
n00b
n00b
Posts: 74
Joined: Tue Jun 13, 2006 10:42 am

  • Quote

Post by andylyon » Wed May 20, 2009 3:34 pm

xpetex wrote:thx :D
Just uploaded -r4 as well!

Andy
Top
_Razorblade_
n00b
n00b
Posts: 33
Joined: Thu Jan 01, 2004 2:56 pm

  • Quote

Post by _Razorblade_ » Wed May 20, 2009 6:22 pm

Is anyone using this kernel as dom0 and has working X?

Trying to get this going for some time now, I guess part of the problem is related to Ati not supporting 2.6.29 at all, but even with radeonhd I get a crash (blank screen no log at all) when starting up X while 2.6.29-gentoo is working fine...
Top
andylyon
n00b
n00b
Posts: 74
Joined: Tue Jun 13, 2006 10:42 am

  • Quote

Post by andylyon » Thu May 21, 2009 7:23 am

_Razorblade_ wrote:Is anyone using this kernel as dom0 and has working X?

Trying to get this going for some time now, I guess part of the problem is related to Ati not supporting 2.6.29 at all, but even with radeonhd I get a crash (blank screen no log at all) when starting up X while 2.6.29-gentoo is working fine...
I've been using nvidia binary drivers with GeForce 8600GT and Xen patched kernels for some time, when I started using Xen and posted the 2.6.25 patches I was having some problems which in the end turned out to be a faulty card, but I did briefly try a radeon card and although it worked I couldn't get dual head output working and I seem to recall it wasn't very stable either.

Nvidia linux support seems to be better than ATI...

Andy
Top
Elvensight
n00b
n00b
Posts: 20
Joined: Thu Oct 30, 2003 12:15 pm

thx and a tip

  • Quote

Post by Elvensight » Thu May 28, 2009 5:04 pm

Thanks for a great work andylyon !

I was getting problems with bringing up domU(at least I thought that way), searched around for similar symptoms and found that I want to add this line below to the guest's config file

Code: Select all

extra = 'xencons=tty'
Gentoo's portage repo is sleeping (..again)
and this guide (http://www.gentoo.org/doc/en/xen-guide.xml) is, umm let's say - weird and incomplete..

thx again Andy
Top
xpetex
n00b
n00b
Posts: 7
Joined: Wed May 20, 2009 3:16 pm

Timer ISR/7: Time went backwards

  • Quote

Post by xpetex » Thu Jun 18, 2009 11:41 am

on my 64bit dom0 system i see the following:

Timer ISR/7: Time went backwards: delta=-49806510 delta_cpu=1310193490 shadow=2090891309269 off=548362074 processed=2091489476608 cpu_processed=2090129476608
0: 2091479476608
1: 2091489476608
2: 2091479476608
3: 2091479476608
4: 2091479476608
5: 2091469476608
6: 2091479476608
7: 2090129476608
Timer ISR/6: Time went backwards: delta=-38669109 delta_cpu=1201330891 shadow=2472903631853 off=457176675 processed=2473399476608 cpu_processed=2472159476608
0: 2473379476608
1: 2473389476608
2: 2473389476608
3: 2473389476608
4: 2473389476608
5: 2473389476608
6: 2472159476608
7: 2473389476608

SMP 32 bit domU with two vcpus....domU freezes...
any suggestions?
Top
Spaulding
Apprentice
Apprentice
User avatar
Posts: 159
Joined: Sun Apr 16, 2006 9:14 am
Location: /dev/vagina
Contact:
Contact Spaulding
Website

  • Quote

Post by Spaulding » Sat Jun 20, 2009 1:09 pm

Hi! I have a question, can anyone have a patch xen + grsec for domU?
Top
andylyon
n00b
n00b
Posts: 74
Joined: Tue Jun 13, 2006 10:42 am

2.6.30 Xen dom0 ebuild

  • Quote

Post by andylyon » Wed Jul 01, 2009 4:27 pm

I have uploaded ebuild + patches to http://code.google.com/p/gentoo-xen-ker ... loads/list for 2.6.30.

Andy
Top
amissus
n00b
n00b
Posts: 12
Joined: Fri Apr 17, 2009 6:10 am
Location: Czech Republic

  • Quote

Post by amissus » Thu Jul 02, 2009 6:29 am

Hello I'm getting following error, have anyone meet this difficulty?

emerge xen-sources
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-kernel/xen-sources-2.6.30-r1
* xen-patches-2.6.30-2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* linux-2.6.30.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* genpatches-2.6.30-2.base.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Preparing to unpack ...
>>> Unpacking source...
>>> Unpacking linux-2.6.30.tar.bz2 to /var/tmp/portage/sys-kernel/xen-sources-2.6.30-r1/work
>>> Unpacking genpatches-2.6.30-2.base.tar.bz2 to /var/tmp/portage/sys-kernel/xen-sources-2.6.30-r1/work/patches/000001
>>> Unpacking xen-patches-2.6.30-2.tar.bz2 to /var/tmp/portage/sys-kernel/xen-sources-2.6.30-r1/work/patches/000002

bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Success
Input file = /var/tmp/portage/sys-kernel/xen-sources-2.6.30-r1/distdir/xen-patches-2.6.30-2.tar.bz2, output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: This does not look like a tar archive
tar: Error exit delayed from previous errors
*
* ERROR: sys-kernel/xen-sources-2.6.30-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_unpack
* environment, line 3118: Called kernel-2_src_unpack
* environment, line 2323: Called unipatch ' /usr/portage/distfiles/genpatches-2.6.30-2.base.tar.bz2 /usr/portage/distfiles/xen-patches-2.6.30-2.tar.bz2'
* environment, line 3485: Called unpack 'xen-patches-2.6.30-2.tar.bz2'
* ebuild.sh, line 386: Called _unpack_tar 'bzip2'
* ebuild.sh, line 361: Called die
* The specific snippet of code:
* assert "$myfail"
* The die message:
* failure unpacking xen-patches-2.6.30-2.tar.bz2
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-kernel/xen-sources-2.6.30-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-kernel/xen-sources-2.6.30-r1/temp/environment'.
*

>>> Failed to emerge sys-kernel/xen-sources-2.6.30-r1, Log file:

>>> '/var/tmp/portage/sys-kernel/xen-sources-2.6.30-r1/temp/build.log'

* Messages for package sys-kernel/xen-sources-2.6.30-r1:

*
* ERROR: sys-kernel/xen-sources-2.6.30-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_unpack
* environment, line 3118: Called kernel-2_src_unpack
* environment, line 2323: Called unipatch ' /usr/portage/distfiles/genpatches-2.6.30-2.base.tar.bz2 /usr/portage/distfiles/xen-patches-2.6.30-2.tar.bz2'
* environment, line 3485: Called unpack 'xen-patches-2.6.30-2.tar.bz2'
* ebuild.sh, line 386: Called _unpack_tar 'bzip2'
* ebuild.sh, line 361: Called die
* The specific snippet of code:
* assert "$myfail"
* The die message:
* failure unpacking xen-patches-2.6.30-2.tar.bz2
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-kernel/xen-sources-2.6.30-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-kernel/xen-sources-2.6.30-r1/temp/environment'.
*
Top
Floppe
n00b
n00b
Posts: 50
Joined: Thu Feb 27, 2003 8:15 am
Location: Finland

  • Quote

Post by Floppe » Thu Jul 02, 2009 6:34 am

Seems like your copy of xen-patches-2.6.30-2.tar.bz2 is corrupt. Try to download it again.
Top
amissus
n00b
n00b
Posts: 12
Joined: Fri Apr 17, 2009 6:10 am
Location: Czech Republic

  • Quote

Post by amissus » Thu Jul 02, 2009 6:59 am

Yes, it was my first idea, tried few times and same results.
Top
Floppe
n00b
n00b
Posts: 50
Joined: Thu Feb 27, 2003 8:15 am
Location: Finland

  • Quote

Post by Floppe » Thu Jul 02, 2009 7:02 am

Wierd. I downloaded the files after your post and tested, works for me.
Top
amissus
n00b
n00b
Posts: 12
Joined: Fri Apr 17, 2009 6:10 am
Location: Czech Republic

  • Quote

Post by amissus » Thu Jul 02, 2009 7:06 am

Could you shortly describe procedure you have used for obtaining functional xen-sources 2.6.30 ?
Top
Floppe
n00b
n00b
Posts: 50
Joined: Thu Feb 27, 2003 8:15 am
Location: Finland

  • Quote

Post by Floppe » Thu Jul 02, 2009 7:11 am

Code: Select all

cd /usr/portage/distfiles
wget http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.30-2.tar.bz2
cd /usr/local/portage/sys-kernel/xen-sources
wget http://gentoo-xen-kernel.googlecode.com/files/xen-sources-2.6.30-r1.ebuild
ebuild xen-sources-2.6.30-r1.ebuild digest
cd
emerge -auvD world
/usr/local/portage is my portage overlay
Top
amissus
n00b
n00b
Posts: 12
Joined: Fri Apr 17, 2009 6:10 am
Location: Czech Republic

  • Quote

Post by amissus » Thu Jul 02, 2009 7:16 am

I used little different procedure. Tonight i try yours. Thank you.

edit:
Thanks Floppe, it is OK now. Salute to Finland.
Top
microcosm
n00b
n00b
Posts: 11
Joined: Sun Jul 05, 2009 9:40 pm

Error during make

  • Quote

Post by microcosm » Mon Jul 06, 2009 10:32 am

My kernel build halts on the following error:

CC drivers/xen/core/evtchn.o
drivers/xen/core/evtchn.c: In function 'unbind_from_irq':
drivers/xen/core/evtchn.c:641: error: 'struct kernel_stat' has no member named 'irqs'
make[3]: *** [drivers/xen/core/evtchn.o] Error 1
make[2]: *** [drivers/xen/core] Error 2
make[1]: *** [drivers/xen] Error 2
make: *** [drivers] Error 2

I use the latest ebuild, xen-sources-2.6.30-r1, and the system is x86_64.
Top
2bbionic
Apprentice
Apprentice
Posts: 152
Joined: Thu Mar 24, 2005 1:12 pm

  • Quote

Post by 2bbionic » Mon Jul 06, 2009 4:24 pm

Hello again andylyon,

today, i tried the new ebuild on C2D E8400 with 4 GB and a i7 920. Unfortunately, on both systems the same error occurs microcosm mentioned.
Both are running with xen-tools-3.4.0-r1.
I will try my own and play a little with the switches in menuconfig...


Greetings,


2bbionic

EDIT: It seems to be working with "Support sparse irq numbering " on in "Processor type and features" :idea: That was easy...it seems 8) :D
Top
microcosm
n00b
n00b
Posts: 11
Joined: Sun Jul 05, 2009 9:40 pm

  • Quote

Post by microcosm » Mon Jul 06, 2009 5:36 pm

That option is unfortunately removed when I check Enable Xen compatible kernel.

I have googled around to get any hint on this error, found related stuff, but nothing spot on. I have toyed around with some options too, with some I get different errors earlier, so so far it's been a deadend.
Top
2bbionic
Apprentice
Apprentice
Posts: 152
Joined: Thu Mar 24, 2005 1:12 pm

  • Quote

Post by 2bbionic » Mon Jul 06, 2009 6:03 pm

It seems that there are some differences between. My both systems have this switch- with XEN-enabled on, too.
Top
microcosm
n00b
n00b
Posts: 11
Joined: Sun Jul 05, 2009 9:40 pm

Success!

  • Quote

Post by microcosm » Mon Jul 06, 2009 9:51 pm

It seems the .config was wasted (bad idea to use genkernel), after a fresh start with Mr Proper it compiles!

Just as you wrote 2bbionic, the sparse option is there now.
Top
_markd
n00b
n00b
User avatar
Posts: 30
Joined: Sat Jan 03, 2004 2:49 pm
Location: Austria
Contact:
Contact _markd
Website

x86 2.6.30 domU compile failed

  • Quote

Post by _markd » Tue Jul 07, 2009 8:06 pm

I tried to compile the 2.6.30 sources on a 32bit machine for a domU kernel. What I got was this:

Code: Select all

  LD      net/netfilter/netfilter.o
  LD [M]  net/netfilter/nf_conntrack.o
  LD      net/netfilter/built-in.o
  LD      net/built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: vmlinux.o(.exit.text+0x336): Section mismatch in reference from the function evtchn_cleanup() to the variable .cpuinit.data:evtchn_cpu_nfb
The function __exit evtchn_cleanup() references
a variable __cpuinitdata evtchn_cpu_nfb.
This is often seen when error handling in the exit function
uses functionality in the init path.
The fix is often to remove the __cpuinitdata annotation of
evtchn_cpu_nfb so it may be used outside an init section.

WARNING: vmlinux.o (__xen_guest): unexpected non-allocatable section.
Did you forget to use "ax"/"aw" in a .S file?
Note that for example <linux/init.h> contains
section definitions for use in .S files.

  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
ld: kernel image bigger than KERNEL_IMAGE_SIZE
ld: kernel image bigger than KERNEL_IMAGE_SIZE
ld: kernel image bigger than KERNEL_IMAGE_SIZE
make: *** [.tmp_vmlinux1] Error 1

Any hints?
-- Student of Telematics at University of Technology in Graz, Austria
-- Running Linux on x86(gentoo), PPC(gentoo), ARM(familiar), SPARC64(gentoo), Alpha(gentoo), MIPS(gentoo) and soon HPPA
Top
Post Reply

219 posts
  • Page 5 of 9
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 9
  • Next

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic