Skip to contentSkip to conversation

org.oe.dev SlugOS: ixp4xx-kernel - added 2.6.23.8 recipe and supporting files. (Note that

oe-commits Koen Kooi 5 participants 8 messages Nov 23, 2007 – Nov 24, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Koen Kooi

author
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

mwester commit schreef:

Quoted 2 lines

SlugOS: ixp4xx-kernel - added 2.6.23.8 recipe and supporting files. (Note that SlugOS still selects 2.6.21 as the preferred version for now.)

Why am I forced to download a 40MB 2.6.23.8 tarball instead of the small 2.6.23.8 patch? I already have 2.6.23 in DL_DIR.

It's as easy as doing:

VANILLA_VERSION = "2.6.23"
KERNEL_VERSION = "2.6.23.8"

SRC_URI = " ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${VANILLA_VERSION}.tar.bz2 \
${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${KERNEL_VERSION}.bz2;patch=1 \
"

in the recipe. I would have fixed it myself, but the huge block of python magic in ixp4xx-kernel.inc scared me away.

- --
[email protected] will go go away in december 2007, please use [email protected] instead.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFHRsSlMkyGM64RGpERAv/KAJ0aMNK4ltbFd0ABHJKEYiezTHGJRQCgvODH cZUTZIWcrGcSAFDURB7KtPU=
=V2AA
-----END PGP SIGNATURE-----

#2 lore raw
Quoted 2 lines · Koen Kooi

mwester commit schreef:

Quoted 1 line

SlugOS: ixp4xx-kernel - added 2.6.23.8 recipe and supporting files.

(Note that

Quoted 4 lines
Quoted 1 line

SlugOS still selects 2.6.21 as the preferred version for now.)

Why am I forced to download a 40MB 2.6.23.8 tarball instead of the small 2.6.23.8 patch? I already have 2.6.23 in DL_DIR.

The set of developers that will actually be using that recipe is extraordinarily small (two at present), so the relative benefit of such significant modifications to a stable, working bb skeleton just don't seem worth the risk of breaking things for every user of the ixp4xx-kernel*.bb recipes at the moment. Yes, I agree that in a perfect world, fixing this would be the Right Thing To Do(tm).

Quoted 10 lines

It's as easy as doing:

VANILLA_VERSION = "2.6.23"
KERNEL_VERSION = "2.6.23.8"

SRC_URI = " ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${VANILLA_VERSION}.tar.bz2 \

${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${KERNEL_VERSION}.bz2;patch= 1

Quoted 2 lines

\
"

I don't think so, in this case. There's a lot of other logic in the include file that looks like it will get in the way of this simple change. I'll look at it and see how it might be altered to handle this use-case (I don't see that it currently does, although it seems to handle other kernel patchsets nicely). Just don't expect it to be fixed right away; there are bigger problems right now with 2.6.23 and ixp4xx than the bb recipe (which is why that recipe is not selected by default).

Quoted 2 lines

in the recipe. I would have fixed it myself, but the huge block of python magic in ixp4xx-kernel.inc scared me away.

Perhaps this will force me to learn python. Yes, I know it's not difficult, but my brain crawls into the back of my head and protests mightily when it is forced to use a language that reminds it so much of Fortran and the horrors of column-sensitivity. :p

Mike (mwester)

#3 lore raw

Hello all,

Quoted 12 lines · Mike (mwester)
Quoted 2 lines · Koen Kooi

mwester commit schreef:

Quoted 1 line

SlugOS: ixp4xx-kernel - added 2.6.23.8 recipe and supporting files.

(Note that

Quoted 4 lines
Quoted 1 line

SlugOS still selects 2.6.21 as the preferred version for now.)

Why am I forced to download a 40MB 2.6.23.8 tarball instead of the small 2.6.23.8 patch? I already have 2.6.23 in DL_DIR.

The set of developers that will actually be using that recipe is extraordinarily small (two at present), so the relative benefit of such

Sorry, this seems to be some misconception amongst the nslu2 developers. The use base
for the mainline bleeding edge kernels is much larger*. I assume that every active board
developer want to try and verify the new kernels against his hardware *and* is using OpenEmbedded
to do so ;-)

Regards, Leon.

*ok, so more than two, maybe three :-)

#4 lore raw
Quoted 9 lines · Leon Woestenberg
Quoted 3 lines · Mike (mwester)

The set of developers that will actually be using that recipe is extraordinarily small (two at present), so the relative benefit of such

Sorry, this seems to be some misconception amongst the nslu2 developers. The use base for the mainline bleeding edge kernels is much larger*. I assume that every active board developer want to try and verify the new kernels against his hardware *and* is using OpenEmbedded to do so ;-)

No misconception at all. In fact, that's the very reason why the ixp4xx-kernel.inc file exists - to make it very easy to test the absolute latest bleeding edge kernel.

For example, just by naming your .bb file ixp4xx-kernel_2.6.24-rc3-git1 (which is about as bleeding edge as you can get right now), you get exactly that version built, without having to do anything else in the SRC_URI field. So tracking the latest -gitNN bleeding edge checkin by Linus (or by Alan with the -ac series, or by Andrew with the -mm series) is as simple as changing the name of the .bb file.

This is all clearly explained in the voluminous comments at the top of the ixp4xx-kernel.inc file.

Of course Koen didn't write it, so instead of reading the comments to understand what it does, he says the following:

Quoted 2 lines · Koen Kooi

I would have fixed it myself, but the huge block of python magic in ixp4xx-kernel.inc scared me away.

Which is pretty much par for the course for Koen ... anything he didn't write is by definition substandard and shouldn't be used. He'll probably even reply to this to explain why all this ixp4xx-kernel.inc functionality has been implemented the wrong way and doesn't follow the unwritten "spirit" of OE ...

-- Rod

#5 lore raw

Am Samstag, den 24.11.2007, 13:23 +1030 schrieb Rod Whitby:

Before I go into this: Koen actually made a good point about applying patches instead of downloading a 40Mb tarball every time.

VANILLA_VERSION = "2.6.23"
KERNEL_VERSION = "2.6.23.8"

SRC_URI = " ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${VANILLA_VERSION}.tar.bz2 \
${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${KERNEL_VERSION}.bz2;patch=1 \
"

The above is IMO indeed a lot more elegant than

SRC_URI = " ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.23.8.tar.bz2

Quoted 4 lines

Of course Koen didn't write it, so instead of reading the comments to understand what it does, he says the following:

Koen Kooi wrote:

Quoted 8 lines
Quoted 2 lines

I would have fixed it myself, but the huge block of python magic in ixp4xx-kernel.inc scared me away.

Which is pretty much par for the course for Koen ... anything he didn't write is by definition substandard and shouldn't be used. He'll probably even reply to this to explain why all this ixp4xx-kernel.inc functionality has been implemented the wrong way and doesn't follow the unwritten "spirit" of OE ...

Actually Koen learned from his past. He wrote down this "spirit" so he has a page he can point people at when they complain about various brain-dead "policies". That doesn't make it one bit bitter, but it is no longer "unwritten" ;)

Signature · 7 lines
Matthias 'CoreDump' Hentges 
Cologne / Germany

Webmaster of Hentges.net & Embedded Linux Developer
GPG ->  gpg --keyserver gpg-keyserver.de --recv-keys 0xAF3030D9

My OS: Debian SID: Geek by Nature, Linux by Choice
#6 lore raw
Quoted 10 lines · Matthias Hentges

VANILLA_VERSION = "2.6.23"
KERNEL_VERSION = "2.6.23.8"

SRC_URI = " ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${VANILLA_VERSION}.tar.bz2 \
${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${KERNEL_VERSION}.bz2;patch=1 \
"

Quoted 4 lines

The above is IMO indeed a lot more elegant than

SRC_URI = " ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.23.8.tar.bz2

Even more elegant is not having to specify the SRC_URI or vanilla_version and kernel_version in the .bb file at all. The ixp4xx-kernel.inc file gets all the info it needs from the .bb filename.

It is implemented to be able to handle a whole lot more scenarios than the simple one of 2.6.23.8 - if people want to fix it so that it still handles all those -ac, -mm, and -gitNN scenarios listed in the documentation in the comments at the start of the file, but is also optimally tuned as far as downloads go, then as Koen would always say:

"Patches are welcome".

As usual, people should understand something before they criticise it.

-- Rod

#7 lore raw

Re: [oe-commits] org.oe.dev SlugOS: ixp4xx-kernel - added2.6.23.8 recipe and supporting files. (Note that

In reply to Leon Woestenberg
Quoted 11 lines · Leon Woestenberg

Sorry, this seems to be some misconception amongst the nslu2 developers. The use base
for the mainline bleeding edge kernels is much larger*. I assume that every active board
developer want to try and verify the new kernels against his hardware *and* is using OpenEmbedded
to do so ;-)

Regards, Leon.

*ok, so more than two, maybe three :-)

Well, that's 50% more - that's a lot! :)

Just to be clear, this is the ixp4xx kernel we are speaking of, not the generic kernel recipe. I'll be happy to be a bit broader in the communications on the bleeding-edge kernel stuff, in that case. The current issues center around Krzysztof's IXP network driver - the kernel works ok as long as the network driver is loaded as a module. The current version in OE will load a patch that prevents it from using all-zeros for the MAC address when compiled into the kernel, but we still don't have firmware loading until the system mounts the rootfs -- which eliminates the possibility of nfsroot, of course.

Thanks!
Mike (mwester)

author
#8 lore raw
In reply to Mike (mwester)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike (mwester) schreef:

Quoted 10 lines
Quoted 2 lines · Koen Kooi

mwester commit schreef:

Quoted 1 line

SlugOS: ixp4xx-kernel - added 2.6.23.8 recipe and supporting files.

(Note that

Quoted 3 lines
Quoted 1 line

SlugOS still selects 2.6.21 as the preferred version for now.)

Why am I forced to download a 40MB 2.6.23.8 tarball instead of the small 2.6.23.8 patch? I already have 2.6.23 in DL_DIR.

The set of developers that will actually be using that recipe is extraordinarily small (two at present),

No, the set is quite a bit larger, since it's the default kernel for ixp4xx based machines that's don't use slugos as distro.

And python makes my eyes bleed, just like m4.

- --
[email protected] will go go away in december 2007, please use [email protected] instead.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFHR4ahMkyGM64RGpERAgJjAKCEs2x2kQ9JIwq6qG3dtIVIFsJu5gCgq6nN TgD+lgjq2RMyvnsPIKTZc9o=
=jWWG
-----END PGP SIGNATURE-----