OpenWrt Forum Archive

Topic: d link dgl 5500, chaos calmer, sqm, 5ghz radio

The content of this topic has been archived on 6 Sep 2015. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I just flashed to chaos calmer and everything is running great except for my 5ghz radio and sqm scripts. My connection is rated at 180/12 and speeds with streamboost are 170/11.50 and with sqm down was 100-130. Streamboost bufferbloat is ~20ms and sqm/qos is ~5-15, while the lower latency is great I lose a ton of bandwidth. Can someone help me out with getting everything working correctly?

root@OpenWrt:~# tc -d qdisc
qdisc fq_codel 0: dev eth0 root refcnt 2 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc htb 1: dev eth0.2 root refcnt 2 r2q 10 default 12 direct_packets_stat 0 ver 3.17 direct_qlen 2
qdisc fq_codel 110: dev eth0.2 parent 1:11 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms
qdisc fq_codel 120: dev eth0.2 parent 1:12 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms
qdisc fq_codel 130: dev eth0.2 parent 1:13 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms
qdisc ingress ffff: dev eth0.2 parent ffff:fff1 ----------------
qdisc mq 0: dev wlan0 root
qdisc fq_codel 0: dev wlan0 parent :1 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :2 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :3 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :4 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc htb 1: dev ifb4eth0.2 root refcnt 2 r2q 10 default 10 direct_packets_stat 0 ver 3.17 direct_qlen 32
qdisc fq_codel 110: dev ifb4eth0.2 parent 1:10 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
root@OpenWrt:~# /etc/init.d/sqm stop
SQM: /usr/lib/sqm/stop-sqm: Stopping eth0.2
SQM: ifb associated with interface eth0.2:
SQM: SQM script  not found!
root@OpenWrt:~# /etc/init.d/sqm start
SQM: /usr/lib/sqm/stop-sqm: Stopping eth0.2
SQM: ifb associated with interface eth0.2:
SQM: ifb associated with interface eth0.2:
RTNETLINK answers: File exists
SQM: /usr/lib/sqm/stop-sqm: ifb4eth0.2 shaper deleted
SQM: /usr/lib/sqm/stop-sqm: ifb4eth0.2 interface deleted
SQM: ifb associated with interface eth0.2:
SQM: /usr/lib/sqm/start-sqm: Starting eth0.2
SQM: /usr/lib/sqm/start-sqm: Queue Setup Script: simple.qos
SQM: QDISC fq_codel is useable.
SQM: Starting simple.qos
failed to find a module named sch_fq_codel
SQM: Squashing differentiated services code points (DSCP) from ingress.
SQM: get_limit:  CURLIMIT: 1001
SQM: get_target defaulting to auto.
SQM: get_limit:  CURLIMIT: 1001
SQM: get_target defaulting to auto.
SQM: get_limit:  CURLIMIT: 1001
SQM: get_target defaulting to auto.
SQM: egress shaping activated
SQM: Do not perform DSCP based filtering on ingress. (1-tier classification)
SQM: get_limit:  CURLIMIT: 1001
SQM: get_target defaulting to auto.
SQM: ingress shaping activated
root@OpenWrt:~# tc -d qdisc
qdisc fq_codel 0: dev eth0 root refcnt 2 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc htb 1: dev eth0.2 root refcnt 2 r2q 10 default 12 direct_packets_stat 0 ver 3.17 direct_qlen 2
qdisc fq_codel 110: dev eth0.2 parent 1:11 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms
qdisc fq_codel 120: dev eth0.2 parent 1:12 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms
qdisc fq_codel 130: dev eth0.2 parent 1:13 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms
qdisc ingress ffff: dev eth0.2 parent ffff:fff1 ----------------
qdisc mq 0: dev wlan0 root
qdisc fq_codel 0: dev wlan0 parent :1 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :2 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :3 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :4 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc htb 1: dev ifb4eth0.2 root refcnt 2 r2q 10 default 10 direct_packets_stat 0 ver 3.17 direct_qlen 32
qdisc fq_codel 110: dev ifb4eth0.2 parent 1:10 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn

(Last edited by ngraap on 23 Aug 2015, 10:32)

