Page 1 of 1

Kernel Chaos

Posted: Wed Aug 29, 2012 9:28 am
by blueadept
Well, my first experience with the Pi was a bit disappointing...

I looked to see if the module I wanted was delivered with the distribution, and it isn't...

Hmm, kernel 3.1.9+ (what is the +).. oh well, no problem, apt-get install the kernel source and build the new modules... wait, this isn't the same kernel the thing is running... lets update everyting.

So, now the device is running 3.2.27+ (I still have no idea what the + refers to).. and I have a kernel source package which is... wait, 3.2.21. So, still I can't compile a module. I hunted around on the forums and found a GIT repo with 3.2.27, but there's no "+", and so I still don't know if I have the source for the kernel that's running..

How hard is it to have a kernel source package in the repository that's the same as the kernel binary packages in the repository?

:(

Re: Kernel Chaos

Posted: Wed Aug 29, 2012 11:18 am
by jamesh
Pretty difficult when you have a bleeding edge dev kernel being constantly updated, vs the requirement to have a relatively stable general release SD card image.

Have you checked the Wiki for all this stuff?

No, I don't know what the + is for either.

Re: Kernel Chaos

Posted: Wed Aug 29, 2012 11:52 am
by Sander
I had the same problem trying to compile the rfbb module for Raspbian. And yes I agree with you on the strange situation with the kernel versions & sources.

Anyway: based on https://www.grendelman.net/wp/compiling ... pberry-pi/ I could compile the module. See http://www.raspberrypi.org/phpBB3/viewt ... 47#p157647 how I did it

HTH

Re: Kernel Chaos

Posted: Wed Aug 29, 2012 11:56 am
by blueadept
jamesh wrote:Pretty difficult when you have a bleeding edge dev kernel being constantly updated, vs the requirement to have a relatively stable general release SD card image.

Have you checked the Wiki for all this stuff?

No, I don't know what the + is for either.
I don't buy that having a bleeding edge kernel makes it hard to package... when you upload a binary kernel to the repo, surely you would package that in a source package and upload that too?... what am I missing?

Re: Kernel Chaos

Posted: Wed Aug 29, 2012 12:49 pm
by dom
blueadept wrote: I don't buy that having a bleeding edge kernel makes it hard to package... when you upload a binary kernel to the repo, surely you would package that in a source package and upload that too?... what am I missing?
The kernel source lives here.
https://github.com/raspberrypi/linux

There is no debian package for the raspberry pi kernel source, because raspberry pi is a fork of the linux kernel, and the patches haven't been upstreamed.

Re: Kernel Chaos

Posted: Wed Aug 29, 2012 2:11 pm
by blueadept
dom wrote:
blueadept wrote: I don't buy that having a bleeding edge kernel makes it hard to package... when you upload a binary kernel to the repo, surely you would package that in a source package and upload that too?... what am I missing?
The kernel source lives here.
https://github.com/raspberrypi/linux

There is no debian package for the raspberry pi kernel source, because raspberry pi is a fork of the linux kernel, and the patches haven't been upstreamed.
Sure, I've found the git details on the forums etc, but I didn't see the branch... still don't see the EXTRAVERSION tho... will try compiling from that version of 3.2.27 instead and see if the resulting module will load.

Perhaps I should just ask nicely and see if the guys maintaining the kernel binaries would turn on "Batman Advanced" as a module in future kernel configurations, because packaging anything that needs to use this module is going to be really hard if non-standard modules are needed.

Re: Kernel Chaos

Posted: Wed Sep 05, 2012 12:49 pm
by blueadept
I just did an update and I still have version 3.2.27+ but my modules don't load again... I guess I do understand the issue, but I want to distribute software which requires kernel modules not shipped with Raspbian... It seems to mean that I'm gonna have to compile a module after every update and have software which tries to work out what version of the kernel the user has so it can pull the appropriate module from my website... there has to be a better way.

Normally I would install the source package from apt, and build the module for whatever kernel the user has, but the kernel source in apt doesn't match the running kernel for the reasons stated above... and just pulling the kernel source from git doesn't get me the Module.symvers file, so I would have to do a full rebuild, and that would take about 29 hours on a Pi...

Is there any suggested solution to this, other than to ask really nicely for the modules I want to be included in the distribution kernel configuration?

Re: Kernel Chaos

Posted: Wed Sep 05, 2012 12:59 pm
by RaTTuS
what module do you need?
and why
what project are you working on?

Re: Kernel Chaos

Posted: Wed Sep 05, 2012 1:06 pm
by asb
blueadept wrote: Is there any suggested solution to this, other than to ask really nicely for the modules I want to be included in the distribution kernel configuration?
I'd happily accept improvements to the current packaging https://github.com/asb/firmware

Re: Kernel Chaos

Posted: Wed Sep 05, 2012 1:19 pm
by blueadept
RaTTuS wrote:what module do you need?
and why what project are you working on?
I'm using the "Batman Advanced" network module for mesh networking, details in this thread:-

http://www.raspberrypi.org/phpBB3/viewt ... 36&t=14835

And on my somewhat utilitarian web site for the project (read, there's no actual HTML), here:-

http://www.netlore.co.uk/airmesh
http://www.netlore.co.uk/airmesh/About.html

I've hit Raspberry Pi first with the packaged version of this, so currently only the Raspbian folders are really populated, but that will change once I have some spare time!

James

Re: Kernel Chaos

Posted: Wed Sep 05, 2012 1:25 pm
by blueadept
asb wrote:
blueadept wrote: Is there any suggested solution to this, other than to ask really nicely for the modules I want to be included in the distribution kernel configuration?
I'd happily accept improvements to the current packaging https://github.com/asb/firmware
The only suggestion I could honestly offer is that, like IPv6... batman-adv is pretty rarely used... but turning it on as a module in the default build will only loose you about 115K, and it would make me very happy... :)

You can see the problem if you read my installation instructions here:-

http://www.netlore.co.uk/airmesh/Raspbi ... _HOWTO.txt

James

Re: Kernel Chaos

Posted: Wed Sep 05, 2012 1:51 pm
by asb
blueadept wrote: You can see the problem if you read my installation instructions here:-

http://www.netlore.co.uk/airmesh/Raspbi ... _HOWTO.txt
Yes there's no reason at all for us not to build that module. Could you please file a request at https://github.com/raspberrypi/linux/issues and we'll include it next time we refresh the defconfig.

Re: Kernel Chaos

Posted: Wed Sep 05, 2012 1:56 pm
by Licaon_Kter
In my kernel rebuilds activating as a module kinda everything ( USB, net modules etc that work on RPi ) makes the modules folder only 10Mb bigger at 35Mb, any reason not to have them all active? Yeah I know that specialised users might compile their own kernels but this might be easier.

Re: Kernel Chaos

Posted: Wed Sep 05, 2012 2:31 pm
by blueadept
asb wrote:
blueadept wrote: You can see the problem if you read my installation instructions here:-

http://www.netlore.co.uk/airmesh/Raspbi ... _HOWTO.txt
Yes there's no reason at all for us not to build that module. Could you please file a request at https://github.com/raspberrypi/linux/issues and we'll include it next time we refresh the defconfig.
Thanks, I certainly will!.. :)

https://github.com/raspberrypi/linux/issues/104

James