From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 34B6B21F151 for ; Sun, 17 Nov 2013 13:59:17 -0800 (PST) Received: from hms-beagle-3.home.lan ([87.150.22.181]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MVe87-1WC9B02uuV-00Z3T3 for ; Sun, 17 Nov 2013 22:59:14 +0100 Content-Type: multipart/mixed; boundary="Apple-Mail=_B2659976-8DC9-4C15-9DF7-DDE59904C186" Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) From: Sebastian Moeller In-Reply-To: Date: Sun, 17 Nov 2013 22:59:12 +0100 Message-Id: References: To: Dave Taht X-Mailer: Apple Mail (2.1510) X-Provags-ID: V03:K0:QC4568pcBu88cuB6kAfIMbo8212902Y7Mo1Svq4p47uhOYEF1GH 5O+bdk41JWcsnB35qXLVsbyK26IV9GWFeDQ3etN72W0kDXybal5qpVzFZ3ZQxaBHESrZgDA +d3Irmqkd+U2K6kpTJ4YmVRPC0GxQ8BZWm4Pe2RT1ZAh7evh39OTPDLG0gr2/s8Y5Wq4A+7 m5CqN4UbgkQPXVcUJQCSw== Cc: "cerowrt-devel@lists.bufferbloat.net" Subject: Re: [Cerowrt-devel] if you can't tell 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: Sun, 17 Nov 2013 21:59:18 -0000 --Apple-Mail=_B2659976-8DC9-4C15-9DF7-DDE59904C186 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Dave, On Nov 14, 2013, at 20:57 , Dave Taht wrote: > On Thu, Nov 14, 2013 at 11:36 AM, Richard E. Brown > wrote: >> Dave, >>=20 >> The flurry of comments on 3.10.18 that I posted were partially caused = because I used sysupgrade (the first time ever! Previously, I had used = tftp.) and I think some problems were caused because I kept the = configuration. I=92m looking for a bit of time to re-flash, this time = not keeping the configs and running my config.sh script to set things = up. >>=20 >> Rich >>=20 >> PS I don=92t see a 3.10.19 posted on = http://snapon.lab.bufferbloat.net/~cero2/cerowrt/wndr/ yet. >=20 > You guys are so eager to subject yourselves to new releases! take a > weekend off! It's lovely in california right now... >=20 > I didn't see anything in 3.10.19 that is truly needed right now. there > is some good work being done on fixing random number generation in the > mainline, dnsmasq has an update, pie is 99.999999999% ready for > mainline, but there's nothing I can do to push those faster... >=20 > and I am ashamed to admit that the big reason why I haven't dug in to > fix sysupgrade was because I haven't cleaned up the yurt in a while. > Somewhere in it is buried the bus pirate So this is weird, but I noticed that we have a mount binary in = /usr/bin that seems to be earlier in our path than busy box's = /bin/mount. So I just went and replaced all "mount" invocations in = /lib/upgrade/common.sh with "busy box mount" and that seems to have done = the trick (it upgraded and rebooted into a pristine 3.10.18-1, I am not = sure whether the firmware partition was really overwritten, but the = overlay partition surely was wiped). It seems that the option handling = of /usr/bin/mount chokes on the actual mount invocations in that script = (I noticed that the move of /proc failed and from then on it was = downhill). I am not sure whether my modification to common.sh is not too = ugly to live, but I assume that the grown-ups ail find a proper way to = fix this now :) And what I currently do not understand is why the GUI = method worked since that is just calling the sys upgrade script from = "/"... >=20 > http://dangerousprototypes.com/docs/Bus_Pirate >=20 > that I need to get to the serial port to get to see what the heck is > going wrong at the command line. So I'm going to shovel out and reorg > the place while the weather is good and hopefully that will show up. >=20 > I have a feature request for the aqm gui - in that many fields don't > need to be exposed if the encapsulation is ethernet. I fear in making > the dsl users happy we will confuse the others. So I had a quick go at this one: Please put the attached file=20 /usr/lib/lua/luci/model/cbi/aqm.lua --Apple-Mail=_B2659976-8DC9-4C15-9DF7-DDE59904C186 Content-Disposition: attachment; filename=aqm.lua Content-Type: application/octet-stream; name="aqm.lua" Content-Transfer-Encoding: 7bit --[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- local wa = require "luci.tools.webadmin" local fs = require "nixio.fs" local net = require "luci.model.network".init() local ifaces = net:get_interfaces() local path = "/usr/lib/aqm" m = Map("aqm", translate("Active Queue Management"), translate("With AQM you " .. "can enable traffic shaping and prioritisation on one or more " .. "network interfaces.")) s = m:section(TypedSection, "queue", translate("Queues")) s.addremove = true s.anonymous = true n = s:option(ListValue, "interface", translate("Interface name")) for _, iface in ipairs(ifaces) do if iface:is_up() then n:value(iface:name()) end end n.rmempty = false e = s:option(Flag, "enabled", translate("Enable")) e.rmempty = false c = s:option(ListValue, "qdisc", translate("Queueing discipline")) c:value("fq_codel", "fq_codel ("..translate("default")..")") c:value("efq_codel") c:value("nfq_codel") c:value("sfq") c:value("codel") c:value("ns2_codel") c:value("pie") c:value("sfq") c.default = "fq_codel" c.rmempty = false local qos_desc = "" sc = s:option(ListValue, "script", translate("Queue setup script")) for file in fs.dir(path) do if string.find(file, ".qos$") then sc:value(file) end if string.find(file, ".qos.help$") then fh = io.open(path .. "/" .. file, "r") qos_desc = qos_desc .. "

