[OpenWrt-Devel] [RFC 0/3] ath25: move Fonera 2.0g to subtarget

Sergey Ryazanov ryazanov.s.a at gmail.com
Thu May 31 20:36:42 EDT 2018


This series adds a new ath25 subtarget for the Fonera 2.0g (FON2202)
router. This router is unique since it have a USB port and uses PCI
controller of AR2315 SoC. AFAIK, there are no other AR231x based routers
which at least uses SoC's PCI controller.

This series have two goals:
* simplify building of image with all packets that are required for
* FON2202 USB support
* debloat the generic kernel by disabling the PCI support

The second goal was achieved only partially. On the one hand the
uncompressed (ELF) kernel become smaller by ~120kb, lzma-compressed
kernel become smaller by ~38kb, but on the other hand the 64kb alignment
kills this reduction. See the size reduction details below.

                   ELF     LZMA   Padded
 old generic   4209348  1368408  1376256
 new generic   4079044  1328723  1376256

Sergey Ryazanov (3):
  ath25: factor out Fonera 2.0g to subtarget
  ath25: factor out Fonera 2.0g kernel options
  ath25: fon2202: add packages for USB support

 target/linux/ath25/Makefile                        |  5 +-
 target/linux/ath25/config-4.14                     | 14 +----
 target/linux/ath25/fon2202/config-default          | 10 +++
 target/linux/ath25/fon2202/profiles/00-default.mk  | 16 +++++
 target/linux/ath25/fon2202/target.mk               |  8 +++
 target/linux/ath25/generic/config-default          |  6 ++
 .../ath25/{ => generic}/profiles/00-default.mk     |  0
 target/linux/ath25/generic/target.mk               |  5 ++
 target/linux/ath25/image/Makefile                  | 71 ++-------------------
 target/linux/ath25/image/fon2202.mk                | 16 +++++
 target/linux/ath25/image/generic.mk                | 73 ++++++++++++++++++++++
 11 files changed, 143 insertions(+), 81 deletions(-)
 create mode 100644 target/linux/ath25/fon2202/config-default
 create mode 100644 target/linux/ath25/fon2202/profiles/00-default.mk
 create mode 100644 target/linux/ath25/fon2202/target.mk
 create mode 100644 target/linux/ath25/generic/config-default
 rename target/linux/ath25/{ => generic}/profiles/00-default.mk (100%)
 create mode 100644 target/linux/ath25/generic/target.mk
 create mode 100644 target/linux/ath25/image/fon2202.mk
 create mode 100644 target/linux/ath25/image/generic.mk

-- 
2.16.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/listinfo/openwrt-devel



More information about the openwrt-devel mailing list