I am not responsible if your devices send you back in time, explodes, implodes, bricks or flies into space from the use of any software I put up.



Friday, February 27, 2015

A little insight on how to build the firmware quickly

I have a 6 Core AMD-FX6300 Desktop with CentOS installed.
All the OpenWrt buildroot dependencies and Java Runtime (OpenJRE) are already installed.
My Repository is maintained via patches which patch cleanly on top of fresh Barrier Breaker.
All the Package Source (ie. Linux Kernel.tar.xz etc) is cached in 1 directory so I don't need to download any other stuff.

Step 1 liner:
git clone git://git.openwrt.org/14.07/openwrt.git && \
git clone https://github.com/gwlim/mips74k-barrier-breaker-patch.git temp; \
mv temp/* openwrt/; rm -rf temp && cd openwrt ./bb_openwrt.sh
Step 2 liner:
Symlink the Package Source as a dl folder in the buildroot
(It is like the UNIX way of creating a shortcut in Windows so the OpenWrt buildroot can find the Packages)

Step 3:
Go grab a cup of coffee while the buildroot patches itself

Step 4:
make menuconfig
and choose the target platform like WR1043ND etc in the menu

Step 5:
make -j 4
This will build the firmware in parallel processes

Step 6:
Go grab another cup of coffee while the buildroot builds your firmware

Step 7:
After I am done I just take the binaries and nuke the buildroot with a 
rm -rf ./openwrt
Every build is a fresh build it is not design to last!

If you do this correctly, you can easily build from source a fully optimized firmware for your Router in less than 1 hour!

The patches keeps tracks of the all changes, it is designed to fail if upstream makes changes which conflicts with existing patches.
This will free up my brain space on remembering all the various changes I made
Also it will prevent conflict with upstream repository
Lastly it will make porting to the next release (Chaos Calmer) much easier as all the changes are recorded with most changes just minor line changes, renaming and shifting around.

OpenWrt Barrier Breaker March 2015 release

March Release
Upstream Changes
- Mainly Bugfixes up to Barrier Breaker r44550

Custom Changes
-Update Linux Kernel to 3.10.70
-Update Routing Cache patch
-Display Platform and Processor Information in LuCI

-Backport  /etc/openwrt_release fix
-Backport rpath fixes
-Add more Optimization Flags for PowerPC Linux Kernel (WDR4900) resulting in smaller binaries

Saturday, January 31, 2015

OpenWRT Barrier Breaker February Release 2015

February Release is out!

Add new support for WDR4900v1 Router

OpenWRT Upstream Changes
-Not much changes, the reboot issue for certain models of WDR4300 has been backported so it has been deleted from my repo

Custom Changes
-OpenSSL updated to 1.0.2
-MIPS asm are included in this release so the patches in my updates has been removed
-PowerPC asm support has been added in my custom release
There should be a slightly boost in WiFi performance when AES is used due to asm optimizations in the OpenSSL library (Tested)
-Tweaked WDR4900v1 build gianfar buffers and NAPI weight for slight performance boost.

I hate to repeat myself so you should already know where to get the firmware and sources.