Linux-Renesas-SoC Archive on lore.kernel.org
 help / Atom feed
* [PATCH 0/2] arm/arm64: dts: Use ip=on for bootargs
@ 2019-05-18 10:03 Magnus Damm
  2019-05-18 10:03 ` [PATCH 1/2] arm: " Magnus Damm
  2019-05-18 10:04 ` [PATCH 2/2] arm64: dts: renesas: " Magnus Damm
  0 siblings, 2 replies; 5+ messages in thread
From: Magnus Damm @ 2019-05-18 10:03 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Magnus Damm

arm/arm64: dts: Use ip=on for bootargs

[PATCH 1/2] arm: dts: Use ip=on for bootargs
[PATCH 2/2] arm64: dts: renesas: Use ip=on for bootargs

These patches convert boards from Renesas that use ip=dhcp in bootargs to
ip=on to allow more flexible network protocol auto configuration support.

The supported network protocols used for auto configuration depend both
on the ip= boot argument and the kernel configuration.

The arm64 defconfig currently contains the following Kconfig symbols:
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
# CONFIG_IP_PNP_RARP is not set

Unless overridden by the user the above kernel configuration with ip=on
results in that the kernel will perform auto configuration with both BOOTP
and DHCP during boot. Compared to DHCP the user will not experience any
real difference unless he/she also has a BOOTP server on the same network
and relies on ip=dhcp to pick the desired protocol.

I recall the ISC DHCP server being a helpful tool to test BOOTP and DHCP.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 Developed on top of renesas-devel-20190516-v5.1

 arch/arm/boot/dts/emev2-kzm9d.dts                |    2 +-
 arch/arm/boot/dts/r7s72100-genmai.dts            |    2 +-
 arch/arm/boot/dts/r8a73a4-ape6evm.dts            |    2 +-
 arch/arm/boot/dts/r8a7740-armadillo800eva.dts    |    2 +-
 arch/arm/boot/dts/r8a7743-sk-rzg1m.dts           |    2 +-
 arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts      |    2 +-
 arch/arm/boot/dts/r8a7745-sk-rzg1e.dts           |    2 +-
 arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts        |    2 +-
 arch/arm/boot/dts/r8a7778-bockw.dts              |    2 +-
 arch/arm/boot/dts/r8a7779-marzen.dts             |    2 +-
 arch/arm/boot/dts/r8a7790-lager.dts              |    2 +-
 arch/arm/boot/dts/r8a7790-stout.dts              |    2 +-
 arch/arm/boot/dts/r8a7791-koelsch.dts            |    2 +-
 arch/arm/boot/dts/r8a7791-porter.dts             |    2 +-
 arch/arm/boot/dts/r8a7792-blanche.dts            |    2 +-
 arch/arm/boot/dts/r8a7792-wheat.dts              |    2 +-
 arch/arm/boot/dts/r8a7793-gose.dts               |    2 +-
 arch/arm/boot/dts/r8a7794-alt.dts                |    2 +-
 arch/arm/boot/dts/r8a7794-silk.dts               |    2 +-
 arch/arm/boot/dts/sh73a0-kzm9g.dts               |    2 +-
 arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts  |    2 +-
 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts   |    2 +-
 arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts   |    2 +-
 arch/arm64/boot/dts/renesas/r8a77995-draak.dts   |    2 +-
 arch/arm64/boot/dts/renesas/salvator-common.dtsi |    2 +-
 arch/arm64/boot/dts/renesas/ulcb.dtsi            |    2 +-
 26 files changed, 26 insertions(+), 26 deletions(-)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] arm: dts: Use ip=on for bootargs
  2019-05-18 10:03 [PATCH 0/2] arm/arm64: dts: Use ip=on for bootargs Magnus Damm
