Hi
I have a custom Mediatek 7688 board which has two ethernet interfaces.
After installing raw openwrt, one of the interfaces is known as eth0 and working.
The other port is not working and is not listed in interfaces list.
I checked ip address and ifconfig, also checked ls /sys/class/net/, but the second ethernet is not present.
The driver used for first ethernet seems to be mtk_soc_eth.
The second port is exactly the same as first one on the board (same hardware).
Anybody know how to enable it?
You're asking us how to get your black box hw up and running?
Is it seen by lspci and/or dmesg ?
lspci does not show anything.
dmesg is attached:
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7688 ver:1 eco:2
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[ 0.000000] MIPS: machine is MediaTek LinkIt Smart 7688
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS2,57600 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Writing ErrCtl register=00040004
[ 0.000000] Readback ErrCtl register=00040004
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 252952K/262144K available (4194K kernel code, 570K rwdata, 660K rodata, 1224K init, 198K bss, 9192K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 256
[ 0.000000] intc: using register map from devicetree
[ 0.000000] CPU Clock: 580MHz
[ 0.000000] timer_probe: no matching timers found
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000002] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.015473] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.087679] pid_max: default: 32768 minimum: 301
[ 0.097722] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.112078] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.136373] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.155793] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.169232] pinctrl core: initialized pinctrl subsystem
[ 0.181775] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.214777] clocksource: Switched to clocksource MIPS
[ 0.226662] NET: Registered PF_INET protocol family
[ 0.236603] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.252019] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.268712] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.283938] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.299109] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.313040] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.325793] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.338679] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.352905] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.364110] PCI: CLS 0 bytes, default 32
[ 0.376942] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[ 0.395767] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.407247] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.429837] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.441257] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.452640] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.464489] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.478855] 10000c00.uart0: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[ 0.497285] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[ 0.515982] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[ 0.533381] printk: console [ttyS2] enabled
[ 0.549811] printk: bootconsole [early0] disabled
[ 0.570414] spi-mt7621 10000b00.spi: sys_freq: 193333333
[ 0.602659] spi-nor spi0.0: mx25l25635e (32768 Kbytes)
[ 0.613038] 4 fixed-partitions partitions found on MTD device spi0.0
[ 0.625697] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 0.640244] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 0.655116] Creating 4 MTD partitions on "spi0.0":
[ 0.664620] 0x000000000000-0x000000030000 : "u-boot"
[ 0.678006] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.690010] 0x000000040000-0x000000050000 : "factory"
[ 0.703734] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 0.719207] 0x000000050000-0x000002000000 : "firmware"
[ 0.733326] 2 uimage-fw partitions found on MTD device firmware
[ 0.745193] Creating 2 MTD partitions on "firmware":
[ 0.755058] 0x000000000000-0x0000001a2319 : "kernel"
[ 0.764906] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[ 0.783891] 0x0000001a2319-0x000001fb0000 : "rootfs"
[ 0.793833] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[ 0.813470] mtd: setting mtd5 (rootfs) as root device
[ 0.824729] 1 squashfs-split partitions found on MTD device rootfs
[ 0.837121] 0x000001200000-0x000001fb0000 : "rootfs_data"
[ 0.879249] rt3050-esw 10110000.esw: mediatek esw at 0xb0110000, irq 25 initialized
[ 0.895778] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 0.915343] NET: Registered PF_INET6 protocol family
[ 0.932691] Segment Routing with IPv6
[ 0.940157] In-situ OAM (IOAM) with IPv6
[ 0.948159] NET: Registered PF_PACKET protocol family
[ 0.958267] 8021q: 802.1Q VLAN Support v1.8
[ 0.969994] mtk-linkit bootstrap: Version :
[ 0.978724] mtk-linkit bootstrap: Revision :
[ 0.997441] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 1.018587] Freeing unused kernel image (initmem) memory: 1224K
[ 1.030374] This architecture does not have kernel memory protection.
[ 1.043159] Run /sbin/init as init process
[ 1.051285] with arguments:
[ 1.051295] /sbin/init
[ 1.051302] with environment:
[ 1.051311] HOME=/
[ 1.051318] TERM=linux
[ 3.424617] init: Console is alive
[ 3.432228] init: - watchdog -
[ 3.877144] rt3050-esw 10110000.esw: port 0 link up
[ 4.984219] rt3050-esw 10110000.esw: port 1 link up
[ 5.748666] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 6.293267] usbcore: registered new interface driver usbfs
[ 6.304408] usbcore: registered new interface driver hub
[ 6.315193] usbcore: registered new device driver usb
[ 6.336543] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.351941] fsl-ehci: Freescale EHCI Host controller driver
[ 6.366368] ehci-platform: EHCI generic platform driver
[ 6.387497] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[ 6.400813] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[ 6.411178] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 6.422616] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 6.438549] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 6.474813] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 6.488831] hub 1-0:1.0: USB hub found
[ 6.497340] hub 1-0:1.0: 1 port detected
[ 6.514608] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 6.528900] ohci-platform: OHCI generic platform driver
[ 6.540055] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 6.553638] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 6.569556] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 6.650226] hub 2-0:1.0: USB hub found
[ 6.658825] hub 2-0:1.0: 1 port detected
[ 6.719139] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.733785] ttyS ttyS2: 1 input overrun(s)
[ 6.754709] init: - preinit -
[ 7.015708] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 8.385121] random: procd: uninitialized urandom read (4 bytes read)
[ 8.400309] ttyS ttyS2: 4 input overrun(s)
[ 9.925210] random: jshn: uninitialized urandom read (4 bytes read)
[ 9.938290] ttyS ttyS2: 2 input overrun(s)
[ 10.075719] random: jshn: uninitialized urandom read (4 bytes read)
[ 10.158911] random: jshn: uninitialized urandom read (4 bytes read)
[ 11.310104] rt3050-esw 10110000.esw: port 0 link down
[ 11.322669] rt3050-esw 10110000.esw: port 1 link down
[ 14.274685] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 14.297792] urandom-seed: Seeding with /etc/urandom.seed
[ 14.340647] rt3050-esw 10110000.esw: port 0 link up
[ 14.350626] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 15.161157] procd: - early -
[ 15.167504] procd: - watchdog -
[ 16.683974] procd: - watchdog -
[ 16.696311] procd: - ubus -
[ 17.450593] random: ubusd: uninitialized urandom read (4 bytes read)
[ 17.468080] random: ubusd: uninitialized urandom read (4 bytes read)
[ 17.481298] random: ubusd: uninitialized urandom read (4 bytes read)
[ 17.502262] procd: - init -
[ 19.389912] random: jshn: uninitialized urandom read (4 bytes read)
[ 19.417691] random: ubusd: uninitialized urandom read (4 bytes read)
[ 19.430844] random: ubus: uninitialized urandom read (4 bytes read)
[ 21.296763] kmodloader: loading kernel modules from /etc/modules.d/*
[ 22.758146] NET: Registered PF_ALG protocol family
[ 22.821576] tun: Universal TUN/TAP device driver, 1.6
[ 22.865769] gre: GRE over IPv4 demultiplexor driver
[ 22.897203] ip_gre: GRE over IPv4 tunneling driver
[ 23.002954] usbcore: registered new interface driver cdc_wdm
[ 23.074936] Loading modules backported from Linux version v6.6.15-0-g51f354b815c4
[ 23.089824] Backport generated by backports.git 193becf2
[ 23.269569] usbcore: registered new interface driver usbserial_generic
[ 23.282734] usbserial: USB Serial support registered for generic
[ 23.919031] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[ 24.721744] urngd: v1.0.2 started.
[ 24.997059] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[ 25.008918] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[ 25.074833] mt76_wmac 10300000.wmac: firmware init done
[ 25.286441] mt76_wmac 10300000.wmac: registering led 'mt76-phy0'
[ 25.300594] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 25.761389] PPP generic driver version 2.4.2
[ 25.806027] PPP MPPE Compression module registered
[ 25.846306] NET: Registered PF_PPPOX protocol family
[ 25.876604] PPTP driver version 0.8.5
[ 25.915347] qmi_wwan 1-1:1.5: cdc-wdm0: USB WDM device
[ 25.956238] qmi_wwan 1-1:1.5 wwan0: register 'qmi_wwan' at usb-101c0000.ehci-1, WWAN/QMI device, f2:ab:f2:e4:b0:c3
[ 25.977314] usbcore: registered new interface driver qmi_wwan
[ 26.119964] usbcore: registered new interface driver option
[ 26.131287] usbserial: USB Serial support registered for GSM modem (1-port)
[ 26.146085] option 1-1:1.0: GSM modem (1-port) converter detected
[ 26.158702] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 26.173064] option 1-1:1.1: GSM modem (1-port) converter detected
[ 26.185684] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[ 26.200043] option 1-1:1.2: GSM modem (1-port) converter detected
[ 26.212749] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[ 26.227077] option 1-1:1.3: GSM modem (1-port) converter detected
[ 26.239741] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[ 26.254102] option 1-1:1.4: GSM modem (1-port) converter detected
[ 26.266818] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB4
[ 26.919669] usbcore: registered new interface driver qcserial
[ 26.931292] usbserial: USB Serial support registered for Qualcomm USB modem
[ 27.005330] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 29.506463] random: crng init done
[ 29.513228] random: 25 urandom warning(s) missed due to ratelimiting
[ 54.975056] rt3050-esw 10110000.esw: port 0 link down
[ 58.055950] rt3050-esw 10110000.esw: port 0 link up
[ 70.105025] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 70.134986] jffs2_build_filesystem(): unlocking the mtd device...
[ 70.144969] done.
[ 70.161079] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 70.647578] br-lan: port 1(eth0.1) entered blocking state
[ 70.673200] br-lan: port 1(eth0.1) entered disabled state
[ 70.684411] device eth0.1 entered promiscuous mode
[ 70.693978] device eth0 entered promiscuous mode
[ 70.894415] br-lan: port 1(eth0.1) entered blocking state
[ 70.905228] br-lan: port 1(eth0.1) entered forwarding state
[ 71.645453] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 80.325370] br-lan: port 2(phy0-ap0) entered blocking state
[ 80.336544] br-lan: port 2(phy0-ap0) entered disabled state
[ 80.348068] device phy0-ap0 entered promiscuous mode
[ 80.652247] br-lan: port 2(phy0-ap0) entered blocking state
[ 80.663408] br-lan: port 2(phy0-ap0) entered forwarding state
[ 80.676442] br-lan: port 2(phy0-ap0) entered disabled state
[ 80.738795] device phy0-ap0 left promiscuous mode
[ 80.748375] br-lan: port 2(phy0-ap0) entered disabled state
[ 80.874528] br-lan: port 2(phy0-ap0) entered blocking state
[ 80.885707] br-lan: port 2(phy0-ap0) entered disabled state
[ 80.897269] device phy0-ap0 entered promiscuous mode
[ 88.361460] br-lan: port 2(phy0-ap0) entered blocking state
[ 88.372627] br-lan: port 2(phy0-ap0) entered forwarding state
[ 145.536169] done.
[ 145.540037] jffs2: notice: (2046) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 145.762486] overlayfs: upper fs does not support tmpfile.
I suppose eth0.2
is your second port.
1 Like
Eth0.2 is virtual