OpenWrt Forum Archive

Topic: OpenWRT on RaspberryPi [Solved]

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

Howdy all-

I found a version of the firmware that boots on my pi, which is here: https://sites.google.com/site/openwrtraspi/

Pretty much everything works out of the box, including the packages from the official tree. Everything, of course, but bridging.

Whenever I execute brctl addbr br0, I get "add bridge failed: Package not installed". brctl show displays no bridges.

When I try to use Luci to add a bridge, the mac is always 00-00-00-00-00-00 and the interface never becomes enabled.

Any thoughts as to what the fix would be?

Thanks.

(Last edited by keyboardgnome on 14 Jul 2013, 17:14)

then manually edit the mac address to something like aa:bb:cc:dd:ee:ff

that doesnt work. sorry, i forgot to mention static assignments dont work. i think that there is something broken with the brutils.

what packages go into enabling bridging support? i want to make sure theyre all installed. do any packages conflict with bridging support?

Checked and rechecked.... bridging doesnt work in the rasp pi. If someone knows otherwise, I'm all ears smile

As an update....
I'm still stuck here. OpenWRT doesnt want to create any bridges.

root@OpenWrt:~# brctl show
bridge name    bridge id        STP enabled    interfaces
root@OpenWrt:~# brctl addbr br0
add bridge failed: Package not installed




Here is the list of the installed packages
base-files
bridge
busybox
cfdisk
dnsmasq
dropbear
ebtables
fdisk
firewall
hotplug2
i2c-tools
iptables
iptables-mod-extra
iw
jshn
kernel
kmod-bridge
kmod-cfg80211
kmod-crypto-aes
kmod-crypto-arc4
kmod-crypto-core
kmod-ebtables
kmod-eeprom-93cx6
kmod-hid
kmod-i2c-algo-bit
kmod-i2c-core
kmod-i2c-gpio
kmod-input-core
kmod-input-evdev
kmod-ipt-conntrack
kmod-ipt-core
kmod-ipt-extra
kmod-ipt-nat
kmod-ipt-nathelper
kmod-lib-crc-ccitt
kmod-lib-crc-itu-t
kmod-llc
kmod-mac80211
kmod-nls-base
kmod-ppp
kmod-pppoe
kmod-pppox
kmod-rt2500-usb
kmod-rt2800-lib
kmod-rt2800-usb
kmod-rt2x00-lib
kmod-rt2x00-usb
kmod-rtl8187
kmod-sound-arm-bcm2835
kmod-sound-core
kmod-spi-bitbang
kmod-spi-dev
kmod-spi-gpio
kmod-stp
kmod-tun
kmod-usb-core
kmod-usb-hid
libblkid
libblobmsg-json
libc
libgcc
libip4tc
libiwinfo
libiwinfo-lua
libjson
liblua
liblzo
libncurses
libnl-tiny
libopenssl
libubox
libubus
libubus-lua
libuci
libuci-lua
libuuid
libxtables
lua
luci
luci-app-firewall
luci-i18n-english
luci-lib-core
luci-lib-ipkg
luci-lib-lmo
luci-lib-nixio
luci-lib-sys
luci-lib-web
luci-mod-admin-core
luci-mod-admin-full
luci-proto-core
luci-proto-ppp
luci-sgi-cgi
luci-theme-base
luci-theme-openwrt
mtd
nano
netifd
openssl-util
openvpn-easy-rsa
opkg
Package
ppp
ppp-mod-pppoe
terminfo
ubus
ubusd
uci
uhttpd
Version
wireless-tools
wpad
zlib

I hooked up the serial cable.... I should have checked dmesg.

When I try to load the bridge.ko module, I get:

root@OpenWrt:/lib/modules/3.2.27+/kernel/net/bridge# insmod bridge.ko
[  882.427838] bridge: Unknown symbol llc_mac_hdr_init (err 0)
[  882.437201] bridge: Unknown symbol stp_proto_register (err 0)
[  882.446867] bridge: Unknown symbol stp_proto_unregister (err 0)
insmod: can't insert 'bridge.ko': unknown symbol in module, or unknown parameter
root@OpenWrt:/lib/modules/3.2.27+/kernel/net/bridge#


So, I then also try to force the stp module:

root@OpenWrt:/lib/modules/3.2.27+/kernel/net/802# insmod stp.ko
[  919.108079] stp: Unknown symbol llc_sap_close (err 0)
[  919.116731] stp: Unknown symbol llc_sap_open (err 0)
insmod: can't insert 'stp.ko': unknown symbol in module, or unknown parameter


Previously, IPv6 was a missing dependency, so I installed that. There are obviously other modules missing; I just dont know what they are.

Solved-

I found this post: https://www.os3.nl/2010-2011/students/e … ou/inr_stp

In short, three modules were not installed as dependencies:
stp and llc

insmod /lib/modules/3.2.27+/kernel/net/llc/llc.ko
insmod /lib/modules/3.2.27+/kernel/net/802/stp.ko
insmod /lib/modules/3.2.27+/kernel/net/bridge/bridge.ko


[Cut and pasteded the important bits from the website]

I will run for now the proper brctl using its hard link /sbin/brctl. The first attempt to add a bridge gives back an error.

add bridge failed: Package not installed

Cosmin indicated that i need to mount some of the modules from the folder /usr/lib/uml/modules/.

insmode is not supported by busybox so i need to copy it to the sbin folder of my uml filesystem.

/ # insmod /usr/lib/uml/modules/2.6.35.1/kernel/net/bridge/bridge.ko
bridge: Unknown symbol llc_mac_hdr_init (err 0)
bridge: Unknown symbol stp_proto_register (err 0)
bridge: Unknown symbol stp_proto_unregister (err 0)
insmod: error inserting '/usr/lib/uml/modules/2.6.35.1/kernel/net/bridge/bridge.ko': -1 Unknown symbol in module

Now i need to find the missing modules that cause the error.

epetridou@UbuntuUml:~$ locate stp.ko
/lib/modules/2.6.35-22-server/kernel/net/802/stp.ko
/lib/modules/2.6.35-22-server/kernel/net/bridge/netfilter/ebt_stp.ko
/lib/modules/2.6.35-25-server/kernel/net/802/stp.ko
/lib/modules/2.6.35-25-server/kernel/net/bridge/netfilter/ebt_stp.ko
/lib/modules/2.6.35-27-server/kernel/net/802/stp.ko
/lib/modules/2.6.35-27-server/kernel/net/bridge/netfilter/ebt_stp.ko
/usr/lib/uml/modules/2.6.35.1/kernel/net/802/stp.ko
/usr/lib/uml/modules/2.6.35.1/kernel/net/bridge/netfilter/ebt_stp.ko

epetridou@UbuntuUml:~$ locate llc.ko
/usr/lib/uml/modules/2.6.35.1/kernel/net/llc/llc.ko

Since i know their location i need to copy them to my uml filesystem.

epetridou@UbuntuUml:~$ sudo cp /usr/lib/uml/modules/2.6.35.1/kernel/net/llc/llc.ko /home/epetridou/uml_filesystem/usr/lib/uml/modules/2.6.35.1/kernel/net/llc/
epetridou@UbuntuUml:~$ sudo cp /usr/lib/uml/modules/2.6.35.1/kernel/net/802/stp.ko /home/epetridou/uml_filesystem/usr/lib/uml/modules/2.6.35.1/kernel/net/802/
epetridou@UbuntuUml:~$ sudo cp /usr/lib/uml/modules/2.6.35.1/kernel/net/bridge/netfilter/ebt_stp.ko /home/epetridou/uml_filesystem/usr/lib/uml/modules/2.6.35.1/kernel/net/bridge/netfilter/

I try to load the modules one more time.

/ # insmod /usr/lib/uml/modules/2.6.35.1/kernel/net/802/stp.ko
stp: Unknown symbol llc_sap_close (err 0)
stp: Unknown symbol llc_sap_open (err 0)

I guess I need to load the llc module first.

insmod: error inserting '/usr/lib/uml/modules/2.6.35.1/kernel/net/802/stp.ko': -1 Unknown symbol in module
/ # insmod /usr/lib/uml/modules/2.6.35.1/kernel/net/llc/llc.ko
/ # insmod /usr/lib/uml/modules/2.6.35.1/kernel/net/802/stp.ko
/ # insmod /usr/lib/uml/modules/2.6.35.1/kernel/net/bridge/bridge.ko
Bridge firewalling registered

Testing if it works…

/ # /sbin/brctl addbr tmp_br
/ # /sbin/brctl show
bridge name     bridge id               STP enabled     interfaces
tmp_br          8000.000000000000       no

(Last edited by keyboardgnome on 14 Jul 2013, 17:17)

The discussion might have continued from here.