@ 2019-05-18 10:03 ` " Magnus Damm
  2019-05-22 11:55   ` Simon Horman
  2019-05-18 10:04 ` [PATCH 2/2] arm64: dts: renesas: " Magnus Damm
  1 sibling, 1 reply; 5+ messages in thread
From: Magnus Damm @ 2019-05-18 10:03 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Magnus Damm

From: Magnus Damm <damm+renesas@opensource.se>

Convert bootargs from ip=dhcp to ip=on

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 arch/arm/boot/dts/emev2-kzm9d.dts             |    2 +-
 arch/arm/boot/dts/r7s72100-genmai.dts         |    2 +-
 arch/arm/boot/dts/r8a73a4-ape6evm.dts         |    2 +-
 arch/arm/boot/dts/r8a7740-armadillo800eva.dts |    2 +-
 arch/arm/boot/dts/r8a7743-sk-rzg1m.dts        |    2 +-
 arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts   |    2 +-
 arch/arm/boot/dts/r8a7745-sk-rzg1e.dts        |    2 +-
 arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts     |    2 +-
 arch/arm/boot/dts/r8a7778-bockw.dts           |    2 +-
 arch/arm/boot/dts/r8a7779-marzen.dts          |    2 +-
 arch/arm/boot/dts/r8a7790-lager.dts           |    2 +-
 arch/arm/boot/dts/r8a7790-stout.dts           |    2 +-
 arch/arm/boot/dts/r8a7791-koelsch.dts         |    2 +-
 arch/arm/boot/dts/r8a7791-porter.dts          |    2 +-
 arch/arm/boot/dts/r8a7792-blanche.dts         |    2 +-
 arch/arm/boot/dts/r8a7792-wheat.dts           |    2 +-
 arch/arm/boot/dts/r8a7793-gose.dts            |    2 +-
 arch/arm/boot/dts/r8a7794-alt.dts             |    2 +-
 arch/arm/boot/dts/r8a7794-silk.dts            |    2 +-
 arch/arm/boot/dts/sh73a0-kzm9g.dts            |    2 +-
 20 files changed, 20 insertions(+), 20 deletions(-)

--- 0001/arch/arm/boot/dts/emev2-kzm9d.dts
+++ work/arch/arm/boot/dts/emev2-kzm9d.dts	2019-05-18 18:17:13.186716193 +0900
@@ -25,7 +25,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial1:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r7s72100-genmai.dts
+++ work/arch/arm/boot/dts/r7s72100-genmai.dts	2019-05-18 18:26:08.516782691 +0900
@@ -20,7 +20,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a73a4-ape6evm.dts
+++ work/arch/arm/boot/dts/r8a73a4-ape6evm.dts	2019-05-18 18:18:11.874793108 +0900
@@ -19,7 +19,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7740-armadillo800eva.dts
+++ work/arch/arm/boot/dts/r8a7740-armadillo800eva.dts	2019-05-18 18:18:32.557877498 +0900
@@ -21,7 +21,7 @@
 	};
 
 	chosen {
-		bootargs = "earlyprintk ignore_loglevel root=/dev/nfs ip=dhcp rw";
+		bootargs = "earlyprintk ignore_loglevel root=/dev/nfs ip=on rw";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7743-sk-rzg1m.dts
+++ work/arch/arm/boot/dts/r8a7743-sk-rzg1m.dts	2019-05-18 18:18:55.635087394 +0900
@@ -17,7 +17,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
+++ work/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts	2019-05-18 18:19:21.798459106 +0900
@@ -42,7 +42,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial3:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7745-sk-rzg1e.dts
+++ work/arch/arm/boot/dts/r8a7745-sk-rzg1e.dts	2019-05-18 18:19:32.556023101 +0900
@@ -17,7 +17,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts
+++ work/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts	2019-05-18 18:19:50.642971371 +0900
@@ -18,7 +18,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial1:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7778-bockw.dts
+++ work/arch/arm/boot/dts/r8a7778-bockw.dts	2019-05-18 18:20:04.843715886 +0900
@@ -25,7 +25,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7779-marzen.dts
+++ work/arch/arm/boot/dts/r8a7779-marzen.dts	2019-05-18 18:20:19.340475932 +0900
@@ -21,7 +21,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7790-lager.dts
+++ work/arch/arm/boot/dts/r8a7790-lager.dts	2019-05-18 18:20:36.468373925 +0900
@@ -56,7 +56,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7790-stout.dts
+++ work/arch/arm/boot/dts/r8a7790-stout.dts	2019-05-18 18:20:45.435844071 +0900
@@ -19,7 +19,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7791-koelsch.dts
+++ work/arch/arm/boot/dts/r8a7791-koelsch.dts	2019-05-18 18:20:54.972344059 +0900
@@ -56,7 +56,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7791-porter.dts
+++ work/arch/arm/boot/dts/r8a7791-porter.dts	2019-05-18 18:21:11.540212688 +0900
@@ -31,7 +31,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7792-blanche.dts
+++ work/arch/arm/boot/dts/r8a7792-blanche.dts	2019-05-18 18:21:25.739957158 +0900
@@ -21,7 +21,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7792-wheat.dts
+++ work/arch/arm/boot/dts/r8a7792-wheat.dts	2019-05-18 18:21:49.436199510 +0900
@@ -20,7 +20,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7793-gose.dts
+++ work/arch/arm/boot/dts/r8a7793-gose.dts	2019-05-18 18:22:00.131760261 +0900
@@ -52,7 +52,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7794-alt.dts
+++ work/arch/arm/boot/dts/r8a7794-alt.dts	2019-05-18 18:22:09.908272826 +0900
@@ -22,7 +22,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/r8a7794-silk.dts
+++ work/arch/arm/boot/dts/r8a7794-silk.dts	2019-05-18 18:22:26.100121738 +0900
@@ -34,7 +34,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm/boot/dts/sh73a0-kzm9g.dts
+++ work/arch/arm/boot/dts/sh73a0-kzm9g.dts	2019-05-18 18:23:20.243960419 +0900
@@ -36,7 +36,7 @@
 	};
 
 	chosen {
-		bootargs = "root=/dev/nfs ip=dhcp ignore_loglevel rw";
+		bootargs = "root=/dev/nfs ip=on ignore_loglevel rw";
 		stdout-path = "serial0:115200n8";
 	};
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] arm64: dts: renesas: Use ip=on for bootargs
  2019-05-18 10:03 [PATCH 0/2] arm/arm64: dts: Use ip=on for bootargs Magnus Damm
  2019-05-18 10:03 ` [PATCH 1/2] arm: " Magnus Damm
@ 2019-05-18 10:04 ` " Magnus Damm
  2019-05-22 11:56   ` Simon Horman
  1 sibling, 1 reply; 5+ messages in thread
From: Magnus Damm @ 2019-05-18 10:04 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Magnus Damm

From: Magnus Damm <damm+renesas@opensource.se>

Convert bootargs from ip=dhcp to ip=on

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts  |    2 +-
 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts   |    2 +-
 arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts   |    2 +-
 arch/arm64/boot/dts/renesas/r8a77995-draak.dts   |    2 +-
 arch/arm64/boot/dts/renesas/salvator-common.dtsi |    2 +-
 arch/arm64/boot/dts/renesas/ulcb.dtsi            |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

--- 0001/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
+++ work/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts	2019-05-18 18:31:14.742837630 +0900
@@ -19,7 +19,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
+++ work/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts	2019-05-18 18:31:32.523769858 +0900
@@ -19,7 +19,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts
+++ work/arch/arm64/boot/dts/renesas/r8a77990-ebisu.dts	2019-05-18 18:31:43.015319912 +0900
@@ -19,7 +19,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
+++ work/arch/arm64/boot/dts/renesas/r8a77995-draak.dts	2019-05-18 18:31:52.798832831 +0900
@@ -20,7 +20,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm64/boot/dts/renesas/salvator-common.dtsi
+++ work/arch/arm64/boot/dts/renesas/salvator-common.dtsi	2019-05-18 18:32:01.375282492 +0900
@@ -39,7 +39,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 
--- 0001/arch/arm64/boot/dts/renesas/ulcb.dtsi
+++ work/arch/arm64/boot/dts/renesas/ulcb.dtsi	2019-05-18 18:32:09.131689147 +0900
@@ -26,7 +26,7 @@
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
 		stdout-path = "serial0:115200n8";
 	};
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] arm: dts: Use ip=on for bootargs
  2019-05-18 10:03 ` [PATCH 1/2] arm: " Magnus Damm
@ 2019-05-22 11:55   ` Simon Horman
  0 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2019-05-22 11:55 UTC (permalink / raw)
  To: Magnus Damm; +Cc: linux-renesas-soc

On Sat, May 18, 2019 at 07:03:57PM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm+renesas@opensource.se>
> 
> Convert bootargs from ip=dhcp to ip=on
> 
> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>

Thanks Magnus,

applied for inclusion in v5.3 with the subject prefix updated to "ARM: ".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] arm64: dts: renesas: Use ip=on for bootargs
  2019-05-18 10:04 ` [PATCH 2/2] arm64: dts: renesas: " Magnus Damm
@ 2019-05-22 11:56   ` Simon Horman
  0 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2019-05-22 11:56 UTC (permalink / raw)
  To: Magnus Damm; +Cc: linux-renesas-soc

On Sat, May 18, 2019 at 07:04:06PM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm+renesas@opensource.se>
> 
> Convert bootargs from ip=dhcp to ip=on
> 
> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>

Thanks Magnus,

applied for inclusion in v5.3.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-18 10:03 [PATCH 0/2] arm/arm64: dts: Use ip=on for bootargs Magnus Damm
2019-05-18 10:03 ` [PATCH 1/2] arm: " Magnus Damm
2019-05-22 11:55   ` Simon Horman
2019-05-18 10:04 ` [PATCH 2/2] arm64: dts: renesas: " Magnus Damm
2019-05-22 11:56   ` Simon Horman

Linux-Renesas-SoC Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-renesas-soc/0 linux-renesas-soc/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-renesas-soc linux-renesas-soc/ https://lore.kernel.org/linux-renesas-soc \
		linux-renesas-soc@vger.kernel.org linux-renesas-soc@archiver.kernel.org
	public-inbox-index linux-renesas-soc


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-renesas-soc


AGPL code for this site: git clone https://public-inbox.org/ public-inbox