Skip to contentSkip to conversation

board: mini2440: Add custom patches and configs for 2.6.38 kernel series.

PATCH New Marek Belisko 4 participants 6 messages May 17, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: mini2440: Add custom patches and configs for 2.6.38 kernel series.

Mini2440 board have except some patches full support in 2.6.38 kernel. Just add custom patches and adapt default config to have possibility to build kernel and barebox.

Barebox also need some patches but currently it't impossible to do so just select latest v2011.05.0 where mini2440 have full support. There is difference between 64M boards and >128MB boards.

Patches for kernel was overtaken from pengutronix OSELAS BSP for mini2440.

---
 ...40_mini2440_Add_support_for_new_LCD_panels.diff |   65 +
 ...i2440_Add_touchscreen_support_for_mini2440.diff |   69 +
 ...440_mini2440_Select_touchscreen_by_default.diff |   20 +
 ...e_leds-gpio_driver_for_board_leds_handling.diff |  173 +++
 ...005-Drop_exporting_s3c24xx_ts_set_platdata.diff |   29 +
 .../mini2440/0006-fix_gpio_register.diff           |   40 +
 .../mini2440/0007-speed_up_NAND_mounting.diff      |   35 +
 .../friendlyarm/mini2440/0008-make_all_const.diff  |   26 +
 ...009-PATCH_1_1_nand_Fix_S3C_NAND_clock_stop.diff |  165 +++
 .../mini2440/0010-remove_device_file.diff          |   21 +
 .../mini2440/0011-make_debug_decision_const.diff   |   65 +
 .../friendlyarm/mini2440/0012-just_a_cleanup.diff  |   67 +
 .../0013-enable_screen_without_console.diff        |   25 +
 board/friendlyarm/mini2440/0014-add_hwmon.diff     |  108 ++
 board/friendlyarm/mini2440/linux-2.6.32.2.config   | 1409 --------------------
 configs/mini2440_defconfig                         |  634 +++++++++-
 16 files changed, 1524 insertions(+), 1427 deletions(-)
 create mode 100644 board/friendlyarm/mini2440/0001-PATCH_1_4_s3c2440_mini2440_Add_support_for_new_LCD_panels.diff
 create mode 100644 board/friendlyarm/mini2440/0002-PATCH_2_4_s3c2440_mini2440_Add_touchscreen_support_for_mini2440.diff
 create mode 100644 board/friendlyarm/mini2440/0003-PATCH_3_4_s3c2440_mini2440_Select_touchscreen_by_default.diff
 create mode 100644 board/friendlyarm/mini2440/0004-PATCH_4_4_s3c2440_mini2440_Use_leds-gpio_driver_for_board_leds_handling.diff
 create mode 100644 board/friendlyarm/mini2440/0005-Drop_exporting_s3c24xx_ts_set_platdata.diff
 create mode 100644 board/friendlyarm/mini2440/0006-fix_gpio_register.diff
 create mode 100644 board/friendlyarm/mini2440/0007-speed_up_NAND_mounting.diff
 create mode 100644 board/friendlyarm/mini2440/0008-make_all_const.diff
 create mode 100644 board/friendlyarm/mini2440/0009-PATCH_1_1_nand_Fix_S3C_NAND_clock_stop.diff
 create mode 100644 board/friendlyarm/mini2440/0010-remove_device_file.diff
 create mode 100644 board/friendlyarm/mini2440/0011-make_debug_decision_const.diff
 create mode 100644 board/friendlyarm/mini2440/0012-just_a_cleanup.diff
 create mode 100644 board/friendlyarm/mini2440/0013-enable_screen_without_console.diff
 create mode 100644 board/friendlyarm/mini2440/0014-add_hwmon.diff
 delete mode 100644 board/friendlyarm/mini2440/linux-2.6.32.2.config