Well, it looks like you are running against your router's compute wall. Software traffic shaping as performed by sqm and qos is quite demanding cpu eise and most router's do not pack enough punch to shape at the rates yours requires. Some people report some success with specifying larger bandwidth in sqm, but I never understood why/how that should help. It seems that the Linksys wrt1900ac v2 and wrt1200ac might be powerful enough to shape your line. Also in case you build your own openwrt firmwares you might want to try the new shaper called cake which promises to be more efficient than HTB, and if your firmware supplies the cake qdisc, sqm will allow you to select it...

Best Regards
M.

I set it to layer cake and I got these results https://www.dslreports.com/speedtest/1160749

Thanks for the help, I was worried I'd have to go back to oem firmware or buy a new router smile

(Last edited by ngraap on 23 Aug 2015, 11:19)

ngraap wrote:

I set it to layer cake and I got these results https://www.dslreports.com/speedtest/1160749

Thanks for the help, I was worried I'd have to go back to oem firmware or buy a new router smile

Hi ngraap,

mmh, I am not sure which version of sqm-scripts you have installed, but only the most recent versions learned to hide un-available qdiscs; before that you could select layer_cake.qos but nothing really happened. Looking at your speedtest, this is what I assume happened (or in other words no effective sqm). Could you post the result of "tc -d qdisc" after selecting layer_cake.qos and pressing "save&apply". For layer_cake to work your kernel requires the currently out-of-mainline cake kernel module, which is not part of standard openwrt builds, so unless you build you own and included cake the module will be missing. See http://www.bufferbloat.net/projects/codel/wiki/Cake for how to build include cake in your firmware. I do doubt that cake will allow the roughly 170 Mbps cumulative traffic shaping your link probably requires, but then the proof is in the pudding. (In case you actually test cake on your link I would be interested to learn how it performs. I can heartily recommend www.flent.org and especially the RRUL test to check whether a shaper works as intended.)
        One thing you could do, given that your downlink is relatively bufferbloat free is too only set up sqm for the uplink (you do this by specifying 0 as the downlink bandwidth, a bandwidth of zero denotes no traffic shaping in that direction to sqm as a shaper set to zero would otherwise disable all TCP traffic).


Best Regards
       M.

(Note moeller0 = moeller01)

root@OpenWrt:~# tc -d qdisc
qdisc fq_codel 0: dev eth0 root refcnt 2 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc mq 0: dev wlan0 root
qdisc fq_codel 0: dev wlan0 parent :1 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :2 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :3 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :4 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
ngraap wrote:
root@OpenWrt:~# tc -d qdisc
qdisc fq_codel 0: dev eth0 root refcnt 2 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc mq 0: dev wlan0 root
qdisc fq_codel 0: dev wlan0 parent :1 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :2 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :3 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :4 limit 1024p flows 1024 quantum 300 target 5.0ms interval 100.0ms ecn

Hi ngraap,

what I expected, this is more or less the same output you get without sqm. What is missing are the lines for the ingress and egress interfaces showing cake instead of fq_codel. Newer versions of sqm-scripts will try to hide unavailable qdiscs so if cake can not be selected it will not work. Sqm still does not hide *.qos scripts though, so we need to think about what to do there... If only we had a modal dialog in the GUI to inform users with, but alas all we have is pretty subtle...

Best Regards
       M.

I followed http://www.bufferbloat.net/projects/codel/wiki/Cake and it isnt letting me install sqm-scripts

Linux OpenWrt 4.1.6 #1 Mon Aug 24 04:37:13 PDT 2015 mips GNU/Linux

root@OpenWrt:~# opkg install sqm-scripts
Installing sqm-scripts (1.0.1-1) to root...
Downloading [url]http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/sqm-scripts_1.0.1-1_all.ipk.[/url]
Multiple packages (kmod-ipt-core and kmod-ipt-core) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-ipt-core and kmod-ipt-core) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-ipt-core and kmod-ipt-core) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-ipt-conntrack and kmod-ipt-conntrack) providing same name marked HOLD or PREFER. Using latest.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for sqm-scripts:
 *      kernel (= 4.1.5-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.5-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.5-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.5-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.5-1-4353a7f8db42bf7748e0afd51af26276) *
 * opkg_install_cmd: Cannot install package sqm-scripts.

(Last edited by ngraap on 24 Aug 2015, 23:21)

Sounds like you are on a trunk build. If so, you need to download and install any packages you want at approximately the same time you downloaded the firmware file that you flashed. The packages are updated nightly and the signatures won't match unless you do this.

Hi ngraap,

ngraap wrote:

I followed http://www.bufferbloat.net/projects/codel/wiki/Cake and it isnt letting me install sqm-scripts

Linux OpenWrt 4.1.6 #1 Mon Aug 24 04:37:13 PDT 2015 mips GNU/Linux

root@OpenWrt:~# opkg install sqm-scripts
Installing sqm-scripts (1.0.1-1) to root...
Downloading [url]http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/sqm-scripts_1.0.1-1_all.ipk.[/url]
Multiple packages (kmod-ipt-core and kmod-ipt-core) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-ipt-core and kmod-ipt-core) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-ipt-core and kmod-ipt-core) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-ipt-conntrack and kmod-ipt-conntrack) providing same name marked HOLD or PREFER. Using latest.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for sqm-scripts:
 *      kernel (= 4.1.5-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.5-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.5-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.5-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.5-1-4353a7f8db42bf7748e0afd51af26276) *
 * opkg_install_cmd: Cannot install package sqm-scripts.

I have no good idea what went wrong here, but I think we can work around that by having you install sqm-scripts manually. If you agree I will send you an archive of the relevant files and all you need to do is copy them into the corresponding directories on your router... (I really need to set up a build environment so I can test building & installing sqm-scripts...)


Best Regards
        M.

moeller0 wrote:

Hi ngraap,

I have no good idea what went wrong here, but I think we can work around that by having you install sqm-scripts manually. If you agree I will send you an archive of the relevant files and all you need to do is copy them into the corresponding directories on your router... (I really need to set up a build environment so I can test building & installing sqm-scripts...)


Best Regards
        M.

Sure. one other issue on that build is when I'm streaming video it stops and I have to reboot the router. I have no idea what's going on cause I haven't looked into it but when I flash the prebuilt firmware I initially used it doesn't happen anymore

Hi ngraap,

ngraap wrote:
moeller0 wrote:

Hi ngraap,

I have no good idea what went wrong here, but I think we can work around that by having you install sqm-scripts manually. If you agree I will send you an archive of the relevant files and all you need to do is copy them into the corresponding directories on your router... (I really need to set up a build environment so I can test building & installing sqm-scripts...)


Best Regards
        M.

Sure. one other issue on that build is when I'm streaming video it stops and I have to reboot the router. I have no idea what's going on cause I haven't looked into it but when I flash the prebuilt firmware I initially used it doesn't happen anymore

Mmmh, no idea, but for certain that state of openwrt trunk? that you build on does not seem ideal. Maybe if you try with CC RC3? Then maybe sqm will work as well?

Best Regards
        M.

moeller0 wrote:

Hi ngraap,

Mmmh, no idea, but for certain that state of openwrt trunk? that you build on does not seem ideal. Maybe if you try with CC RC3? Then maybe sqm will work as well?

Best Regards
        M.


Will CC RC3 be stable enough to run and does it have cake?

ngraap wrote:
moeller0 wrote:

Hi ngraap,

Mmmh, no idea, but for certain that state of openwrt trunk? that you build on does not seem ideal. Maybe if you try with CC RC3? Then maybe sqm will work as well?

Best Regards
        M.


Will CC RC3 be stable enough to run and does it have cake?

I believe that CC RC3 works quite well, but I have not tested it myself (still on cerowrt). As far as I know it does not have cake by default, so you would still need to build your own firmware, just with CC RC3 as the starting point.

Best Regards
         M.

moeller0 wrote:

Hi ngraap,

I believe that CC RC3 works quite well, but I have not tested it myself (still on cerowrt). As far as I know it does not have cake by default, so you would still need to build your own firmware, just with CC RC3 as the starting point.

Best Regards
         M.


Is there some material I can read to help me to start with CC RC3? I can't seem to find any repo

Hi ngraap,

ngraap wrote:
moeller0 wrote:

Hi ngraap,

I believe that CC RC3 works quite well, but I have not tested it myself (still on cerowrt). As far as I know it does not have cake by default, so you would still need to build your own firmware, just with CC RC3 as the starting point.

Best Regards
         M.


Is there some material I can read to help me to start with CC RC3? I can't seem to find any repo

since I have not yet built my own firmware, I fear I am of no help here, but there must be people in the forum who do know. Sooner or later I will try the same, and I guess that all that is required is to put the git commit hash somewhere in the building scripts where there now is "trunk". Alternatively maybe waiting a bit until trunk is stabler again might help as well... I believe that trunk is on the way of morphing into DD and the CC builds have been somewhat separated from trunk, but I can not offer more than a general feeling instead of the hard information you actually need, sorry.

Best Regards
        M.

moeller0 wrote:

since I have not yet built my own firmware, I fear I am of no help here, but there must be people in the forum who do know. Sooner or later I will try the same, and I guess that all that is required is to put the git commit hash somewhere in the building scripts where there now is "trunk". Alternatively maybe waiting a bit until trunk is stabler again might help as well... I believe that trunk is on the way of morphing into DD and the CC builds have been somewhat separated from trunk, but I can not offer more than a general feeling instead of the hard information you actually need, sorry.

Best Regards
        M.

Tried building from trunk again and I'm getting the same issue. Can we try doing it manually?

Linux OpenWrt 4.1.6 #1 Sat Aug 29 14:24:53 PDT 2015 mips GNU/Linux

