Hi ,
I am working with IMX6ULL EVK. I have compiled my yocto image adding in local.conf :
CORE_IMAGE_EXTRA_INSTALL += "bridge-utils"
On the EVK, when I put this command it work, the bridge-utils seams present:
root@imx6ull14x14evk:~# brctl
Usage: brctl [commands]
commands:
addbr <bridge> add bridge
delbr <bridge> delete bridge
addif <bridge> <device> add interface to bridge
delif <bridge> <device> delete interface from bridge
hairpin <bridge> <port> {on|off} turn hairpin on/off
setageing <bridge> <time> set ageing time
setbridgeprio <bridge> <prio> set bridge priority
setfd <bridge> <time> set bridge forward delay
sethello <bridge> <time> set hello time
setmaxage <bridge> <time> set max message age
setpathcost <bridge> <port> <cost> set path cost
setportprio <bridge> <port> <prio> set port priority
show [ <bridge> ] show a list of bridges
showmacs <bridge> show a list of mac addrs
showstp <bridge> show bridge stp info
stp <bridge> {on|off} turn stp on/off
On the EVK, when I put this command it not work, the bridge-utils seams not present :
root@imx6ull14x14evk:~# brctl addbr br0
add bridge failed: Package not installed
root@imx6ull14x14evk:~#
How can install bridge-utils ?
Can someone help me ?
Regards
Sergio D'Orazio.
Solved! Go to Solution.
Hi,
in local.conf I add this line :
IMAGE_INSTALL_append +=" python-subprocess python-dbus python-argparse" and now it work well. Resolved. Thank you for all. Sergio.
I put your command, but I have the same problem.
Have you an other suggestion ?
Regards.
Sergio D'Orazio.
We added
IMAGE_INSTALL_append = "bridge-utils"
in local.conf and flashed the image on board imx6ullevk. And executed below command. It seems brctl is working. We are using Yocto sumo.
root@imx6ull14x14evk:~# brctl
Usage: brctl [commands]
commands:
addbr <bridge> add bridge
delbr <bridge> delete bridge
addif <bridge> <device> add interface to bridge
delif <bridge> <device> delete interface from bridge
hairpin <bridge> <port> {on|off} turn hairpin on/off
setageing <bridge> <time> set ageing time
setbridgeprio <bridge> <prio> set bridge priority
setfd <bridge> <time> set bridge forward delay
sethello <bridge> <time> set hello time
setmaxage <bridge> <time> set max message age
setpathcost <bridge> <port> <cost> set path cost
setportprio <bridge> <port> <prio> set port priority
show [ <bridge> ] show a list of bridges
showmacs <bridge> show a list of mac addrs
showstp <bridge> show bridge stp info
stp <bridge> {on|off} turn stp on/off
root@imx6ull14x14evk:~#
Regards,
Karan Gajjar
Hi ,
Also me the command brctl work well, but when I write the following command it's not work.
root@imx6ull14x14evk:~# brctl addbr br0
add bridge failed: Package not installed
root@imx6ull14x14evk:~#
Can you write my same command in your target machine ? : brctl addbr br0
Regards
Sergio.
Please enable CONFIG_BRIDGE in kernel and compile and check.
Regards,
Karan Gajjar
Hi,
in my .config file I have this CONFIG_BRIDGE parameters :
CONFIG_BRIDGE=y
CONFIG_BRIDGE_IGMP_SNOOPING=y
# CONFIG_BRIDGE_VLAN_FILTERING is not set
Do I must set in other way ?
Sergio.
By enabling the CONFIG_BRIDGE it worked for me. Kindly check the config attached and compare with the config that you are using. Let me know if there is anything significant difference between the two.
Regards,
Karan Gajjar
Hi, there are few small differents
I send you the differences ....
what do you think , what do I can see ?
Regards.
Sergio.
The config that are different don't affect brctl. We also checked the on the kernel version that you using 4.14.98. Still things worked for us by just adding IMAGE_APPEND in local.conf and enabling CONFIG_BRIDGE in kernel.
We also checked in ifconfig and can see the interface is created:
root@imx6ull14x14evk:~# brctl addbr br0
root@imx6ull14x14evk:~# ifconfig -a
br0 Link encap:Ethernet HWaddr 0A:F3:48:E6:79:0C
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Regards,
Karan Gajjar
Hi,
now the "brctl addbr br0" command work well , but the PAN service I think don't start well.
I send you my bluetooth start sequence :
hciattach /dev/ttymxc1 texas 3000000
hciconfig hci0 name 'XXX2'
hciconfig hci0 sspmode 1
hciconfig hci0 piscan
hciconfig hci0 up
sdptool -i hci0 add NAP
brctl addbr br0
chmod +x bt-pan
python bt-pan --debug server br0 &
At end I have this error message :
Traceback (most recent call last):
File "bt-pan", line 4, in <module>
import os, sys, time, types, subprocess, signal
ImportError: No module named subprocess
[1]+ Done(1) python bt-pan --debug server br0
If I connect my PC with PAN network service the error on PC is :
Connection is been denied by PAN server [XXX2]
Can you help me ?
Sergio.
Try adding below line in local.conf
IMAGE_INSTALL_append +=" python-subprocess"
Regards,
Karan Gajjar
Hi,
in local.conf I add this line :
IMAGE_INSTALL_append +=" python-subprocess python-dbus python-argparse" and now it work well. Resolved. Thank you for all. Sergio.
If above comment help you fix your problem, please mark it is as correct.
Regards,
Karan Gajjar
Hi sergio d'orazio ,
Please add following in your local.conf and check:
IMAGE_INSTALL_append = "bridge-utils"
Regards,
Karan Gajjar