Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Thu Jun 02, 2022 12:13 Post subject: Compiling my own DD-WRT firmware?
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 ...
_________________ 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: Thu Jun 02, 2022 12:24 Post subject:
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.
Joined: 08 May 2018 Posts: 14249 Location: Texas, USA
Posted: Thu Jun 02, 2022 17:27 Post subject:
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
I personally have not put any energy into testing compilation on the Windows Subsystem for Linux environment, whatsoever.
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
Wireless 5ghz only
Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port
Linksys EA8500 WDS Station x2 - DD-WRT r55799
Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779
OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.
Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Thu Jun 02, 2022 18:39 Post subject:
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...