Linux 3.7.1 - available for RPi


9 posts
by Olipro » Wed Dec 26, 2012 4:39 am
For anyone interested, I've ported over the patchset from 3.6.y to 3.7, repo is here on GitHub: https://github.com/Olipro/linux-RPi

For those interested, the process essentially consisted of cherry-picking the revlist of commits that exist on rpi-3.6.y but not 3.6.11 and then fixing up conflicts as required. A couple of additional commits exist at the head of the tree which fix compile errors, no promises on the dwc_otg.

I've tested it on my own Raspberry Pi, it boots my Gentoo install and I have not thus far run into any issues. But as ever, you are responsible for trying this out, YMMV.
Posts: 4
Joined: Wed Dec 26, 2012 4:32 am
by azarashi55 » Fri Dec 28, 2012 10:06 am
Thank you for your great work.

I cross-compiled your kernel source without error.
Now I am testing the kernel on my Raspberry Pi (I use Raspbian), and there is not any issues at present.
User avatar
Posts: 9
Joined: Wed Mar 07, 2012 2:05 am
Location: Tokyo
by dom » Fri Dec 28, 2012 12:48 pm
This is interesting.

A further step would be using the mach-bcm2835 machine driver (which is the upstreamed support for the Pi).
http://git.kernel.org/?p=linux/kernel/g ... 34;hb=HEAD

It doesn't support framebuffer/sdcard/usb/vchiq/audio etc, so that would need merging in.
Moderator
Moderator
Posts: 3858
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Olipro » Fri Dec 28, 2012 6:12 pm
That code is, at best, a stub.

I don't quite see what the value is in combining the platform code written (presumably) by Broadcom and this initial SoC mach support aside from the goal of rewriting it into a mainline-compliant manner - but this is an effort that is evidently already underway.
Posts: 4
Joined: Wed Dec 26, 2012 4:32 am
by dom » Sat Dec 29, 2012 1:00 pm
Olipro wrote:That code is, at best, a stub.

Look more closely. It is enough to boot up with timer, interrupts and console uart output. The driver code is more correctly located in the tree than the RPi fork. E.g.
http://git.kernel.org/?p=linux/kernel/g ... m2835.dtsi
http://git.kernel.org/?p=linux/kernel/g ... -bcm2835.c
http://git.kernel.org/?p=linux/kernel/g ... -bcm2835.c
http://git.kernel.org/?p=linux/kernel/g ... 35_timer.c
Moderator
Moderator
Posts: 3858
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by Olipro » Sat Dec 29, 2012 10:37 pm
You're misinterpreting what I said; I was not at any time claiming that the code merged into 3.7 isn't enough to boot up.

However, compared to the BCM code that exists in the RPi branch, I consider it a stub, but this is just a matter of arguing semantics; the bottom line is that it is far from feature-complete. My original point stands.
Posts: 4
Joined: Wed Dec 26, 2012 4:32 am
by dom » Sat Dec 29, 2012 10:42 pm
Olipro wrote:You're misinterpreting what I said; I was not at any time claiming that the code merged into 3.7 isn't enough to boot up.
However, compared to the BCM code that exists in the RPi branch, I consider it a stub, but this is just a matter of arguing semantics; the bottom line is that it is far from feature-complete. My original point stands.

Agreed, the upstream support is minimal. It will increase, although there are question marks over whether it will ever support everything (the dwc_otg usb driver and vchiq have been identified as troublesome for upstreaming).

I do believe that making patches to the upstream kernel required as small as possible must be a good thing.
Moderator
Moderator
Posts: 3858
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge
by davyde84 » Thu Jan 03, 2013 10:31 pm
Hi!!
i have a problem
my usb dvb stick doesn't work now but i read that should works with kernel 3.7
how can i upgrade my kernel from 3.6.11 to 3.7.1 on my raspbmc?
i'm trying to compile by myself but i gave me error

thanks a lot

davyde
Posts: 2
Joined: Thu Jan 03, 2013 10:28 pm
by dom » Fri Jan 04, 2013 12:58 pm
The upstream R-Pi commits mostly come from Stephen Warren. His github is interesting for what to expect to be upstreamed in future:
https://github.com/swarren/linux-rpi/commits/rpi_dev

Looks like gpio/pinmux, mailbox, framebuffer, sdcard and I2C have been added recently (and have been submitted upstream as patches).
Moderator
Moderator
Posts: 3858
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge