[PATCH 1/2] adds support vor tp-link cpe210

mayosemmel mayosemmel at googlemail.com
Di Mai 10 18:50:52 CEST 2016


Hi,

grad noch was übersehen:
Bitte die commit message noch anpassen. Es sollte vermutlich "adds
support for" heißen.

Grüße Jan
Am Dienstag, den 10.05.2016, 18:45 +0200 schrieb mayosemmel:
> Hi,
> 
> schaut soweit gut aus.
> Reviewed-by: Jan Kraus <mayosemmel at gmail.com>
> 
> Ggf. in der network.mode und auf jeden Fall im Wiki dokumentieren, was
> bei der CPE in die network.mode einzutragen ist. Du hast das hier ja
> anders als bisher gelöst.
> 
> Grüße Jan
> 
> Am Dienstag, den 10.05.2016, 08:47 +0200 schrieb Tobias Klaus:
> > Signed-off-by: Tobias Klaus <tk+ff at meskal.net>
> > ---
> >  bsp/ar71xx/root_file_system/etc/network.cpe210 | 28 ++++++++++++++++++++++++++
> >  bsp/board_ar71xx.bsp                           |  3 ++-
> >  bsp/default/root_file_system/etc/rc.local.tpl  |  3 +++
> >  3 files changed, 33 insertions(+), 1 deletion(-)
> >  create mode 100644 bsp/ar71xx/root_file_system/etc/network.cpe210
> > 
> > diff --git a/bsp/ar71xx/root_file_system/etc/network.cpe210 b/bsp/ar71xx/root_file_system/etc/network.cpe210
> > new file mode 100644
> > index 0000000..e1313ba
> > --- /dev/null
> > +++ b/bsp/ar71xx/root_file_system/etc/network.cpe210
> > @@ -0,0 +1,28 @@
> > +WANDEV=eth0
> > +SWITCHDEV=eth0
> > +CLIENT_PORTS="0t"
> > +WAN_PORTS="0t"
> > +BATMAN_PORTS="0t"
> > +CLIENTIF="w2ap eth0.1"
> > +
> > +ETHMESHMAC="w2ap"
> > +
> > +. /etc/network.mode
> > +
> > +#LAN0: default: BATMAN
> > +if [ "${LAN0MODE}" = "BATMAN" ] ; then
> > +  BATMAN_PORTS="${BATMAN_PORTS} 5"
> > +elif [ "${LAN0MODE}" = "CLIENT" ] ; then
> > +  CLIENT_PORTS="${CLIENT_PORTS} 5"
> > +else
> > +  WAN_PORTS="${WAN_PORTS} 5"
> > +fi
> > +
> > +#LAN1: default: BATMAN
> > +if [ "${LAN1MODE}" = "WAN" ] ; then
> > +  WAN_PORTS="${WAN_PORTS} 4"
> > +elif [ "${LAN1MODE}" = "CLIENT" ] ; then
> > +  CLIENT_PORTS="${CLIENT_PORTS} 4"
> > +else
> > +  BATMAN_PORTS="${BATMAN_PORTS} 4"
> > +fi
> > diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp
> > index e246dc4..cbdac68 100644
> > --- a/bsp/board_ar71xx.bsp
> > +++ b/bsp/board_ar71xx.bsp
> > @@ -1,7 +1,8 @@
> >  machine=ar71xx
> >  chipset=ar71xx
> >  target=$builddir/$machine
> > -images=("openwrt-ar71xx-generic-ubnt-nano-m-squashfs-sysupgrade.bin"
> > +images=("openwrt-ar71xx-generic-cpe210-220-510-520-squashfs-sysupgrade.bin"
> > +        "openwrt-ar71xx-generic-ubnt-nano-m-squashfs-sysupgrade.bin"
> >          "openwrt-ar71xx-generic-ubnt-loco-m-xw-squashfs-sysupgrade.bin"
> >          "openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-sysupgrade.bin"
> >          "openwrt-ar71xx-generic-tl-wr741nd-v2-squashfs-sysupgrade.bin"
> > diff --git a/bsp/default/root_file_system/etc/rc.local.tpl b/bsp/default/root_file_system/etc/rc.local.tpl
> > index cb8aa04..5a18675 100755
> > --- a/bsp/default/root_file_system/etc/rc.local.tpl
> > +++ b/bsp/default/root_file_system/etc/rc.local.tpl
> > @@ -50,6 +50,9 @@ case "$BOARD" in
> >      tl-mr3020)
> >          BOARD=tl-mr3020-v1
> >          ;;
> > +    cpe510)
> > +        grep "CPE210" /var/sysinfo/model && BOARD=cpe210
> > +        ;;
> >  esac
> >  
> >  if ! uci get board.model.name; then
> > -- 
> > 2.8.2
> > 
> 

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 473 bytes
Beschreibung: This is a digitally signed message part
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20160510/f656fead/attachment-0002.sig>


Mehr Informationen über die Mailingliste franken-dev