Compiling DD-WRT

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 13, 14, 15
Author Message
kernel-panic69
DD-WRT Guru


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

PostPosted: Mon Nov 25, 2019 22:24    Post subject: Reply with quote
MuzzleVelocity wrote:
mr.shimpy wrote:
the steps which you would have to know to build something, are highly secret, and the ones who know them will never tell you.


why is that? seems to defeat the purpose of being open source...


Obfuscation by default, so the paranoid god complex can talk down to everyone else like they don't know anything. Maybe if the development environment weren't so ridiculous. Also, for those who may or may not have wondered, I found out that if you chase this rabbit down the hole, you will likely want to use OpenSUSE leap. BUT, the thing is, the publicly-downloadable toolchains file hasn't been updated since last August, so YMMV. IMHO, if the development tree was broken down by manufacturer and architecture and a git repository instead of subversion, it would make things much easier. It would take forever to get things sorted, but it would be worth it. I just don't have the time or inclination to re-download 20+ GB of source code to monkeyf*ck around with it.

_________________
E4200 v1 DD-WRT 41954 mega (01/09/20) (K3.x)
R7000P DD-WRT 40270M kongac
E4200 v1 FreshTomato 2019.4
E4200 v1 FreshTomato 2020.1.development
R7000 FreshTomato 2020.1.development
E4200 v1 1.0.07.development
WRT3200ACM OpenWRT 18.06.5
---------------------------------------------------------
Linux User #377467 counter.li.org / linuxcounter.net
Sponsor
MuzzleVelocity
DD-WRT Novice


Joined: 23 Apr 2010
Posts: 42

PostPosted: Mon Nov 25, 2019 23:24    Post subject: Reply with quote
kernel-panic69 wrote:
MuzzleVelocity wrote:
mr.shimpy wrote:
the steps which you would have to know to build something, are highly secret, and the ones who know them will never tell you.


why is that? seems to defeat the purpose of being open source...


Obfuscation by default, so the paranoid god complex can talk down to everyone else like they don't know anything. Maybe if the development environment weren't so ridiculous. Also, for those who may or may not have wondered, I found out that if you chase this rabbit down the hole, you will likely want to use OpenSUSE leap. BUT, the thing is, the publicly-downloadable toolchains file hasn't been updated since last August, so YMMV. IMHO, if the development tree was broken down by manufacturer and architecture and a git repository instead of subversion, it would make things much easier. It would take forever to get things sorted, but it would be worth it. I just don't have the time or inclination to re-download 20+ GB of source code to monkeyf*ck around with it.


is Tomato or open-wrt any easier to compile?

_________________
Linksys EA6200 DD-WRT v3.0-r29396

Belkin F7D3302 v1
dd-wrt.v24-16214_NEWD-2_K2.6_big.bin
OTRW
rkboni
DD-WRT Novice


Joined: 04 Mar 2016
Posts: 28

PostPosted: Tue Nov 26, 2019 2:41    Post subject: Reply with quote
MuzzleVelocity wrote:
kernel-panic69 wrote:
MuzzleVelocity wrote:
mr.shimpy wrote:
the steps which you would have to know to build something, are highly secret, and the ones who know them will never tell you.


why is that? seems to defeat the purpose of being open source...


Obfuscation by default, so the paranoid god complex can talk down to everyone else like they don't know anything. Maybe if the development environment weren't so ridiculous. Also, for those who may or may not have wondered, I found out that if you chase this rabbit down the hole, you will likely want to use OpenSUSE leap. BUT, the thing is, the publicly-downloadable toolchains file hasn't been updated since last August, so YMMV. IMHO, if the development tree was broken down by manufacturer and architecture and a git repository instead of subversion, it would make things much easier. It would take forever to get things sorted, but it would be worth it. I just don't have the time or inclination to re-download 20+ GB of source code to monkeyf*ck around with it.


is Tomato or open-wrt any easier to compile?


I can't speak for Tomato but openwrt seems a downright pleasure to work with. The toolchain build is very smooth (and probably why nobody has packaged up new toolchains, since official builds are using theirs, and that's easy to generate nowadays). Sadly it doesn't support much of my hardware.

Just my $0.02.. I've never bothered building the whole package but am happy at least being able to piecemeal build the extra kernel mods I need.. though it is certainly frustrating!
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 113

PostPosted: Sun Jan 05, 2020 5:45    Post subject: Reply with quote
I followed the excellent instructions given by @hanskloss on page 14 of this thread and built a standard dd-wrt build for my Asus RT-AC56U. It's essentially a relabelled .config_northstar minus asterisk and snort since the asus trx tool was complaining that the file was too big. BTW, the asus trx tool seems to be missing so I found one online and hacked it to make it work. I also fixed the stop privoxy bug because it has been annoying me for two years.