root@OpenWrt:~# opkg install sqm-scripts
Installing sqm-scripts (1.0.1-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … 1_all.ipk.
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for sqm-scripts:
*      kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *
* opkg_install_cmd: Cannot install package sqm-scripts.

Hi ngraap,

ngraap wrote:
moeller0 wrote:

since I have not yet built my own firmware, I fear I am of no help here, but there must be people in the forum who do know. Sooner or later I will try the same, and I guess that all that is required is to put the git commit hash somewhere in the building scripts where there now is "trunk". Alternatively maybe waiting a bit until trunk is stabler again might help as well... I believe that trunk is on the way of morphing into DD and the CC builds have been somewhat separated from trunk, but I can not offer more than a general feeling instead of the hard information you actually need, sorry.

Best Regards
        M.

Tried building from trunk again and I'm getting the same issue. Can we try doing it manually?

Linux OpenWrt 4.1.6 #1 Sat Aug 29 14:24:53 PDT 2015 mips GNU/Linux

root@OpenWrt:~# opkg install sqm-scripts
Installing sqm-scripts (1.0.1-1) to root...
Downloading http://downloads.openwrt.org/snapshots/ … 1_all.ipk.
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for sqm-scripts:
*      kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *
* opkg_install_cmd: Cannot install package sqm-scripts.

Okay, for doing it manually I the easiest would be to clone the following git repository:
https://github.com/tohojo/sqm-scripts
from a unix machine/VM and then run:
make install PLATFORM=openwrt DESTDIR=./owrt_1.0.2
which will create a directory structure under ./owrt_1.0.2 containing all the files that you need to copy onto the corresponding directories on your router.
Oh, does installation of luci-app-sqm work out of the box? That would be great as installing that manually is slightly more involved.

Let me know how this works, please...

Best Regards
        M.

moeller0 wrote:

Okay, for doing it manually I the easiest would be to clone the following git repository:
https://github.com/tohojo/sqm-scripts
from a unix machine/VM and then run:
make install PLATFORM=openwrt DESTDIR=./owrt_1.0.2
which will create a directory structure under ./owrt_1.0.2 containing all the files that you need to copy onto the corresponding directories on your router.
Oh, does installation of luci-app-sqm work out of the box? That would be great as installing that manually is slightly more involved.

Let me know how this works, please...

Best Regards
        M.

I get an error

nathan@debian:/openwrt/trunk/openwrt$ make install PLATFORM=openwrt DESTDIR=./owrt_1.0.2
 make[1] install
make -r install: build failed. Please re-run make with -j1 V=s to see what's going on
/openwrt/trunk/openwrt/include/toplevel.mk:181: recipe for target 'install' failed
make: *** [install] Error 1
ngraap wrote:
moeller0 wrote:

Okay, for doing it manually I the easiest would be to clone the following git repository:
https://github.com/tohojo/sqm-scripts
from a unix machine/VM and then run:
make install PLATFORM=openwrt DESTDIR=./owrt_1.0.2
which will create a directory structure under ./owrt_1.0.2 containing all the files that you need to copy onto the corresponding directories on your router.
Oh, does installation of luci-app-sqm work out of the box? That would be great as installing that manually is slightly more involved.

Let me know how this works, please...

Best Regards
        M.

I get an error

nathan@debian:/openwrt/trunk/openwrt$ make install PLATFORM=openwrt DESTDIR=./owrt_1.0.2
 make[1] install
make -r install: build failed. Please re-run make with -j1 V=s to see what's going on
/openwrt/trunk/openwrt/include/toplevel.mk:181: recipe for target 'install' failed
make: *** [install] Error 1

Hi Nathan,

ah, I see I was not very precise. Let me try again wink. Change into the root of the cloned sqm-scripts repository/directory and then call "make install PLATFORM=openwrt DESTDIR=./owrt_1.0.2". It is sqm-scrips makefile that has the smarts to package everything into a directory, not openwork's. Also since it seems you are using openwrt trunk or bleeding edge, please pull the most recent changes for sqm-scripts otherwise it will partly fail (due to bleeding edge having switched from uclib to musl with some related behavioral changes).

Best Regards
        M.

moeller0 wrote:

Hi Nathan,

ah, I see I was not very precise. Let me try again wink. Change into the root of the cloned sqm-scripts repository/directory and then call "make install PLATFORM=openwrt DESTDIR=./owrt_1.0.2". It is sqm-scrips makefile that has the smarts to package everything into a directory, not openwork's. Also since it seems you are using openwrt trunk or bleeding edge, please pull the most recent changes for sqm-scripts otherwise it will partly fail (due to bleeding edge having switched from uclib to musl with some related behavioral changes).

Best Regards
        M.


nathan@debian:/openwrt/trunk/openwrt/sqm-scripts$ make install PLATFORM=openwrt DESTDIR=./owrt_1.0.2
install -m 0755 -d ./owrt_1.0.2/etc/sqm ./owrt_1.0.2/usr/lib/sqm
install -m 0644 platform/openwrt/sqm.conf ./owrt_1.0.2/etc/sqm/sqm.conf
install -m 0644  src/functions.sh src/defaults.sh \
    src/*.qos src/*.help ./owrt_1.0.2/usr/lib/sqm
install -m 0744  src/start-sqm src/stop-sqm src/update-available-qdiscs \
    ./owrt_1.0.2/usr/lib/sqm
install -m 0755 -d ./owrt_1.0.2/etc/hotplug.d/iface ./owrt_1.0.2/etc/config \
    ./owrt_1.0.2/etc/init.d
install -m 0755 platform/openwrt/sqm-hotplug ./owrt_1.0.2/etc/hotplug.d/iface/11-sqm
install -m 0755 platform/openwrt/sqm-init ./owrt_1.0.2/etc/init.d/sqm
install -m 0644 platform/openwrt/sqm-uci ./owrt_1.0.2/etc/config/sqm
install -m 0744 src/run-openwrt.sh ./owrt_1.0.2/usr/lib/sqm/run.sh

Also do I need to get iproute2 or is that already in the cero repo?

(Last edited by ngraap on 3 Sep 2015, 08:33)

ngraap wrote:

[...]


nathan@debian:/openwrt/trunk/openwrt/sqm-scripts$ make install PLATFORM=openwrt DESTDIR=./owrt_1.0.2
install -m 0755 -d ./owrt_1.0.2/etc/sqm ./owrt_1.0.2/usr/lib/sqm
install -m 0644 platform/openwrt/sqm.conf ./owrt_1.0.2/etc/sqm/sqm.conf
install -m 0644  src/functions.sh src/defaults.sh \
    src/*.qos src/*.help ./owrt_1.0.2/usr/lib/sqm
install -m 0744  src/start-sqm src/stop-sqm src/update-available-qdiscs \
    ./owrt_1.0.2/usr/lib/sqm
install -m 0755 -d ./owrt_1.0.2/etc/hotplug.d/iface ./owrt_1.0.2/etc/config \
    ./owrt_1.0.2/etc/init.d
install -m 0755 platform/openwrt/sqm-hotplug ./owrt_1.0.2/etc/hotplug.d/iface/11-sqm
install -m 0755 platform/openwrt/sqm-init ./owrt_1.0.2/etc/init.d/sqm
install -m 0644 platform/openwrt/sqm-uci ./owrt_1.0.2/etc/config/sqm
install -m 0744 src/run-openwrt.sh ./owrt_1.0.2/usr/lib/sqm/run.sh

Also do I need to get iproute2 or is that already in the cero repo?


I believe you need iproute2 as well and tc and a bunch of modules, but lets see how this goes and take it step by step. That I have not build an image myself does not really help since I can not recreate any of your issues easily, so let's go step by step that
I have a chance understanding the issues wink

Best Regards
        M.

moeller0 wrote:

I believe you need iproute2 as well and tc and a bunch of modules, but lets see how this goes and take it step by step. That I have not build an image myself does not really help since I can not recreate any of your issues easily, so let's go step by step that
I have a chance understanding the issues wink

Best Regards
        M.

Also does the same thing with mwan3, dnsmasq-full

Linux OpenWrt 4.1.6 #1 Thu Sep 3 02:42:04 PDT 2015 mips GNU/Linux

root@OpenWrt:~# opkg install luci-app-sqm
Installing luci-app-sqm (1.0.2-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/luci-app-sqm_1.0.2-1_all.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-sqm:
 *      kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *
 * opkg_install_cmd: Cannot install package luci-app-sqm.
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://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/cero/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/cero/Packages.sig, wget returned 1.

(Last edited by ngraap on 3 Sep 2015, 11:26)

ngraap wrote:
moeller0 wrote:

I believe you need iproute2 as well and tc and a bunch of modules, but lets see how this goes and take it step by step. That I have not build an image myself does not really help since I can not recreate any of your issues easily, so let's go step by step that
I have a chance understanding the issues wink

Best Regards
        M.

Also does the same thing with mwan3, dnsmasq-full

Linux OpenWrt 4.1.6 #1 Thu Sep 3 02:42:04 PDT 2015 mips GNU/Linux

root@OpenWrt:~# opkg install luci-app-sqm
Installing luci-app-sqm (1.0.2-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/luci-app-sqm_1.0.2-1_all.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-sqm:
 *      kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *
 * opkg_install_cmd: Cannot install package luci-app-sqm.
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://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/cero/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/cero/Packages.sig, wget returned 1.

Okay, so I believe that due to package signing you will need to also build the packages of interest directly when you build your own kernel, basically building your own packages repository, which you most likely need to host somewhere so opkg can reach it over the network, or you directly build these packages & modules into your initial image.

Best Regards
        M.

moeller0 wrote:
ngraap wrote:
moeller0 wrote:

I believe you need iproute2 as well and tc and a bunch of modules, but lets see how this goes and take it step by step. That I have not build an image myself does not really help since I can not recreate any of your issues easily, so let's go step by step that
I have a chance understanding the issues wink

Best Regards
        M.

Also does the same thing with mwan3, dnsmasq-full

Linux OpenWrt 4.1.6 #1 Thu Sep 3 02:42:04 PDT 2015 mips GNU/Linux

root@OpenWrt:~# opkg install luci-app-sqm
Installing luci-app-sqm (1.0.2-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/luci-app-sqm_1.0.2-1_all.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-sqm:
 *      kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *   kernel (= 4.1.6-1-4353a7f8db42bf7748e0afd51af26276) *
 * opkg_install_cmd: Cannot install package luci-app-sqm.
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://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/cero/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/cero/Packages.sig, wget returned 1.

Okay, so I believe that due to package signing you will need to also build the packages of interest directly when you build your own kernel, basically building your own packages repository, which you most likely need to host somewhere so opkg can reach it over the network, or you directly build these packages & modules into your initial image.

Best Regards
        M.

Building them into the initial image is going to be easier I think. How would I do that?

ngraap wrote:

Building them into the initial image is going to be easier I think. How would I do that?

Not sure, but I would probably follow http://wiki.openwrt.org/doc/howto/build for the main stuff. How to integrate sch_cake and tc-adv into this build I do not know.


Best Regards
        M.

The discussion might have continued from here.