-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build 3.0 images for n750 and tp-link routers #159
Comments
Yessssssss |
x-post from mesh mailing list
Yes, line 3 needs to become `CONFIG_TARGET_ar71xx_generic_MYNETN750=y
The bugs that need to be fixed will be in the pre-autoconf etc files and the post-autoconf etc files. I believe the biggest difference has to do with the layout of the ports/vlans. You can also reference the legacy makenode repo https://github.com/sudomesh/makenode to see if there are any hints. For example, this etc/config/network file looks important and it appears to be the only N750 specific file. |
I'm rolling up my sleeves on this, but not making too much progress yet. I see the port/vlan layout differences especially concerning the switch configuration. Wishing there was some good documentation concerning OpenWRT's handling of building multiple images for different devices on the same architecture. For instance, I added a config target line instead of replacing in |
You cannot target two different devices. Not sure why. It will only accept the second (i.e. the last executed) target. This is based on experience, though I may be able to find a source that corroborates my theory. My idea for creating multiple images is to re-run the build for each target. If done correctly each build should only take a minute or two. I don't have a lot of suggestion for working with the ports, I do love this diagram that you linked to, though. |
@wrought Have you looked at the makenode configs for the n750? We used to be able to configure sudowrt 0.2.x for those devices with makenode, so I think if we copy the n750 configs from there, it ought to work. I'm down to look at this with you sometime if it would help to have some company :) |
These are the n750 configs from makenode: https://github.com/sudomesh/makenode/tree/master/configs/ar71xx/home_nodes/mynet_n/n750 |
You are correct @bennlich, and that directory only contains one configuration, autoconf has not deviated from makenode that much yet, so the template configs are essentially interchangeable, though we should confirm that all the entries that need to be updated in the n750 network config match up I still think autoconf needs to be refactored. This issue of handling different hardware is another good reason, in addition to the ones i listed in #153. |
I've (re)discovered the main difference between n600 and n750 configs. It appears that the n600 has a The main change needs to be made in two files.
and the
Similarly, files/opt/mesh/templates/etc/config/network, the post-autoconf network config, needs the same lines changed/added. |
I made the suggested change in this commit to the n750 branch. Someone should build this and test it! I also have some ideas on how to integrate this change into master so that y'all can automatically build binaries for both n600s and n750s. My ideas are loosely related to #153 so I may make some commits to master in preparation for a merge (assuming that commit worked). |
Ok, so now it is actually building for n750. I realized the main reason for the existence for
In t's always been unclear to me why these two directories exist, why don't we just always build in
I'm not sure why we need to "avoid space duplication" and "still isolate builds"... who knows. |
Hi, thanks for your work on this @paidforby Coming back to this task -- so it seems from what I can tell you're saying the In any event, it seems like the task of supporting both images would require further modification of the build scripts, right? That was what I would like to help accomplish so that we can continue to flash n600 and n750 models until we run out. I also created issue #163 to track moving the configurations over to an openwrt package instead of maintaining the sudowrt-firmware pre-script scripts. |
So I believe I left this task at the following point: I built an n750 image. I flashed that image to an n750. It was apparently successful, but when the n750 boots it is not providing DHCP on any of the ports, nor can I ping by setting a static in the possible default ranges. I'm not sure how much I debugged. I know that I did not have an ethernet to plug in and test the WAN port, not sure that would make much difference. I think the key thing to play with is the etc/config/network file. But I could be wrong, I don't want to discourage you from following other leads. HOWEVER, I think #163 is a much more worthy project to pursue. Maybe you could flash vanilla OpenWrt to the n750, install babeld and tunneldigger, and then figure out how to turn autoconf into a package. |
Aha, I had misread your earlier comment, I am going to attempt to build, flash, test, and fix any issues to hopefully get this branch working for n750 builds (for now). Otherwise, I plan to proceed with #163 at this point. In fact, we may have gotten some Microtik and other hardware to work with tonight. |
assuming this needs to be edited https://github.com/sudomesh/sudowrt-firmware/blob/master/openwrt_config/arch_configs/ar71xx
then the firmware tested and bugs fixed from there
The text was updated successfully, but these errors were encountered: