Temat: TP-Link EAP120
Witam. Jestem w trakcie dorabiana LEDE na tego AP.
Ogólnie obraz działa tylko bez najważniejszego. Nie wykrywa kabla w porcie lan.
Bootlog:
TP-LINK SafeLoader (Build time: Jul 28 2014 - 15:11:53)
CPU: 560MHz AHB: 440MHz DDR: 64MB
Performing LED check. PASS
Press CTRL+B to enter SafeLoader: 1
>>>>>> malloc failed! 2-0x12000
>>>>>> malloc failed! 2-0x12000
open user-config failed.
>>>>>> malloc failed! 2-0x12000
open user-config failed.
Allocated memory for elf segment ok: addr: 0x80060000, size 0x140535
Loading .text @ 0x80060000 (1312053 bytes)
Starting kernel
OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80060000...
[ 0.000000] Linux version 4.4.19 (hyniu@o2.pl) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1519) ) #0 Thu Sep 8 13:28:39 2016
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] SoC: Atheros AR9344 rev 2
[ 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=EAP120 mtdparts=spi0.0:128k(u-boot)ro,64k(pation-table)ro,64k(product-info)ro,1536k(kernel),14336k(rootfs),192k(config)ro,64k(ART)ro,15872k@0x40000(firmware) 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: 60164K/65536K available (2957K kernel code, 155K rwdata, 748K rodata, 292K init, 200K bss, 5372K 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:560.000MHz, DDR:450.000MHz, AHB:225.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[ 0.000009] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[ 0.009049] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[ 0.082155] pid_max: default: 32768 minimum: 301
[ 0.087642] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.095335] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.106309] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.118490] NET: Registered protocol family 16
[ 0.125133] MIPS: machine is TP-LINK EAP120
[ 0.362256] clocksource: Switched to clocksource MIPS
[ 0.369528] NET: Registered protocol family 2
[ 0.375459] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.383612] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.391001] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.398481] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.405309] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.412919] NET: Registered protocol family 1
[ 0.422488] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.429662] Crashlog allocated RAM at address 0x3f00000
[ 0.449872] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.456717] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.470909] io scheduler noop registered
[ 0.475527] io scheduler deadline registered (default)
[ 0.481690] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.489562] console [ttyS0] disabled
[ 0.513819] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.523848] console [ttyS0] enabled
[ 0.523848] console [ttyS0] enabled
[ 0.531261] bootconsole [early0] disabled
[ 0.531261] bootconsole [early0] disabled
[ 0.543073] m25p80 spi0.0: found s25fl128s, expected m25p80
[ 0.548747] m25p80 spi0.0: s25fl128s (16384 Kbytes)
[ 0.553783] 8 cmdlinepart partitions found on MTD device spi0.0
[ 0.559782] Creating 8 MTD partitions on "spi0.0":
[ 0.564668] 0x000000000000-0x000000020000 : "u-boot"
[ 0.572047] 0x000000020000-0x000000030000 : "pation-table"
[ 0.579416] 0x000000030000-0x000000040000 : "product-info"
[ 0.586783] 0x000000040000-0x0000001c0000 : "kernel"
[ 0.593595] 0x0000001c0000-0x000000fc0000 : "rootfs"
[ 0.600336] mtd: device 4 (rootfs) set to be root filesystem
[ 0.606213] 1 squashfs-split partitions found on MTD device rootfs
[ 0.612508] 0x000000390000-0x000000fc0000 : "rootfs_data"
[ 0.619746] 0x000000fc0000-0x000000ff0000 : "config"
[ 0.626569] 0x000000ff0000-0x000001000000 : "ART"
[ 0.633133] 0x000000040000-0x000000fc0000 : "firmware"
[ 0.655791] libphy: ag71xx_mdio: probed
[ 1.244025] ag71xx-mdio.1: Found an AR934X built-in switch
[ 1.286443] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[ 1.294784] NET: Registered protocol family 10
[ 1.303409] NET: Registered protocol family 17
[ 1.308001] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.320972] 8021q: 802.1Q VLAN Support v1.8
[ 1.333130] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 1.342010] Freeing unused kernel memory: 292K (80427000 - 80470000)
[ 2.493219] init: Console is alive
[ 2.496911] init: - watchdog -
[ 3.414757] init: - preinit -
[ 3.967511] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 4.002953] random: procd: uninitialized urandom read (4 bytes read, 6 bits of entropy available)
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.329823] jffs2: notice: (351) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 7.347157] mount_root: switching to jffs2 overlay
[ 7.361364] urandom-seed: Seeding with /etc/urandom.seed
[ 7.568106] procd: - early -
[ 7.571153] procd: - watchdog -
[ 8.201010] procd: - ubus -
[ 8.255465] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 8.265113] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 8.274376] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 8.283948] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 8.293192] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 8.303511] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 8.312963] random: ubusd: uninitialized urandom read (4 bytes read, 13 bits of entropy available)
[ 8.322586] procd: - init -
Please press Enter to activate this console.
[ 8.648810] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 8.667987] Loading modules backported from Linux version wt-2016-06-20-0-gbc17424
[ 8.675725] Backport generated by backports.git backports-20160216-7-g5735958
[ 8.686222] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 8.701932] nf_conntrack version 0.5.0 (944 buckets, 3776 max)
[ 8.746913] xt_time: kernel timezone is -0000
[ 8.815248] PPP generic driver version 2.4.2
[ 8.822390] NET: Registered protocol family 24
[ 8.893359] ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=47
[ 10.780821] random: jshn: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[ 10.875020] random: ubusd: uninitialized urandom read (4 bytes read, 17 bits of entropy available)
[ 16.499974] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 16.534822] device eth0.1 entered promiscuous mode
[ 16.539696] device eth0 entered promiscuous mode
[ 16.554805] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 16.608134] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
BusyBox v1.24.2 () built-in shell (ash)
_________
/ /\ _ ___ ___ ___
/ LE / \ | | | __| \| __|
/ DE / \ | |__| _|| |) | _|
/________/ LE \ |____|___|___/|___| lede-project.org
\ \ DE /
\ LE \ / -----------------------------------------------------------
\ DE \ / Reboot (HEAD, r1535)
\________\/ -----------------------------------------------------------
-----------------------------------------------------------------------------
| Machine: TP-Link EAP120 v1.0, Name: lede |
| System uptime: 00:00:46, Now: 2016-09-08 13:30:23 |
| System load: 0.18, 0.06, 0.02 |
| RootFS: total: 12.2MB, used: 468KB, 3.8%, free: 11.7MB |
| Memory: total: 59.0MB, used: 10.2MB, 17.3%, free: 48.8MB |
| LAN: 192.168.1.1/24(br-lan) |
| DHCP: 192.168.1.100-249, dhcp.leases: 0 |
-----------------------------------------------------------------------------
root@lede:/# [ 78.522289] random: nonblocking pool is initialized
root@lede:/# swconfig dev switch0 show
Global attributes:
enable_vlan: 1
Port 0:
pvid: 0
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
pvid: 0
link: port:1 link:down
Port 2:
pvid: 0
link: port:2 link:down
Port 3:
pvid: 0
link: port:3 link:down
Port 4:
pvid: 2
link: port:4 link:down
Port 5:
pvid: 1
link: port:5 link:down
VLAN 0:
vid: 0
ports: 0t 1 2 3
VLAN 1:
vid: 1
ports: 0t 5
VLAN 2:
vid: 2
ports: 0t 4
root@lede:/# ifconfig -a
br-lan Link encap:Ethernet HWaddr 14:CC:20:2D:57:91
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fde4:1b1d:3449::1/60 Scope:Global
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 14:CC:20:2D:57:91
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:5
eth0.1 Link encap:Ethernet HWaddr 14:CC:20:2D:57:91
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0.2 Link encap:Ethernet HWaddr 14:CC:20:2D:57:91
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:8376 (8.1 KiB) TX bytes:8376 (8.1 KiB)
wlan0 Link encap:Ethernet HWaddr 14:CC:20:2D:57:91
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@lede:/#sorki za sysinfo, ale mi się podobało.
obojętnie czy ustawię vlany czy nie w swconfig zawsze inne porty niż 0 są down.
Na komputerze pokazuje że kabel podłączony, ale nie ma żadnego ruchu.
To co na razie zmieniłem: https://github.com/heinzek/eap120/commi … db9114a9c7
Bazowałem głównie na CPE510:
https://wiki.openwrt.org/toh/tp-link/tl-cpe510
https://wiki.openwrt.org/toh/tp-link/tl-cpe210
Gdzie szukać przyczyny? Bo wydaje mi się że switch nie ma połączenia z SoC.
Z działających rzeczy to WiFi, MAC, ledy, przycisk, sysupgrade, wgranie przez oficjalne firmware (ale tylko w wersji UN, dla EU i US firmware ma podpis RSA i sprawdza go przed aktualizacją)
