Wednesday, April 27, 2011

Apply Linux Kernel Patch

[1] http://www.cyberciti.biz/faq/appy-patch-file-using-patch-command/
[2] http://www.regatta.cs.msu.su/doc/usr/share/man/info/ru_RU/a_doc_lib/cmds/aixcmds4/patch.htm

[q.yang@localhost linux-2.6.34]$ ll
total 1256
drwxr-xr-x 25 q.yang developer 4096 2010-05-17 07:17 arch
drwxr-xr-x 2 q.yang developer 4096 2010-05-17 07:17 block
-rw-r--r-- 1 q.yang developer 18693 2010-05-17 07:17 COPYING
-rw-r--r-- 1 q.yang developer 94031 2010-05-17 07:17 CREDITS
drwxr-xr-x 3 q.yang developer 4096 2010-05-17 07:17 crypto
drwxr-xr-x 85 q.yang developer 12288 2010-05-17 07:17 Documentation
drwxr-xr-x 89 q.yang developer 4096 2010-05-17 07:17 drivers
drwxr-xr-x 36 q.yang developer 4096 2010-05-17 07:17 firmware
drwxr-xr-x 72 q.yang developer 4096 2010-05-17 07:17 fs
drwxr-xr-x 20 q.yang developer 4096 2010-05-17 07:17 include
drwxr-xr-x 2 q.yang developer 4096 2010-05-17 07:17 init
drwxr-xr-x 2 q.yang developer 4096 2010-05-17 07:17 ipc
-rw-r--r-- 1 q.yang developer 2440 2010-05-17 07:17 Kbuild
-rw-r--r-- 1 q.yang developer 3526 2011-04-28 16:04 Kconfig.orig
-rw-r--r-- 1 q.yang developer 1040 2011-04-28 16:05 Kconfig.rej
drwxr-xr-x 7 q.yang developer 4096 2010-05-17 07:17 kernel
drwxr-xr-x 6 q.yang developer 4096 2010-05-17 07:17 lib
-rw-r--r-- 1 q.yang developer 735556 2011-04-09 03:50 linux-2.6.34_lpc32x0-v1.08.patch
-rw-r--r-- 1 q.yang developer 170406 2010-05-17 07:17 MAINTAINERS
-rw-r--r-- 1 q.yang developer 53183 2011-04-28 16:05 Makefile
-rw-r--r-- 1 q.yang developer 53183 2011-04-28 16:05 Makefile.orig
-rw-r--r-- 1 q.yang developer 308 2011-04-28 16:05 Makefile.rej
drwxr-xr-x 2 q.yang developer 4096 2010-05-17 07:17 mm
drwxr-xr-x 48 q.yang developer 4096 2010-05-17 07:17 net
-rw-r--r-- 1 q.yang developer 17459 2010-05-17 07:17 README
-rw-r--r-- 1 q.yang developer 3371 2010-05-17 07:17 REPORTING-BUGS
drwxr-xr-x 7 q.yang developer 4096 2010-05-17 07:17 samples
drwxr-xr-x 12 q.yang developer 4096 2010-05-17 07:17 scripts
drwxr-xr-x 7 q.yang developer 4096 2010-05-17 07:17 security
drwxr-xr-x 21 q.yang developer 4096 2010-05-17 07:17 sound
drwxr-xr-x 3 q.yang developer 4096 2010-05-17 07:17 tools
drwxr-xr-x 2 q.yang developer 4096 2010-05-17 07:17 usr
drwxr-xr-x 3 q.yang developer 4096 2010-05-17 07:17 virt
[q.yang@localhost linux-2.6.34]$ patch -p1 < ./linux-2.6.34_lpc32x0-v1.08.patch
patching file arch/arm/Kconfig
patching file arch/arm/Makefile
patching file arch/arm/configs/ea3250_defconfig
patching file arch/arm/configs/fdi3250_defconfig
patching file arch/arm/configs/phy3250_defconfig
patching file arch/arm/mach-lpc32xx/Kconfig
patching file arch/arm/mach-lpc32xx/Makefile
patching file arch/arm/mach-lpc32xx/Makefile.boot
patching file arch/arm/mach-lpc32xx/clock.c
patching file arch/arm/mach-lpc32xx/clock.h
patching file arch/arm/mach-lpc32xx/common.c
patching file arch/arm/mach-lpc32xx/common.h
patching file arch/arm/mach-lpc32xx/dma.c
patching file arch/arm/mach-lpc32xx/ea3250.c
patching file arch/arm/mach-lpc32xx/fdi3250.c
patching file arch/arm/mach-lpc32xx/gpiolib.c
patching file arch/arm/mach-lpc32xx/include/mach/board.h
patching file arch/arm/mach-lpc32xx/include/mach/clkdev.h
patching file arch/arm/mach-lpc32xx/include/mach/debug-macro.S
patching file arch/arm/mach-lpc32xx/include/mach/dma.h
patching file arch/arm/mach-lpc32xx/include/mach/dmac.h
patching file arch/arm/mach-lpc32xx/include/mach/entry-macro.S
patching file arch/arm/mach-lpc32xx/include/mach/gpio.h
patching file arch/arm/mach-lpc32xx/include/mach/hardware.h
patching file arch/arm/mach-lpc32xx/include/mach/i2c.h
patching file arch/arm/mach-lpc32xx/include/mach/i2s.h
patching file arch/arm/mach-lpc32xx/include/mach/io.h
patching file arch/arm/mach-lpc32xx/include/mach/irqs.h
patching file arch/arm/mach-lpc32xx/include/mach/memory.h
patching file arch/arm/mach-lpc32xx/include/mach/platform.h
patching file arch/arm/mach-lpc32xx/include/mach/sdcard.h
patching file arch/arm/mach-lpc32xx/include/mach/slcnand.h
patching file arch/arm/mach-lpc32xx/include/mach/system.h
patching file arch/arm/mach-lpc32xx/include/mach/timex.h
patching file arch/arm/mach-lpc32xx/include/mach/uncompress.h
patching file arch/arm/mach-lpc32xx/include/mach/usbd.h
patching file arch/arm/mach-lpc32xx/include/mach/vmalloc.h
patching file arch/arm/mach-lpc32xx/irq.c
patching file arch/arm/mach-lpc32xx/phy3250.c
patching file arch/arm/mach-lpc32xx/pm.c
patching file arch/arm/mach-lpc32xx/serial.c
patching file arch/arm/mach-lpc32xx/suspend.S
patching file arch/arm/mach-lpc32xx/timer.c
patching file arch/arm/vfp/vfpmodule.c
patching file drivers/i2c/busses/Kconfig
patching file drivers/i2c/busses/i2c-pnx.c
patching file drivers/input/keyboard/Kconfig
patching file drivers/input/keyboard/Makefile
patching file drivers/input/keyboard/lpc32xx_keys.c
patching file drivers/input/touchscreen/Kconfig
patching file drivers/input/touchscreen/Makefile
patching file drivers/input/touchscreen/ads7846.c
patching file drivers/input/touchscreen/lpc32xx_ts.c
patching file drivers/mmc/host/mmci.c
patching file drivers/mtd/nand/Kconfig
patching file drivers/mtd/nand/Makefile
patching file drivers/mtd/nand/lpc32xx_nand.c
patching file drivers/net/Kconfig
patching file drivers/net/Makefile
patching file drivers/net/lpc_eth.c
patching file drivers/net/lpc_eth.h
patching file drivers/rtc/Kconfig
patching file drivers/rtc/Makefile
patching file drivers/rtc/rtc-lpc32xx.c
patching file drivers/serial/8250.c
patching file drivers/serial/Kconfig
patching file drivers/serial/Makefile
patching file drivers/serial/lpc32xx_hs.c
patching file drivers/usb/gadget/Kconfig
patching file drivers/usb/gadget/Makefile
patching file drivers/usb/gadget/gadget_chips.h
patching file drivers/usb/gadget/lpc32xx_udc.c
patching file drivers/usb/gadget/lpc32xx_udc.h
patching file drivers/usb/host/ohci-hcd.c
patching file drivers/usb/host/ohci-pnx4008.c
patching file drivers/video/amba-clcd.c
patching file drivers/watchdog/Kconfig
patching file include/linux/amba/clcd.h
patching file include/linux/i2c-pnx.h
patching file sound/soc/Kconfig
patching file sound/soc/Makefile
patching file sound/soc/codecs/uda1380.c
patching file sound/soc/codecs/uda1380.h
patching file sound/soc/lpc3xxx/Kconfig
patching file sound/soc/lpc3xxx/Makefile
patching file sound/soc/lpc3xxx/lpc3xxx-i2s.c
patching file sound/soc/lpc3xxx/lpc3xxx-i2s.h
patching file sound/soc/lpc3xxx/lpc3xxx-pcm.c
patching file sound/soc/lpc3xxx/lpc3xxx-pcm.h
patching file sound/soc/lpc3xxx/lpc3xxx-uda1380.c
patching file sound/soc/soc-core.c
[q.yang@localhost linux-2.6.34]$

No comments: