Re: [OpenWrt-Devel] Change Default IP?
AFAIK you are right. The pre-existing device-specific /etc/config/network defconfig file stops the uci-defaults process, just as planned. The reason for that behaviour is that you might also have included a custom /etc/config/network in your image through the /files mechanism and also in that situation the uci-defaults would need to be stopped. WNDR3700/3800 is currently only router in the ar71xx target with a device-specific netowrk config file and thus deviating from the uci-defaults mechanism. Additionally, the uci-defaults file does not contain a config profile for WNDR3700. The reason for this exception is probably the versatile switch LED config documentation for WNDR3700. In another message in this thread Daniel wondered where the old IP address config option had disappeared. It was removed in April with r31258: https://dev.openwrt.org/changeset/31258/ 12 Apr 2012 [package] base-files: remove network preconfig, it collides with ar71xx network firstboot uci-defaults To supply custom network settings, it is better to embed a complete network config file using the files/ overlay, the old image lan preconfig options are also very limited in scope and actually collide with sysupgrade and firstboot hardware detection on at least ar71xx and possibly other targets, therfore drop this facility. Quoting John Lauro john.la...@covenanteyes.com: Not certain which config option for uci-defaults you are referring to, so perhaps I am not using the right one for it not to matter? Not sure, but looks like network gets established from target/linux/ar71xx/base-files/etc/defconfig/wndr3700/network in the base filesystem (or not? it at least appears to be closer to my running /etc/config/network than most of the other copies of network) and this line is in /etc/uci-defaults/network: [ -e /etc/config/network ] exit 0 (and that would cause uci-defaults/network not to run) (or is that not what runs at first boot that you were referring to?) so I think that would keep the defaults from loading on first boot? If nothing else, I have a few things to try. Will try the target/linux/ar71xx/base-files/etc/defconfig/wndr3700/network first as I think that sounds most promissing. Might be a few days before I gen a new firmware and test it. The flow of all these files/configurations is a bit hard to follow from build system to running system, etc... At least most of it just works, and adding to it is easy enough... just altering some of the defaults can be a bit hard to follow... - Original Message - From: Daniel Dickinson dan...@powercloudsystems.com To: OpenWrt Development List openwrt-devel@lists.openwrt.org Cc: Hannu Nyman hannu.ny...@iki.fi Sent: Thursday, November 29, 2012 5:42:10 PM Subject: Re: [OpenWrt-Devel] Change Default IP? Actually shouldn't matter. If using right config option (under Image options IRC) then there will be an uci-defaults file that runs on firstboot to set the ipaddr, which should occur after the defconfig configuration. At least that's the intended design; if the order of scripts is wrong then that's a bug. Regards, Daniel On 29/11/2012 5:21 PM, Hannu Nyman wrote: You mentioned later in the thread that you are building for wndr3800. That is the key info here. Due to complex switch port LED defintions, WNDR3700/3800 has a dedicated network file template that will be used: https://dev.openwrt.org/browser/trunk/target/linux/ar71xx/base-files/etc/defconfig/wndr3700/network It has the section: config interface lan option ifname eth0.1 option type bridge option protostatic option ipaddr 192.168.1.1 option netmask 255.255.255.0 On 29.11.2012 1:38, John Lauro wrote: Is there a place to change the default IP for a firmware build? I tried setting under Image configuration - Preinit configuration options - IP address for preinit network messages, but that doesn't seem to work (not that I expected to, but it's the only config options I could find related to an IP address). Doing a search of my build tree, 192.168.1.1 seems to be embedded in several spots. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
Hi, On Thu, Nov 29, 2012 at 11:56:29PM +, David Woodhouse wrote: Hm, do we really only have Legacy IP enabled by default? We should really set an IPv6 address too (ULA or perhaps site-local). That would be *much* easier to deal with when connecting it to an existing network. No site-locals, please. RFC3879 Deprecating Site Local Addresses. C. Huitema, B. Carpenter. September 2004. (Format: TXT=24142 bytes) (Status: PROPOSED STANDARD) ULAs would be one option, but just having link-local active also helps (I've locked out myself a number of times of IPv4, and being able to get back via link-local was useful, even if slightly cumbersome due to the interface-dependent syntax fe80::1:2:3%eth0 on the client side) gert -- USENET is *not* the non-clickable part of WWW! //www.muc.de/~gert/ Gert Doering - Munich, Germany g...@greenie.muc.de fax: +49-89-35655025g...@net.informatik.tu-muenchen.de pgp5Xh7kfyV3c.pgp Description: PGP signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. Hmmmit seems to have disappeared. I will try to find time to look into this. It was removed deliberately because image-config uci-defaults clashed with ar71xx network generation uci-defaults. The most universal way to preconfigure an image is to embed an /etc/config/network into the images by putting it into files/etc/config/network. ~ Jow -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlC4fwAACgkQdputYINPTPOI2QCfS/C1T+T/WhUO5ggiNnAIRtV0 O6wAnjkSeRzZxV9+XYaboPYJGKRvHN9e =6SGb -END PGP SIGNATURE- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
I tried preinit and also .../trunk/package/base-files/files/etc/config/network .../trunk/target/linux/ar7/base-files/etc/config/network and it still comes out as 192.168.1.1. (building for a wndr3800) Seems to be lots of network files. I guess I could have the wrong one? The bin comes out under ar711x. - Original Message - From: Weedy weedy2...@gmail.com To: openwrt-devel@lists.openwrt.org Sent: Wednesday, November 28, 2012 7:21:25 PM Subject: Re: [OpenWrt-Devel] Change Default IP? On 28/11/12 06:38 PM, John Lauro wrote: Is there a place to change the default IP for a firmware build? I tried setting under Image configuration - Preinit configuration options - IP address for preinit network messages, but that doesn't seem to work (not that I expected to, but it's the only config options I could find related to an IP address). Doing a search of my build tree, 192.168.1.1 seems to be embedded in several spots. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel Preinit configuration has always worked for me. You can use the more heavy handed $TOPDIR/files/etc/config/network if it is not working. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
Hi, John. I tried preinit and also .../trunk/package/base-files/files/etc/config/network .../trunk/target/linux/ar7/base-files/etc/config/network and it still comes out as 192.168.1.1. (building for a wndr3800) Seems to be lots of network files. I guess I could have the wrong one? The bin comes out under ar711x. Two alternative ways to do that: 1. target/linux/ar71xx/base-files.mk Comment out that rm -f $(1)/etc/config/network and place your desired network config file at the target/linux/ar71xx/base-files/etc/config 2. change 192.168.1.1 to ip of your choice at the package/base-files/files/lib/functions/uci-defaults.sh This will make /etc/config/network file generated with proper ip. Have nice day, George ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
Hi again. I tried preinit and also .../trunk/package/base-files/files/etc/config/network .../trunk/target/linux/ar7/base-files/etc/config/network and it still comes out as 192.168.1.1. (building for a wndr3800) Seems to be lots of network files. I guess I could have the wrong one? The bin comes out under ar711x. Two alternative ways to do that: 1. target/linux/ar71xx/base-files.mk Comment out that rm -f $(1)/etc/config/network and place your desired network config file at the target/linux/ar71xx/base-files/etc/config 2. change 192.168.1.1 to ip of your choice at the package/base-files/files/lib/functions/uci-defaults.sh This will make /etc/config/network file generated with proper ip. In case if (2) won't work for you take a look at the target/linux/ar71xx/base-files/etc/defconfig/wndr3700/network as it seems is used as default for the wndr3700, wndrR3800 and wndrmac. Have nice day, George ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
You mentioned later in the thread that you are building for wndr3800. That is the key info here. Due to complex switch port LED defintions, WNDR3700/3800 has a dedicated network file template that will be used: https://dev.openwrt.org/browser/trunk/target/linux/ar71xx/base-files/etc/defconfig/wndr3700/network It has the section: config interface lan option ifname eth0.1 option type bridge option protostatic option ipaddr 192.168.1.1 option netmask 255.255.255.0 On 29.11.2012 1:38, John Lauro wrote: Is there a place to change the default IP for a firmware build? I tried setting under Image configuration - Preinit configuration options - IP address for preinit network messages, but that doesn't seem to work (not that I expected to, but it's the only config options I could find related to an IP address). Doing a search of my build tree, 192.168.1.1 seems to be embedded in several spots. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
Actually shouldn't matter. If using right config option (under Image options IRC) then there will be an uci-defaults file that runs on firstboot to set the ipaddr, which should occur after the defconfig configuration. At least that's the intended design; if the order of scripts is wrong then that's a bug. Regards, Daniel On 29/11/2012 5:21 PM, Hannu Nyman wrote: You mentioned later in the thread that you are building for wndr3800. That is the key info here. Due to complex switch port LED defintions, WNDR3700/3800 has a dedicated network file template that will be used: https://dev.openwrt.org/browser/trunk/target/linux/ar71xx/base-files/etc/defconfig/wndr3700/network It has the section: config interface lan option ifname eth0.1 option type bridge option protostatic option ipaddr 192.168.1.1 option netmask 255.255.255.0 On 29.11.2012 1:38, John Lauro wrote: Is there a place to change the default IP for a firmware build? I tried setting under Image configuration - Preinit configuration options - IP address for preinit network messages, but that doesn't seem to work (not that I expected to, but it's the only config options I could find related to an IP address). Doing a search of my build tree, 192.168.1.1 seems to be embedded in several spots. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel -- Daniel Dickinson PowerCloud Systems, Palo Alto, CA Senior Firmware Engineer (In Canada: Senior Firmware Analyst) signature.asc Description: OpenPGP digital signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
Not certain which config option for uci-defaults you are referring to, so perhaps I am not using the right one for it not to matter? Not sure, but looks like network gets established from target/linux/ar71xx/base-files/etc/defconfig/wndr3700/network in the base filesystem (or not? it at least appears to be closer to my running /etc/config/network than most of the other copies of network) and this line is in /etc/uci-defaults/network: [ -e /etc/config/network ] exit 0 (and that would cause uci-defaults/network not to run) (or is that not what runs at first boot that you were referring to?) so I think that would keep the defaults from loading on first boot? If nothing else, I have a few things to try. Will try the target/linux/ar71xx/base-files/etc/defconfig/wndr3700/network first as I think that sounds most promissing. Might be a few days before I gen a new firmware and test it. The flow of all these files/configurations is a bit hard to follow from build system to running system, etc... At least most of it just works, and adding to it is easy enough... just altering some of the defaults can be a bit hard to follow... - Original Message - From: Daniel Dickinson dan...@powercloudsystems.com To: OpenWrt Development List openwrt-devel@lists.openwrt.org Cc: Hannu Nyman hannu.ny...@iki.fi Sent: Thursday, November 29, 2012 5:42:10 PM Subject: Re: [OpenWrt-Devel] Change Default IP? Actually shouldn't matter. If using right config option (under Image options IRC) then there will be an uci-defaults file that runs on firstboot to set the ipaddr, which should occur after the defconfig configuration. At least that's the intended design; if the order of scripts is wrong then that's a bug. Regards, Daniel On 29/11/2012 5:21 PM, Hannu Nyman wrote: You mentioned later in the thread that you are building for wndr3800. That is the key info here. Due to complex switch port LED defintions, WNDR3700/3800 has a dedicated network file template that will be used: https://dev.openwrt.org/browser/trunk/target/linux/ar71xx/base-files/etc/defconfig/wndr3700/network It has the section: config interface lan option ifname eth0.1 option type bridge option protostatic option ipaddr 192.168.1.1 option netmask 255.255.255.0 On 29.11.2012 1:38, John Lauro wrote: Is there a place to change the default IP for a firmware build? I tried setting under Image configuration - Preinit configuration options - IP address for preinit network messages, but that doesn't seem to work (not that I expected to, but it's the only config options I could find related to an IP address). Doing a search of my build tree, 192.168.1.1 seems to be embedded in several spots. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel -- Daniel Dickinson PowerCloud Systems, Palo Alto, CA Senior Firmware Engineer (In Canada: Senior Firmware Analyst) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
On Thu, 2012-11-29 at 15:17 -0500, John Lauro wrote: I tried preinit and also .../trunk/package/base-files/files/etc/config/network .../trunk/target/linux/ar7/base-files/etc/config/network and it still comes out as 192.168.1.1. (building for a wndr3800) Seems to be lots of network files. I guess I could have the wrong one? The bin comes out under ar711x. Hm, do we really only have Legacy IP enabled by default? We should really set an IPv6 address too (ULA or perhaps site-local). That would be *much* easier to deal with when connecting it to an existing network. -- dwmw2 smime.p7s Description: S/MIME cryptographic signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
Not sure, I purposely only have IPv4 enabled at this time though for my build. Don't recall the default as that was months ago I went through most of the options. - Original Message - From: David Woodhouse dw...@infradead.org To: John Lauro john.la...@covenanteyes.com Cc: OpenWrt Development List openwrt-devel@lists.openwrt.org Sent: Thursday, November 29, 2012 6:56:29 PM Subject: Re: [OpenWrt-Devel] Change Default IP? On Thu, 2012-11-29 at 15:17 -0500, John Lauro wrote: I tried preinit and also .../trunk/package/base-files/files/etc/config/network .../trunk/target/linux/ar7/base-files/etc/config/network and it still comes out as 192.168.1.1. (building for a wndr3800) Seems to be lots of network files. I guess I could have the wrong one? The bin comes out under ar711x. Hm, do we really only have Legacy IP enabled by default? We should really set an IPv6 address too (ULA or perhaps site-local). That would be *much* easier to deal with when connecting it to an existing network. -- dwmw2 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Change Default IP?
Is there a place to change the default IP for a firmware build? I tried setting under Image configuration - Preinit configuration options - IP address for preinit network messages, but that doesn't seem to work (not that I expected to, but it's the only config options I could find related to an IP address). Doing a search of my build tree, 192.168.1.1 seems to be embedded in several spots. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
On 28/11/12 06:38 PM, John Lauro wrote: Is there a place to change the default IP for a firmware build? I tried setting under Image configuration - Preinit configuration options - IP address for preinit network messages, but that doesn't seem to work (not that I expected to, but it's the only config options I could find related to an IP address). Doing a search of my build tree, 192.168.1.1 seems to be embedded in several spots. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel Preinit configuration has always worked for me. You can use the more heavy handed $TOPDIR/files/etc/config/network if it is not working. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
Perhaps you're trying to set image configuration not preinit (i.e. the default for regular operation)? If so preinit is the wrong ip address. Regards, Daniel On 28/11/2012 7:21 PM, Weedy wrote: On 28/11/12 06:38 PM, John Lauro wrote: Is there a place to change the default IP for a firmware build? I tried setting under Image configuration - Preinit configuration options - IP address for preinit network messages, but that doesn't seem to work (not that I expected to, but it's the only config options I could find related to an IP address). Doing a search of my build tree, 192.168.1.1 seems to be embedded in several spots. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel Preinit configuration has always worked for me. You can use the more heavy handed $TOPDIR/files/etc/config/network if it is not working. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel -- Daniel Dickinson PowerCloud Systems, Palo Alto, CA Senior Firmware Engineer (In Canada: Senior Firmware Analyst) signature.asc Description: OpenPGP digital signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Change Default IP?
Right... unable to locate a place to set an IP address for the image init configuration, only preinit. - Original Message - From: Daniel Dickinson dan...@powercloudsystems.com To: OpenWrt Development List openwrt-devel@lists.openwrt.org Sent: Wednesday, November 28, 2012 7:41:16 PM Subject: Re: [OpenWrt-Devel] Change Default IP? Perhaps you're trying to set image configuration not preinit (i.e. the default for regular operation)? If so preinit is the wrong ip address. Regards, Daniel On 28/11/2012 7:21 PM, Weedy wrote: On 28/11/12 06:38 PM, John Lauro wrote: Is there a place to change the default IP for a firmware build? I tried setting under Image configuration - Preinit configuration options - IP address for preinit network messages, but that doesn't seem to work (not that I expected to, but it's the only config options I could find related to an IP address). Doing a search of my build tree, 192.168.1.1 seems to be embedded in several spots. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel Preinit configuration has always worked for me. You can use the more heavy handed $TOPDIR/files/etc/config/network if it is not working. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel -- Daniel Dickinson PowerCloud Systems, Palo Alto, CA Senior Firmware Engineer (In Canada: Senior Firmware Analyst) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel