uboot打補丁的方法

2021-06-02 01:32:18 字數 4261 閱讀 5635

打補丁的方法

取得之後,可以直接u-boot打補丁,直接得到需要的目標。

1)         把補丁檔案放到與u-boot目錄同級的位置

2)        進入u-boot目錄

[root@localhost ken]# cd u-boot-1.3.2

[root@localhost u-boot-1.3.2]#

3)        打補丁(如果檔案是gz格式)

[root@localhost u-boot-1.3.2]# gzip -dc ../u-boot-1.3.2-kenwucn.patch.gz | patch -p1

(以下為終端輸出資訊)

patching file arm_config.mk

patching file board/armsys/44b0/44b0.c

patching file board/armsys/44b0/config.mk

patching file board/armsys/44b0/flash.c

patching file board/armsys/44b0/lowlevel_init.s

patching file board/armsys/44b0/makefile

patching file board/armsys/44b0/u-boot.lds

patching file board/armsys/common/flash.c

patching file board/armsys/common/fpga.c

patching file board/armsys/common/nand.c

patching file board/armsys/common/nand.h

patching file board/armsys/common/pci.c

patching file board/bf533-ezkit/.gitignore

patching file board/bf533-stamp/.gitignore

patching file board/bf537-stamp/.gitignore

patching file board/bf561-ezkit/.gitignore

patching file common/cmd_mem.c

patching file common/cmd_nand.c

patching file common/cmd_net.c

patching file common/dlmalloc.c

patching file cpu/s3c44b0/interrupts.c

patching file cpu/s3c44b0/serial.c

patching file cpu/s3c44b0/start.s

patching file drivers/mtd/nand/nand.c

patching file drivers/mtd/nand/nand_ids.c

patching file drivers/mtd/nand_legacy/nand_legacy.c

patching file drivers/net/8390.h

patching file drivers/net/ne2000.c

patching file drivers/net/ne2000.h

patching file drivers/net/rtl8019.c

patching file drivers/net/rtl8019.h

patching file examples/.gitignore

patching file .gdbtkinit

patching file .gitignore

patching file include/configs/44b0.h

patching file include/.gitignore

patching file include/linux/mtd/nand_ids.h

patching file include/net.h

patching file makefile

patching file net/eth.c

patching file net/makefile

patching file net/net.c

patching file net/tftp.c

patching file tools/.gitignore

4)        打補丁(如果檔案是文字格式(以patch結尾))

[root@localhost u-boot-1.3.2]# patch -p1

(以下為終端輸出資訊)

patching file arm_config.mk

patching file board/armsys/44b0/44b0.c

patching file board/armsys/44b0/config.mk

patching file board/armsys/44b0/flash.c

patching file board/armsys/44b0/lowlevel_init.s

patching file board/armsys/44b0/makefile

patching file board/armsys/44b0/u-boot.lds

patching file board/armsys/common/flash.c

patching file board/armsys/common/fpga.c

patching file board/armsys/common/nand.c

patching file board/armsys/common/nand.h

patching file board/armsys/common/pci.c

patching file board/bf533-ezkit/.gitignore

patching file board/bf533-stamp/.gitignore

patching file board/bf537-stamp/.gitignore

patching file board/bf561-ezkit/.gitignore

patching file common/cmd_mem.c

patching file common/cmd_nand.c

patching file common/cmd_net.c

patching file common/dlmalloc.c

patching file cpu/s3c44b0/interrupts.c

patching file cpu/s3c44b0/serial.c

patching file cpu/s3c44b0/start.s

patching file drivers/mtd/nand/nand.c

patching file drivers/mtd/nand/nand_ids.c

patching file drivers/mtd/nand_legacy/nand_legacy.c

patching file drivers/net/8390.h

patching file drivers/net/ne2000.c

patching file drivers/net/ne2000.h

patching file drivers/net/rtl8019.c

patching file drivers/net/rtl8019.h

patching file examples/.gitignore

patching file .gdbtkinit

patching file .gitignore

patching file include/configs/44b0.h

patching file include/.gitignore

patching file include/linux/mtd/nand_ids.h

patching file include/net.h

patching file makefile

patching file net/eth.c

patching file net/makefile

patching file net/net.c

patching file net/tftp.c

patching file tools/.gitignore

git 打補丁方法 patch diff

14條訊息 四十 git 打補丁方法總結 jt的專欄 csdn部落格 git 打補丁 git am 0001 added the custom font manager.patch whitespace nowarn fix 1.應用場景 有兩個git庫 同乙個git庫不同分支可以用cherry p...

Openlayers 類打補丁的方法

在乙個sdk框架寫完後,突然發現,有些類的方法判斷不夠全面。若此時在現有的框架中增加這些判斷,在一定程度上可能會打亂框架的邏輯,於是採用打補丁的方式,就不用修改框架本身。打補丁常常是通過覆蓋框架中的方法予以實現。比如 geo.view3d.layer.vector.prototype.drawfea...

linux核心生成補丁和打補丁的方法

linux核心原始碼較多,在修改完核心並發布新核心的時候,一般採用補丁的方式進行發布,而不是整個核心打包發布的。採用補丁的方式發布有很多好處,1.首先體積很小,通常核心修改很小,生成補丁可能不到1k的大小,方便別人獲取更新 2.體積小的補丁也方便儲存,可以在本地儲存好幾個版本的核心 3.使用起來非常...