board/friendlyarm/mini2440/0001-PATCH_1_4_s3c2440_mini2440_Add_support_for_new_LCD_panels.diff new file +65 -0
new file mode 100644
index 0000000..fe6a62a
@@ -0,0 +1,65 @@
+From: Marek Belisko <[email protected]>
+Subject: [PATCH 1/4] s3c2440: mini2440: Add support for new LCD panels.
+
+This patch add support for new mini2440 board LCD's:
+3.5" TFT + TS (TD035STED4)
+5.6" TFT (Innolux AT056TN52).
+3.5" TFT + TS (SONY X35)
+
+Values overtaken from mini2440 kernel:
+git://repo.or.cz/linux-2.6/mini2440.git
+and https://github.com/a1ien/mini2440-linux-kernel
+
+Signed-off-by: Marek Belisko <[email protected]>
+---
+ arch/arm/mach-s3c2440/mach-mini2440.c |   37 ++++++++++++++++++++++++++++++++++
+ 1 file changed, 37 insertions(+)
+
+Index: linux-2.6.38/arch/arm/mach-s3c2440/mach-mini2440.c
+===================================================================
+--- linux-2.6.38.orig/arch/arm/mach-s3c2440/mach-mini2440.c
++++ linux-2.6.38/arch/arm/mach-s3c2440/mach-mini2440.c
+@@ -185,6 +185,43 @@ static struct s3c2410fb_display mini2440
+ 		.lcdcon5	= (S3C2410_LCDCON5_FRM565 |
+ 				   S3C2410_LCDCON5_HWSWP),
+ 	},
++	[3] = {	/* mini2440 + 3.5" TFT + TS -- New model as Nov 2009 "T35" */
++		_LCD_DECLARE(
++			7,			/* The 3.5 is quite fast */
++			240, 21, 25, 6,		/* x timing */
++			320, 2, 4, 2,		/* y timing */
++			40),			/* refresh rate */
++		.lcdcon5	= (S3C2410_LCDCON5_FRM565 |
++				   S3C2410_LCDCON5_INVVLINE |
++				   S3C2410_LCDCON5_INVVFRAME |
++				   S3C2410_LCDCON5_INVVDEN |
++				   S3C2410_LCDCON5_PWREN),
++	},
++	[4] = { /* mini2440 + 5.6" TFT + touchscreen -- Innolux AT056TN52 */
++		/* be sure the "power" jumper is set accordingly ! */
++		_LCD_DECLARE(
++			10,			/* the 5.3" runs slower */
++			640, 41, 68, 22,	/* x timing */
++			480, 26, 6, 2,		/* y timing */
++			40),			/* refresh rate */
++		.lcdcon5	= (S3C2410_LCDCON5_FRM565 |
++				   S3C2410_LCDCON5_INVVLINE |
++				   S3C2410_LCDCON5_INVVFRAME |
++				   S3C2410_LCDCON5_PWREN),
++	},
++	[5] = { /* mini2440 + 3,5" TFT + touchscreen -- SONY X35 */
++		_LCD_DECLARE(
++			7,
++			240, 1, 26, 5,		/* x timing */
++			320, 1, 5, 9,		/* y timing */
++			60),			/* refresh rate */
++		.lcdcon5	= (S3C2410_LCDCON5_FRM565 |
++					S3C2410_LCDCON5_INVVDEN |
++					S3C2410_LCDCON5_INVVFRAME |
++					S3C2410_LCDCON5_INVVLINE |
++					S3C2410_LCDCON5_INVVCLK |
++					S3C2410_LCDCON5_HWSWP),
++	},
+ };
+ 
+ /* todo - put into gpio header */
board/friendlyarm/mini2440/0002-PATCH_2_4_s3c2440_mini2440_Add_touchscreen_support_for_mini2440.diff new file +69 -0

69 lines not on this page · raw message

board/friendlyarm/mini2440/0003-PATCH_3_4_s3c2440_mini2440_Select_touchscreen_by_default.diff new file +20 -0
new file mode 100644
index 0000000..f4b726a
@@ -0,0 +1,20 @@
+From: Marek Belisko <[email protected]>
+Subject: [PATCH 3/4] s3c2440: mini2440: Select touchscreen by default.
+
+Signed-off-by: Marek Belisko <[email protected]>
+---
+ arch/arm/mach-s3c2440/Kconfig |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/arch/arm/mach-s3c2440/Kconfig b/arch/arm/mach-s3c2440/Kconfig
+index 50825a3..e713eea 100644
+--- a/arch/arm/mach-s3c2440/Kconfig
++++ b/arch/arm/mach-s3c2440/Kconfig
+@@ -186,6 +186,7 @@ config MACH_MINI2440
+ 	select LEDS_TRIGGER_BACKLIGHT
+ 	select S3C_DEV_NAND
+ 	select S3C_DEV_USB_HOST
++	select TOUCHSCREEN_S3C2410
+ 	help
+ 	  Say Y here to select support for the MINI2440. Is a 10cm x 10cm board
+ 	  available via various sources. It can come with a 3.5" or 7" touch LCD.
board/friendlyarm/mini2440/0004-PATCH_4_4_s3c2440_mini2440_Use_leds-gpio_driver_for_board_leds_handling.diff new file +173 -0

173 lines not on this page · raw message

