Using the latest Ubuntu image from November, i can only see the first 2 NICs out of 5.
Is there a specific kernel module to access the other NICs?
The kernel seem to see the NICs.
# dmesg | grep mt7623
[ 5.152829] mediatek-mt7623-pinctrl 1000b000.pinctrl: invalid function 1 on pin 77 .
[ 7.504957] mt8521p-audio mediatek,mt7623_audio: mt8521p_audio_probe()
[ 7.544287] mt7623_wm8960_probe()
[ 7.711270] mt7623-wm8960-machine 11220000.sound: spdif-hifi <-> mt8521p-hdmi-rawpcm-out mapping ok
[ 7.749358] mt7623-wm8960-machine 11220000.sound: wm8960-hifi <-> mt8521p-i2s1 mapping ok
[ 10.548343] mt7623-gsw gswsys@1b100000: mac [0] is fixed link
[ 10.554065] mt7623-gsw gswsys@1b100000: mac [1] is fixed link
[ 10.559858] mt7623-gsw gswsys@1b100000: Setting MHWTRAP to 0x01017e9f
[ 11.162285] mt7623_gsw_config> WLLLL
[ 11.681859] #0: mt7623-wm8960-card
[ 13.485591] mt7623-gsw gswsys@1b100000: port 4 link up
[ 1638.034540] mt7623-gsw gswsys@1b100000: port 2 link up
[ 2404.378475] mt7623-gsw gswsys@1b100000: port 3 link up
[ 2413.120548] mt7623-gsw gswsys@1b100000: port 3 link down
[ 2414.703269] mt7623-gsw gswsys@1b100000: port 3 link up
[ 2777.134931] mt7623-gsw gswsys@1b100000: port 2 link down
[ 2785.152855] mt7623-gsw gswsys@1b100000: port 2 link up
[ 3323.662763] mt7623-gsw gswsys@1b100000: port 3 link down
# uname -a
Linux bpi-iot-ros-ai 4.4.70-BPI-R2-Kernel #1 SMP Tue Nov 28 10:59:01 CST 2017 armv7l armv7l armv7l GNU/Linux
# ethtool eth2
Settings for eth2:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available
# ethtool eth3
Settings for eth3:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available
# ethtool eth4
Settings for eth4:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available
OK thanks i was trying to access all hardware first from the official ubuntu.
I will use your your image. Did you install SSH on your image. I don’t have the UART interface yet to access via the console.
note that you must configure your /etc/network/interfaces to get remote-access (eth0-config must be moved to lan0=left LAN-Port) and eth0 must be set to up:
auto eth0
iface eth0 inet manual
pre-up ip link set $IFACE up
post-down ip link set $IFACE down
auto lan0
iface lan0 inet static
hwaddress ether 08:00:00:00:00:00 # if you want to set MAC manually
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.5
pre-up ip link set $IFACE up
post-down ip link set $IFACE down
No, it doen’t in LEDE, lan0-lan3 is under br-lan which is over MAC1, and wan is another which is over MAC2. MAC1 and MAC2 are isolated in switch MT7530.
# uname -a
Linux bpi-r2 4.14.11-00039-ga352d6b52e30 #2 SMP Thu Jan 4 11:27:02 EST 2018 armv7l GNU/Linux
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 4a:93:ae:dc:99:04 brd ff:ff:ff:ff:ff:ff
3: wan@eth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 4a:93:ae:dc:99:04 brd ff:ff:ff:ff:ff:ff
4: lan0@eth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 4a:93:ae:dc:99:04 brd ff:ff:ff:ff:ff:ff
5: lan1@eth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 4a:93:ae:dc:99:04 brd ff:ff:ff:ff:ff:ff
6: lan2@eth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 4a:93:ae:dc:99:04 brd ff:ff:ff:ff:ff:ff
7: lan3@eth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 4a:93:ae:dc:99:04 brd ff:ff:ff:ff:ff:ff
8: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:08:22:04:4c:00 brd ff:ff:ff:ff:ff:ff
9: ap0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 02:08:22:04:4c:00 brd ff:ff:ff:ff:ff:ff
LEDE for bpi-r2 have some hack in dsa core layer for allowing eth0 mapped into lan0-4, and eth1 mapped into wan. (mutliple cpu port is being utilized).
While it doesn’t do it in upstream because dsa core layer haven’t been able to support more than one cpu port at the current point. So, mt7530 dsa in upstream code still utilize just only one cpu port to follow core’s definition.
But dsa core member is designing and thinking this feature. I believe it should be supported in the near feature.
On 4.1.4, for some reason i can’t get 1000Mbps/Full?
[ 10.562987] mt7530 mdio-bus:00 lan3: Link is Up - 100Mbps/Full - flow control rx/tx
[ 11.522700] mt7530 mdio-bus:00 lan0: Link is Up - 10Mbps/Half - flow control off
[ 3378.082974] mt7530 mdio-bus:00 lan2: Link is Up - 100Mbps/Full - flow control off