Compiling my own DD-WRT firmware?

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


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

PostPosted: Thu Jun 02, 2022 12:13    Post subject: Compiling my own DD-WRT firmware? Reply with quote
Could I download the whole source codes of DD-WRT and compile it using Window$ 10?

Back then I always compiled my own Linux kernel from source codes using GCC, and they always booted fine.

I am interested in determining whether the binary produced by me would be the same as the one released by developers ... Smile


_________________
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
GitHub: https://github.com/changmw/changmw
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Thu Jun 02, 2022 12:24    Post subject: Reply with quote
I am using Ubuntu 20.04 LTS which is running in Virtualbox on my Windows 10 PC.
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
the-joker
DD-WRT Developer/Maintainer


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

PostPosted: Thu Jun 02, 2022 12:24    Post subject: Reply with quote
You can download the source, Windows side compilation I doubt it very very VERY much. Its Linux crap sir. So you need a Linux environment and you need to know what the dependencies are because its not just regular GCC.

Compiling DD-WRT has a shit ton of dependencies and special GCC modified from OpenWRT GCC and its not really documented.

But Good luck egc does it. I cant be arsed with it.

_________________
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)
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14125
Location: Texas, USA

PostPosted: Thu Jun 02, 2022 17:27    Post subject: Reply with quote
There are several people rolling "community builds", not just @egc. That reminds me, some forgiveness requested in not collaborating much, sir @egc. Life sometimes gets in the way Rolling Eyes Embarassed

I personally have not put any energy into testing compilation on the Windows Subsystem for Linux environment, whatsoever.

https://www.makeuseof.com/wsl-desktop/

https://docs.microsoft.com/en-us/windows/wsl/about

https://docs.microsoft.com/en-us/learn/modules/get-started-with-windows-subsystem-for-linux/

https://search.yahoo.com/yhs/search?hspart=hidden&hsimp=yhs-epic&p=windows%20linux%20environment

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 962
Location: WV, USA

PostPosted: Thu Jun 02, 2022 17:56    Post subject: Reply with quote
While I have not tried building an entire ddwrt flashable rom lately, I did back in 2014 using Fedora Linux (which I still use as my main OS).

Flash to present (pun intended), I have successfully compiled several kernel modules for my EA8500. The key is obtaining the correct toolchain and the kernel sources for your router version for ddwrt.

Attempting to build on Windows is probably not going to work out very well, but with the fairly new Windows Linux subsystem, it *might* be possible.

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r53562

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port.

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
the-joker
DD-WRT Developer/Maintainer


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

PostPosted: Thu Jun 02, 2022 18:39    Post subject: Reply with quote
I wouldnt wanna try this on WSL, Ive tested WSL recently after it was first introduced and still dont find it good enough real Linux replacement.

Besides, WSL has these pesky vulnerabilities that can allow all sorts of malware to bypass any protection mechanisms and transverse into Windows and remain undetected by ANY means, so there is that snag for me.

So no thanks Microsoft. The lesser of two evils is what I choose. Either dual Boot to my real Linux install (QubeOS) or run a VM with a well supported and community rich distro, (not Linux Mint rather go with WSL) and do my DD-WRT development there or in a VM running Linux...

I compile almost daily many projects I use Linux side, but those are done in machine where they live. My network has many devices and only one has Windows, the rest is all Linux of some flavor or other.

_________________
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)
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