board/friendlyarm/mini2440/0005-Drop_exporting_s3c24xx_ts_set_platdata.diff new file +29 -0
new file mode 100644
index 0000000..9073fba
@@ -0,0 +1,29 @@
+From axel.lin at gmail.com Mon Feb 14 03:49:27 2011
+Subject: [PATCH] ARM: SAMSUNG: Drop exporting s3c24xx_ts_set_platdata
+
+s3c24xx_ts_set_platdata is annotated __init and not used by any module,
+thus don't export it.
+This patch fixes below warning:
+
+WARNING: arch/arm/plat-samsung/built-in.o(__ksymtab+0x90): Section mismatch in reference from the variable __ksymtab_s3c24xx_ts_set_platdata to the function .init.text:s3c24xx_ts_set_platdata()
+The symbol s3c24xx_ts_set_platdata is exported and annotated __init
+Fix this by removing the __init annotation of s3c24xx_ts_set_platdata or drop the export.
+
+Signed-off-by: Axel Lin <[email protected]>
+---
+ arch/arm/plat-samsung/dev-ts.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: linux-2.6.37/arch/arm/plat-samsung/dev-ts.c
+===================================================================
+--- linux-2.6.37.orig/arch/arm/plat-samsung/dev-ts.c
++++ linux-2.6.37/arch/arm/plat-samsung/dev-ts.c
+@@ -43,7 +43,7 @@ struct platform_device s3c_device_ts = {
+ 	.resource	= s3c_ts_resource,
+ };
+ 
+-void __init s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *pd)
++void __devinit s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *pd)
+ {
+ 	struct s3c2410_ts_mach_info *npd;
+ 
board/friendlyarm/mini2440/0006-fix_gpio_register.diff new file +40 -0
new file mode 100644
index 0000000..d7169fd
@@ -0,0 +1,40 @@
+From: Juergen Beisert <[email protected]>
+Subject: Do not register more GPIOs the Soc supports
+
+This patch avoids the following kernel message:
+
+     gpiochip_add: gpios 288..303 (GPIOK) failed to register
+     gpiochip_add: gpios 320..334 (GPIOL) failed to register
+     gpiochip_add: gpios 352..353 (GPIOM) failed to register
+
+Note: This is a hack and valid only for the mini2440.
+
+Signed-off-by: Juergen Beisert <[email protected]>
+
+---
+ arch/arm/plat-s3c24xx/gpiolib.c |    5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+Index: linux-2.6.37/arch/arm/plat-s3c24xx/gpiolib.c
+===================================================================
+--- linux-2.6.37.orig/arch/arm/plat-s3c24xx/gpiolib.c
++++ linux-2.6.37/arch/arm/plat-s3c24xx/gpiolib.c
+@@ -180,7 +180,9 @@ struct s3c_gpio_chip s3c24xx_gpios[] = {
+ 			.label			= "GPIOJ",
+ 			.ngpio			= 16,
+ 		},
+-	}, {
++	},
++#ifndef CONFIG_ARCH_S3C2410
++	{
+ 		.base	= S3C2443_GPKCON,
+ 		.pm	= __gpio_pm(&s3c_gpio_pm_2bit),
+ 		.chip	= {
+@@ -208,6 +210,7 @@ struct s3c_gpio_chip s3c24xx_gpios[] = {
+ 			.ngpio			= 2,
+ 		},
+ 	},
++#endif
+ };
+ 
+ 
board/friendlyarm/mini2440/0007-speed_up_NAND_mounting.diff new file +35 -0
new file mode 100644
index 0000000..c0d4776
@@ -0,0 +1,35 @@
+From: Juergen Beisert <[email protected]>
+Subject: Speed up detecting the NAND
+
+Remove the 'NAND_SKIP_BBTSCAN' flag to prevent the driver from reading all
+OOB data of the flash. Without this flag it only reads a few pages with the
+flash based BBT.
+
+This is valid for small and large page NANDs.
+
+Signed-off-by: Juergen Beisert <[email protected]>
+---
+ drivers/mtd/nand/s3c2410.c |   10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+Index: linux-2.6.37/drivers/mtd/nand/s3c2410.c
+===================================================================
+--- linux-2.6.37.orig/drivers/mtd/nand/s3c2410.c
++++ linux-2.6.37/drivers/mtd/nand/s3c2410.c
+@@ -861,10 +861,12 @@ static void s3c2410_nand_init_chip(struc
+ 	}
+ 
+ 	/* If you use u-boot BBT creation code, specifying this flag will
+-	 * let the kernel fish out the BBT from the NAND, and also skip the
+-	 * full NAND scan that can take 1/2s or so. Little things... */
+-	if (set->flash_bbt)
+-		chip->options |= NAND_USE_FLASH_BBT | NAND_SKIP_BBTSCAN;
++	 * let the kernel fish out the BBT from the NAND
++	 */
++	if (set->flash_bbt) {
++		dev_info(info->device, "Using flash based BBT\n");
++		chip->options |= NAND_USE_FLASH_BBT;
++	}
+ }
+ 
+ /**
board/friendlyarm/mini2440/0008-make_all_const.diff new file +26 -0
new file mode 100644
index 0000000..22f03b1
@@ -0,0 +1,26 @@
+Nobody changes these variables afterwards. Make them 'const' to show it.
+---
+ drivers/mtd/nand/s3c2410.c |    6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+Index: linux-2.6.37/drivers/mtd/nand/s3c2410.c
+===================================================================
+--- linux-2.6.37.orig/drivers/mtd/nand/s3c2410.c
++++ linux-2.6.37/drivers/mtd/nand/s3c2410.c
+@@ -49,13 +49,13 @@
+ #include <plat/nand.h>
+ 
+ #ifdef CONFIG_MTD_NAND_S3C2410_HWECC
+-static int hardware_ecc = 1;
++static const int hardware_ecc = 1;
+ #else
+-static int hardware_ecc = 0;
++static const int hardware_ecc = 0;
+ #endif
+ 
+ #ifdef CONFIG_MTD_NAND_S3C2410_CLKSTOP
+-static int clock_stop = 1;
++static const int clock_stop = 1;
+ #else
+ static const int clock_stop = 0;
+ #endif
board/friendlyarm/mini2440/0009-PATCH_1_1_nand_Fix_S3C_NAND_clock_stop.diff new file +165 -0

165 lines not on this page · raw message

board/friendlyarm/mini2440/0010-remove_device_file.diff new file +21 -0
new file mode 100644
index 0000000..2b5871b
@@ -0,0 +1,21 @@
+From: Juergen Beisert <[email protected]>
+Subject: s3c2410fb: Don't forget to remove the device attribute
+
+Signed-off-by: Juergen Beisert <[email protected]>
+
+---
+ drivers/video/s3c2410fb.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+Index: linux-2.6.38/drivers/video/s3c2410fb.c
+===================================================================
+--- linux-2.6.38.orig/drivers/video/s3c2410fb.c
++++ linux-2.6.38/drivers/video/s3c2410fb.c
+@@ -1046,6 +1046,7 @@ static int __devexit s3c2410fb_remove(st
+ 
+ 	release_resource(info->mem);
+ 	kfree(info->mem);
++	device_remove_file(&pdev->dev, &dev_attr_debug);
+ 
+ 	platform_set_drvdata(pdev, NULL);
+ 	framebuffer_release(fbinfo);
board/friendlyarm/mini2440/0011-make_debug_decision_const.diff new file +65 -0

65 lines not on this page · raw message

board/friendlyarm/mini2440/0012-just_a_cleanup.diff new file +67 -0

67 lines not on this page · raw message

board/friendlyarm/mini2440/0013-enable_screen_without_console.diff new file +25 -0
new file mode 100644
index 0000000..9f5069c
@@ -0,0 +1,25 @@
+From: Juergen Beisert <[email protected]>
+Subject: Enable display even without graphics console
+
+If no graphics console is enabled the LCD gets not activated otherwise.
+
+Signed-off-by: Juergen Beisert <[email protected]>
+
+---
+ drivers/video/s3c2410fb.c |    3 +++
+ 1 file changed, 3 insertions(+)
+
+Index: linux-2.6.38/drivers/video/s3c2410fb.c
+===================================================================
+--- linux-2.6.38.orig/drivers/video/s3c2410fb.c
++++ linux-2.6.38/drivers/video/s3c2410fb.c
+@@ -982,6 +982,9 @@ static int __devinit s3c24xxfb_probe(str
+ 		dev_err(&pdev->dev, "failed to add debug attribute\n");
+ 	}
+ #endif
++#ifndef CONFIG_FRAMEBUFFER_CONSOLE
++	s3c2410fb_set_par(fbinfo);
++#endif
+ 	pr_info("fb%d: %s frame buffer device\n",
+ 		fbinfo->node, fbinfo->fix.id);
+ 
board/friendlyarm/mini2440/0014-add_hwmon.diff new file +108 -0

108 lines not on this page · raw message

board/friendlyarm/mini2440/linux-2.6.32.2.config deleted +0 -1409

1,409 lines not on this page · raw message

configs/mini2440_defconfig +616 -18

647 lines not on this page · raw message

Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 1/1 board: mini2440: Add custom patches and configs for 2.6.38 kernel series.

Hello Marek,

Quoted 11 lines · On Tue, 17 May 2011 08:55:51 +0200 Marek Belisko…

Mini2440 board have except some patches full support in 2.6.38 kernel. Just add custom patches and adapt default config to have possibility to build kernel and barebox.

Barebox also need some patches but currently it't impossible to do so just select latest v2011.05.0 where mini2440 have full support. There is difference between 64M boards and >128MB boards.

Patches for kernel was overtaken from pengutronix OSELAS BSP for mini2440.

Quoted 15 lines
---
 ...40_mini2440_Add_support_for_new_LCD_panels.diff |   65 +
 ...i2440_Add_touchscreen_support_for_mini2440.diff |   69 +
 ...440_mini2440_Select_touchscreen_by_default.diff |   20 +
 ...e_leds-gpio_driver_for_board_leds_handling.diff |  173 +++
 ...005-Drop_exporting_s3c24xx_ts_set_platdata.diff |   29 +
 .../mini2440/0006-fix_gpio_register.diff           |   40 +
 .../mini2440/0007-speed_up_NAND_mounting.diff      |   35 +
 .../friendlyarm/mini2440/0008-make_all_const.diff  |   26 +
 ...009-PATCH_1_1_nand_Fix_S3C_NAND_clock_stop.diff |  165 +++
 .../mini2440/0010-remove_device_file.diff          |   21 +
 .../mini2440/0011-make_debug_decision_const.diff   |   65 +
 .../friendlyarm/mini2440/0012-just_a_cleanup.diff  |   67 +
 .../0013-enable_screen_without_console.diff        |   25 +
 board/friendlyarm/mini2440/0014-add_hwmon.diff     |  108 ++

I don't know if Peter will like the fact of adding such a number of patches for a specific hardware, but anyway.

Those files should be named *.patch and not *.diff, as done in the rest of Buildroot.

Quoted 2 lines
 board/friendlyarm/mini2440/linux-2.6.32.2.config   | 1409 --------------------
 configs/mini2440_defconfig                         |  634 +++++++++-

This one should be a minimal configuration file, generated by "make savedefconfig".

Quoted 1 line

+BR2_LINUX_KERNEL_PATCH="board/friendlyarm/mini2440/*"

This should be board/friendlyarm/mini2440/ (which will work once you have renamed the patches to *.patch).

Regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH 1/1 board: mini2440: Add custom patches and configs for 2.6.38 kernel series.

Hi Thomes,

Quoted 32 lines · Thomas Petazzoni

Hello Marek,

Quoted 12 lines · On Tue, 17 May 2011 08:55:51 +0200 Marek Belisko…

Mini2440 board have except some patches full support in 2.6.38 kernel. Just add custom patches and adapt default config to have possibility to build kernel and barebox.

Barebox also need some patches but currently it't impossible to do so just select latest v2011.05.0 where mini2440 have full support. There is difference between 64M boards and >128MB boards.

Patches for kernel was overtaken from pengutronix OSELAS BSP for mini2440.

---

Quoted 14 lines
?...40_mini2440_Add_support_for_new_LCD_panels.diff | ? 65 +
?...i2440_Add_touchscreen_support_for_mini2440.diff | ? 69 +
?...440_mini2440_Select_touchscreen_by_default.diff | ? 20 +
?...e_leds-gpio_driver_for_board_leds_handling.diff | ?173 +++
?...005-Drop_exporting_s3c24xx_ts_set_platdata.diff | ? 29 +
?.../mini2440/0006-fix_gpio_register.diff ? ? ? ? ? | ? 40 +
?.../mini2440/0007-speed_up_NAND_mounting.diff ? ? ?| ? 35 +
?.../friendlyarm/mini2440/0008-make_all_const.diff ?| ? 26 +
?...009-PATCH_1_1_nand_Fix_S3C_NAND_clock_stop.diff | ?165 +++
?.../mini2440/0010-remove_device_file.diff ? ? ? ? ?| ? 21 +
?.../mini2440/0011-make_debug_decision_const.diff ? | ? 65 +
?.../friendlyarm/mini2440/0012-just_a_cleanup.diff ?| ? 67 +
?.../0013-enable_screen_without_console.diff ? ? ? ?| ? 25 +
?board/friendlyarm/mini2440/0014-add_hwmon.diff ? ? | ?108 ++
Quoted 2 lines

I don't know if Peter will like the fact of adding such a number of patches for a specific hardware, but anyway.

I try 3 times post patches upstream but Ben Dooks doens't reply at all so those patches are missing.

Quoted 7 lines

Those files should be named *.patch and not *.diff, as done in the rest of Buildroot.

Quoted 2 lines

?board/friendlyarm/mini2440/linux-2.6.32.2.config ? | 1409 -------------------- ?configs/mini2440_defconfig ? ? ? ? ? ? ? ? ? ? ? ? | ?634 +++++++++-

Quoted 7 lines

This one should be a minimal configuration file, generated by "make savedefconfig".

Quoted 1 line

+BR2_LINUX_KERNEL_PATCH="board/friendlyarm/mini2440/*"

This should be board/friendlyarm/mini2440/ (which will work once you have renamed the patches to *.patch).

OK I renamed all patches to *.patch update config but seems they're not applied:

Quoted 1 line
Quoted 1 line
Quoted 1 line

Patching kernel

for p in board/friendlyarm/mini2440/ ; do \
		if echo $p | grep -q -E "^ftp://|^http://" ; then \
			toolchain/patch-kernel.sh
/home/open-nandra/projects/buildroot/output/build/linux-2.6.38.6
/home/open-nandra/projects/buildroot/dl `basename $p` ; \
		elif test -d $p ; then \
			toolchain/patch-kernel.sh
/home/open-nandra/projects/buildroot/output/build/linux-2.6.38.6 $p
linux-\*.patch ; \
		else \
			toolchain/patch-kernel.sh
/home/open-nandra/projects/buildroot/output/build/linux-2.6.38.6
`dirname $p` `basename $p` ; \
		fi \
	done
Quoted 1 line
Quoted 1 line
Quoted 1 line

Configuring kernel

Any idea why???

ls board/friendlyarm/mini2440 0001-PATCH_1_4_s3c2440_mini2440_Add_support_for_new_LCD_panels.patch

             0006-fix_gpio_register.patch
0011-make_debug_decision_const.patch
0002-PATCH_2_4_s3c2440_mini2440_Add_touchscreen_support_for_mini2440.patch
         0007-speed_up_NAND_mounting.patch
0012-just_a_cleanup.patch
0003-PATCH_3_4_s3c2440_mini2440_Select_touchscreen_by_default.patch
             0008-make_all_const.patch

0013-enable_screen_without_console.patch 0004-PATCH_4_4_s3c2440_mini2440_Use_leds-gpio_driver_for_board_leds_handling.patch
0009-PATCH_1_1_nand_Fix_S3C_NAND_clock_stop.patch
0014-add_hwmon.patch 0005-Drop_exporting_s3c24xx_ts_set_platdata.patch

             0010-remove_device_file.patch
Quoted 14 lines

Regards,

Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

thanks,

marek

Signature · 10 lines
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
icq: 290551086
web: http://open-nandra.com
#3 lore raw

PATCH 1/1 board: mini2440: Add custom patches and configs for 2.6.38 kernel series.

Quoted 16 lines · On Tue, 17 May 2011 10:48:56 +0200 Belisko Marek <[email protected]>…
Quoted 1 line
Quoted 1 line
Quoted 1 line

Patching kernel

for p in board/friendlyarm/mini2440/ ; do \
		if echo $p | grep -q -E "^ftp://|^http://" ; then \
			toolchain/patch-kernel.sh
/home/open-nandra/projects/buildroot/output/build/linux-2.6.38.6
/home/open-nandra/projects/buildroot/dl `basename $p` ; \
		elif test -d $p ; then \
			toolchain/patch-kernel.sh
/home/open-nandra/projects/buildroot/output/build/linux-2.6.38.6 $p
linux-\*.patch ; \
		else \
			toolchain/patch-kernel.sh
/home/open-nandra/projects/buildroot/output/build/linux-2.6.38.6
`dirname $p` `basename $p` ; \
		fi \
	done
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Configuring kernel

Any idea why???

They must be named linux-*.patch. See

	toolchain/patch-kernel.sh /home/open-nandra/projects/buildroot/output/build/linux-2.6.38.6 $p linux-\*.patch ; \ 

in the "test -d $p" case.

In your board directory, you can store patches for Linux, patches for U-Boot, patches for Barebox or whatever, so it makes sense to keep a linux- prefix, in my opinion.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#4 lore raw

PATCH 1/1 board: mini2440: Add custom patches and configs for 2.6.38 kernel series.

In reply to Belisko Marek
Quoted 38 lines · On Tuesday 17 May 2011 11:48:56 Belisko Marek wrote:

Hi Thomes,

On Tue, May 17, 2011 at 9:40 AM, Thomas Petazzoni

Quoted 33 lines · <[email protected]> wrote:

Hello Marek,

On Tue, 17 May 2011 08:55:51 +0200

Quoted 27 lines · Marek Belisko

Mini2440 board have except some patches full support in 2.6.38 kernel. Just add custom patches and adapt default config to have possibility to build kernel and barebox.

Barebox also need some patches but currently it't impossible to do so just select latest v2011.05.0 where mini2440 have full support. There is difference between 64M boards and >128MB boards.

Patches for kernel was overtaken from pengutronix OSELAS BSP for mini2440.

---
 ...40_mini2440_Add_support_for_new_LCD_panels.diff |   65 +
 ...i2440_Add_touchscreen_support_for_mini2440.diff |   69 +
 ...440_mini2440_Select_touchscreen_by_default.diff |   20 +
 ...e_leds-gpio_driver_for_board_leds_handling.diff |  173 +++
 ...005-Drop_exporting_s3c24xx_ts_set_platdata.diff |   29 +
 .../mini2440/0006-fix_gpio_register.diff           |   40 +
 .../mini2440/0007-speed_up_NAND_mounting.diff      |   35 +
 .../friendlyarm/mini2440/0008-make_all_const.diff  |   26 +
 ...009-PATCH_1_1_nand_Fix_S3C_NAND_clock_stop.diff |  165 +++
 .../mini2440/0010-remove_device_file.diff          |   21 +
 .../mini2440/0011-make_debug_decision_const.diff   |   65 +
 .../friendlyarm/mini2440/0012-just_a_cleanup.diff  |   67 +
 .../0013-enable_screen_without_console.diff        |   25 +
 board/friendlyarm/mini2440/0014-add_hwmon.diff     |  108 ++
Quoted 5 lines
Quoted 2 lines

I don't know if Peter will like the fact of adding such a number of patches for a specific hardware, but anyway.

I try 3 times post patches upstream but Ben Dooks doens't reply at all so those patches are missing.

Yep, these days it's pretty hard to get to Ben Dooks :)

Try to ping Kukjin Kim, he maintains s3c64xx and s5p, but can merge s3c24xx stuff aswell if Ben Dooks is busy. If he ignores you, try to push stuff through Russell King. Or you can ping bjdooks on irc:
#s3cxxxx at irc.freenode.org

Regards
Vasily

#5 lore raw

PATCH 1/1 board: mini2440: Add custom patches and configs for 2.6.38 kernel series.

Quoted 45 lines · Vasily Khoruzhick
Quoted 38 lines · On Tuesday 17 May 2011 11:48:56 Belisko Marek wrote:

Hi Thomes,

On Tue, May 17, 2011 at 9:40 AM, Thomas Petazzoni

Quoted 33 lines · <[email protected]> wrote:

Hello Marek,

On Tue, 17 May 2011 08:55:51 +0200

Quoted 27 lines · Marek Belisko

Mini2440 board have except some patches full support in 2.6.38 kernel. Just add custom patches and adapt default config to have possibility to build kernel and barebox.

Barebox also need some patches but currently it't impossible to do so just select latest v2011.05.0 where mini2440 have full support. There is difference between 64M boards and >128MB boards.

Patches for kernel was overtaken from pengutronix OSELAS BSP for mini2440.

---

?...40_mini2440_Add_support_for_new_LCD_panels.diff | ? 65 +
?...i2440_Add_touchscreen_support_for_mini2440.diff | ? 69 +
?...440_mini2440_Select_touchscreen_by_default.diff | ? 20 +
?...e_leds-gpio_driver_for_board_leds_handling.diff | ?173 +++
?...005-Drop_exporting_s3c24xx_ts_set_platdata.diff | ? 29 +
?.../mini2440/0006-fix_gpio_register.diff ? ? ? ? ? | ? 40 +
?.../mini2440/0007-speed_up_NAND_mounting.diff ? ? ?| ? 35 +
?.../friendlyarm/mini2440/0008-make_all_const.diff ?| ? 26 +
?...009-PATCH_1_1_nand_Fix_S3C_NAND_clock_stop.diff | ?165 +++
?.../mini2440/0010-remove_device_file.diff ? ? ? ? ?| ? 21 +
?.../mini2440/0011-make_debug_decision_const.diff ? | ? 65 +
?.../friendlyarm/mini2440/0012-just_a_cleanup.diff ?| ? 67 +
?.../0013-enable_screen_without_console.diff ? ? ? ?| ? 25 +
?board/friendlyarm/mini2440/0014-add_hwmon.diff ? ? | ?108 ++
Quoted 5 lines
Quoted 2 lines

I don't know if Peter will like the fact of adding such a number of patches for a specific hardware, but anyway.

I try 3 times post patches upstream but Ben Dooks doens't reply at all so those patches are missing.

Quoted 6 lines

Yep, these days it's pretty hard to get to Ben Dooks :)

Try to ping Kukjin Kim, he maintains s3c64xx and s5p, but can merge s3c24xx stuff aswell if Ben Dooks is busy. If he ignores you, try to push stuff through Russell King. Or you can ping bjdooks on irc:
#s3cxxxx at irc.freenode.org

Thanks Vasily will try to do that way ;)

Quoted 4 lines

Regards
Vasily

thanks,

marek

Signature · 10 lines
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
icq: 290551086
web: http://open-nandra.com