Welcome! Log In Create A New Profile

Advanced

Do we have a working patch for the latest 3.2 Wheezy kernel?

Posted by Vlad 
Do we have a working patch for the latest 3.2 Wheezy kernel?
August 11, 2012 01:50PM
Hi guys,

today I wanted to compile a 3.2 kernel from the wheezy repo (3.2.23-1 to be precise). So, as usual I grabbed a patch
from here
https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/linux/archlinuxarm.patch
and tried to apply it ... with little success.

Somehow the patch seems to be quite outdated: still using boot_params instead of atag_offset, missing a lot of mach types, adding iConnect support although Debian seems to support it already (board-iconnect.c?) and a lot of other annoyances.

Am I missing something? Is there a better Debian patch somewhere or should I try to fix this one?

Edit: Ok, now I finally found davygravy's patch for 3.3.x
https://www.dropbox.com/sh/nwt2kbvetvgvroo/iUjYHep7VX/Kirkwood/kernel/patches
I'll check if that one will perform better with Debian's 3.2.



Edited 1 time(s). Last edit at 08/12/2012 01:34PM by Vlad.
Re: Do we have a working patch for the latest 3.2 Wheezy kernel?
August 12, 2012 01:41PM
Vlad,

I ran into the same problem with that patch compiling 3.2.18. And I could not find any patch that works. So I went back to the Arch Linux ARRM July 2011 patch for goflex Net and goflex Home (it does not have the Pogoplug V4, though). It would be nice to have a good up-to-date patch for Wheezy we can all use!

I've attached the file here in case you want to take a look.

Update: I did not see you've already found one before posting :-)

-bodhi



Edited 1 time(s). Last edit at 08/12/2012 01:42PM by bodhi.
Attachments:
open | download - archlinuxarm_07_01_2011.patch (10.8 KB)
Re: Do we have a working patch for the latest 3.2 Wheezy kernel?
August 12, 2012 03:25PM
Thanks, bodhi!
I totally agree that it would be nice to have a regularly updated working Wheezy patch, especially when Wheezy will officially become stable. I know that some people here are working to get 3.5 and 3.6 kernels working, which is surely a good thing, but not also shouldn't forget about people who want to use older but more stable kernels.

With davygravy's patch and the patch you attached we already have some basis to start with. I'll see, if I can find some spare time to try to create a proper Wheezy patch.
Re: Do we have a working patch for the latest 3.2 Wheezy kernel?
August 19, 2012 02:47PM
Re: Do we have a working patch for the latest 3.2 Wheezy kernel?
August 26, 2012 06:21AM
Attached patch is archlinuxarm_07_01_2011.patch (Goflex Home/Net only) with fixed NAND badblocks. Patched vanila 3.2.28 kernel builded and booted from sata.
Attachments:
open | download - archlinux_07_01_2011.patch.nand-40.good_for.3.2.28 (10.8 KB)
Re: Do we have a working patch for the latest 3.2 Wheezy kernel?
August 29, 2012 03:45PM
Vlad Wrote:
-------------------------------------------------------

> Edit: Ok, now I finally found davygravy's patch
> for 3.3.x
> https://www.dropbox.com/sh/nwt2kbvetvgvroo/iUjYHep
> 7VX/Kirkwood/kernel/patches
> I'll check if that one will perform better with
> Debian's 3.2.

Vlad,

I've tried Davy's patch with 3.2.26. The new machine types were rejects. Was that because 3.3 vs 3.2? Any idea why? thanks!

