We are using T1040 based board and linux 4.1.35. For testing L2 switch we used commands:
root@t1040d4rdb:-# l2sw_bin -i /tmp/il2sw -o /tmp/ol2sw&
[1] 2358
fifo /tmp/il2sw is used for stdin
stdout is redirected to /tmp/ol2sw
Using UIO: /dev/uio16
Mapped register memory @ 0x3fffa6889000
Chipid: 099530e9
root@t1040d4rdb:-# l2switch-cfg port all config show
l2switch>Port 0 state: enabled link: down mode: auto speed: ??? duplex: half
Port 1 state: enabled link: down mode: auto speed: ??? duplex: half
Port 2 state: enabled link: down mode: auto speed: ??? duplex: half
Port 3 state: enabled link: down mode: auto speed: ??? duplex: half
Port 4 state: enabled link: down mode: auto speed: ??? duplex: half
Port 5 state: enabled link: down mode: auto speed: ??? duplex: half
Port 6 state: enabled link: down mode: auto speed: ??? duplex: half
Port 7 state: enabled link: down mode: auto speed: ??? duplex: half
Port 8 state: enabled link: down mode: static speed: 2.5G duplex: full
Port 9 state: enabled link: down mode: static speed: 2.5G duplex: full
But after enabling Networking support/Networking options/Network packet filtering framework (Netfilter) option for using ip_tables and NAT modules, we are unable to test L2 switch.
Error what we are getting:
root@t1040d4rdb:~# l2sw_bin -i /tmp/il2sw -o /tmp/ol2sw&
[1] 2390
fifo /tmp/il2sw is used for stdin
stdout is redirected to /tmp/ol2sw
Unable to locate UIO device
: Success
root@t1040d4rdb:~# l2switch-cfg port all config show
l2sw_bin is not running
Please suggest what we can do for this issue.