Problem when trying to compile ubuntu-kernel from source (via apt-

Thomas Stather thomas.stather at sit.fraunhofer.de
Thu Mar 18 05:05:11 UTC 2010


Am 03.03.2010 18:26, schrieb Thomas Stather:
> Am 01.03.2010 15:12, schrieb Tim Gardner:
>> Thomas Stather wrote:
>>    
>>> Hello everybody
>>>
>>> I have a strange problem when i tried to compile my own XEN Dom0/DomU
>>> Kernel from source (i used the apt-src kernel sources).
>>> I followed this manual:
>>>
>>> https://help.ubuntu.com/community/Kernel/Compile
>>>
>>>
>>> I created a new flavour called "xen" (see
>>> http://blog.avirtualhome.com/2009/11/03/how-to-compile-a-kernel-for-ubuntu-karmic/)
>>> and patched the kernel-source with the xen-patches (2.6.31-11).After
>>> that, i ran:
>>>
>>>
>>> debian/rules updateconfigs
>>>
>>> and i enabled the new XEN config-attributes only for my flavour
>>>
>>>
>>> For compilation, i ran
>>>
>>> DEB_BUILD_OPTIONS=parallel=2 AUTOBUILD=1 skipmodule=1 skipabi=1
>>> debian/rules binary-debs
>>>
>>> And here is the first of my 2 problems. When i omitted the skipmodule
>>> flag, i got some warnings about missing modules, what exactly does this
>>> mean (are the modules in the kernel config but not in the kernel source
>>> anymore????)?
>>>
>>> Then i set the flag, and the compilation went through fine (about 20
>>> minutes) but i got the following error:
>>>
>>> WW: Explicitly asked to ignore failures (probably not good)
>>> II: New modules (you've been busy, wipe the poop off your nose)
>>> II: Done
>>> dh_testdir
>>> dh_testroot
>>> dh_clean -k -plinux-image-2.6.31-19-xen
>>> dh_clean -k -plinux-headers-2.6.31-19-xen
>>> dh_clean -k -plinux-image-debug-2.6.31-19-xen
>>> # The main image
>>> # compress_file logic required because not all architectures
>>> # generate a zImage automatically out of the box
>>> install -m644 -D
>>> /root/linux-2.6.31/debian/build/build-xen/arch/x86_64/boot/bzImage \
>>>
>>> /root/linux-2.6.31/debian/linux-image-2.6.31-19-xen/boot/vmlinuz-2.6.31-19-xen
>>>
>>> install: cannot stat
>>> `/root/linux-2.6.31/debian/build/build-xen/arch/x86_64/boot/bzImage': No
>>> such file or directory
>>> make: *** [install-xen] Error 1
>>>
>>> I have some knowledge about debian/ubuntu package building, but as i
>>> discovered, the kernel rules-file is a bit complicated and i don't know
>>> where the error could be. What i know is that
>>>
>>> /root/linux-2.6.31/debian/linux-image-2.6.31-19-xen/boot/vmlinuz-2.6.31-19-xen
>>>
>>>
>>> doesn't exist
>>>
>>>
>>> Can you please help me, because i really need this Xen Dom0/U Kernel for
>>> Ubuntu Karmic (x86_64).
>>>
>>>
>>> Greets Thomas
>>>
>>>
>>>
>>>
>>>      
>> Check your configuration. It kind of looks like your version configs are
>> messed up. They should be:
>>
>> debian.master/config/config.common.ubuntu:CONFIG_LOCALVERSION=""
>> debian.master/config/config.common.ubuntu:# CONFIG_LOCALVERSION_AUTO is
>> not set
>>
>> The definitive source for kernel maintenance is here:
>>
>> https://wiki.ubuntu.com/KernelTeam/KernelMaintenance
>>
>> rtg
>>    
> Hello again
>
> I built the kernel from source (apt-src) from another machine, and 
> created the new flavour xen as well. Now i have this:
>
> DEB_BUILD_OPTIONS=parallel=8 AUTOBUILD=1 debian/rules binary-xen (i 
> only wanted to build the flavour xen, which is derived from the serve 
> flavour)
>
> ...
> II: Done
> install -d /root/linux-2.6.31/debian.master/abi/2.6.31-19.56/amd64
> find /root/linux-2.6.31/debian/build/build-xen/ -name \*.ko | \
>         sed -e 's/.*\/\([^\/]*\)\.ko/\1/' | sort > 
> /root/linux-2.6.31/debian.master/abi/2.6.31-19.56/amd64/xen.modules
> II: Checking modules for xen...
>    reading new modules...read 2459 modules.
>    reading old modules...
>       MISS: 9pnet_virtio
>       MISS: amd64_edac_mod
>       MISS: epl
>       MISS: evtchn
>       MISS: kvm
>       MISS: kvm-amd
>       MISS: kvm-intel
>       MISS: p4-clockmod
>       MISS: snd-hrtimer
>       MISS: snd-pcsp
>       MISS: speedstep-lib
>       MISS: virtio
>       MISS: virtio_balloon
>       MISS: virtio_blk
>       MISS: virtio_console
>       MISS: virtio_net
>       MISS: virtio_pci
>       MISS: virtio_ring
>       MISS: virtio-rng
>       MISS: walkera0701
>       MISS: xen-blkfront
>       MISS: xen-fbfront
>       MISS: xenfs
>       MISS: xen-kbdfront
>       MISS: xen-netfront
>       NEW : sfc_netutil
>       NEW : xennet
>       NEW : tpm_xenu
>       NEW : xen-scsibk
>       NEW : 8250
>       NEW : xenblk
>       NEW : xen-hcd
>       NEW : usbbk
>       NEW : 8250_pnp
>       NEW : sfc_netfront
>       NEW : 8250_pci
>       NEW : serial_core
>       NEW : xenscsi
>       read 2471 modules : new(13)  missing(25)
> EE: Missing modules (start begging for mercy)
> make[1]: *** [module-check-xen] Fehler 1
> make: *** [binary-xen] Fehler 2
> root at karmic-compiler-server-64:~/linux-2.6.31#
>
>
> What is wrong here (i don't use git, because i want to do a local 
> compilation), i couldn't find anything in the document you posted?
> Furthermore i haven't done an ABI bump, as the ABI checks completes 
> without an error.
>
>
> Greets Thomas
>
>
> -- 
> Thomas Stather, Fraunhofer SIT
> Abteilung PSS
> Zimmer 64
> Rheinstrasse 75, 64295 Darmstadt, Germany
> Tel: +49 (0) 6151 86960058
> http://www.sit.fraunhofer.de  
Hello

In my last attempt, i used skipmodule=true to skip the modules error, 
but now i have the first error again (stat .... no such file or 
directory), even if i change the server flavour to support Dom0 
operations and build it with debian/rules binary-server.
Please help me as this is urgend and i don't know who to ask otherwise.


Greets Thomas

-- 
Thomas Stather, Fraunhofer SIT
Abteilung PSS
Zimmer 64
Rheinstrasse 75, 64295 Darmstadt, Germany
Tel: +49 (0) 6151 86960058
http://www.sit.fraunhofer.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20100318/ad55f244/attachment.html>


More information about the kernel-team mailing list