root@Debian:/usr/src/linux-3.2.26# patch -t -p1 < ../builds-3.2.26-v2.0/davy-linux-3.3.2-wider.patch
patching file arch/arm/mach-kirkwood/goflexhome-setup.c
patching file arch/arm/mach-kirkwood/goflexnet-setup.c
patching file arch/arm/mach-kirkwood/Kconfig
patching file arch/arm/mach-kirkwood/Makefile
patching file arch/arm/mach-kirkwood/nsa310-setup.c
patching file arch/arm/mach-kirkwood/nsa320-setup.c
patching file arch/arm/mach-kirkwood/pogo_e02-setup.c
patching file arch/arm/mach-kirkwood/pogoplugv4-setup.c
patching file arch/arm/tools/mach-types
Hunk #1 FAILED at 525.
Hunk #2 FAILED at 1169.
2 out of 2 hunks FAILED -- saving rejects to file arch/arm/tools/mach-types.rej
patching file drivers/hwmon/Kconfig
patching file drivers/hwmon/Makefile
patching file drivers/hwmon/nsa3xx-hwmon.c
patching file drivers/mmc/host/mvsdio.c
patching file include/linux/nsa3xx-hwmon.h

root@Debian:/usr/src/linux-3.2.26/arch/arm/tools# cat mach-types.rej 
--- arch/arm/tools/mach-types	2012-04-13 11:42:02.000000000 -0500
+++ arch/arm/tools/mach-types	2012-05-27 15:32:17.226793813 -0500
@@ -525,6 +525,7 @@
 tx28			MACH_TX28		TX28			3043
 pcontrol_g20		MACH_PCONTROL_G20	PCONTROL_G20		3062
 vpr200			MACH_VPR200		VPR200			3087
+goflexnet		MACH_GOFLEXNET		GOFLEXNET		3089
 torbreck		MACH_TORBRECK		TORBRECK		3090
 prima2_evb		MACH_PRIMA2_EVB		PRIMA2_EVB		3103
 paz00			MACH_PAZ00		PAZ00			3128
@@ -1169,3 +1170,6 @@
 pov2			MACH_POV2		POV2			3889
 ipod_touch_2g		MACH_IPOD_TOUCH_2G	IPOD_TOUCH_2G		3890
 da850_pqab		MACH_DA850_PQAB		DA850_PQAB		3891
+nsa320			MACH_NSA320		NSA320			3956
+pogoplugv4		MACH_POGOPLUGV4		POGOPLUGV4		3960
+nsa310			MACH_NSA310		NSA310			4022
Re: Do we have a working patch for the latest 3.2 Wheezy kernel?
August 30, 2012 03:27PM
Regarding patch rejected the machine_types, l've figured out the reason: the code were just different enough that patch has problem reconcile the diffs so it rejected the file. I manually modify the machine types and it built pass that.

However, the build encountered other problems in davy's patch, I ended up modifying several of the kirwood devices setup files in order to build. And it did build OK now.
Re: Do we have a working patch for the latest 3.2 Wheezy kernel?
August 31, 2012 07:46AM
Hi bodhi,

does it also boot without
General setup -> Embedded System -> Enable
Patch physical to virtual translations at runtime -> Disable
and setting PHYS_OFFSET to 0x00?
Re: Do we have a working patch for the latest 3.2 Wheezy kernel?
August 31, 2012 03:08PM
Hi Vlad,

I have not tried that yet! I set these values so that I can use the same 3.2.x build on my other plugs, which still have Jeff's original UBoot on them. If you want to confirm that, I could rebuild another version without these parameters and try them?

bodhi
Re: Do we have a working patch for the latest 3.2 Wheezy kernel?
September 01, 2012 05:25PM
Vlad Wrote:
-------------------------------------------------------
> Hi bodhi,
>
> does it also boot without
>
> General setup -> Embedded System -> Enable
> Patch physical to virtual translations at runtime
> -> Disable
> and setting PHYS_OFFSET to 0x00?

Hi Vlad,

You got me curious, so I rebuilt 3.2.26 without these 3 parameters. It boots on my Dockstar which has Jeff's UBoot!!!

I wonder if somebody has sneaked in a patch to the 3.2.x kernel. Could you try to build your 3.2.x and confirm this?

-bodhi
Re: Do we have a working patch for the latest 3.2 Wheezy kernel?
September 03, 2012 06:04PM
@Vlad,

Update on the Dockstar booting with no L2 workaround: I found that the kernel boots only intermittenly only. But it does boot a few times among several tries! and it would not boot at all on the GoFlex Home.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: