how-to Quick build

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

ispyisail
Moderator
Posts: 4706
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

how-to Quick build

Postby ispyisail » Wed Feb 06, 2019 5:16 pm

Install Ubuntu server 18.04.1 64bit

make an SSH connection (putty)

Code: Select all

sudo add-apt-repository universe


Code: Select all

sudo add-apt-repository multiverse


Code: Select all

sudo apt-get update


Code: Select all

sudo apt-get upgrade -y


Code: Select all

sudo apt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo -y


Code: Select all

sudo apt-get install npm -y


Code: Select all

git clone git://github.com/ericpaulbishop/gargoyle.git


Code: Select all

cd gargoyle



OPTIONAL (only required if switching branch)

Code: Select all

git checkout base_on_openwrt_remerge


or

Code: Select all

git checkout master



OPTIONAL (use if soemthing goes wrong or switching branches)

Code: Select all

make distclean


OPTIONAL (Check for any updates)

Code: Select all

git pull


Code: Select all

make FULL_BUILD=true


or

Code: Select all

make custom


or

Code: Select all

make FULL_BUILD=true ar71xx


or

Code: Select all

make FULL_BUILD=true ar71xx.usb_large


Than wait 15 hours or so

I think my last build was close to 24 hours

Custom Build tip example

Asus RT-N12 B1 (8MB Flash)
The brcm47xx target would be close but not quite right.
You'll need to do a "make custom" and select your router from the menu which should configure it for brcm47xx/mips47k.

Once this is saved, i tend to kill the build process. Rescue the .config file from within the /custom-src directory and build my own target folder in the /targets directory.
In your case i would make a "mips74k" folder underneath "brcm47xx" and copy the same images file across. Rename the ".config" to "config".

Then you can call "make FULL_BUILD=true brcm47xx/mips74k".

For your own sanity, i would run "make FULL_BUILD=true brcm47xx" before trying any of this to make sure your build environment is 100% and you can complete a stock build first.

top_s
Posts: 37
Joined: Mon Aug 13, 2018 10:09 pm
Location: Brazil

Re: how-to Quick build

Postby top_s » Thu Feb 07, 2019 7:35 am

Great post!
WDR4300 v1 (stock)
WR941nd v2 (1.9.2)
WA901nd v2 (1.6.2)
2x WR741nd (1.6.2)

(Up to) 1gbps up/down link

ispyisail
Moderator
Posts: 4706
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: how-to Quick build

Postby ispyisail » Thu Feb 07, 2019 11:39 am

I've just finished running through the full procedure and it now works as expected. Had to make a few small edits.

Note: adding "universe" and "multiverse" is not longer required as its looks like they fixed a bug. I have just left it for reference.

Note: Need to be careful of hard drive space especially with VM's. Need 50 Gig as a minimum. I use over 100 gig.

phgerin
Posts: 104
Joined: Sun Dec 21, 2014 2:03 pm

Re: how-to Quick build

Postby phgerin » Sat Feb 09, 2019 12:08 pm

Thanks !!!


Return to “Show / Tell / Contribute”

Who is online

Users browsing this forum: No registered users and 3 guests