blueadept
Posts: 26
Joined: Wed Aug 29, 2012 8:42 am

Kernel Chaos

Wed Aug 29, 2012 9:28 am

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?

:(

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23869
Joined: Sat Jul 30, 2011 7:41 pm

Re: Kernel Chaos

Wed Aug 29, 2012 11:18 am

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.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

User avatar
Sander
Posts: 174
Joined: Wed Aug 31, 2011 1:01 pm

Re: Kernel Chaos

Wed Aug 29, 2012 11:52 am

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

blueadept
Posts: 26
Joined: Wed Aug 29, 2012 8:42 am

Re: Kernel Chaos

Wed Aug 29, 2012 11:56 am

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?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5340
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Kernel Chaos

Wed Aug 29, 2012 12:49 pm

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.

blueadept
Posts: 26
Joined: Wed Aug 29, 2012 8:42 am

Re: Kernel Chaos

Wed Aug 29, 2012 2:11 pm

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.

blueadept
Posts: 26
Joined: Wed Aug 29, 2012 8:42 am

Re: Kernel Chaos

Wed Sep 05, 2012 12:49 pm

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?

User avatar
RaTTuS
Posts: 10482
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Kernel Chaos

Wed Sep 05, 2012 12:59 pm

what module do you need?
and why
what project are you working on?
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

asb
Forum Moderator
Forum Moderator
Posts: 853
Joined: Fri Sep 16, 2011 7:16 pm
Contact: Website

Re: Kernel Chaos

Wed Sep 05, 2012 1:06 pm

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

blueadept
Posts: 26
Joined: Wed Aug 29, 2012 8:42 am

Re: Kernel Chaos

Wed Sep 05, 2012 1:19 pm

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

blueadept
Posts: 26
Joined: Wed Aug 29, 2012 8:42 am

Re: Kernel Chaos

Wed Sep 05, 2012 1:25 pm

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

asb
Forum Moderator
Forum Moderator
Posts: 853
Joined: Fri Sep 16, 2011 7:16 pm
Contact: Website

Re: Kernel Chaos

Wed Sep 05, 2012 1:51 pm

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.

User avatar
Licaon_Kter
Posts: 240
Joined: Wed Sep 05, 2012 10:12 am
Location: Between the keyboard and the chair.

Re: Kernel Chaos

Wed Sep 05, 2012 1:56 pm

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.
BFQ+BFS or RT on a RPi? 4'real: https://github.com/licaon-kter/ (source and compiled!)

blueadept
Posts: 26
Joined: Wed Aug 29, 2012 8:42 am

Re: Kernel Chaos

Wed Sep 05, 2012 2:31 pm

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

Return to “Raspbian”