BackupGGCode / wl500g

ASUS WL-5xx RT-N1x Oleg's based custom firmware
0 stars 0 forks source link

ipt-tos modules R2 not loaded with error #398

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.asus rt-n15u
2.usb flash mounted with mount in post-boot
3. modules R2 installed to /opt/lib
3.in post-mount insmod ipt_TOS and ipt_tos
4. modules not loaded and error in log

What is the expected output? What do you see instead?
in lsmod output ipt_TOS and ipt_tos are absent

What version of the product are you using?
build 5100 and higher (previously build not tested)

Please describe the problem as detailed as it's possible.
If you have connection problem, then syslog file is required. (please do
attach it as a file)

in log can see:
May 28 17:46:42 kernel: ipt_TOS: version magic '2.6.22.19 mod_unload MIPS32_R1 
32BIT ' should be '2.6.22.19 mod_unload MIPS32_R2 32BIT '
May 28 17:46:42 kernel: ipt_tos: version magic '2.6.22.19 mod_unload MIPS32_R1 
32BIT ' should be '2.6.22.19 mod_unload MIPS32_R2 32BIT '

Original issue reported on code.google.com by ad...@csa.dp.ua on 3 Jun 2013 at 3:54

GoogleCodeExporter commented 9 years ago
You are trying to load wrong modules.

Original comment by lly.dev on 4 Jun 2013 at 6:32

GoogleCodeExporter commented 9 years ago
I check Twice!!!!!
last try this:
http://vampik.ru/wl500g/rtn/5158/
http://vampik.ru/wl500g/rtn/5158/RT-N15U-3.0.6-r5158M.trx
and
http://vampik.ru/wl500g/rtn/5158/modules-3.0.6-r5158M-MIPS32r2.tar.bz2

others modules load correctly!!!

last boot:
Jan  1 02:00:33 kernel: ipt_TOS: version magic '2.6.22.19 mod_unload MIPS32_R1 
32BIT ' should be '2.6.22.19 mod_unload MIPS32_R2 32BIT '
Jan  1 02:00:33 kernel: ipt_tos: version magic '2.6.22.19 mod_unload MIPS32_R1 
32BIT ' should be '2.6.22.19 mod_unload MIPS32_R2 32BIT '
Jan  1 02:00:34 kernel: TCP vegas registered
Jan  1 02:00:34 kernel: IPv4 over IPv4 tunneling driver
Jan  1 02:00:34 kernel: GRE over IPv4 tunneling driver
Jan  1 02:00:34 kernel: TCP westwood registered

following in post-boot.sh:

#!/bin/sh

# Enter your commands here

swapon /dev/discs/disca/part2
mount -o bind,sync,noatime,rw /tmp/mnt/disca_1/opt /opt

ln -s /opt/etc/ppp/chap-secrets /tmp/ppp/chap-secrets

/opt/etc/init.d/S10cron
/opt/etc/init.d/S80thttpd start
#insmod /opt/lib/modules/2.6.22.19/kernel/lib/libcrc32c.ko
insmod /opt/lib/modules/2.6.22.19/kernel/lib/crc16.ko
insmod /opt/lib/modules/2.6.22.19/kernel/lib/crc-itu-t.ko
insmod /opt/lib/modules/2.6.22.19/kernel/fs/smbfs/smbfs.ko
#insmod /opt/lib/modules/2.6.22.19/kernel/fs/cifs/cifs.ko
insmod /opt/lib/modules/2.6.22.19/kernel/fs/ext2/ext2.ko
insmod /opt/lib/modules/2.6.22.19/kernel/fs/jbd2/jbd2.ko
insmod /opt/lib/modules/2.6.22.19/kernel/fs/ext4/ext4.ko
insmod /opt/lib/modules/2.6.22.19/kernel/fs/isofs/isofs.ko
insmod /opt/lib/modules/2.6.22.19/kernel/fs/udf/udf.ko
#insmod /opt/lib/modules/2.6.22.19/kernel/fs/fuse/fuse.ko
/opt/etc/init.d/S08samba
/opt/etc/init.d/S20poptop start

iptables -t mangle -A OUTPUT -j MARK --set-mark 7/7
iptables -t mangle -A INPUT -j MARK --set-mark 7/7
iptables -t mangle -A PREROUTING -j MARK --set-mark 7/7
iptables -t mangle -A POSTROUTING -j MARK --set-mark 7/7
iptables -t mangle -A FORWARD -j MARK --set-mark 7/7

insmod /opt/lib/modules/2.6.22.19/kernel/net/ipv4/netfilter/ipt_TOS.ko
insmod /opt/lib/modules/2.6.22.19/kernel/net/ipv4/netfilter/ipt_tos.ko

iptables -t mangle -A OUTPUT -j TOS --set-tos 0x10/0x10
iptables -t mangle -A INPUT -j TOS --set-tos 0x10/0x10
iptables -t mangle -A PREROUTING -j TOS --set-tos 0x10/0x10
iptables -t mangle -A POSTROUTING -j TOS --set-tos 0x10/0x10
iptables -t mangle -A FORWARD -j TOS --set-tos 0x10/0x10

insmod /opt/lib/modules/2.6.22.19/kernel/net/ipv4/tcp_vegas.ko
insmod /opt/lib/modules/2.6.22.19/kernel/net/ipv4/ipip.ko
insmod /opt/lib/modules/2.6.22.19/kernel/net/ipv4/ip_gre.ko
insmod /opt/lib/modules/2.6.22.19/kernel/net/ipv4/tcp_westwood.ko
----------------------------

lsmod output:

[admin@cs-trifle root]$ lsmod
Module                  Size  Used by    Tainted: P
cifs                  247098  3
tcp_westwood            1456  0
ip_gre                  9504  0
ipip                    7360  0
tcp_vegas               1692  3
udf                    90455  0
isofs                  23145  0
ext4                  232175  0
jbd2                   48123  1 ext4
ext2                   47629  0
smbfs                  62484  0
crc_itu_t               1009  1 udf
crc16                   1009  1 ext4
libcrc32c               1643  0
xt_CLASSIFY              560  0
xt_dscp                 1104  0
xt_DSCP                 1680  5
xt_multiport            1296  0
xt_iprange              1168  0
xt_iface                 944  0
fuse                   51351  0
usb_storage            74329  2
sd_mod                 20560  3
scsi_mod               80011  2 usb_storage,sd_mod
usblp                  11264  0
ohci_hcd               16992  0
ehci_hcd               34272  0
usbcore               120866  5 usb_storage,usblp,ohci_hcd,ehci_hcd
xt_recent               6752  2
nf_nat_ftp              1648  0
nf_conntrack_ftp        6160  1 nf_nat_ftp
pppoe                   8944  2
pppox                   1546  1 pppoe
wl                   1565672  0
et                     45809  0
igs                    15468  1 wl
emf                    18251  2 wl,igs
[admin@cs-trifle root]$

are you later acknwoledge that I load wrong modules?

Original comment by ad...@csa.dp.ua on 4 Jun 2013 at 5:42