So far I've only tested asus_rt-ac56u-firmware.trx but the build output directory contains the following files:
Code:
$ ls *.chk *.trx
asus_rt-ac1200gp-firmware.trx  asus_rt-ac68u-firmware.trx  K3_AC1450.chk     K3_R7000.chk  tnet828.trx           webflash-dir880.trx
asus_rt-ac3100-firmware.trx    asus_rt-ac87u-firmware.trx  K3_R6250.chk      netgear.trx   webflash-dir860.trx   webflash-dir885.trx
asus_rt-ac3200-firmware.trx    asus_rt-ac88u-firmware.trx  K3_R6300V2CH.chk  tnet811.trx   webflash-dir868b.trx  webflash-dir890.trx
asus_rt-ac5300-firmware.trx    asus_rt-n18u-firmware.trx   K3_R6300V2.chk    tnet812.trx   webflash-dir868c.trx  webflash-dir895.trx
asus_rt-ac56u-firmware.trx     buffalo.trx                 K3_R6700.chk      tnet818.trx   webflash-dir868.trx
$

Anyone with one of those routers interested in running their own build you can ask for some tips and I'll share what I know (not much). I used ubuntu 16.04 LTS for building.



localbuild.png
 Description:
 Filesize:  96.66 KB
 Viewed:  214 Time(s)

localbuild.png


egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 4703
Location: Netherlands

PostPosted: Tue Jan 07, 2020 6:44    Post subject: Reply with quote
Nice job, I am still struggling to accomplish this Sad

I am trying to compile for my R6400v2 also a Northstar router

I am using Debian 10 and got a lot of errors compiling, but seeing you got it working I will renew my attempts

_________________
Routers:Netgear R7800, Netgear R6400v1, Netgear R6400v2, Linksys EA6900 (XvortexCFE), Linksys E2000 (converted WRT320N), WRT54GS v1.
Install guide Linksys EA6900: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=291230
OpenVPN Policy Based Routing guide: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321686
Install guide R6400v2:http://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
OpenVPN Server Setup:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=318795
Install guide R7800: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Wireguard Setup guide:https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1183135
kernel-panic69
DD-WRT Guru


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

PostPosted: Tue Jan 07, 2020 13:45    Post subject: Reply with quote
Debian 9, Ubuntu 16.04. BS uses OpenSuSE current leap, last I knew. I would like to rebuild a local working copy again and play around with it, too. Not sure if the public toolchains have been updated or not, that could also play a role in things.
_________________
E4200 v1 DD-WRT 41954 mega (01/09/20) (K3.x)
R7000P DD-WRT 40270M kongac
E4200 v1 FreshTomato 2019.4
E4200 v1 FreshTomato 2020.1.development
R7000 FreshTomato 2020.1.development
E4200 v1 1.0.07.development
WRT3200ACM OpenWRT 18.06.5
---------------------------------------------------------
Linux User #377467 counter.li.org / linuxcounter.net
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 113

PostPosted: Tue Jan 07, 2020 16:06    Post subject: Reply with quote
@egc

Well BS isn't making it easy so hang in there. Since ubuntu is based on debian the problems you'll run into are probably quite similar to what I encountered.

The .config file must have CONFIG_NVRAM_128K=y to produce a R6400v2 binary. My R6300v2 has 128k nvram but the makefile puts it in the non 128k group.

You can PM me if you're stuck on something, in case I already solved it we can share solutions. Maybe you'll write one of your terrific guides later... Smile

@kernel-panic69

As for toolchains they haven't been updated since 2018-08-09 so add your voices to requesting an update. I initially used an old dd-wrt toolchain then got one from openwrt. This wasn't without issues as I had to compare the new openwrt one to the old dd-wrt one to get things to work.
kernel-panic69
DD-WRT Guru


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

PostPosted: Tue Jan 07, 2020 18:22    Post subject: Reply with quote
I'd share my thoughts, but I might get in trouble. Most of my thoughts can be found if you look deep enough into the public repository.
_________________
E4200 v1 DD-WRT 41954 mega (01/09/20) (K3.x)
R7000P DD-WRT 40270M kongac
E4200 v1 FreshTomato 2019.4
E4200 v1 FreshTomato 2020.1.development
R7000 FreshTomato 2020.1.development
E4200 v1 1.0.07.development
WRT3200ACM OpenWRT 18.06.5
---------------------------------------------------------
Linux User #377467 counter.li.org / linuxcounter.net
Goto page Previous  1, 2, 3 ... 13, 14, 15 Display posts from previous:    Page 15 of 15
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware 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