Skip to contentSkip to conversation

Fix wrong static ip autoconf in some dts and defconfig

PATCH In review Giulio Benetti 1 participant 9 messages Nov 2, 2021 – Jan 19, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Fix wrong static ip autoconf in some dts and defconfig

While trying to have a working nfsroot through RNDIS on sunxi I've found that in bootargs <autoconf> must be set to 'off' to use a static ip setup, but I've also found that the following boards have it set to 'on' that is not the <autoconf> setting for static ip as stated here:
https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt

And most of all on sunxi RNDIS it doesn't work as static ip nfsroot.

Unfortunately I don't have such boards to give a build and a test, so if there is someone who could give a try it would be great.

Best regards
---
Giulio Benetti
Benetti Engineering sas

Giulio Benetti (7):
ARM: dts: mmp2-brownstone: fix wrong static ip autoconf
ARM: dts: pxa168-aspenite: fix wrong static ip autoconf
ARM: dts: pxa910-dkb: fix wrong static ip autoconf
ARM: mmp2: update mmp2_defconfig to fix wrong static ip autoconf
ARM: pxa168: update pxa168_defconfig to fix wrong static ip autoconf
ARM: pxa3xx: update pxa3xx_defconfig to fix wrong static ip autoconf
ARM: pxa910: update pxa910_defconfig to fix wrong static ip autoconf

 arch/arm/boot/dts/mmp2-brownstone.dts | 2 +-
 arch/arm/boot/dts/pxa168-aspenite.dts | 2 +-
 arch/arm/boot/dts/pxa910-dkb.dts      | 2 +-
 arch/arm/configs/mmp2_defconfig       | 2 +-
 arch/arm/configs/pxa168_defconfig     | 2 +-
 arch/arm/configs/pxa3xx_defconfig     | 2 +-
 arch/arm/configs/pxa910_defconfig     | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/7 ARM: dts: mmp2-brownstone: fix wrong static ip autoconf

At the moment <autoconf> field is set to 'on' but judging from the static ip setting it should be set to 'off', since in [1] states:

```
<autoconf>
off or none: don't use autoconfiguration (do static IP assignment instead)
on or any: use any protocol available in the kernel (default)
```

So let's substitute <autoconf> 'on' with 'off'.

[1]: https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt

---
 arch/arm/boot/dts/mmp2-brownstone.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/mmp2-brownstone.dts +1 -1
index 04f1ae1382e7..05ccb567e516 100644
@@ -12,7 +12,7 @@ / {
 	compatible = "mrvl,mmp2-brownstone", "mrvl,mmp2";
 
 	chosen {
-		bootargs = "console=ttyS2,38400 root=/dev/nfs nfsroot=192.168.1.100:/nfsroot/ ip=192.168.1.101:192.168.1.100::255.255.255.0::eth0:on";
+		bootargs = "console=ttyS2,38400 root=/dev/nfs nfsroot=192.168.1.100:/nfsroot/ ip=192.168.1.101:192.168.1.100::255.255.255.0::eth0:off";
 	};
 
 	memory {
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/7 ARM: dts: pxa168-aspenite: fix wrong static ip autoconf

In reply to Giulio Benetti

At the moment <autoconf> field is set to 'on' but judging from the static ip setting it should be set to 'off', since in [1] states:

```
<autoconf>
off or none: don't use autoconfiguration (do static IP assignment instead)
on or any: use any protocol available in the kernel (default)
```

So let's substitute <autoconf> 'on' with 'off'.

[1]: https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt

---
 arch/arm/boot/dts/pxa168-aspenite.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/pxa168-aspenite.dts +1 -1
index 8bade6bf395b..68076f1c5cd3 100644
@@ -12,7 +12,7 @@ / {
 	compatible = "mrvl,pxa168-aspenite", "mrvl,pxa168";
 
 	chosen {
-		bootargs = "console=ttyS0,115200 root=/dev/nfs nfsroot=192.168.1.100:/nfsroot/ ip=192.168.1.101:192.168.1.100::255.255.255.0::eth0:on";
+		bootargs = "console=ttyS0,115200 root=/dev/nfs nfsroot=192.168.1.100:/nfsroot/ ip=192.168.1.101:192.168.1.100::255.255.255.0::eth0:off";
 	};
 
 	memory {
Signature · 1 line
2.25.1
#3 lore raw

PATCH 3/7 ARM: dts: pxa910-dkb: fix wrong static ip autoconf

In reply to Giulio Benetti

At the moment <autoconf> field is set to 'on' but judging from the static ip setting it should be set to 'off', since in [1] states:

```
<autoconf>
off or none: don't use autoconfiguration (do static IP assignment instead)
on or any: use any protocol available in the kernel (default)
```

So let's substitute <autoconf> 'on' with 'off'.

[1]: https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt

---
 arch/arm/boot/dts/pxa910-dkb.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/pxa910-dkb.dts +1 -1
index ce76158867c7..297a34f2ef2b 100644
@@ -12,7 +12,7 @@ / {
 	compatible = "mrvl,pxa910-dkb", "mrvl,pxa910";
 
 	chosen {
-		bootargs = "console=ttyS0,115200 root=/dev/nfs nfsroot=192.168.1.100:/nfsroot/ ip=192.168.1.101:192.168.1.100::255.255.255.0::eth0:on";
+		bootargs = "console=ttyS0,115200 root=/dev/nfs nfsroot=192.168.1.100:/nfsroot/ ip=192.168.1.101:192.168.1.100::255.255.255.0::eth0:off";
 	};
 
 	memory {
Signature · 1 line
2.25.1
#4 lore raw

PATCH 4/7 ARM: mmp2: update mmp2_defconfig to fix wrong static ip autoconf

In reply to Giulio Benetti

At the moment <autoconf> field is set to 'on' but judging from the static ip setting it should be set to 'off', since in [1] states:

```
<autoconf>
off or none: don't use autoconfiguration (do static IP assignment instead)
on or any: use any protocol available in the kernel (default)
```

So let's substitute <autoconf> 'on' with 'off'.

[1]: https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt

---
 arch/arm/configs/mmp2_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/configs/mmp2_defconfig +1 -1
index a5e8d2235a1a..231971ee0c8b 100644
@@ -15,7 +15,7 @@ CONFIG_PREEMPT=y
 CONFIG_AEABI=y
 CONFIG_ZBOOT_ROM_TEXT=0x0
 CONFIG_ZBOOT_ROM_BSS=0x0
-CONFIG_CMDLINE="root=/dev/nfs rootfstype=nfs nfsroot=192.168.1.100:/nfsroot/ ip=192.168.1.101:192.168.1.100::255.255.255.0::eth0:on console=ttyS2,38400 mem=128M user_debug=255 earlyprintk"
+CONFIG_CMDLINE="root=/dev/nfs rootfstype=nfs nfsroot=192.168.1.100:/nfsroot/ ip=192.168.1.101:192.168.1.100::255.255.255.0::eth0:off console=ttyS2,38400 mem=128M user_debug=255 earlyprintk"
 CONFIG_VFP=y
 CONFIG_NET=y
 CONFIG_PACKET=y
Signature · 1 line
2.25.1
#5 lore raw

PATCH 5/7 ARM: pxa168: update pxa168_defconfig to fix wrong static ip autoconf

In reply to Giulio Benetti

At the moment <autoconf> field is set to 'on' but judging from the static ip setting it should be set to 'off', since in [1] states:

```
<autoconf>
off or none: don't use autoconfiguration (do static IP assignment instead)
on or any: use any protocol available in the kernel (default)
```

So let's substitute <autoconf> 'on' with 'off'.

[1]: https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt

---
 arch/arm/configs/pxa168_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/configs/pxa168_defconfig +1 -1
index 0947f022954d..3a972bae1be3 100644
@@ -16,7 +16,7 @@ CONFIG_PREEMPT=y
 CONFIG_AEABI=y
 CONFIG_ZBOOT_ROM_TEXT=0x0
 CONFIG_ZBOOT_ROM_BSS=0x0
-CONFIG_CMDLINE="root=/dev/nfs rootfstype=nfs nfsroot=192.168.2.100:/nfsroot/ ip=192.168.2.101:192.168.2.100::255.255.255.0::eth0:on console=ttyS0,115200 mem=128M"
+CONFIG_CMDLINE="root=/dev/nfs rootfstype=nfs nfsroot=192.168.2.100:/nfsroot/ ip=192.168.2.101:192.168.2.100::255.255.255.0::eth0:off console=ttyS0,115200 mem=128M"
 CONFIG_FPE_NWFPE=y
 CONFIG_NET=y
 CONFIG_PACKET=y
Signature · 1 line
2.25.1
#6 lore raw

PATCH 6/7 ARM: pxa3xx: update pxa3xx_defconfig to fix wrong static ip autoconf

In reply to Giulio Benetti

At the moment <autoconf> field is set to 'on' but judging from the static ip setting it should be set to 'off', since in [1] states:

```
<autoconf>
off or none: don't use autoconfiguration (do static IP assignment instead)
on or any: use any protocol available in the kernel (default)
```

So let's substitute <autoconf> 'on' with 'off'.

[1]: https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt

---
 arch/arm/configs/pxa3xx_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/configs/pxa3xx_defconfig +1 -1
index f0c34017f2aa..ffe106c4c006 100644
@@ -14,7 +14,7 @@ CONFIG_PREEMPT=y
 CONFIG_AEABI=y
 CONFIG_ZBOOT_ROM_TEXT=0x0
 CONFIG_ZBOOT_ROM_BSS=0x0
-CONFIG_CMDLINE="root=/dev/nfs rootfstype=nfs nfsroot=192.168.1.100:/nfsroot/ ip=192.168.1.101:192.168.1.100::255.255.255.0::eth0:on console=ttyS0,115200 mem=64M debug"
+CONFIG_CMDLINE="root=/dev/nfs rootfstype=nfs nfsroot=192.168.1.100:/nfsroot/ ip=192.168.1.101:192.168.1.100::255.255.255.0::eth0:off console=ttyS0,115200 mem=64M debug"
 CONFIG_FPE_NWFPE=y
 CONFIG_NET=y
 CONFIG_PACKET=y
Signature · 1 line
2.25.1
#7 lore raw

PATCH 7/7 ARM: pxa910: update pxa910_defconfig to fix wrong static ip autoconf

In reply to Giulio Benetti

At the moment <autoconf> field is set to 'on' but judging from the static ip setting it should be set to 'off', since in [1] states:

```
<autoconf>
off or none: don't use autoconfiguration (do static IP assignment instead)
on or any: use any protocol available in the kernel (default)
```

So let's substitute <autoconf> 'on' with 'off'.

[1]: https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt

---
 arch/arm/configs/pxa910_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/configs/pxa910_defconfig +1 -1
index b21196372158..36ced16095c8 100644
@@ -16,7 +16,7 @@ CONFIG_PREEMPT=y
 CONFIG_AEABI=y
 CONFIG_ZBOOT_ROM_TEXT=0x0
 CONFIG_ZBOOT_ROM_BSS=0x0
-CONFIG_CMDLINE="root=/dev/nfs rootfstype=nfs nfsroot=192.168.2.100:/nfsroot/ ip=192.168.2.101:192.168.2.100::255.255.255.0::eth0:on console=ttyS0,115200 mem=128M earlyprintk"
+CONFIG_CMDLINE="root=/dev/nfs rootfstype=nfs nfsroot=192.168.2.100:/nfsroot/ ip=192.168.2.101:192.168.2.100::255.255.255.0::eth0:off console=ttyS0,115200 mem=128M earlyprintk"
 CONFIG_FPE_NWFPE=y
 CONFIG_NET=y
 CONFIG_PACKET=y
Signature · 1 line
2.25.1
#8 lore raw
In reply to Giulio Benetti

Hello All,

kindly ping,

Quoted 5 lines · Giulio Benetti

While trying to have a working nfsroot through RNDIS on sunxi I've found that in bootargs <autoconf> must be set to 'off' to use a static ip setup, but I've also found that the following boards have it set to 'on' that is not the <autoconf> setting for static ip as stated here:
https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt

the documentantion states "<autoconf> must be set to 'off' to use a static ip setup"...

Quoted 4 lines

And most of all on sunxi RNDIS it doesn't work as static ip nfsroot.

Unfortunately I don't have such boards to give a build and a test, so if there is someone who could give a try it would be great.

...so I don't even think it really deserves a test IMHO.

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 23 lines

Best regards
---
Giulio Benetti
Benetti Engineering sas

Giulio Benetti (7):
ARM: dts: mmp2-brownstone: fix wrong static ip autoconf
ARM: dts: pxa168-aspenite: fix wrong static ip autoconf
ARM: dts: pxa910-dkb: fix wrong static ip autoconf
ARM: mmp2: update mmp2_defconfig to fix wrong static ip autoconf
ARM: pxa168: update pxa168_defconfig to fix wrong static ip autoconf
ARM: pxa3xx: update pxa3xx_defconfig to fix wrong static ip autoconf
ARM: pxa910: update pxa910_defconfig to fix wrong static ip autoconf

  arch/arm/boot/dts/mmp2-brownstone.dts | 2 +-
  arch/arm/boot/dts/pxa168-aspenite.dts | 2 +-
  arch/arm/boot/dts/pxa910-dkb.dts      | 2 +-
  arch/arm/configs/mmp2_defconfig       | 2 +-
  arch/arm/configs/pxa168_defconfig     | 2 +-
  arch/arm/configs/pxa3xx_defconfig     | 2 +-
  arch/arm/configs/pxa910_defconfig     | 2 +-
  7 files changed, 7 insertions(+), 7 deletions(-)