Pippo
December 11, 2018, 4:10pm
1
Hi was tryin g to play with tc (to mirror traffic between interfaces don't know if its the right way)
but:
root@OpenWrt:/# opkg install tc iptables-mod-ipopt
Installing tc (4.19.0-5) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/base/tc_4.19.0-5_mips_24kc.ipk
Installing iptables-mod-ipopt (1.8.2-2) to root...
Downloading http://downloads.openwrt.org/snapshots/targets/ar71xx/generic/packages/iptables-mod-ipopt_1.8.2-2_mips_24kc.ipk
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for tc:
* kernel (= 4.14.87-1-f11667096b7c23e1dc9446b0665e3ac8) *
* opkg_install_cmd: Cannot install package tc.
* satisfy_dependencies_for: Cannot satisfy the following dependencies for iptables-mod-ipopt:
* kernel (= 4.14.87-1-f11667096b7c23e1dc9446b0665e3ac8) *
* opkg_install_cmd: Cannot install package iptables-mod-ipopt.
root@OpenWrt:/# uname -r
4.14.79
what's going wrong here ?
Need to update kernel ? How should I proceed ?
jeff
December 11, 2018, 4:31pm
2
Your kernel is not consistent with the package repository. The packages that interact with the kernel need to be obtained from basically the same build as the kernel. Though I have vague memories that snapshot repos were somehow available from past versions, snapshots have historically been "point in time" in that as soon as the next build kicks off, there was no access to consistent kernel modules.
Edit:
Hi,
I just wanted to share some news regarding the snapshot build procedure. Our buildbots now produce persistent kmod repositories for snapshots and inject them into the image, which means that it will be possible to install kmods indefinitely, even if newer builds have already been produced in the meanwhile.
This applies to all snapshots built from today on. You can check if your snapshot uses a persistent repository by inspecting /etc/opkg/distfeeds.conf and looking for an openwrt_kmods entβ¦
1 Like
Pippo
December 11, 2018, 4:42pm
3
Let me try to understand
usually you would get packages compiled for older kernels
but for me building on images by myself on my machine is the other way round
So only thing to do is rebuild my image ??
Or is there a way to force the system to install them (think chances to have them broken is small) ?
jeff
December 11, 2018, 4:43pm
4
You can try building the needed packages from your source tree. Personally, I'd just build a new image if you're already building your own images.
I would not try to "force" a mismatched kernel module, even if it might work.
1 Like
hnyman
December 11, 2018, 4:50pm
5
Pippo:
but for me building on images by myself on my machine is the other way round
So only thing to do is rebuild my image ??
Or is there a way to force the system to install them (think chances to have them broken is small) ?
There is strict kernel checksumming on the kernel version and all kernel options. In practice, any change to kernel version of options or selected kernel packages triggers the failure.
Yes, the thing to do is to rebuild your image from source and to include the package in the build (at least selected to be built with "m".
Yes, you can try forcing it with opkg option "--force-depends" but that is risky. Read opkg manual
2 Likes
Pippo
December 11, 2018, 5:26pm
6
Okdokey good
new problem cannot find tc in make menuconfig
there is a tc reference in .config but none in make menuconfig (checked under busybox too)
found here:
https://bugs.openwrt.org/index.php?do=details&task_id=1388&opened=262&status[0]=
is under iproute2 that is iproute in openwrt ???
hnyman
December 11, 2018, 5:45pm
7
It is there:
.config - OpenWrt Configuration
> Network > Routing and Redirection βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββ tc............................................... Traffic control utility βββββββββββββ
β CONFIG_PACKAGE_tc: β
β β
β Traffic control utility β
β http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 β
β Russell Senior <russell@personaltelco.net> β
β β
β β
β Symbol: PACKAGE_tc [=y] β
β Type : tristate β
β Prompt: tc............................................... Traffic control utility β
β Location: β
β -> Network β
β -> Routing and Redirection β
β Defined at tmp/.config-package.in:87945 β
β Selects: PACKAGE_libmnl [=y] && PACKAGE_librt [=y] && PACKAGE_libssp [=n] && \ β
β PACKAGE_libpthread [=y] && PACKAGE_kmod-sched-core [=y] && PACKAGE_libc [=y] β
β Selected by: MODULE_DEFAULT_tc [=n] && TARGET_PER_DEVICE_ROOTFS [=n] && m && MODULES [=y]\ β
β || PACKAGE_qos-scripts [=n] || PACKAGE_sqm-scripts [=y] && !LINUX_3_18 [=n] || \ β
β PACKAGE_luci-app-splash [=n] && PACKAGE_iptables [=y] β
.config - OpenWrt Configuration
> Network > Routing and Redirection βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββ Routing and Redirection ββββββββββββββββββββββββββββββββββββββ
β Arrow keys navigate the menu. <Enter> selects submenus ---> (or empty submenus ----). β
β Highlighted letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes β
β features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend: [*] built-in [ ] β
β excluded <M> module < > module capable β
β βββββββββββββ^(-)βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β < > genl.................................... General netlink utility frontend β β
β β < > igmpproxy....................................... Multicast Routing Daemon β β
β β < > ip-bridge..................... Bridge configuration utility from iproute2 β β
β β < > ip-full................................... Routing control utility (Full) β β
β β -*- ip-tiny................................ Routing control utility (Minimal) β β
β β < > lldpd............................... Link Layer Discovery Protocol daemon ---β β
...
β β < > sslh................................................. SSL/SSH multiplexer β β
β β -*- tc............................................... Traffic control utility β β
β β < > tcpproxy.................................. IPv4/IPv6 tcp connection proxy β β
β β < > vis........................ visualization server for B.A.T.M.A.N. layer 3 β β
β
And yes, tc is part of the iproute2 sources, but it is quite normally a separate package
1 Like
Pippo
December 11, 2018, 6:06pm
8
thanks
/tc doesn't work don't know why
hnyman
December 11, 2018, 6:10pm
9
I noticed the same. Probably too short search string
system
Closed
December 21, 2018, 6:11pm
10
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.