[OpenWrt-Devel] [PATCH][orion]Kernelpatches for kernel 2.6.36

2010-11-25 Thread Michael Kämmerer
In present trunk (r24146) for target orion, patchfiles reside in dir
"patches" and "patches-2.6.32".

Makefile uses kernel 2.6.36.1.
The enclosed patchfile "copies" the needed patches for kernel 2.6.36.


Signed-off-by: Michael Kaemmerer 
--

Index: patches-2.6.36/010-ignore_atag_cmdline.patch
===
--- patches-2.6.36/010-ignore_atag_cmdline.patch	(Revision 0)
+++ patches-2.6.36/010-ignore_atag_cmdline.patch	(Revision 0)
@@ -0,0 +1,11 @@
+--- a/arch/arm/kernel/setup.c
 b/arch/arm/kernel/setup.c
+@@ -629,7 +629,7 @@ __tagtable(ATAG_REVISION, parse_tag_revi
+ 
+ static int __init parse_tag_cmdline(const struct tag *tag)
+ {
+-	strlcpy(default_command_line, tag->u.cmdline.cmdline, COMMAND_LINE_SIZE);
++//	strlcpy(default_command_line, tag->u.cmdline.cmdline, COMMAND_LINE_SIZE);
+ 	return 0;
+ }
+ 
Index: patches-2.6.36/200-dt2_board_support.patch
===
--- patches-2.6.36/200-dt2_board_support.patch	(Revision 0)
+++ patches-2.6.36/200-dt2_board_support.patch	(Revision 0)
@@ -0,0 +1,23 @@
+--- a/arch/arm/mach-orion5x/Kconfig
 b/arch/arm/mach-orion5x/Kconfig
+@@ -16,6 +16,13 @@ config MACH_RD88F5182
+ 	  Say 'Y' here if you want your kernel to support the
+ 	  Marvell Orion-NAS (88F5182) RD2
+ 
++config MACH_DT2
++	bool "Freecom DataTank Gateway"
++	select I2C_BOARDINFO
++	help
++	  Say 'Y' here if you want your kernel to support the
++	  Freecom DataTank Gateway
++
+ config MACH_KUROBOX_PRO
+ 	bool "KuroBox Pro"
+ 	select I2C_BOARDINFO
+--- a/arch/arm/mach-orion5x/Makefile
 b/arch/arm/mach-orion5x/Makefile
+@@ -20,3 +20,4 @@ obj-$(CONFIG_MACH_WNR854T)	+= wnr854t-se
+ obj-$(CONFIG_MACH_RD88F5181L_GE)	+= rd88f5181l-ge-setup.o
+ obj-$(CONFIG_MACH_RD88F5181L_FXO)	+= rd88f5181l-fxo-setup.o
+ obj-$(CONFIG_MACH_RD88F6183AP_GE)	+= rd88f6183ap-ge-setup.o
++obj-$(CONFIG_MACH_DT2)		+= dt2-setup.o
Index: patches-2.6.36/100-wrt350nv2_openwrt_partition_map.patch
===
--- patches-2.6.36/100-wrt350nv2_openwrt_partition_map.patch	(Revision 0)
+++ patches-2.6.36/100-wrt350nv2_openwrt_partition_map.patch	(Revision 0)
@@ -0,0 +1,32 @@
+--- a/arch/arm/mach-orion5x/wrt350n-v2-setup.c
 b/arch/arm/mach-orion5x/wrt350n-v2-setup.c
+@@ -135,11 +135,11 @@ static struct mtd_partition wrt350n_v2_n
+ 	{
+ 		.name		= "kernel",
+ 		.offset		= 0x,
+-		.size		= 0x0076,
++		.size		= 0x0010,	// change to kernel mtd size here (1/3)
+ 	}, {
+ 		.name		= "rootfs",
+-		.offset		= 0x001a,
+-		.size		= 0x005c,
++		.offset		= 0x0010,	// change to kernel mtd size here (2/3)
++		.size		= 0x0065,	// adopt to kernel mtd size here (3/3) = 0x0075 - 
+ 	}, {
+ 		.name		= "lang",
+ 		.offset		= 0x0076,
+@@ -152,6 +152,14 @@ static struct mtd_partition wrt350n_v2_n
+ 		.name		= "u-boot",
+ 		.offset		= 0x007c,
+ 		.size		= 0x0004,
++	}, {
++		.name		= "eRcOmM_do_not_touch",
++		.offset		= 0x0075,
++		.size		= 0x0001,	// erasesize
++	}, {
++		.name		= "image",	// for sysupgrade
++		.offset		= 0x,
++		.size		= 0x0075,
+ 	},
+ };
+ 
Index: patches-2.6.36/101-wnr854t_partition_map.patch
===
--- patches-2.6.36/101-wnr854t_partition_map.patch	(Revision 0)
+++ patches-2.6.36/101-wnr854t_partition_map.patch	(Revision 0)
@@ -0,0 +1,13 @@
+--- a/arch/arm/mach-orion5x/wnr854t-setup.c
 b/arch/arm/mach-orion5x/wnr854t-setup.c
+@@ -67,6 +67,10 @@ static struct mtd_partition wnr854t_nor_
+ 		.name		= "uboot",
+ 		.offset		= 0x0076,
+ 		.size		= 0x0004,
++	}, {
++		.name		= "image",	// for sysupgrade
++		.offset		= 0x,
++		.size		= 0x0076,
+ 	},
+ };
+ 

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH][orion]Kernelpatches for kernel 2.6.36

2010-11-25 Thread Matthias Buecher / Germany
Not necessary.
2.6.36.1 compiles fine with the current patches/ (which is for the
current kernel).
The patches-2.6.32/ is to compile trunk with the Backfire kernel.

Maddes

On 25.11.2010 21:29, Michael Kämmerer wrote:
> In present trunk (r24146) for target orion, patchfiles reside in dir
> "patches" and "patches-2.6.32".
> 
> Makefile uses kernel 2.6.36.1.
> The enclosed patchfile "copies" the needed patches for kernel 2.6.36.
> 
> 
> Signed-off-by: Michael Kaemmerer 
> --
> 
> 
> 
> 
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH][orion]Kernelpatches for kernel 2.6.36

2010-11-25 Thread Michael Kämmerer
OK, I understand Your systematic for orion/patches.
Then I will put all new kernelpatches in this dir and the destination of
the patch in ticket #8271 has to be changed.

mrk

Am Donnerstag, den 25.11.2010, 23:37 +0100 schrieb Matthias Buecher /
Germany: 
> Not necessary.
> 2.6.36.1 compiles fine with the current patches/ (which is for the
> current kernel).
> The patches-2.6.32/ is to compile trunk with the Backfire kernel.
> 
> Maddes
> 
> On 25.11.2010 21:29, Michael Kämmerer wrote:
> > In present trunk (r24146) for target orion, patchfiles reside in dir
> > "patches" and "patches-2.6.32".
> > 
> > Makefile uses kernel 2.6.36.1.
> > The enclosed patchfile "copies" the needed patches for kernel 2.6.36.
> > 
> > 
> > Signed-off-by: Michael Kaemmerer 
> > --
> > 
> > 
> > 
> > 
> > ___
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel