A lot of others SW maintainers use this way like u-boot.
This guidelines are useful:
TIPS
STEPS
This video tutorial is amazing to understand everything: https://www.youtube.com/watch?v=LLBrBBImJt4
Example:
First of all you have to install git-mail package:
1. Git clone repository:
git clone http://
git.denx.de/u-boot.git
2. Make a new branch:
git checkout -b v2016.10 master
3. Config git username and email.
$ git config --local user.name "Oscar Gomez Fuente"
$ git config --local user.email "oscargomezf@gmail.com"
4. Config git email smtp:
$ git config --global sendemail.smtpencryption
tls
$ git config --global sendemail.smtpserver smtp.gmail.com
$ git config --global sendemail.smtpuser oscargomezf@gmail.com
$ git config --global sendemail.smtpserverport 587
5. Modified in u-boot git repository the dts file: arch/arm/dts/zynq-picozed.dts.
6. git commit -a, and add this text:
ARM: zynq: Extend picozed board support
Add missing DT nodes.
Signed-off-by: Oscar Gomez Fuente <oscargomezf@gmail.com>
7. git show --pretty=full
$ git show --pretty=full
commit 46e924bf76584404412f4fad67ea892f9ce7bffc
Author: Oscar Gomez Fuente <oscargomezf@gmail.com>
Commit: Oscar Gomez Fuente <oscargomezf@gmail.com>
ARM: zynq: Extend picozed board support
Add missing DT nodes.
Signed-off-by: Oscar Gomez Fuente <oscargomezf@gmail.com>
diff --git a/arch/arm/dts/zynq-picozed.dts b/arch/arm/dts/zynq-picozed.dts
index 3408df8..4aad933 100644
--- a/arch/arm/dts/zynq-picozed.dts
+++ b/arch/arm/dts/zynq-picozed.dts
@@ -14,6 +14,9 @@
aliases {
serial0 = &uart1;
+ spi0 = &qspi;
+ ethernet0 = &gem0;
+ mmc0 = &sdhci0;
};
memory {
@@ -26,3 +29,23 @@
u-boot,dm-pre-reloc;
status = "okay";
};
+
+&qspi {
+ u-boot,dm-pre-reloc;
+ status = "okay";
+};
+
+&gem0 {
+ status = "okay";
+ phy-mode = "rgmii-id";
+ phy-handle = <ðernet_phy>;
+
+ ethernet_phy: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
+&sdhci0 {
+ u-boot,dm-pre-reloc;
+ status = "okay";
+};
8. Make the patch:
$ git format-patch master..v2016.10
0001-ARM-zynq-Extend-picozed-board-support.patch
View the patch generated 0001-ARM-zynq-Extend-picozed-board-support.patch
From 46e924bf76584404412f4fad67ea892f9ce7bffc Mon Sep 17 00:00:00 2001
From: Oscar Gomez Fuente <oscargomezf@gmail.com>
Date: Mon, 17 Oct 2016 16:20:02 +0200
Subject: [PATCH] ARM: zynq: Extend picozed board support
Add missing DT nodes.
Signed-off-by: Oscar Gomez Fuente <oscargomezf@gmail.com>
---
arch/arm/dts/zynq-picozed.dts | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/arch/arm/dts/zynq-picozed.dts b/arch/arm/dts/zynq-picozed.dts
index 3408df8..4aad933 100644
--- a/arch/arm/dts/zynq-picozed.dts
+++ b/arch/arm/dts/zynq-picozed.dts
@@ -14,6 +14,9 @@
aliases {
serial0 = &uart1;
+ spi0 = &qspi;
+ ethernet0 = &gem0;
+ mmc0 = &sdhci0;
};
memory {
@@ -26,3 +29,23 @@
u-boot,dm-pre-reloc;
status = "okay";
};
+
+&qspi {
+ u-boot,dm-pre-reloc;
+ status = "okay";
+};
+
+&gem0 {
+ status = "okay";
+ phy-mode = "rgmii-id";
+ phy-handle = <ðernet_phy>;
+
+ ethernet_phy: ethernet-phy@0 {
+ reg = <0>;
+ };
+};
+
+&sdhci0 {
+ u-boot,dm-pre-reloc;
+ status = "okay";
+};
--
1.9.1
9. Check the patch:
$ ./scripts/checkpatch.pl 0001-ARM-zynq-Extend-picozed-board-support.patch
total: 0 errors, 0 warnings, 0 checks, 32 lines checked
NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX MULTISTATEMENT_MACRO_USE_DO_WHILE NETWORKING_BLOCK_COMMENT_STYLE PREFER_ETHER_ADDR_COPY USLEEP_RANGE
0001-ARM-zynq-Extend-picozed-board-support.patch has no obvious style problems and is ready for submission.
10. View the maintainers of the files associated with the patch to send, before to send the patch:
$ ./scripts/get_maintainer.pl 0001-ARM-zynq-Extend-picozed-board-support.patch
Albert Aribaud <albert.u.boot@aribaud.net> (maintainer:ARM)
Oscar Gomez Fuente <oscargomezf@gmail.com> (commit_signer:1/2=50%,authored:1/2=50%,added_lines:23/28=82%)
Michal Simek <michal.simek@xilinx.com> (commit_signer:1/2=50%)
Simon Glass <sjg@chromium.org> (commit_signer:1/2=50%,authored:1/2=50%,added_lines:5/28=18%)
u-boot@lists.denx.de (open list)
11. Send the patch:
$ git send-email --to oscargomezf@gmail.com -cc u-boot@lists.denx.de --cc albert.u.boot@aribaud.net --cc michal.simek@xilinx.com --cc sjg@chromium.org 0001-ARM-zynq-Extend-picozed-board-support.patch