U-Boot补丁 S3C2440

# tar xvf u-boot-1.1.6.tar.bz2 //解压
# cd u-boot-1.1.6/

制作补丁文件

# diff -urN u-boot-1.1.6 u-boot-1.1.6.new > u-boot-1.1.6_jz2440.patch

打补丁

# patch -p1 < u-boot-1.1.6_jz2440.patch

p1:忽略补丁文件第一个”/”之前的内容(也就是如下:u-boot-1.1.6)

# head u-boot-1.1.6_jz2440.patch 
diff -urN u-boot-1.1.6/board/100ask24x0/100ask24x0.c u-boot-1.1.6_jz2440/board/100ask24x0/100ask24x0.c
--- u-boot-1.1.6/board/100ask24x0/100ask24x0.c  1970-01-01 07:00:00.000000000 +0700
+++ u-boot-1.1.6_jz2440/board/100ask24x0/100ask24x0.c   2010-11-26 12:54:37.034090906 +0800
@@ -0,0 +1,96 @@
+/*
+ * (C) Copyright 2002
+ * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
+ * Marius Groeger <mgroeger@sysgo.de>
+ *
+ * (C) Copyright 2002
posted @ 2017-09-11 11:59  thomas_blog  阅读(116)  评论(0编辑  收藏  举报