[Buildroot] [PATCH] board: mini2440: Add custom patches and configs for 2.6.38 kernel series.

Belisko Marek marek.belisko at gmail.com
Tue May 17 08:48:56 UTC 2011


Hi Thomes,

On Tue, May 17, 2011 at 9:40 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Hello Marek,
>
> On Tue, 17 May 2011 08:55:51 +0200
> Marek Belisko <marek.belisko at open-nandra.com> wrote:
>
>> 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.
>>
>> Signed-off-by: Marek Belisko <marek.belisko at open-nandra.com>
>> ---
>>  ...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.
I try 3 times post patches upstream but Ben Dooks doens't reply at all so
those patches are missing.
>
> Those files should be named *.patch and not *.diff, as done in the rest
> of Buildroot.
>
>>  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".
>
>> +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:

>>>   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
>>>   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

>
> 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

-- 
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



More information about the buildroot mailing list