OpenWrt Forum Archive

Topic: Optimized and feature rich trunk build for select routers

The content of this topic has been archived between 20 Aug 2014 and 5 May 2018. Unfortunately there are posts – most likely complete pages – missing.

I changed that file manually and ran make, but it came out weird, the packages said 3.10.49!
Pretty much the same what that patch says. 

Anyway, linux is so confusing, where would that patch go?  I know the 900-overclock.patch goes in patches-3.10 etc, but this is a patch to the actual make!

A patch is just a diff between two files, you can put it anywhere you like as long as you apply it.

Anyways, it's the correct file if you changed that it should have been built with 3.14.

@bmccoy11

http://enduser.subsignal.org/~trondah/t … ernel3.14/

(Last edited by arokh on 9 Aug 2014, 09:37)

Still confused about patches.. I end up building and putting overclock patch manually in build dir after it appears and rerun.

It's a pain but I got it to work.

So, let's say I put patch into mypatches folder under trunk.
What do I run after that?  I see quilt in the openwrt wiki, but no idea where this is called.

Sorry for the 100 questions, I like 800 mhz as it is stable for me!

(Last edited by robnitro on 9 Aug 2014, 10:00)

Put it under the correct patches folder in target/linux/ar71xx.

(EDIT:
Sorry, I wasn't clear, but I get it now.   I was thinking that the makefile was called first (as 3.10 originally), which then would use the patches-3.10 directory.  But now I get it, it's scanning all folders to figure out what to compile!)





There's a catch 22 with this change linux version patch.... which folder gets called,  patch-3.10 or patch-3.14?

Wouldn't there need to be a call for 3.14 Before it starts going into 3.14 patches etc?

How did you build your 3.14, by editing makefile first?  Was there any other files or config to change?

Thanks again!

(Last edited by robnitro on 9 Aug 2014, 20:04)

If you're compiling for kernel 3.14 guess which patches folder to use, 3.10 or 3.14? smile

Tor isn't working for me, even after making sure all of the configuration was the same as the tutorial I assume you used.

(Last edited by bmccoy11 on 10 Aug 2014, 03:38)

Your new 800 mhz 3.14 no ipv6 build says 3.10.52.

The 3.14 760 mhz build, shows as normal 680 mhz. 

I can't build 3.14 for crap.  always some kind of make error from your config or hnyman.
Made dirclean and all that.  Got tired of it.. just figured to try 3.14 for the bufferbloat testing.

@robnitro

Made a new build smile

@bmccoy11

OK I've identified the problem with Tor, new builds incoming. You can just change 10.1.2.1 to 192.168.2.1 in /etc/tor/torrc and run the wifi command to fix it.

(Last edited by arokh on 10 Aug 2014, 16:53)

New build 800 mhz still no 800 mhz. 
Cat /proc/cpuinfo still shows 452 bogomips.
I will try to build my own, but I am not sure how to apply the diff after git source.
Linux confuses me, but routing does not, hehe.

Sun Aug 10 20:42:05 2014 kern.info kernel: [    0.000000] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, Ref:40.000MHz

(Last edited by robnitro on 11 Aug 2014, 09:01)

Phew, OpenWRT.org is back up... finally!

@robnitro

Sorry about that, been working to make the OC a configurable setting but didn't get it quite right. Fix coming smile

If not too late, a request, add htop and nano... very useful utilities.
Not sure about zram... it is a kernel module though, so if someone wanted to use zram, they would need to compile it otherwise.

There's already vi and top which is sufficient. Those apps need libncurses and duplicate functionality that's already there. Not much use for zram on a router is there?

wget: server returned error: HTTP/1.1 404 Not Found
wget: server returned error: HTTP/1.1 404 Not Found
wget: server returned error: HTTP/1.1 404 Not Found
Collected errors:
* opkg_download: Failed to download http://enduser.subsignal.org/~trondah/r … ckages.gz, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/ … ckages.gz, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/ … ckages.gz, wget returned 1.

r42110 is getting rebuilt now.

