Hurra.
It works! My linux kernel ain't broken (I did some patching as well)
Thanx a lot for this tip muyi. Whats your bank address ?
I have copied now
-rw-r--r-- 1 root root 23748 Jan 2 00:12 sch_cbq.o
-rw-r--r-- 1 root root 32572 Jan 2 00:12 sch_htb.o
-rw-r--r-- 1 root root 6516 Jan 2 01:07 sch_sfq.o
-rw-r--r-- 1 root root 4216 Jan 2 00:12 sch_ingress.o
from the openwrt-kmodules.tar.bz2 (kernel/2.4.20/net/sched)
to /lib/modules/2.4.20 and used insmod to load them (going to add this into /etc/rcS).
It works like a charm.
/usr/sbin # ./tc qdisc add dev vlan1 root handle 1: htb default 20
/usr/sbin # ./tc qdisc show dev vlan1
qdisc htb 1: r2q 10 default 20 direct_packets_stat 0
I probably will also add from kernel/2.4.20/net/ipv4
ipt_conntrack.o
ipt_TOS.o / ipt_tos.o
for marking packets in iptables for real QOS playing
If you are using wondershaper htb script, make sure you also copy:
cls_u32.o
sch_ingress.o
sch_prio.o
sch_sfq.o
ipt_tos.o / ipt_TOS.o
I found out by try-and-error
Also for wondershaper the calculation of the uplink class 1:20 and 1:30 seems not working, since no /bin/bash is available.
All calculations with $[9*$UPLINK/10]kbit exit with error; I have changed #!/bin/bash to #!/bin/sh.
Also tc can not be found by wshaper.htb script. so I added an alias tc=/usr/sbin in /etc/rcS BEFORE firewall.sh, where I'm starting qos_shaping.sh (wshaper actually ).
The default in openwrt-linux.config is this:
#
# QoS and/or fair queueing
#
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_CBQ=m
CONFIG_NET_SCH_HTB=m
CONFIG_NET_SCH_CSZ=m
CONFIG_NET_SCH_PRIO=m
CONFIG_NET_SCH_RED=m
CONFIG_NET_SCH_SFQ=m
CONFIG_NET_SCH_TEQL=m
CONFIG_NET_SCH_TBF=m
CONFIG_NET_SCH_GRED=m
CONFIG_NET_SCH_DSMARK=m
CONFIG_NET_SCH_INGRESS=m
CONFIG_NET_QOS=y
CONFIG_NET_ESTIMATOR=y
CONFIG_NET_CLS=y
CONFIG_NET_CLS_TCINDEX=m
CONFIG_NET_CLS_ROUTE4=m
CONFIG_NET_CLS_ROUTE=y
CONFIG_NET_CLS_FW=m
CONFIG_NET_CLS_U32=m
CONFIG_NET_CLS_RSVP=m
CONFIG_NET_CLS_RSVP6=m
CONFIG_NET_CLS_POLICE=y
I have just really forgotton to change anything to y.
Probably a rm /home/blackvel/buildroot/build_mipsel/WRT54GS/release/src
/linux/linux/.configured
might also work instead of deleting the whole WRT54GS directory.
Can that be ?