New device TP-Link MR6400 V7

Hello,

i use many V5 Devices and our new batch are V7. I opened them and flashed the V5 Firmware.

I dont know how to submit new device informations to openwrt, so i use this board.

i found the folowing:

  • the device boots to openwrt, uart bootlog available
  • the onboard flash could be another (25QH128CHIQ)
  • the LED GPIOs are changed
  • the ethernet port mapping are changed


Post it ?
Use the </> button when you do.

Split into several posts

Save it to pastebin.com and post the link.

I'll be interested to see the output of cat /sys/kernel/debug/usb/devices

Sorry, i accidentialy flashed the V4 over the V7, after i flashed the V5, the LED mapping seems OK. try to investigage differences between V5 and V7. Logs attached.

root@OpenWrt:~# dmesg
[    0.000000] Linux version 5.15.167 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24106-10cc5fcd00) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Mon Sep 23 12:34:46 2024
[    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 MT7628AN ver:1 eco:2
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is TP-Link TL-MR6400 v5
[    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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    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: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=0001dbf0
[    0.000000] Readback ErrCtl register=0001dbf0
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 120932K/131072K available (5982K kernel code, 611K rwdata, 748K rodata, 1224K init, 217K bss, 10140K 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.007635] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073550] pid_max: default: 32768 minimum: 301
[    0.079119] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.086141] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.102380] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.111927] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.118680] pinctrl core: initialized pinctrl subsystem
[    0.125835] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.132173] thermal_sys: Registered thermal governor 'step_wise'
[    0.149361] clocksource: Switched to clocksource MIPS
[    0.161790] NET: Registered PF_INET protocol family
[    0.166712] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.174885] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.183117] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.190561] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.197956] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.204767] TCP: Hash tables configured (established 1024 bind 1024)
[    0.211088] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.217387] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.224656] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.230190] PCI: CLS 0 bytes, default 32
[    0.238821] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.252111] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.257711] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.269151] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.279739] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.285417] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.291187] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.297192] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.306647] printk: console [ttyS0] disabled
[    0.310902] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.319646] printk: console [ttyS0] enabled
[    0.328036] printk: bootconsole [early0] disabled
[    0.339553] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.370106] spi-nor spi0.0: XM25QH128C (16384 Kbytes)
[    0.375327] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.381863] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.389315] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.397155] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.404665] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.412581] Creating 4 MTD partitions on "spi0.0":
[    0.417466] 0x000000000000-0x000000020000 : "boot"
[    0.426708] 0x000000020000-0x0000007c0000 : "firmware"
[    0.433941] 2 tplink-fw partitions found on MTD device firmware
[    0.440067] Creating 2 MTD partitions on "firmware":
[    0.445112] 0x000000000000-0x000000235469 : "kernel"
[    0.450161] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.461905] 0x00000023546c-0x0000007a0000 : "rootfs"
[    0.466979] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.477674] mtd: setting mtd3 (rootfs) as root device
[    0.484093] 1 squashfs-split partitions found on MTD device rootfs
[    0.490477] 0x0000005d0000-0x0000007a0000 : "rootfs_data"
[    0.497338] 0x0000007c0000-0x0000007d0000 : "config"
[    0.505774] 0x0000007d0000-0x000000800000 : "factory"
[    0.544254] rt3050-esw 10110000.esw: mediatek esw at 0xb0110000, irq 25 initialized
[    0.552427] mtk_soc_eth 10100000.ethernet: generated random MAC address 1e:55:cb:00:49:5b
[    0.561567] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.572507] NET: Registered PF_INET6 protocol family
[    0.585235] Segment Routing with IPv6
[    0.589094] In-situ OAM (IOAM) with IPv6
[    0.593327] NET: Registered PF_PACKET protocol family
[    0.598633] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.612193] 8021q: 802.1Q VLAN Support v1.8
[    0.618641] clk: Disabling unused clocks
[    0.638112] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    0.652074] Freeing unused kernel image (initmem) memory: 1224K
[    0.658094] This architecture does not have kernel memory protection.
[    0.664675] Run /sbin/init as init process
[    0.668826]   with arguments:
[    0.668832]     /sbin/init
[    0.668838]   with environment:
[    0.668843]     HOME=/
[    0.668850]     TERM=linux
[    1.597069] init: Console is alive
[    1.601367] init: - watchdog -
[    3.191927] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.291419] usbcore: registered new interface driver usbfs
[    3.297125] usbcore: registered new interface driver hub
[    3.302685] usbcore: registered new device driver usb
[    3.316498] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.327373] fsl-ehci: Freescale EHCI Host controller driver
[    3.335265] ehci-platform: EHCI generic platform driver
[    3.351200] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    3.358028] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    3.363338] ehci-platform 101c0000.ehci: EHCI Host Controller
[    3.369199] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    3.377409] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    3.409379] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    3.416989] hub 1-0:1.0: USB hub found
[    3.421832] hub 1-0:1.0: 1 port detected
[    3.434429] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.442448] ohci-platform: OHCI generic platform driver
[    3.448252] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    3.455281] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    3.463557] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    3.544547] hub 2-0:1.0: USB hub found
[    3.549434] hub 2-0:1.0: 1 port detected
[    3.565257] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.574383] init: - preinit -
[    5.232448] random: jshn: uninitialized urandom read (4 bytes read)
[    5.426109] random: jshn: uninitialized urandom read (4 bytes read)
[    5.600672] random: jshn: uninitialized urandom read (4 bytes read)
[    6.041078] rt3050-esw 10110000.esw: port 2 link up
[    6.090178] rt3050-esw 10110000.esw: port 2 link down
[    6.308438] random: procd: uninitialized urandom read (4 bytes read)
[    6.979360] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    8.612626] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    8.630631] urandom-seed: Seed file not found (/etc/urandom.seed)
[    8.772614] procd: - early -
[    8.775982] procd: - watchdog -
[    9.646675] procd: - watchdog -
[    9.650777] procd: - ubus -
[    9.844306] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.854431] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.861668] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.878702] procd: - init -
[   10.978069] random: jshn: uninitialized urandom read (4 bytes read)
[   11.077180] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.119591] random: ubus: uninitialized urandom read (4 bytes read)
[   11.380969] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.604332] rt3050-esw 10110000.esw: port 2 link up
[   12.004834] usbcore: registered new interface driver cdc_wdm
[   12.030255] Loading modules backported from Linux version v6.1.110-0-g5f55cad62cc9d
[   12.038054] Backport generated by backports.git v6.1.110-1-0-g965f73fc
[   12.112987] usbcore: registered new interface driver usbserial_generic
[   12.119822] usbserial: USB Serial support registered for generic
[   12.654223] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   12.679448] mt76_wmac 10300000.wmac: Invalid MAC address, using random address fa:1c:6b:06:b4:63
[   12.701768] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   12.707809] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   12.749388] mt76_wmac 10300000.wmac: firmware init done
[   12.912798] mt76_wmac 10300000.wmac: registering led 'mt76-phy0'
[   12.921150] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.163086] PPP generic driver version 2.4.2
[   13.190528] NET: Registered PF_PPPOX protocol family
[   13.219876] qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device
[   13.230922] qmi_wwan 1-1:1.4 wwan0: register 'qmi_wwan' at usb-101c0000.ehci-1, WWAN/QMI device, 6a:36:49:15:12:c9
[   13.241812] usbcore: registered new interface driver qmi_wwan
[   13.396554] usbcore: registered new interface driver option
[   13.402429] usbserial: USB Serial support registered for GSM modem (1-port)
[   13.410008] option 1-1:1.0: GSM modem (1-port) converter detected
[   13.416613] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   13.423983] option 1-1:1.1: GSM modem (1-port) converter detected
[   13.430651] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[   13.437970] option 1-1:1.2: GSM modem (1-port) converter detected
[   13.444650] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[   13.451990] option 1-1:1.3: GSM modem (1-port) converter detected
[   13.458569] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[   13.602913] kmodloader: done loading kernel modules from /etc/modules.d/*
[   16.490020] urngd: v1.0.2 started.
[   20.404786] random: crng init done
[   20.408270] random: 31 urandom warning(s) missed due to ratelimiting
[   70.900380] rt3050-esw 10110000.esw: port 2 link down
[   76.409435] rt3050-esw 10110000.esw: port 2 link up
[   79.821918] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   79.828940] jffs2_build_filesystem(): unlocking the mtd device... 
[   79.828948] done.
[   79.837224] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   82.044276] br-lan: port 1(eth0.1) entered blocking state
[   82.057463] br-lan: port 1(eth0.1) entered disabled state
[   82.063366] device eth0.1 entered promiscuous mode
[   82.068245] device eth0 entered promiscuous mode
[   82.160929] br-lan: port 1(eth0.1) entered blocking state
[   82.166450] br-lan: port 1(eth0.1) entered forwarding state
[   83.059911] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   91.568504] done.
[   91.570586] jffs2: notice: (1916) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   92.043927] overlayfs: upper fs does not support tmpfile.
[  222.291100] rt3050-esw 10110000.esw: port 2 link down
[  222.297081] br-lan: port 1(eth0.1) entered disabled state
[  225.796054] rt3050-esw 10110000.esw: port 3 link up
[  225.801536] br-lan: port 1(eth0.1) entered blocking state
[  225.807037] br-lan: port 1(eth0.1) entered forwarding state
[  231.773983] rt3050-esw 10110000.esw: port 3 link down
[  231.780005] br-lan: port 1(eth0.1) entered disabled state
[  234.929623] rt3050-esw 10110000.esw: port 1 link up
[  234.935091] br-lan: port 1(eth0.1) entered blocking state
[  234.940633] br-lan: port 1(eth0.1) entered forwarding state
[  246.730715] rt3050-esw 10110000.esw: port 1 link down
[  246.736690] br-lan: port 1(eth0.1) entered disabled state
[  248.325723] rt3050-esw 10110000.esw: port 0 link up
[  248.331267] br-lan: port 1(eth0.1) entered blocking state
[  248.336767] br-lan: port 1(eth0.1) entered forwarding state
root@OpenWrt:~# cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.15
S:  Manufacturer=Linux 5.15.167 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=101c0000.ehci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2c7c ProdID=0125 Rev= 3.18
S:  Manufacturer=Quectel
S:  Product=EC25-EUC
S:  SerialNumber=0123456789ABCDEF
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=83(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=85(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=87(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E:  Ad=89(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12   MxCh= 1
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 5.15
S:  Manufacturer=Linux 5.15.167 ohci_hcd
S:  Product=Generic Platform OHCI controller
S:  SerialNumber=101c1000.ohci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

found on V7:
spi-nor spi0.0: XM25QH128C (16384 Kbytes)
128mb RAM

instead of V5:
spi-nor spi0.0: s25fl064k (8192 Kbytes)
64MB RAM

can anyone of the developers add the device to the openwrt source and the wiki ?

Knock yourself out...

https://openwrt.org/docs/guide-developer/adding_new_device
https://openwrt.org/docs/guide-developer/add.new.device