About source codes of DD-WRT

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1287
Location: Hung Hom, Hong Kong

PostPosted: Thu Sep 29, 2022 5:09    Post subject: About source codes of DD-WRT Reply with quote
So I opened https://github.com/mirror/dd-wrt/archive/refs/heads/master.zip, asking questions:

1. Is Asterisk compiled to produce DD-WRT? I noticed that it's all about sound... I don't think
routers could produce sound. Removing it saved 66M of disk space. Smile

\dd-wrt-master.zip\dd-wrt-master\src\router\asterisk\

There are actually some WAV music files in \dd-wrt-master.zip\dd-wrt-master\src\router\asterisk\sounds\asterisk-moh-opsound-wav-2.03.tar.gz\

2. Is \dd-wrt-master.zip\dd-wrt-master\src\router\ctorrent\ necesary? By default,
DD-WRT should feature Transmission as BT client?

\dd-wrt-master.zip\dd-wrt-master\src\router\transmission\



Related:

DD-WRT :: View topic - [SOLVED] Searching source codes
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=332814

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper!
May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832


Last edited by mwchang on Tue Oct 25, 2022 9:15; edited 2 times in total
Sponsor
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 4585

PostPosted: Thu Sep 29, 2022 5:12    Post subject: Reply with quote
I'm sure x86 includes Asterisk, Plex and other nice things with plenty of space and resources.

ctorrent existed at one point in time just like kaid or milkfish all replaced, removed or retired.
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1287
Location: Hung Hom, Hong Kong

PostPosted: Thu Sep 29, 2022 5:46    Post subject: Reply with quote
blkt wrote:
I'm sure x86 includes Asterisk, Plex and other nice things with plenty of space and resources.

I wonder who is/was actually using Asterisk PBX... Smile

Asterisk (PBX) - Wikipedia
https://en.wikipedia.org/wiki/Asterisk_(PBX)

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper!
May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1287
Location: Hung Hom, Hong Kong

PostPosted: Thu Sep 29, 2022 5:51    Post subject: Reply with quote
blkt wrote:
ctorrent existed at one point in time just like kaid or milkfish all replaced, removed or retired.

Last updated 2013-04-16... not found in my Asus RT-N18U's DD-WRT.

CTorrent download | SourceForge.net
https://sourceforge.net/projects/ctorrent/

GitHub - asamy/ctorrent: A torrent client written in C++11 with a library.
https://github.com/asamy/ctorrent

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper!
May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 4585

PostPosted: Thu Sep 29, 2022 6:04    Post subject: Reply with quote
Businesses use Asterisk. You can set up your own phone if you like. Yup, that's the wiki I linked.
About keeping any old folders like I said they existed in the past old builds, no reason to delete.

But I was thinking along the lines of kaid or milkfish as these two have been removed or retired.
After searching ctorrent may still be in use. https://github.com/mirror/dd-wrt/search?q=ctorrent
No comment /src/router/configs/broadcom/.config_usb.v24 and /src/router/.config_i386_nowifi

CONFIG_KAID=y is not commented out in some configs this is news to me, thought it was gone.
Hmm.. same with milkfish so maybe these have been disabled elsewhere, or the configs are old.
Yes, they are disabled elsewhere (kaid, sputnik, milkfish) so seems ctorrent is still alive and well.
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 752

PostPosted: Thu Sep 29, 2022 12:24    Post subject: Reply with quote
One must understand that there's various parts of the code repository that are there for posterity and may not be included in actual firmware image builds. As is said, "pay no attention to my trashbin". /src/router/configs is where you should start looking at what's included for which device(s), but those files may not be accurate.
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.4
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2143
Location: All over YOUR webs

PostPosted: Thu Sep 29, 2022 13:41    Post subject: Re: About source codes of DD-WRT Reply with quote
mwchang wrote:
So I opened https://github.com/mirror/dd-wrt/archive/refs/heads/master.zip, asking questions:

1. Is Asterisk compiled to produce DD-WRT? I noticed that it's all about sound... I don't think
routers could produce sound. Removing it saved 66M of disk space. Smile

\dd-wrt-master.zip\dd-wrt-master\src\router\asterisk\

There are actually some WAV music files in \dd-wrt-master.zip\dd-wrt-master\src\router\asterisk\sounds\asterisk-moh-opsound-wav-2.03.tar.gz\

2. Is \dd-wrt-master.zip\dd-wrt-master\src\router\ctorrent\ necesary? By default,
DD-WRT should feature Transmission as BT client?

\dd-wrt-master.zip\dd-wrt-master\src\router\transmission\


Not everything in tree is compiled to ANY device, you need to check the device config files enabling/disabling features.

In a few months when you actually have enough experience with the code you may even start to understand the finer points of it, at this time, its just stabs in the dark as I see above, OK youre trying to understand, so I shouldn't be so harsh Wink.

When I asked why some stuff is still left behind, the answer was, "you shouldn't worry about my disk space"

That said, much crapola left behind for .23 files (old asp files) and many others have been removed like webconfig files and other useless stuff. We still have Milkfish (one of the many examples you likely will see and find) in tree but its not compiled and all and was removed last year, its strings and other stuff has been removed completely, but still present in some makefiles albeit commented out. Ive also moved many files to the old_not_maintained folder to get my playground tidier.

You should check makefiles and device config files to better understand what your looking at, all answers found within.

I can tell you, to make space you wont find much if anything, Ive reduced the web interface code (thats all javascript, language files, asp/html, css), from 3.8MB to 2.76MB, (check by doing ls -all /etc/www on a build from 2 and a half years ago comparing to latest dev build 50292) so on that front you can leave that job to me.

Good luck on your hunting anyway, you may actually stumble on something.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1287
Location: Hung Hom, Hong Kong

PostPosted: Tue Oct 25, 2022 9:01    Post subject: Reply with quote
Code:
~# cd dd-wrt-master/src/router
~# find . -type f | sed -n 's/..*\.//p' | sort | uniq -c | sort | tail -30

   1148 short
   1244 pm
   1311 out
   1449 ini
   1515 json
   1539 s
   1544 pl
   1551 pem
   1568 cc
   1628 ksh
   1760 d
   1921 m4
   1932 am
   2043 3
   2360 conf
   2734 cpp
   3107 test
   3263 xml
   3345 t
   3866 html
   3956 C
   3994 txt
   4428 in
   4429 sh
   6043 png
   7041 py
   8375 java
  17195 phpt
  47752 h
  55647 c

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper!
May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum