Skip to content

ath79: Add support for CPE210 v1, CPE510v1, CPE220 v2#2252

Closed
adschm wants to merge 8 commits intoopenwrt:masterfrom
adschm:cpev1p3
Closed

ath79: Add support for CPE210 v1, CPE510v1, CPE220 v2#2252
adschm wants to merge 8 commits intoopenwrt:masterfrom
adschm:cpev1p3

Conversation

@adschm
Copy link
Copy Markdown
Member

@adschm adschm commented Jul 18, 2019

This adds support for CPE210 v1, CPE510v1, CPE220v2 after some preparations (tplink-safeloader partition adjustments and DTSI reorganization).

This is tested and ready for merge.

The device boots and has working WiFi, but for ethernet I need help with the correct setup.
Note that this is a two-port device compared to most of the other CPExxx devices which are one-port (CPE210 v2+, CPE510 v2+, CPE610v1).

There has already been a discussion for the very similar CPE510 v1 in #1704, but work on it stopped in-between so I fail to draw helpful conclusions on the correct setup.
Ethernet is working now (thanks to 981213)

Side-note:
I have checked tplink-safeloader with automatic partition splitting (tplink-safeloader and tplink,firmware) as well as uimage (tplink-safeloader-uimage and denx,uimage) without success as already reported on the other CPE devices with ar9344.

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Jul 18, 2019

@apcameron Can you check the shared DTSI on your CPE510/610? Should be sufficient if you only pick patch no. 2. (However, note that I have not even build-tested yet).

@p-wassi @apcameron @981213
May you aid on what I have to do to set up ethernet on this device?

@981213
Copy link
Copy Markdown
Member

981213 commented Jul 18, 2019

@adrianschmutzler You could try to copy ethernet setup from Qihoo C301.

@981213
Copy link
Copy Markdown
Member

981213 commented Jul 18, 2019

A correct result should be that one port is on builtin switch and the other one is eth1.
If copying dts from C301 makes two ethernet ports become port 1 and port 4 on builtin switch, you'd need the follwing instead:

&eth1 {
	status = "okay";
	gmac-config {
		device = <&gmac>;
		switch-phy-swap = <0>;
		switch-only-mode = <1>;
	};
};

&eth0 {
	status = "okay";
	phy-handle = <&swphy4>;
};

Copy link
Copy Markdown
Member

@blocktrron blocktrron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the mtdsplit: This is currently not working as the kernel is prepended by the LZMA loader.

We might however be able to either add a kernel-offset property for this case or even detect this circumstance automatically. I will look into this later.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status property should be safe to drop. The GPIO controller has it's status not set to disabled in the inherited dtsi.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, will do it with the next update.

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Jul 18, 2019

@blocktrron Note that mtdsplit IS working on CPE210 v2/v3 (qca9533).

I own both CPE210 v1 and v2, so I would be able to run tests if required (I however have no serial access).

@blocktrron
Copy link
Copy Markdown
Member

@adrianschmutzler Both the CPE210v2 and CPE210v3 don't use the LZMA loader prepended to the kernel image, so the mtdsplit driver can read proper offsets from the first header.

@dedeckeh dedeckeh added the build/scripts/tools pull request/issues for build, scripts and tools related changes label Jul 18, 2019
@apcameron
Copy link
Copy Markdown
Contributor

apcameron commented Jul 18, 2019

@adrianschmutzler @robimarko is also looking at the TP-LINK CPE210 V1 and I believe has it working on the ath79 branch so you may want to work with him on this. As far as your changes for the TP-LINK CPE610 v1 and CPE510 V2/V3 I can try to test a build within the next week or so time permitting.
Note:- the TP-LINK CPE210 V1.1 AND TP-LINK CPE220 V2 are almost identical to the TP-LINK CPE210 V1 and so the code to include them should be trivial. I have the TP-LINK CPE220 V2 working on the ar71xx branch see the trivial change I made at https://github.com/aredn/aredn_ar71xx/blob/develop/patches/001-add_support_for_TP-Link_CPE220_v2.patch

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Jul 18, 2019

Thanks @981213 , ethernet ports are working now (switch-phy-swap = <0> is required).

However, I have some remaining issues:

  • lan1 LED (eth0) is enabled and blinking after boot (if nothing connected)
  • Sometimes, (dis)connecting LAN-Port on PoE-Adapter (device: eth1) leads to reboot of the device

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Jul 18, 2019

@apcameron So the CPE220 V2 is identical to the CPE210 V1?

@apcameron
Copy link
Copy Markdown
Contributor

@adrianschmutzler it appears to be almost identical. I do not have one but I helped someone in New Zealand get it working. Note The CPE210 V1.1 and CPE220 V2 sometimes have a problem being recovered and what I discovered is it looks for vmlinuz when recovering and this is what I did
I compiled a RAM Version of the software which we renamed to vmlinuz and placed it in the tftp folder and it booted right up. See
https://community.tp-link.com/en/business/forum/topic/150131?page=1

We were then able to use scp to upload a full version of the software and use sysupgrade -F -v -n /tmp/filename.bin to reflash it.

The T-LINK CPE220 V3 which I am working on is similar to the CPE210 V2 but with 2 ethernet ports.

@981213 981213 added target/ath79 pull request/issue for ath79 target and removed build/scripts/tools pull request/issues for build, scripts and tools related changes labels Jul 19, 2019
@981213
Copy link
Copy Markdown
Member

981213 commented Jul 19, 2019

lan1 LED (eth0) is enabled and blinking after boot (if nothing connected)

This is expected. eth0 connects to port 0 of builtin switch so it's always link up. You can use swconfig trigger on switch port 4 instead.

Sometimes, (dis)connecting LAN-Port on PoE-Adapter (device: eth1) leads to reboot of the device

No idea about this one :(

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Jul 19, 2019

@apcameron

it appears to be almost identical. I do not have one but I helped someone in New Zealand get it working.

If I add it here (which looks trivial), can you have the 220v2 tested?
220 is the 210 with removable antennas?

The CPE210 V1.1 and CPE220 V2 sometimes have a problem being recovered

I know :-( They seem to ship different bootloaders (or whatever). I bricked the first lended CPE210 I received and then had to remove the chip and reflash it to get it working again. TFTP recovery never worked on this one. (I did not try vmlinuz)
I then acquired another CPE210 and with this one TFTP just works without any issues. Both are V1.1.

@adschm adschm force-pushed the cpev1p3 branch 3 times, most recently from ee7a772 to f7e2f42 Compare July 19, 2019 12:59
@adschm
Copy link
Copy Markdown
Member Author

adschm commented Jul 19, 2019

This is expected. eth0 connects to port 0 of builtin switch so it's always link up. You can use swconfig trigger on switch port 4 instead.

Works fine now (just pushed the final state), network config seems to be set up correctly now. Is there any kind of objective guideline which port should be WAN and which LAN by default?

I still have the reboot-problem. (Switched power adapter and cable to be sure.)

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Jul 19, 2019

I have added support for CPE510 v1 on top. The corresponding #1704 has not seen updates since January, and adding the device here is trivial.
However, I do not own this device, so someone else would have to test it (otherwise the commit can be removed on merge).
@p-wassi Maybe you want to test this one...

Considering CPE210v1 and CPE510v1, DTSes have considerable amount of shared code. I'm undecided on whether I should create another cpexxx-v1.dtsi for those (will be a lot of nesting then ...)

@apcameron
Copy link
Copy Markdown
Contributor

@adrianschmutzler If I remember from comments by @ynezz in an earlier PR #1748 for the CPE610-v1 all references to
lan0 or LAN0 should be replaced by lan and LAN

As far as testing the CPE220 V2 I will include you in a e-mail to the person who tested it for me in the past.

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Jul 19, 2019

Hmm, if I do not (un)plug cables, it does not reboot.
dmesg looks normal (eth0/eth1 are also swapped here):

root@OpenWrt:~# dmesg
[    0.000000] Linux version 4.19.56 (adsc@buildfff) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10451-653e05d27f)) #0 Mon Jul 8 15:01:54 2019
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is TP-LINK CPE210 v1
[    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] 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] 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] On node 0 totalpages: 16384
[    0.000000]   Normal zone: 144 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a4 with crng_init=0
[    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: 16240
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    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: 57512K/65536K available (4305K kernel code, 174K rwdata, 1016K rodata, 1216K init, 207K bss, 8024K 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] CPU clock: 560.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[    0.000011] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[    0.009078] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.086307] pid_max: default: 32768 minimum: 301
[    0.091925] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.099625] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.113612] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.125093] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.132348] pinctrl core: initialized pinctrl subsystem
[    0.139641] NET: Registered protocol family 16
[    0.152154] GPIO line 18 (tp-link:ext:lna0) hogged as output/high
[    0.159303] GPIO line 19 (tp-link:ext:lna1) hogged as output/high
[    0.196317] clocksource: Switched to clocksource MIPS
[    0.203684] NET: Registered protocol family 2
[    0.209825] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.218858] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.226991] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.234388] TCP: Hash tables configured (established 1024 bind 1024)
[    0.241947] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.248811] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.256558] NET: Registered protocol family 1
[    0.261653] PCI: CLS 0 bytes, default 32
[    0.265887] Crashlog allocated RAM at address 0x3f00000
[    0.273812] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.289544] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.296377] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.324617] io scheduler noop registered
[    0.329250] io scheduler deadline registered (default)
[    0.337735] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.345574] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.353891] console [ttyS0] disabled
[    0.358153] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 2500000) is a 16550A
[    0.368197] console [ttyS0] enabled
[    0.375611] bootconsole [early0] disabled
[    0.403804] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    0.408772] 6 fixed-partitions partitions found on MTD device spi0.0
[    0.415220] Creating 6 MTD partitions on "spi0.0":
[    0.420119] 0x000000000000-0x000000020000 : "u-boot"
[    0.426192] 0x000000020000-0x000000030000 : "partition-table"
[    0.433135] 0x000000030000-0x000000040000 : "info"
[    0.439051] 0x000000040000-0x0000007c0000 : "firmware"
[    0.445203] 2 fixed-partitions partitions found on MTD device firmware
[    0.451899] Creating 2 MTD partitions on "firmware":
[    0.456964] 0x000000000000-0x000000200000 : "kernel"
[    0.462980] 0x000000200000-0x000000780000 : "rootfs"
[    0.469010] mtd: device 5 (rootfs) set to be root filesystem
[    0.480081] 1 squashfs-split partitions found on MTD device rootfs
[    0.486437] 0x000000480000-0x000000780000 : "rootfs_data"
[    0.492922] 0x0000007c0000-0x0000007f0000 : "config"
[    0.498998] 0x0000007f0000-0x000000800000 : "art"
[    0.506080] libphy: Fixed MDIO Bus: probed
[    0.867419] ag71xx 19000000.eth: Could not connect to PHY device. Deferring probe.
[    1.546753] libphy: ag71xx_mdio: probed
[    1.551852] libphy: ar8xxx-mdio: probed
[    1.563080] switch0: Atheros AR8229 rev. 1 switch registered on mdio-bus.0
[    1.615389] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.625323] eth0: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[    1.633543] GACT probability on
[    1.636816] u32 classifier
[    1.639562]     input device check on
[    1.643274]     Actions configured
[    1.648062] NET: Registered protocol family 10
[    1.659953] Segment Routing with IPv6
[    1.663819] NET: Registered protocol family 17
[    1.668497] 8021q: 802.1Q VLAN Support v1.8
[    2.008311] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:1f:04 [uid=004dd042, driver=Generic PHY]
[    2.019071] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode: mii
[    2.035774] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    2.051533] Freeing unused kernel memory: 1216K
[    2.056129] This architecture does not have kernel memory protection.
[    2.062698] Run /sbin/init as init process
[    2.546331] random: fast init done

@apcameron
Copy link
Copy Markdown
Contributor

@adrianschmutzler if you check you e-mail you will see you now have a Tester for the TP-LINK CPE220 V2.
You may have to build the image for him and send it via google drive as that I how I did it in the past

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Jul 19, 2019

Looks like something is triggering the reboot:

Sat Jul 20 01:00:55 2019 daemon.info procd: - shutdown -
Sat Jul 20 01:00:56 2019 authpriv.info dropbear[903]: Early exit: Terminated by signal
Sat Jul 20 01:00:56 2019 authpriv.info dropbear[2459]: Exit (root): Terminated by signal
Sat Jul 20 01:01:00 2019 authpriv.info dropbear[905]: Not backgrounding

@apcameron
Copy link
Copy Markdown
Contributor

@adrianschmutzler If the Ports seem to be the wrong way around try adding
the following to 02_network

    tplink,cpe210-v1)
            ucidef_set_interfaces_lan_wan "eth1" "eth0"
            ;;

for all the devices with 2 ports in this PR

@apcameron
Copy link
Copy Markdown
Contributor

@adrianschmutzler I have created a build based on your PR and done a quick test.

TP-LINK CPE610 v1 works as before
TP-LINK CPE510 v2 works as before
TP-LINK CPE510 v3 I do not have one to test currently
TP-LINK CPE210 v1.1 see below
I had to add the "tplink,cpe210-v1|" entry to target/linux/ath79/base-files/etc/board.d/02_network to get the ports the right way around.

    comfast,cf-e110n-v2|\
    comfast,cf-e120a-v3|\
    tplink,cpe210-v1|\
    ubnt,nanostation-m|\
    ubnt,routerstation)
            ucidef_set_interfaces_lan_wan "eth1" "eth0"
            ;;

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Jul 20, 2019

@apcameron Thanks for testing.

ucidef_set_interfaces_lan_wan "eth1" "eth0"

I'm aware of that choice.

However, how do you define the "right way" here? Is this somehow implied by vendor firmware?

@apcameron
Copy link
Copy Markdown
Contributor

@adrianschmutzler It is so that for existing users port LAN0 still is the port that provides an ip to the device that connects to it.

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Jul 25, 2019

Fixed commit title capitalization and did (trivial) rebase.

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Aug 5, 2019

@blocktrron @ynezz @981213
One of you interested in reviewing/merging this one? Should be in good shape ...

Copy link
Copy Markdown
Member

@blocktrron blocktrron Aug 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bae927c#diff-b232b41a358a2b44c64fb32925bd265a

The removal of the CPE510 v2 from the v1 Supportlist will brick devices in ar71xx when upgrading from an earlier build.

Honestly, as ar71xx is source only now, i would (personally) be finde dropping the CPE510 v2 from here. But as it doesn't seem to hurt us much, maybe exclude the removal and place a short comment explaining the situation.

What do you think?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I didn't find the commit you referenced in the first place.

Several things cross my mind here:

  1. Removing v2 from CPE510 v1 support list already is a separate patch in this PR, so there won't be interference with the rest no matter what we decide.
  2. I also change ar71xx when adjusting kernel partitions. I don't think this should be backported, so this will already introduce differences between 19.07 and master anyway. In this context, it does not seem too wrong to touch CPE510v2 support , too.
  3. Having the link to the initial patch introducing v2 "support", I'm currently in favor of just reverting that patch entirely. It was a hack in the first place, and reverting the patch will remove support (of v2 in master/ar71xx) more cleanly than just changing the safeloader data.
  4. I'm aware that this complicates backporting if we ever have to fix something with CPE510. Nevertheless, not removing lines in safeloader now will "enable" flashing CPE510v2@ath79 with v1 images, won't it? So, I would argue to keep the master clean (and remove CPE510v2@ar71xx). Fixes for [email protected] can still be done by just basing patches directly on it.
  5. What do you mean by "maybe exclude the removal"?

So, I would:

  1. Apply this patchset WITHOUT the patch removing v2 from safeloader.
  2. Remove the v2 support afterwards with "git revert bae927c". It might be easier if you just do it, if you do not want or have time I can also provide the patch.
  3. Change the SUPPORTED_DEVICES for CPE510v2 in ath79 to "cpe510" as the current "cpe510-v2" seems to be wrong then. Again, you can just do that during merging this PR or I can send a small patch for this one afterwards.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(If you do prefer that, I can obviously also just add a bigger explanation to the existing patch)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, i would leave the SupportList for the CPE510v1 untouched and simply place a note above it, that the CPE510v2 entries can be deleted after ar71xx is deprecated.

I also change ar71xx when adjusting kernel partitions. I don't think this should be backported, so this will already introduce differences between 19.07 and master anyway. In this context, it does not seem too wrong to touch CPE510v2 support , too.

The kernel partition change is no change which possibly breaks updates here. ar71xx is source only, but I'm uncertain if we should really break compatibility now (or invest a lot of time in working around this issue).

Having the link to the initial patch introducing v2 "support", I'm currently in favor of just reverting that patch entirely. It was a hack in the first place, and reverting the patch will remove support (of v2 in master/ar71xx) more cleanly than just changing the safeloader data.

I agree, the patch is a hacky way of adding support. However, ar71xx is full of those hacks (See the TL-WR841 mess). The Question of dropping support for the v2 is something I wouldn't want to decide alone.

Nevertheless, not removing lines in safeloader now will "enable" flashing CPE510v2@ath79 with v1 images, won't it?

Yes, however (given we provide both separate images), this shouldn't be an issue. Flashing the "wrong image" is never a good idea, so it is in this case.

So, I would argue to keep the master clean (and remove CPE510v2@ar71xx). Fixes for [email protected] can still be done by just basing patches directly on it.

Again, this comes close to a removal of the CPE510v2 in ar71xx. This is something you should probably get opinions on via the ML. Yes, i think I'm "to new" to decide something like this alone 😕 I hope you understand this.

What do you mean by "maybe exclude the removal"?

To remove 1d73264 from this PR.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, just drop the patch then.
I will think about whether the CPE510v2 topic is important enough to move it to the mailing list.

@blocktrron blocktrron self-assigned this Aug 5, 2019
@apcameron
Copy link
Copy Markdown
Contributor

apcameron commented Aug 5, 2019

PR #1631 was created to give the CPE510 V2 its own profile on the ar71xx branch but closed when I was told to switch to the ATH79 Branch.

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Aug 5, 2019

@apcameron I will have a look at #1631 . Maybe one can boil it down to something that's small enough to be accepted as a fix for the current hack in ar71xx. Maybe it's too much work and we just leave it as it is.

@apcameron
Copy link
Copy Markdown
Contributor

I Agree the best approach is to remove 1d73264 from this PR.

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Aug 6, 2019

I've removed the patch and rebased on latest master.

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Aug 6, 2019

I added a patch for the CPE510v2 issue in #2302
In my personal opinion changes to ar71xx introduced there are small enough to do this even at the current situation (with the benefit of getting tplink-safeloader.c clean).

@blocktrron
Copy link
Copy Markdown
Member

Checkpatch found the following misspells:

--------------------------------------------------
0004-ath79-add-support-for-TP-Link-CPE210-v1.patch
--------------------------------------------------
WARNING: 'adress' may be misspelled - perhaps 'address'?
#22: 
Stock device TFTP adress:192.168.0.254

--------------------------------------------------
0005-ath79-add-support-for-TP-Link-CPE510-v1.patch
--------------------------------------------------
WARNING: 'adress' may be misspelled - perhaps 'address'?
#25: 
Stock device TFTP adress:192.168.0.254

0006-ath79-add-support-for-TP-Link-CPE220-v2.patch
--------------------------------------------------
WARNING: 'adress' may be misspelled - perhaps 'address'?
#25: 
Stock device TFTP adress:192.168.0.254

Otherwise, this looks good to me.

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Aug 6, 2019

fixed "address" typo (3 times).

adschm added 8 commits August 7, 2019 00:26
This is a preparation for ath79 support of the CPE210/CPE510 v1.
Kernel size is chosen equal to the latest update for CPE610 v1.

This also updates the partition size in ar71xx target, so code
remains consistent if someone looks up the device. Since CPE210,
CPE510, WBS210 and WBS510 (all v1) share the same partition
layout definition, and are on deprecated target anyway, this
changes them all at once.

Signed-off-by: Adrian Schmutzler <[email protected]>
This puts some common code into a new shared DTSI. Common nodes
are chosen so that the new DTSI can be used for CPE210 v1, too.

Signed-off-by: Adrian Schmutzler <[email protected]>
The loader-okli is shared by several TP-Link CPExxx devices, so
give it its own definition to prevent too much code duplication.

Signed-off-by: Adrian Schmutzler <[email protected]>
Specifications:

    * SoC: Qualcomm Atheros AR9344 (560 MHz)
    * RAM: 64MB
    * Storage: 8 MB
    * Wireless: 2.4GHz N based built into SoC 2x2
    * Ethernet: 2x 100/10 Mbps, integrated into SoC, 24V POE IN

Installation:

Flash factory image through stock firmware WEB UI
or through TFTP:
To get to TFTP recovery just hold reset button while powering on for
around 4-5 seconds and release.
Rename factory image to recovery.bin
Stock TFTP server IP:192.168.0.100
Stock device TFTP address:192.168.0.254

Signed-off-by: Adrian Schmutzler <[email protected]>
TP-Link CPE510-v1 is an outdoor wireless CPE for 5 GHz with
two Ethernet ports based on Atheros AR9334

Specifications:
 - 560/450/225 MHz (CPU/DDR/AHB)
 - 2x 10/100 Mbps Ethernet, 1x PoE-in, 1x PoE-out
 - 64 MB of DDR2 RAM
 - 8 MB of SPI-NOR Flash
 - 2T2R 5 GHz
 - 13 dBi built-in antenna
 - Power, LAN0, LAN1 green LEDs
 - 4x green RSSI LEDs

Flash factory image through stock firmware WEB UI
or through TFTP:
To get to TFTP recovery just hold reset button while powering on for
around 4-5 seconds and release.
Rename factory image to recovery.bin
Stock TFTP server IP:192.168.0.100
Stock device TFTP address:192.168.0.254

Based on the work of Paul Wassi <[email protected]>

Signed-off-by: Adrian Schmutzler <[email protected]>
This seems to be identical to CPE210 v1 despite having removable
antennas.

Specifications:

    * SoC: Qualcomm Atheros AR9344 (560 MHz)
    * RAM: 64MB
    * Storage: 8 MB
    * Wireless: 2.4GHz N based built into SoC 2x2
    * Ethernet: 2x 100/10 Mbps, integrated into SoC, 24V POE IN

Installation:

Flash factory image through stock firmware WEB UI
or through TFTP:
To get to TFTP recovery just hold reset button while powering on for
around 4-5 seconds and release.
Rename factory image to recovery.bin
Stock TFTP server IP:192.168.0.100
Stock device TFTP address:192.168.0.254

Signed-off-by: Adrian Schmutzler <[email protected]>
According to detective grep, with this patch all devices should
be labelled "TP-Link" consistently.

Signed-off-by: Adrian Schmutzler <[email protected]>
All those devices only have one MAC address, which is also printed
on label (obviously).

Signed-off-by: Adrian Schmutzler <[email protected]>
@blocktrron
Copy link
Copy Markdown
Member

@adrianschmutzler I've pulled your patches except for ffd49dd into my staging tree, as this concept has still the general RFC PR open.

I propose you add this patch there after I've pushed your other patches to master. Is this fine for you?

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Aug 7, 2019

@blocktrron Yes, I will just add the label-mac-device to my label MAC PR. It was just included here so I do not forget...

@blocktrron
Copy link
Copy Markdown
Member

Okay, closing then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

target/ath79 pull request/issue for ath79 target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants