freifunk-berlin / firmware

DEPRECATED: Build system for Berlin firmware. Please user the pinned falter-repos instead
https://berlin.freifunk.net
GNU General Public License v3.0
74 stars 34 forks source link

kmod-batman-adv broken (ar71xx_mikrotik) #184

Closed faust2k closed 9 years ago

faust2k commented 9 years ago
root@f2a-core-rt:~# cat /etc/opkg.conf 
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz kathleen_base http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx/packages/base
src/gz kathleen_luci http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx/packages/luci
src/gz kathleen_packages http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx/packages/packages
src/gz kathleen_packages_berlin http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx/packages/packages_berlin
src/gz kathleen_routing http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx/packages/routing
root@f2a-core-rt:~# opkg update
root@f2a-core-rt:~# opkg install kmod-batman-adv
Installing kmod-batman-adv (3.10.49+2014.3.0-1) to root...
Downloading http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx/packages/routing/kmod-batman-adv_3.10.49+2014.3.0-1_ar71xx.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-batman-adv:
 *      kernel (= 3.10.49-1-a0d9d4c9c76f4f4162c5e6bcf17a7ca3) *         kernel (= 3.10.49-1-a0d9d4c9c76f4f4162c5e6bcf17a7ca3) *         kernel (= 3.10.49-1-a0d9d4c9c76f4f4162c5e6bcf17a7ca3) *       kernel (= 3.10.49-1-a0d9d4c9c76f4f4162c5e6bcf17a7ca3) *         kernel (= 3.10.49-1-a0d9d4c9c76f4f4162c5e6bcf17a7ca3) * 
 * opkg_install_cmd: Cannot install package kmod-batman-adv.
root@f2a-core-rt:~# opkg install --force-depends kmod-batman-adv
Installing kmod-batman-adv (3.10.49+2014.3.0-1) to root...
Downloading http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx/packages/routing/kmod-batman-adv_3.10.49+2014.3.0-1_ar71xx.ipk.
Installing kmod-lib-crc16 (3.10.49-1) to root...
Downloading http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx/packages/base/kmod-lib-crc16_3.10.49-1_ar71xx.ipk.
Installing kmod-crypto-crc32c (3.10.49-1) to root...
Downloading http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx/packages/base/kmod-crypto-crc32c_3.10.49-1_ar71xx.ipk.
Installing kmod-crypto-hash (3.10.49-1) to root...
Downloading http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx/packages/base/kmod-crypto-hash_3.10.49-1_ar71xx.ipk.
Installing kmod-lib-crc32c (3.10.49-1) to root...
Downloading http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx/packages/base/kmod-lib-crc32c_3.10.49-1_ar71xx.ipk.
Configuring kmod-crypto-hash.
Configuring kmod-lib-crc16.
Configuring kmod-crypto-crc32c.
Configuring kmod-lib-crc32c.
Configuring kmod-batman-adv.
root@f2a-core-rt:~# insmod /lib/modules/3.10.49/batman-adv.ko
kmod: failed to insert /lib/modules/3.10.49/batman-adv.ko
faust2k commented 9 years ago

Feed ist per default falsch in der /etc/opkg.conf - ar71xx statt ar71xx_mikrotik. Nach Umstellung:

root@f2a-core-rt:~# opkg remove kmod-batman-adv kmod-lib-crc32c kmod-crypto-crc32c kmod-lib-crc16 kmod-crypto-hash
Removing package kmod-batman-adv from root...
Removing package kmod-lib-crc32c from root...
Removing package kmod-crypto-crc32c from root...
Removing package kmod-lib-crc16 from root...
Removing package kmod-crypto-hash from root...
root@f2a-core-rt:~# reboot && exit
root@f2a-core-rt:~# opkg install kmod-batman-adv
Installing kmod-batman-adv (3.10.49+2014.3.0-1) to root...
Downloading http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx_mikrotik/packages/routing/kmod-batman-adv_3.10.49+2014.3.0-1_ar71xx.ipk.
Installing kmod-lib-crc16 (3.10.49-1) to root...
Downloading http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx_mikrotik/packages/base/kmod-lib-crc16_3.10.49-1_ar71xx.ipk.
Installing kmod-crypto-crc32c (3.10.49-1) to root...
Downloading http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx_mikrotik/packages/base/kmod-crypto-crc32c_3.10.49-1_ar71xx.ipk.
Installing kmod-crypto-hash (3.10.49-1) to root...
Downloading http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx_mikrotik/packages/base/kmod-crypto-hash_3.10.49-1_ar71xx.ipk.
Installing kmod-lib-crc32c (3.10.49-1) to root...
Downloading http://buildbot.berlin.freifunk.net/buildbot/stable/0.0.0/ar71xx_mikrotik/packages/base/kmod-lib-crc32c_3.10.49-1_ar71xx.ipk.
Configuring kmod-crypto-hash.
Configuring kmod-lib-crc16.
Configuring kmod-crypto-crc32c.
Configuring kmod-lib-crc32c.
Configuring kmod-batman-adv.
kmod: failed to insert /lib/modules/3.10.49/batman-adv.ko
root@f2a-core-rt:~# logread | tail -n 3
Tue Dec  2 14:37:38 2014 kern.warn kernel: [  110.370000] batman_adv: Unknown symbol crc16 (err 0)
Tue Dec  2 14:37:38 2014 kern.warn kernel: [  110.380000] batman_adv: Unknown symbol crc32c (err 0)
Tue Dec  2 14:37:38 2014 user.info syslog: failed to insert /lib/modules/3.10.49/batman-adv.ko
faust2k commented 9 years ago

Lösungvorschlag:

Das postinst-Script von kmod-batman-adv verwendet wohl insmod, welches zu blöd ist die Abhängigkeit aufzulösen - vielleicht können wir ja modprobe verwenden.

root@f2a-core-rt:~# rmmod batman_adv
root@f2a-core-rt:~# rmmod crc16
root@f2a-core-rt:~# insmod /lib/modules/3.10.49/batman-adv.ko
kmod: failed to insert /lib/modules/3.10.49/batman-adv.ko
root@f2a-core-rt:~# 
root@f2a-core-rt:~# modprobe batman-adv
root@f2a-core-rt:~# lsmod | grep batman
batman_adv            107888  0 
crc16                    944  1 batman_adv
libcrc32c                496  1 batman_adv
faust2k commented 9 years ago

Achso, quick & dirty Workaround: batman-adv einfach auch bei ar77xx_mikrotik defaultmäßig einbauen - dann wird es beim ersten booten korrekt geladen. Daher tritt der Fehler bei den anderen Architekturen auch nicht auf (ar77xx, mpc88xx)...

booo commented 9 years ago

Das postinst-script sollten wir wahrscheinlich im Upstream Repo fixen (http://github.com/openwrt-routing/packages).

Wenn batman-adv teil von allen anderen default images ist, dann sollten wir das angleichen. Problematik mit dem insmod und insbesondere der falschen Url besteht weiterhin.

andrenarchy commented 9 years ago

batman-adv will be in the default images as of #187. The opkg feed bug is tracked in #185, so I'm closing this.