FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS Docs

 
 
LinkBack Thread Tools
 
Old 08-27-2010, 07:35 PM
R P Herrold
 
Default doco bug as to http://wiki.centos.org/HowTos/Custom_Kernel

and AJB kernel-2.6.35-3.bcat.src.rpm

[I see AlanBartlett as the last editor on that page]

I have installed the given ajb source rpm
kernel-2.6.35-3.bcat.src.rpm, and verified that it is intact:

[herrold@kernel-bleeder linux-2.6.35.i686]$ rpm -Vp ~/build/ajb/sources/kernel-2.6.35-3.bcat.src.rpm
warning: /home/herrold/build/ajb/sources/kernel-2.6.35-3.bcat.src.rpm:
Header V3 DSA signature: NOKEY, key ID baadae52
.....UGT config-2.6.35-i686
.....UGT config-2.6.35-i686-PAE
.....UGT config-2.6.35-x86_64
missing kernel.spec
missing linux-2.6.35.3.tar.bz2
[herrold@kernel-bleeder linux-2.6.35.i686]$ pwd
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i686
[herrold@kernel-bleeder linux-2.6.35.i686]$


The tarball and .spec are in the anticipated locales, and out
of scope here; userids [UGT] are expected to differ

[herrold@kernel-bleeder linux-2.6.35.i686]$ ls -l
~/rpmbuild/SPECS/ ~/rpmbuild/SOURCES/kernel
/home/herrold/rpmbuild/SOURCES/kernel:
total 68064
-rw-r--r-- 1 herrold herrold 109943 Aug 21 13:08 config-2.6.35-i686
-rw-r--r-- 1 herrold herrold 109993 Aug 21 13:08 config-2.6.35-i686-PAE
-rw-r--r-- 1 herrold herrold 105624 Aug 21 13:08 config-2.6.35-x86_64
-rw-r--r-- 1 herrold herrold 69267320 Aug 21 13:02 linux-2.6.35.3.tar.bz2

/home/herrold/rpmbuild/SPECS/:
total 20
-rw-r--r-- 1 herrold herrold 15839 Aug 21 13:04 kernel.spec
[herrold@kernel-bleeder linux-2.6.35.i686]$

-------------


The wiki page notes:

| If you you do not intend to modify the distributed kernel
| configuration file you may omit this section, as long as you
| perform the equivalent of the final step:
|
| [user@host] $ cp
| ~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.`uname -m`/configs/*
| ~/rpmbuild/SOURCES

which is curious, because at this point in the outline in
section 2, ~/rpmbuild/BUILD/ should be empty

I suspect there has been a:

[herrold@kernel-bleeder ~]$ rpm -U
~/build/ajb/sources/kernel-2.6.35-3.bcat.src.rpm
[herrold@kernel-bleeder ~]$ rpmbuild -bp
~/rpmbuild/SPECS/kernel.spec

omitted here. Following on that assumption, I do those setps
and cd into the prepared directory

-------------


I follow the wiki outline branch involving using an existing
config file out of /boot/,
[user@host]$ cp /boot/config-`uname -r` .config
and run the suggested
make oldconfig
and perform the edit to the top of the resulting .config to
add the `uname -i ` comment on the first line

-------------


The outline falls of the tracks here. It suggests:

| Copy the .config file back to the configs/ directory. This is
| basically the opposite of the earlier copy command:
|
| [user@host]$ cp .config configs/kernel-2.6.18-`uname -m`[-type].config

[herrold@kernel-bleeder ~]$ find / -type d -name configs 2> /dev/null
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/microblaze/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/cris/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/sparc/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/mn10300/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/mips/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/x86/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/m32r/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/score/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/avr32/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/m68knommu/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/powerpc/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/parisc/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/xtensa/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/blackfin/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/arm/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/m68k/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/sh/configs
/home/herrold/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/ia64/configs
[herrold@kernel-bleeder ~]$

The problem here: several candidates to copy to are possible,
and although I assume an arch dependent choice is proper:
~/rpmbuild/BUILD/kernel-2.6.35/linux-2.6.35.i386/arch/x86/configs
the reader is left to wonder

-------------


The outline next goes off into .spec file edits, and does not
stop to roll and position a new tarball

I think some steps are missing that need to be done first:
cd ~/rpmbuild/BUILD/kernel-2.6.35
mv linux-2.6.35.i386 linux-2.6.35.3
tar cf linux-2.6.35.3.tar linux-2.6.35.3
bzip2 linux-2.6.35.3.tar
cp linux-2.6.35.3.tar.bz2 ~/rpmbuild/SOURCES
or such? The .spec file seems to key off of:
%define LKAver 2.6.35.3

-------------

So open questions working through the article are:
1. is there a missing preparatory rpm based unpack and
rpmbuild -bp
2. what is the proper place for the new .config,
taking into account the target arch
3. is there a missing directory rename and tarball
re-roll

-------------

Not unexpectedly, these are raised in the context of packaging
and getting to a non-root build of pathscale's pscnv 'gpgpu
module' as raised on another mailing list earlier this week

I raise them here [centos-docs ML] rather than adding QUERY in
the articles

-- Russ herrold
_______________________________________________
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs
 
Old 08-27-2010, 07:54 PM
Akemi Yagi
 
Default doco bug as to http://wiki.centos.org/HowTos/Custom_Kernel

On Fri, Aug 27, 2010 at 12:35 PM, R P Herrold <herrold@owlriver.com> wrote:
> and AJB kernel-2.6.35-3.bcat.src.rpm
>
> [I see AlanBartlett as the last editor on that page]
>
> I have installed the given ajb source rpm
> kernel-2.6.35-3.bcat.src.rpm, and verified that it is intact:

The wiki article:

http://wiki.centos.org/HowTos/Custom_Kernel

was written for _CentOS_ kernels as stated on the page:

" This tutorial will cover the building of a kernel from the CentOS
sources with your own options or modifications. It is written
primarily for CentOS-5. "

The bcat kernel is a mainline kernel. It was _built_ to run under
CentOS. So, the contents of the CentOS wiki would not apply. In
fact, the upcoming CentOS-6 kernel would require a new section (rather
than modifying the existing one) because the tutorial will be
different in many places.

Akemi

Akemi
_______________________________________________
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs
 
Old 08-27-2010, 10:41 PM
R P Herrold
 
Default doco bug as to http://wiki.centos.org/HowTos/Custom_Kernel

On Fri, 27 Aug 2010, JohnS wrote:

>> Not unexpectedly, these are raised in the context of packaging
>> and getting to a non-root build of pathscale's pscnv 'gpgpu
>> module' as raised on another mailing list earlier this week

> Russ,
>
> Could I get some directions to that page?
>
> Would this be it?
> http://github.com/pathscale/pscnv/wiki

That is the project -- The principals to this conversation
know the other project where they (pscnv) approached the
enterprise product rebuild efforts

-- Russ herrold
_______________________________________________
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs
 
Old 08-28-2010, 12:56 AM
Alan Bartlett
 
Default doco bug as to http://wiki.centos.org/HowTos/Custom_Kernel

On 27 August 2010 20:54, Akemi Yagi <amyagi@gmail.com> wrote:
> On Fri, Aug 27, 2010 at 12:35 PM, R P Herrold <herrold@owlriver.com> wrote:

>> and AJB kernel-2.6.35-3.bcat.src.rpm
>>
>> [I see AlanBartlett as the last editor on that page]
>>
>> I have installed the given ajb source rpm
>> kernel-2.6.35-3.bcat.src.rpm, and verified that it is intact:

I note muddle-minded confusion from which the snippet, above, is a segment.

> The wiki article:
>
> http://wiki.centos.org/HowTos/Custom_Kernel
>
> was written for _CentOS_ kernels as stated on the page:
>
> " This tutorial will cover the building of a kernel from the CentOS
> sources with your own options or modifications. It is written
> primarily for CentOS-5. "

> The bcat kernel is a mainline kernel. It was _built_ to run under
> CentOS.

I wish to make a minor correction of the last sentence, above. It was
not built for CentOS but for EL5, explicitly RHEL 5.

This discussion of my private work has *no relevance* to articles in
the CentOS wiki or the centos-docs m/l. I would appreciate it ending,
now.

If I did not know the originator of this m/l thread as well as I do,
he would be categorised as a mischief-maker and ignored appropriately.

If anyone wishes to discuss my non-CentOS related work, they are
welcome to make contact via the appropriate medium. There will be no
charge.

Alan.
_______________________________________________
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs
 
Old 08-28-2010, 02:59 AM
R P Herrold
 
Default doco bug as to http://wiki.centos.org/HowTos/Custom_Kernel

On Sat, 28 Aug 2010, Alan Bartlett wrote:

> I wish to make a minor correction of the last sentence, above. It was
> not built for CentOS but for EL5, explicitly RHEL 5.
>
> This discussion of my private work has *no relevance* to articles in
> the CentOS wiki or the centos-docs m/l. I would appreciate it ending,
> now.

Silly me. Earlier this week I heard:

> If a 2.6.35.3 kernel is required for testing, then yes, the
> most recent packages that can be found under
> http://www.centos.toracat.org/ajb/kernel/mainline/ can be
> used with an RHEL 5 / SL 5 / CentOS 5 system

Obviously a forgery, in hindsight. Thank you for the
correction

-- Russ herrold
_______________________________________________
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs
 
Old 08-28-2010, 05:08 PM
Alan Bartlett
 
Default doco bug as to http://wiki.centos.org/HowTos/Custom_Kernel

On 28 August 2010 03:59, R P Herrold <herrold@owlriver.com> wrote:
> On Sat, 28 Aug 2010, Alan Bartlett wrote:
>
>> I wish to make a minor correction of the last sentence, above. It was
>> not built for CentOS but for EL5, explicitly RHEL 5.
>>
>> This discussion of my private work has *no relevance* to articles in
>> the CentOS wiki or the centos-docs m/l. I would appreciate it ending,
>> now.
>
> Silly me. *Earlier this week I heard:
>
>> If a 2.6.35.3 kernel is required for testing, then yes, the
>> most recent packages that can be found under
>> http://www.centos.toracat.org/ajb/kernel/mainline/ can be
>> used with an RHEL 5 / SL 5 / CentOS 5 system
>
> Obviously a forgery, in hindsight. *Thank you for the
> correction

Thanks for the explanation, Russ. The correction was, however, to
Akemi's message. ;-)

No, not a forgery but a statement of fact. At the time it was written
(I suppress the internal pedant who wishes to know how one may hear a
written word -- apart, of course, when using text-to-audio device
designed for the visually impaired), the current "bcat" kernel was
then based on the LKA 2.6.35.3 source tarball. (Now current:
kernel-2.6.35-4.bcat)

I'm ready to be corrected if the above statement was made on a CentOS
wiki page or within a centos-docs m/l thread . . .

"Silly me." Yes, I agree with you self-analysis. The silliness is
noted when one observes that the bcat kernel source package (for which
I am entirely and solely responsible) was attempted to be operated on
by following the tried and well-tested method that is documented
within the CentOS wiki, which is for use with the CentOS kernel source
package only. (A document of which I am, coincidentally, the
co-maintainer.)

However, no harm has been done. And I am pleased to see that other
members of my generation are also prone to moments of silliness and
can subsequently recognise when it has occurred. :-)

Regards,
Alan.
_______________________________________________
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs
 

Thread Tools




All times are GMT. The time now is 09:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org