Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Fri Aug 26, 2022 15:59 Post subject:
the-joker wrote:
You can hack Windows for some things and it wont be enough it will never work due certain filenames. But Im repeating myself, Joker != parrot.
I most likely will throw master.zip into a bigger USB drive attached to my DD-WRT router aka Asus RT-N18U, then decompress it there.
Is there a smaller zip that contains only the source codes of DD-WRT? No linux kernel, no router manufacturer blob, just DD-WRT! That should be a lot smaller than 3,571,145,674 bytes, right?
I don't wanna compile it, just reading and searching the core C codes of DD-WRT!
_________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Fri Aug 26, 2022 18:19 Post subject:
the-joker wrote:
Im not entirely sure what you mean just by DD-WRT, whats wrong with the whole lot? You should copy the whole lot and delete what you dont like (if using the zip) , so next time I hear anything about this will be 5 years later hahaha.
I always thought there should be a clear line between the codes to be patched and the patching codes. Most problems should usually come from the patching codes instead of the codes to be patched, the later could/should be ignored. Without this line, it's hard to rollback changes, I suppose.
I always thought a git/versioning system was to make this line easy to see. But then in the end you have to insert your changes directly into the C file.
_________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Fri Aug 26, 2022 19:01 Post subject:
mwchang wrote:
the-joker wrote:
Im not entirely sure what you mean just by DD-WRT, whats wrong with the whole lot? You should copy the whole lot and delete what you dont like (if using the zip) , so next time I hear anything about this will be 5 years later hahaha.
I always thought there should be a clear line between the codes to be patched and the patching codes. Most problems should usually come from the patching codes instead of the codes to be patched, the later could/should be ignored. Without this line, it's hard to rollback changes, I suppose.
I always thought a git/versioning system was to make this line easy to see. But then in the end you have to insert your changes directly into the C file.
This literally makes no sense to me, something is clearly being lost in translation.
Anyway good luck to you and your endeavors, sounds like you have a great deal to read on.
Google can answer all the questions you may have, literally all thus far could have been between you and google/your fav search engine.
Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Sat Aug 27, 2022 7:38 Post subject:
egc wrote:
You should be able to do a selective check out.
Might want to Google that
How do you select a red line that does NOT exist?
From the replies of Master Joker, it's rather difficult to find that line which is completely fused with the C codes?
_________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Sat Aug 27, 2022 9:33 Post subject:
the-joker wrote:
mwchang wrote:
As I just wanna find out how DD-WRT interacts with the router at a high level, I could save time by skipping the bulk of source codes.
High level? You mean the user interface or what, be specific please, low/high level is real technical coding jargon, each will have different parts of code to look at specifically.
Let me start reading the codes first, then I come back to haunt this thread with specific detail. Thank you ALL!
_________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
Joined: 18 Mar 2014 Posts: 12913 Location: Netherlands
Posted: Sat Aug 27, 2022 9:48 Post subject:
Well the code consists of a mix of HTML/ASP, C and Bash scripts but then you have to know how to read the makefiles and rules and configs to see what eventually ends up in the build.
Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Sat Aug 27, 2022 10:12 Post subject:
egc wrote:
All without any documentation.
I do not want to discourage you because we need more knowledgeable people to work on the project but not many people which are active today besides BS have a deep/total knowledge about it, which is unfortunate
It's indeed very hard to read codes without knowing their purposes and intent. Will try my breast... sorry, best.
_________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Sat Aug 27, 2022 16:00 Post subject:
egc wrote:
If you need any pointers you can always PM me
My only pointer is towards search engines (aside what has been said), sorry
It's a slow progress to get anywhere DD-WRT side too many nooks and crannies, after two years I'm barely scratching the surface DD-WRT side. I never had to deal with cgi, C or asp ever before, but I'm learning and at 50 years old I still have appetite and interest. And that is what matters, boundless curiosity and determination!
Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Sat Aug 27, 2022 16:50 Post subject:
[quote="the-joker"]
egc wrote:
The Interface is split between css, javascript, bash scripts, cgi, asp, C, htm, and webconfig files all over the source, its not like there is a single folder with all of it, so that alone to come close to mastering is a 24/7 job 365 days a year for 5 years.
"A single folder with all of it" was possible, if and only if the WEBUI used PHP instead of C? But then DD-WRT is an old project. Way way back then not even CSS was standard and available. That explained the heavy use of Javacript and CGI.
"ASP"? Isn't it just a file extension? Was it really Active Server Page of Micro$oft?
BTW, I think DD-WRT wrote its own C-based web server for the WBEUI? I wasn't sure...