Fix wrong static ip autoconf in some dts and defconfig
Subsystems (2)
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
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
@@ -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
PATCH 2/7 ARM: dts: pxa168-aspenite: fix wrong static ip autoconf
In reply to Giulio BenettiAt 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
@@ -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
PATCH 3/7 ARM: dts: pxa910-dkb: fix wrong static ip autoconf
In reply to Giulio BenettiAt 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
@@ -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
PATCH 4/7 ARM: mmp2: update mmp2_defconfig to fix wrong static ip autoconf
In reply to Giulio BenettiAt 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
@@ -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
PATCH 5/7 ARM: pxa168: update pxa168_defconfig to fix wrong static ip autoconf
In reply to Giulio BenettiAt 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
@@ -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
PATCH 6/7 ARM: pxa3xx: update pxa3xx_defconfig to fix wrong static ip autoconf
In reply to Giulio BenettiAt 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
@@ -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
PATCH 7/7 ARM: pxa910: update pxa910_defconfig to fix wrong static ip autoconf
In reply to Giulio BenettiAt 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
@@ -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
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 sasGiulio 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: updatemmp2_defconfigto fix wrong static ip autoconf
ARM: pxa168: updatepxa168_defconfigto fix wrong static ip autoconf
ARM: pxa3xx: updatepxa3xx_defconfigto fix wrong static ip autoconf
ARM: pxa910: updatepxa910_defconfigto fix wrong static ip autoconfarch/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(-)