" .. file:gsub(".help$", "") .. ":
" .. fh:read("*a") .. "

" end end sc.default = "simple.qos" sc.rmempty = false sc.description = qos_desc dl = s:option(Value, "download", translate("Download speed (kbit/s)")) dl.datatype = "and(uinteger,min(1))" dl.rmempty = false ul = s:option(Value, "upload", translate("Upload speed (kbit/s)")) ul.datatype = "and(uinteger,min(1))" ul.rmempty = false lla = s:option(ListValue, "linklayer_adaptation_mechanism", translate("Which linklayer adaptation mechanism to use; especially useful for ADSL/ATM links.")) -- Creates an element list (select box) lla:value("none") lla:value("htb_private") lla:value("tc_stab") lla.default = "none" ll = s:option(ListValue, "linklayer", translate("Which linklayer to account for")) -- Creates an element list (select box) ll:value("ethernet") ll:value("adsl") ll:value("atm") ll.default = "ethernet" ll:depends("linklayer_adaptation_mechanism", "htb_private") ll:depends("linklayer_adaptation_mechanism", "tc_stab") po = s:option(Value, "overhead", translate("Per Packet Overhead (byte)")) po.datatype = "and(integer,min(-1500))" po.default = 0 po.isnumber = true po.rmempty = false po:depends("linklayer_adaptation_mechanism", "htb_private") po:depends("linklayer_adaptation_mechanism", "tc_stab") smtu = s:option(Value, "MTU", translate("Maximal Size for size and rate calculations (byte) (tc MTU), needs to be >= interface MTU")) smtu.datatype = "and(uinteger,min(0))" smtu.default = 2047 smtu.isnumber = true smtu.rmempty = false smtu:depends("linklayer_adaptation_mechanism", "htb_private") smtu:depends("linklayer_adaptation_mechanism", "tc_stab") stsize = s:option(Value, "TSIZE", translate("Number of entries in size/rate tables, for ATM choose TSIZE = (MTU + 1) / 16")) stsize.datatype = "and(uinteger,min(0))" stsize.default = 128 stsize.isnumber = true stsize.rmempty = false stsize:depends("linklayer_adaptation_mechanism", "htb_private") stsize:depends("linklayer_adaptation_mechanism", "tc_stab") smpu = s:option(Value, "MPU", translate("Minimal packet size (byte); needs to be >0 for ethernet size tables")) smpu.datatype = "and(uinteger,min(0))" smpu.default = 0 smpu.isnumber = true smpu.rmempty = false smpu:depends("linklayer_adaptation_mechanism", "htb_private") smpu:depends("linklayer_adaptation_mechanism", "tc_stab") return m --Apple-Mail=_B2659976-8DC9-4C15-9DF7-DDE59904C186 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 this should hide all confusing fields until htb_private or tc_stab are = selected under the field named: Which linklayer adaptation mechanism to use; especially useful for = ADSL/ATM links. So "none" will hide all the cruft. Since most of the options also can = work with ethernet links (think PPPoE on a non-ATM carrier will still = cause an 8 byte per packet overhead). >=20 > What other open questions do we have? >=20 > Firewall rules good? > minissd working? > upnp working? >=20 >=20 >=20 > --=20 > Dave T=E4ht >=20 > Fixing bufferbloat with cerowrt: = http://www.teklibre.com/cerowrt/subscribe.html > _______________________________________________ > Cerowrt-devel mailing list > Cerowrt-devel@lists.bufferbloat.net > https://lists.bufferbloat.net/listinfo/cerowrt-devel --Apple-Mail=_B2659976-8DC9-4C15-9DF7-DDE59904C186--