zram I read may help with some routers preventing running out of memory on specific tasks, but yeah

How do we go about building your source directory?  Is there a way to pull source as a git clone?

I had no luck in building hnyman with 3.14.16 kernel... beyond my comprehension and nothing in google to find.

/usr/bin/ld: libbackend.a(var-tracking.o): bad reloc symbol index (0x6d69616c >= 0x16a) for offset 0x74276e6f64206577 in section `.debug_ranges'
libbackend.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

Looks like it was the library you mentioned for htop/nano... hmm ...
Why is it so complicated, lol.

(Last edited by robnitro on 11 Aug 2014, 11:21)

Are you running out of RAM? I'm not with 64 MB.

There's a source tarball including .git that you can download, just put config in place and run make.

robnitro wrote:

..
I will try to build my own, but I am not sure how to apply the diff after git source.
..

took a while for me to getting to learn to build stuff on my own.

1) apt-get install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-dev xsltproc
2) mkdir ~/openwrt
3) cd ~/openwrt
4) download arokh's diff and config files (openwrt.diff, openwrt-packages,openwrt-oldpackages,openwrt-routing,openwrt-luci,openwrt-config) to this folder
4) svn co svn://svn.openwrt.org/openwrt/trunk
5) cd trunk
6) cp ../openwrt-config .config
7) patch -p1 -i ../openwrt.diff
8) ./scripts/feeds update -a
9) cd feeds/luci
10) patch -p1 -i ../../../openwrt-luci.diff
11) cd ../packages
12) patch -p1 -i ../../../openwrt-packages.diff
13) cd ../oldpackages
14) patch -p1 -i ../../../openwrt-oldpackages.diff
15) cd ../routing
16) patch -p1 -i ../../../openwrt-routing.diff
17) cd ../../
18) ./scripts/feeds install -a
19) make V=s

thats it- if all goes well, you should see your image in the bin folder..

you can make changes to .config file and add (or remove) any packages that you want added/removed from the build.

good luck!

New builds are up, looks like I got it right this time tongue

How is the overclock 'configurable' now? Where do I change the clock speed?

Looks like I will have to rebuild my own.  I use ipset for blocklist filtering and the kmod-ipt-ipset package built by you fails...

Configuring kmod-ipt-ipset.
kmod: failed to insert /lib/modules/3.14.16/ip_set.ko
kmod: failed to insert /lib/modules/3.14.16/ip_set_bitmap_ip.ko
kmod: failed to insert /lib/modules/3.14.16/ip_set_bitmap_ipmac.ko
kmod: failed to insert /lib/modules/3.14.16/ip_set_bitmap_port.ko
kmod: failed to insert /lib/modules/3.14.16/ip_set_hash_ip.ko
kmod: failed to insert /lib/modules/3.14.16/ip_set_hash_ipport.ko
kmod: failed to insert /lib/modules/3.14.16/ip_set_hash_ipportip.ko
kmod: failed to insert /lib/modules/3.14.16/ip_set_hash_ipportnet.ko
kmod: failed to insert /lib/modules/3.14.16/ip_set_hash_net.ko
kmod: failed to insert /lib/modules/3.14.16/ip_set_hash_netiface.ko
kmod: failed to insert /lib/modules/3.14.16/ip_set_hash_netport.ko
kmod: failed to insert /lib/modules/3.14.16/ip_set_list_set.ko
kmod: failed to insert /lib/modules/3.14.16/xt_set.ko

Try installing using --force-depends, if it's a dependency error

Overclock is configurable upon compilation. 
The kernel entry module is what loads the registers to get 800 or 760 mhz.

Ipset:
No, it's the same issue.  Just that I guess it needs to be compiled in.



rsiram, the big confusion is that we have the .diff adding lines to the profile for .config packages, and then the .config
Too many files around with the same info- it confuses me which one takes precedence!!!

(Last edited by robnitro on 11 Aug 2014, 21:26)

It's not failing to install but to load. Look at dmesg probably there is a dependency missing.

Sorry, posts 426 to 425 are missing from our archive.