From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from uplift.swm.pp.se (ipv6.swm.pp.se [IPv6:2a00:801::f]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by huchra.bufferbloat.net (Postfix) with ESMTPS id 0BAA421FEC0 for ; Tue, 30 Jun 2015 06:58:31 -0700 (PDT) Received: by uplift.swm.pp.se (Postfix, from userid 501) id 6F5B1A2; Tue, 30 Jun 2015 15:58:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=swm.pp.se; s=mail; t=1435672708; bh=Ft3LpX6qsLzCBVrglV1yrjoBHtpoI3FeNxahQImKusc=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=NQlBZcHM4+cSN35wWllKnwpgBLamdIdnq9BDpUwLb7PhC/05R8fegCd3Zt+uPr91t ey9IiEKITlSn2yXqdhaYFnytSqxBiWtvAD5oGTrTYlvE09Z7sAgk1MQGtAsG7weEUb FFk7W9nCKMBFEB8hKZgl2GIzj89uBDA/CpTDVj8s= Received: from localhost (localhost [127.0.0.1]) by uplift.swm.pp.se (Postfix) with ESMTP id 665D2A1; Tue, 30 Jun 2015 15:58:28 +0200 (CEST) Date: Tue, 30 Jun 2015 15:58:28 +0200 (CEST) From: Mikael Abrahamsson To: dpreed@reed.com In-Reply-To: <1435585587.97486240@apps.rackspace.com> Message-ID: References: <8B853F1C-DE5D-4F3D-88CC-CB8DA2D3E8B1@gmx.de> <04331509-F163-4184-90B4-8589073AFD62@gmx.de> <09BA156C-460D-4794-A082-33E805F3D6FD@gmx.de> <5436B48C-0803-46DA-B355-14E917A5BB37@gmx.de> <4E002218-174D-44F9-91A0-C7F34B9E83C7@gmx.de> <87pp4eomfx.fsf@alrua-karlstad.karlstad.toke.dk> <1435585587.97486240@apps.rackspace.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) Organization: People's Front Against WWW MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: "cerowrt-devel@lists.bufferbloat.net" Subject: [Cerowrt-devel] Build instructions for regular OpenWRT with Ceropackages X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 13:59:00 -0000 On Mon, 29 Jun 2015, dpreed@reed.com wrote: > I would love to try out cake in my environment. However, as a > non-combatant, it would be nice to have an instruction sheet on how to > set the latest version up, and what hardware it works best on > (WRT1200AC?). Obviously this is a work in progress, so that will > change, but it would be nice to have a summarized wiki page. WRT1200AC seems to be the most powerful around, however it can't really be used for PHY 100M testing since both SoC ports goes to a switch that then terminate all the external ports. Therefore it's hard to test AQM-on-metal with it because the SoC links are never saturated, you always have to use an encompassing shaper (htb). Here is a short writeup from what I learnt from the past days. I haven't verified every step, this is from memory. Get ubuntu 14.04 LTS according to: http://www.acme-dot.com/building-openwrt-14-07-barrier-breaker-on-ubuntu-and-os-x/ Check out either trunk ("git clone git://git.openwrt.org/openwrt.git") or Chaos Calmer RC ("clone git://git.openwrt.org/15.05/openwrt.git"). Copy feeds.conf.default to feeds.conf in the openwrt dir. Add first in file: "src-git cero https://github.com/dtaht/ceropackages-3.10.git" scripts/feeds update -a scripts/feeds install luci luci-app-sqm sqm-scripts tc-adv ip ethtool kmod-sched-cake kmod-sched-fq_pie make menuconfig Now comes the hard part because you want to change * for everything that you want to install as default in the resulting image. M means it compiles the package but doesn't include it in the resulting image (for utilities). What the above does is only to make it available to "make menuconfig" as packages. I tend to choose traceroute, tcpdump and all the other nice to have utilities. You can download and use (it's for trunk, ie the nightly, don't know if it works for CC RC2) and put as .config in the openwrt directory as a template. I recommend to build on a fast machine with SSD, i/o is usually the limiting factor. I use an 3.5GHz core i5 dual core (4 with HT) and SSD, and with "make -j 10" it compiles in an hour or so. Subsequent compiles are quicker. You need to find your platform etc. If you get an WRT1200AC you can use my builds if you want to. After this you need to go into the luci sqm scripts and set queueing algorithm etc. some good commands to see what's going on: tc -d qdisc tc -s qdisc Hope it helps. -- Mikael Abrahamsson email: swmike@swm.pp.se