Odp: TP-Link MR6400 z LTE @ LEDE
Dzięki koledze @marcoos mam okazję "przetestować" MR6400v2.
Już udało mi się uruchomić na nim LEDE, ale nie ma tak "łatwo"
rzeczy które nie działają:
- poprawne wykrywanie modelu routera - wykrywa go jako v1
root@LEDE:~# cat /tmp/sysinfo/*
tl-mr6400-v2
TP-Link TL-MR6400 v1
jak widać board jest jako v2 jednak model jako v1.
Dzieje się to przez to że v2 używa takiego samego hwid jak v1.
- modem nie posiada interfejsu webowego - mimo że mam dostęp do niego za pomocą ADB to nie ma w nim "stronki" do konfiguracji.
- nie mruga dioda power podczas uruchamiania. Po zakończeniu ładowania zapala się i działa jak powinna - tutaj winą jest chyba kontroler GPIO z którego jest podłączona jest dioda power.
root@LEDE:~# cat /sys/kernel/debug/gpio
GPIOs 0-17, platform/ath79-gpio, ath79:
gpio-0 ( |tp-link:white:wan ) out lo
gpio-1 ( |tp-link:white:4g ) out hi
gpio-3 ( |tp-link:white:wps ) out lo
gpio-4 ( |LTE power ) out lo
gpio-11 ( |ath9k-gpio ) out lo
gpio-12 ( |reset ) in hi
gpio-13 ( |ath9k-gpio ) out hi
gpio-14 ( |rfkill ) in hi
gpio-16 ( |ath9k-gpio ) out lo
GPIOs 494-511, platform/qca953x_wmac, ath9k-phy0:
gpio-495 ( |ath9k-phy0 ) in lo
gpio-505 ( |tp-link:white:wlan ) in lo
gpio-507 ( |tp-link:white:power ) in lo
gpio-510 ( |tp-link:white:lan ) out lo
WiFi, LAN, aktualizacja oprogramowania działa jak powinna.
Nie można wgrać LEDE przez firmware producenta.
Wstępny commit:
https://github.com/heinzek/source/commi … d211e16372
bootlog:
U-Boot 1.1.4-g23c7cce0-dirty (Build from LSDK- at Mar 30 2017 - 16:31:48)
ap143 - Honey Bee 2.0
DRAM: 64 MB
Flash Manuf Id 0xc8, DeviceId0 0x40, DeviceId1 0x17
Flash: 8 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
ath_gmac_enet_initialize: reset mask:c02200
Scorpion ---->S27 PHY*
S27 reg init
: cfg1 0x800c0000 cfg2 0x7114
eth0: ba:be:fa:ce:08:41
athrs27_phy_setup ATHR_PHY_CONTROL 0 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0 :10
eth0 up
Honey Bee ----> MAC 1 S27 PHY *
S27 reg init
ATHRS27: resetting s27
ATHRS27: s27 reset done
: cfg1 0x800c0000 cfg2 0x7214
eth1: ba:be:fa:ce:08:41
athrs27_phy_setup ATHR_PHY_CONTROL 1 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1 :10
athrs27_phy_setup ATHR_PHY_CONTROL 2 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2 :10
athrs27_phy_setup ATHR_PHY_CONTROL 3 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3 :10
athrs27_phy_setup ATHR_PHY_CONTROL 4 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4 :10
eth1 up
eth0, eth1
Setting 0x181162c0 to 0x70e1a100
is_auto_upload_firmware=0
Autobooting in 1 seconds
## Booting image at 9f020000 ...
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Linux version 4.4.74 (hyniu@o2.pl) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3994-50fcfd4) ) #0 Tue Jul 25 07:14:05 2017
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] No valid device tree found, continuing without
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: board=TL-MR6400-v2 console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 60100K/65536K available (2993K kernel code, 147K rwdata, 756K rodata, 320K init, 200K bss, 5436K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Clocks: CPU:650.000MHz, DDR:390.966MHz, AHB:216.666MHz, Ref:25.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns
[ 0.000009] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns
[ 0.008237] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688)
[ 0.071105] pid_max: default: 32768 minimum: 301
[ 0.076104] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.083086] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.093417] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.103839] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.111055] NET: Registered protocol family 16
[ 0.117368] MIPS: machine is TP-LINK TL-MR6400 v2
[ 0.573481] clocksource: Switched to clocksource MIPS
[ 0.580207] NET: Registered protocol family 2
[ 0.585688] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.593055] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.599826] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.606648] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.612818] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.619785] NET: Registered protocol family 1
[ 0.629082] Crashlog allocated RAM at address 0x3f00000
[ 0.649268] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.655495] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.668649] io scheduler noop registered
[ 0.672799] io scheduler deadline registered (default)
[ 0.678577] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.685780] console [ttyS0] disabled
[ 0.709702] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[ 0.718811] console [ttyS0] enabled
[ 0.718811] console [ttyS0] enabled
[ 0.726374] bootconsole [early0] disabled
[ 0.726374] bootconsole [early0] disabled
[ 0.738482] m25p80 spi0.0: found gd25q64, expected w25q64
[ 0.744158] m25p80 spi0.0: gd25q64 (8192 Kbytes)
[ 0.750314] 5 tp-link partitions found on MTD device spi0.0
[ 0.756120] Creating 5 MTD partitions on "spi0.0":
[ 0.761073] 0x000000000000-0x000000020000 : "u-boot"
[ 0.767774] 0x000000020000-0x000000162074 : "kernel"
[ 0.774719] 0x000000162074-0x0000007f0000 : "rootfs"
[ 0.781557] mtd: device 2 (rootfs) set to be root filesystem
[ 0.787531] 1 squashfs-split partitions found on MTD device rootfs
[ 0.793933] 0x0000003e0000-0x0000007f0000 : "rootfs_data"
[ 0.801237] 0x0000007f0000-0x000000800000 : "art"
[ 0.807917] 0x000000020000-0x0000007f0000 : "firmware"
[ 0.839073] libphy: ag71xx_mdio: probed
[ 1.426046] ag71xx-mdio.1: Found an AR934X built-in switch
[ 1.469367] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[ 2.066424] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:00 [uid=004dd042, driver=Generic PHY]
[ 2.076623] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[ 2.085177] NET: Registered protocol family 10
[ 2.094476] NET: Registered protocol family 17
[ 2.099165] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 2.112383] 8021q: 802.1Q VLAN Support v1.8
[ 2.125413] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 2.134983] Freeing unused kernel memory: 320K (80430000 - 80480000)
[ 3.111264] init: Console is alive
[ 3.115123] init: - watchdog -
[ 4.147282] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.227893] usbcore: registered new interface driver usbfs
[ 4.233745] usbcore: registered new interface driver hub
[ 4.239345] usbcore: registered new device driver usb
[ 4.251841] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.261043] ehci-platform: EHCI generic platform driver
[ 4.266631] ehci-platform ehci-platform: EHCI Host Controller
[ 4.272608] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 4.282924] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 4.303516] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[ 4.310935] hub 1-0:1.0: USB hub found
[ 4.315258] hub 1-0:1.0: 1 port detected
[ 4.321263] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.331339] init: - preinit -
[ 4.733566] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 4.791861] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 7.942644] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 7.969091] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 8.090300] procd: - early -
[ 8.093401] procd: - watchdog -
[ 8.750348] procd: - watchdog -
[ 8.754018] procd: - ubus -
[ 8.991736] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 9.001581] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 9.011035] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 9.020614] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 9.030010] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 9.039507] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 9.049053] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[ 9.058807] procd: - init -
Please press Enter to activate this console.
[ 9.361658] kmodloader: loading kernel modules from /etc/modules.d/*
[ 9.373690] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 9.392683] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[ 9.401028] Backport generated by backports.git backports-20160324-13-g24da7d3c
[ 9.412044] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.426819] nf_conntrack version 0.5.0 (944 buckets, 3776 max)
[ 9.477134] usbcore: registered new interface driver usbserial
[ 9.483261] usbcore: registered new interface driver usbserial_generic
[ 9.490198] usbserial: USB Serial support registered for generic
[ 9.516657] xt_time: kernel timezone is -0000
[ 9.523433] usbcore: registered new interface driver cdc_ether
[ 9.596540] PPP generic driver version 2.4.2
[ 9.603924] NET: Registered protocol family 24
[ 9.611134] usbcore: registered new interface driver rndis_host
[ 9.648314] usbcore: registered new interface driver option
[ 9.654268] usbserial: USB Serial support registered for GSM modem (1-port)
[ 9.705288] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0xb8100000, irq=47
[ 9.804441] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 10.463560] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 10.641805] rndis_host 1-1:1.0 usb0: register 'rndis_host' at usb-ehci-platform-1, RNDIS device, ca:c6:04:e0:2e:13
[ 11.017540] random: jshn: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[ 11.082801] random: jshn: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[ 11.238742] random: jshn: uninitialized urandom read (4 bytes read, 21 bits of entropy available)
[ 16.238542] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 16.263640] jffs2_build_filesystem(): unlocking the mtd device... done.
[ 16.270499] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 20.194290] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 20.231023] device eth0.1 entered promiscuous mode
[ 20.236067] device eth0 entered promiscuous mode
[ 20.311286] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 20.405574] device eth1 entered promiscuous mode
[ 20.410443] br-lan: port 2(eth1) entered forwarding state
[ 20.416124] br-lan: port 2(eth1) entered forwarding state
[ 20.421882] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 21.143865] br-lan: port 2(eth1) entered disabled state
[ 39.697239] done.
[ 39.699285] jffs2: notice: (910) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 71.953527] random: nonblocking pool is initialized
BusyBox v1.26.2 () built-in shell (ash)
_________
/ /\ _ ___ ___ ___
/ LE / \ | | | __| \| __|
/ DE / \ | |__| _|| |) | _|
/________/ LE \ |____|___|___/|___| lede-project.org
\ \ DE /
\ LE \ / -----------------------------------------------------------
\ DE \ / Reboot (SNAPSHOT, r4623-3586823)
\________\/ -----------------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@LEDE:/#