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
Add support for FritzBox 5491 (GPON fiber) #145
Conversation
Please fix and resubmit. |
Thank you for your feedback. I will take care of all issues a.s.a.p. Regarding item 2: I made a diff -ur on the linux-3.10 directories from sources of the 7490 and 5491, version 07.01, and obtained a patch file being 768 kilobytes in size. Would you prefer applying this patch instead of hosting the individual sources of 5491? |
As already asked in the 1st response - what are the differences between 7490.07.01 and 5491.07.01 kernel sources? (Try to) describe them with your own words. There are a lot of differences which are completely negligible, e.g. (generation) timestamps in AVM module sources or even code changes in AVM modules. Freetz doesn't replace AVM modules, so all the differences within the corresponding sources are of no matter. If the diffs are however not negligible then a separate tarball is the preferred way. |
You challenge me since I am not really confident with Freetz' internals. But looking into the changes, only AVM-related files seem to be affected. The list of all differing files looks as follows: linux-3.10/drivers/char/avm_new/avm_dist_event/avm_event_gen_debug.c The complete diff is also attached. So it seems we just take the 7490 kernel sources if "replace kernel" is selected? |
In general the code changes under In some cases one however can ignore the changes there as these are just the result of a reorder of function declarations/definitions, i.e. the same functions but in some other order, don't ask me why AVM does it. Feel free to go for the patch-based alternative. The compressed version of the patch is quite small and could be added to the repository. The only thing we have to do before that is to teach |
Btw: I see |
Probably a mistake. I use a file make/linux/configs/freetz/config-vr9-5491_07.01 that is identical to the config-vr9-7490_07.01 in the same directory. Gonna add it to my list for the revised PR. |
Still work in progress |
Kleiner Tipp von mir ... die Änderungen am Freetz-Master nicht als "merge commit" in den eigenen Branch übernehmen, sondern immer mittels "rebase". Das erspart solche "leeren" Commits, von denen man oben zwei sehen kann. Anders als bei der Übernahme eines PR in den Master braucht es auch die (Zusatz-)Information aus diesem "merge commit", wann die Änderungen übernommen wurden, nicht wirklich - damit ist der eigentlich komplett überflüssig. Und wenn das noch eine Weile so geht, bis der PR "ready for merge" ist und Du noch einige Male den Master-Stand nachziehen willst, werden das immer mehr dieser "merge commits". Am besten macht man es so (oder zumindest so ähnlich) - "upstream" ist das Freetz-Master-Repo, "origin" bei mir ein eigenes lokales Repo und "github" mein Fork auf GitHub:
Damit sind die Änderungen am Freetz-Master übernommen und es gibt trotzdem keinen zusätzlichen "merge commit" in der History ... diese sind (da sie eben auch den Hash eines nachfolgenden Commits verändern) an dieser Stelle nicht nur "häßlich" - nein, sie sorgen auch für zusätzliche "Verwirrung" und irgendwann wirst Du den gesamten PR ohnehin noch einmal "rebasen" müssen, wenn er denn fertig ist. Man kann auch die beiden derzeitigen "merge commits" noch entfernen, indem man einfach ein |
@cawidtu: |
forgot to remove
make sure FREETZ_TYPE_DSL is not selected
|
Danke. Kümmere mich schnellstmöglich darum, kann aber gerade nicht. |
Thank you for your patience. I was not aware of the fact that we need to duplicate the checksum of the 7490 sources under FREETZ_AVM_SOURCE_5491_07_01. But in hindsight it makes sense. I unified all my changes into one commit. Hope it is useful now. We are still dealing with a quite big kernel delta patch ( 000-delta-from-7490.07.01.patch is about 680 k) but I am not sure whether compressed patch files are supported. |
Could you please as already asked in #145 (comment) change the line https://github.com/Freetz/freetz/blob/master/config/mod/download.in#L154 from
to
instead of adding the checksum for the 2nd time. This way it's easier to see that multiple source packages share the same basis. Could you please while adding Empty line with comment sign before |
Fixed these issues. Sorry I misunderstood the instruction regarding the checksum. |
Thanks! |
Great that compressed patches are supported now. I followed the conventions suggested above and created a patch file named 000-7490.07.01-5491.07.01-delta.patch.xz (001 prefix was already taken). Kernel is successfully built and patched, see the excerpt from the log below. Hope it is fine.
|
Great! Thanks a lot! Now the very last comment ;-) Could you please add 5491 to FIRMWARES. |
…l to 7490) (squashed 2 subsequent commits)
Done. Please check whether my change to the preceding section about 5xxx (all allocated to Fritz!Box Fon) makes sense. |
Everything looks good. Thanks a lot! |
I have the 5490 (AON fiber) here. Indeed very similar to the 7490. I hope I can look at this PR and add support for it as well. |
Both breaks tools/verify-dls.sh script. Refs #145
Both breaks tools/verify-dls.sh script. Refs Freetz#145
I own a FritzBox 5491 and found it to be almost identical to the 7490 model. My commits to support Freetz for the 5491 are based on the functionality already available for the 7490. Has been working stably for several weeks. Only requurement: The kernel sources have to be extracted from the 5491 tarball and uploaded to the servers usually accessed by Freetz (only relevant for "replace kernel").