Git Product home page Git Product logo

carrierwrt's Introduction

CarrierWrt is an OpenWrt overlay that simplifies development of commercial products by focusing on aspects that are important to equipment vendors and their customers:

  • CarrierWrt's build configuration is versioned, i.e. there is no "menuconfig" build target. If you build from the same source you will (or should) end up with the same firmware.

  • CarrierWrt is designed to produce complete firmware that can be put through QA and is usable out of the box. While it is possible to postinstall packages the end-user should not have to. In a sense you can think of CarrierWrt as the cathedral built on top of OpenWrt, the bazar.

  • OpenWrt traditionally stays very close to the bleeding edge of open source, even on the release branches (e.g. backfire). CarrierWrt is much more conservatively maintained. We try to fix bugs with minimal patches instead of updating to the latest snapshots.

  • Proprietary closed source software is usually not welcomed into open source respositories with open arms. Nevertheless equipment vendors often need to add some bells and whistles to differentiate their products. CarrierWrt is designed to make it easy to integrate proprietary software, and even comes with some functionality essential to carrier customers pre-integrated.

In short, if you want to build a commercial product based on OpenWrt you should fork CarrierWrt! It embodies wisdom from years of experience developing commercial products based on OpenWrt, and will serve as an excellent starting point for yours.

Firmware Images

Pre-built firmware images are available at http://carrierwrt.org/download. Directories correspond to git tags, with latest and stable symlinks for convenience.

Functionality

CarrierWrt comes with some additional functionality not found in (standard builds of) OpenWrt.

Management

EasyCwmp is a (rudimentary) open source implementation of TR-069 CPE WAN Management Protocol (CWMP) pre-integrated in rgw and ap CarrierWrt product variants. ACS discovery through DHCP Option 43 is supported. Interoperability with GenieACS has been verified.

Carrier Wi-Fi

CarrierWrt comes with Anyfi.net software pre-integrated, ensuring compatibility with Anyfi Networks' Carrier Wi-Fi System. This lets operators build completely seamless "homespot" user experiences with end-to-end security. It also enables seamless integration of equipment running CarrierWrt into existing carrier Wi-Fi solutions, e.g. for mobile Wi-Fi offload or traditional hotspot services.

Community Edition of Anyfi Networks' Carrier Wi-Fi System is freely available. This version is fully functional, but restricted to a maximum of 100 access point radios.

Getting Started

You need to have installed git, svn, gcc, g++, binutils, patch, bzip2, flex, make, gettext, pkg-config, unzip, libz-dev, libncurses-dev, gawk and libc headers. For example, on a Debian based system run the command:

  apt-get install -y git subversion gcc g++ binutils patch bzip2 flex make \
                     gettext pkg-config unzip libz-dev libncurses-dev gawk \
                     gcc-multilib

Then:

  1. git clone https://github.com/carrierwrt/carrierwrt.git

  2. cd carrierwrt && make

Basic build configuration is in config.mk. Functionality and default settings are controlled through what we call product profiles and customizations (in products/*/Makefile).

Next step is to fork this repository and get started making changes!

Copyright and Licensing

The CarrierWrt build system overlay is licensed under a highly permissive "1-clause BSD license". See the LICENSE file for more details.

The OpenWrt build system, as well as the software built by the build system, is licensed separately under their own licenses.

carrierwrt's People

Contributors

anyfinetworks avatar carrierwrt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

carrierwrt's Issues

Debian7.3.0 make errors

I use a newly installed Debian 7.3.0 and install the necessary softwares in your manual.

When I usr make command, I got some errors. Could you help me?

make _touch
make[1]: Entering directory `/home/vagrant/carrierwrt'
make[1]: Nothing to be done for `_touch'.
make[1]: Leaving directory `/home/vagrant/carrierwrt'
make _build
make[1]: Entering directory `/home/vagrant/carrierwrt'
make _build-targets PRODUCT=ap &&  make _build-targets PRODUCT=appliance &&  make _build-targets PRODUCT=rgw &&  make _build-targets PRODUCT=router && true
make[2]: Entering directory `/home/vagrant/carrierwrt'
make _build-customizations TARGET=ar71xx && true
make[3]: Entering directory `/home/vagrant/carrierwrt'
make _build-images
make[4]: Entering directory `/home/vagrant/carrierwrt'
# Revert openwrt and luci to pristine condition
scripts/svn-pristine openwrt | sh
Reverted 'openwrt/package/base-files/files/sbin/wifi'
Reverted 'openwrt/package/base-files/files/sbin/sysupgrade'
scripts/svn-pristine openwrt/feeds/luci | sh
Reverted 'openwrt/feeds/luci/luci/Makefile'
# The special 'files' dir is in svn:ignore so we need to manually delete it
rm -rf openwrt/files/*
# Symlink all packages into OpenWrt
true &&  ln -fs ../../package/anyfi openwrt/package/anyfi &&  ln -fs ../../package/factory-defaults openwrt/package/factory-defaults &&  ln -fs ../../package/luci-branding openwrt/package/luci-branding &&  ln -fs ../../package/system-debug openwrt/package/system-debug && true
# Prepare uci-defaults directory
mkdir -p openwrt/files/etc/uci-defaults
# Load Build
# Load Product
if [ -n "uci-product.sh" ]; then \
        cp products/ap/uci-product.sh openwrt/files/etc/uci-defaults/z01-product || exit 1; \
    fi
# Load Target
if [ -n "" ]; then \
        cp common/targets/ar71xx/ openwrt/files/etc/uci-defaults/z02-target || exit 1; \
    fi
# Load Customization
if [ -n "uci-customization.sh" ]; then \
        cp products/ap/uci-customization.sh openwrt/files/etc/uci-defaults/z03-customization || exit 1; \
    fi
# Lock LuCI to specific revision
sed -i 's|^PKG_BRANCH\:=.*|PKG_BRANCH\:=branches/luci-0.11@9672|' \
            openwrt/feeds/luci/luci/Makefile
# Apply product changes
cp -r products/ap/files/* openwrt/files/
cp: cannot stat `products/ap/files/*': No such file or directory
make[4]: [_build-images] Error 1 (ignored)
# Apply target changes
cp -r products/ap/targets/ar71xx/files/* openwrt/files/
cp: cannot stat `products/ap/targets/ar71xx/files/*': No such file or directory
make[4]: [_build-images] Error 1 (ignored)
# Apply base patches
if [ -d patches/anyfi/openwrt ]; then for f in patches/anyfi/openwrt/*; do (cd openwrt && patch -p0 < ../$f); done; fi
patching file package/base-files/files/sbin/wifi
if [ -d patches/anyfi/package ]; then (cd patches/anyfi && find package -name '*.patch' -printf 'mkdir -p openwrt/%h/patches && cp patches/anyfi/%p openwrt/%h/patches/%f\n') | sh; fi
if [ -d patches/anyfi/feeds ]; then (cd patches/anyfi && find feeds -name '*.patch' -printf 'mkdir -p openwrt/%h/patches && cp patches/anyfi/%p openwrt/%h/patches/%f\n') | sh; fi
if [ -d patches/factory-defaults/openwrt ]; then for f in patches/factory-defaults/openwrt/*; do (cd openwrt && patch -p0 < ../$f); done; fi
patching file package/base-files/files/sbin/sysupgrade
if [ -d patches/factory-defaults/package ]; then (cd patches/factory-defaults && find package -name '*.patch' -printf 'mkdir -p openwrt/%h/patches && cp patches/factory-defaults/%p openwrt/%h/patches/%f\n') | sh; fi
if [ -d patches/factory-defaults/feeds ]; then (cd patches/factory-defaults && find feeds -name '*.patch' -printf 'mkdir -p openwrt/%h/patches && cp patches/factory-defaults/%p openwrt/%h/patches/%f\n') | sh; fi
if [ -d patches/luci-branding/openwrt ]; then for f in patches/luci-branding/openwrt/*; do (cd openwrt && patch -p0 < ../$f); done; fi
if [ -d patches/luci-branding/package ]; then (cd patches/luci-branding && find package -name '*.patch' -printf 'mkdir -p openwrt/%h/patches && cp patches/luci-branding/%p openwrt/%h/patches/%f\n') | sh; fi
if [ -d patches/luci-branding/feeds ]; then (cd patches/luci-branding && find feeds -name '*.patch' -printf 'mkdir -p openwrt/%h/patches && cp patches/luci-branding/%p openwrt/%h/patches/%f\n') | sh; fi
# Apply product patches
if [ -d products/ap/patches/anyfi/openwrt ]; then for f in products/ap/patches/anyfi/openwrt/*; do (cd openwrt && patch -p0 < ../$f); done; fi
if [ -d products/ap/patches/anyfi/package ]; then (cd products/ap/patches/anyfi && find package -name '*.patch' -printf 'mkdir -p openwrt/%h/patches && cp products/ap/patches/anyfi/%p openwrt/%h/patches/%f\n') | sh; fi
if [ -d products/ap/patches/anyfi/feeds ]; then (cd products/ap/patches/anyfi && find feeds -name '*.patch' -printf 'mkdir -p openwrt/%h/patches && cp products/ap/patches/anyfi/%p openwrt/%h/patches/%f\n') | sh; fi
# Apply target patches
# Clean old images
rm -f openwrt/bin/ar71xx/openwrt-ar71xx-generic-a02-rb-w300n-squashfs-factory.bin
rm -f firmware/ap//openwrt-ar71xx-generic-a02-rb-w300n-squashfs-factory.bin*
.... too long to list
rm -f firmware/ap//debug/openwrt-ar71xx-generic-zcn-1523h-5-16-squashfs-sysupgrade.bin*
# Build
rm -f openwrt/.config
echo CONFIG_PACKAGE_factory-defaults=y >> openwrt/.config &&    echo CONFIG_BUSYBOX_CONFIG_TELNETD=n >> openwrt/.config &&  echo CONFIG_PACKAGE_wpad-mini=n >> openwrt/.config &&   echo CONFIG_PACKAGE_wpad=y >> openwrt/.config &&    echo CONFIG_PACKAGE_anyfi=y >> openwrt/.config &&   echo CONFIG_TARGET_ar71xx=y >> openwrt/.config &&   echo CONFIG_TARGET_ROOTFS_JFFS2=n >> openwrt/.config &&     echo CONFIG_PACKAGE_luci=y >> openwrt/.config &&    echo CONFIG_PACKAGE_luci-theme-bootstrap=y >> openwrt/.config &&    echo CONFIG_PACKAGE_luci-branding=y >> openwrt/.config && true
make MAKEOVERRIDES='' -C openwrt defconfig > /dev/null
make[5]: *** [tmp/.prereq-build] Error 1
make[4]: *** [_build-images] Error 2
make[4]: Leaving directory `/home/vagrant/carrierwrt'
make[3]: *** [_build-customizations] Error 2
make[3]: Leaving directory `/home/vagrant/carrierwrt'
make[2]: *** [_build-targets] Error 2
make[2]: Leaving directory `/home/vagrant/carrierwrt'
make[1]: *** [_build-products] Error 2
make[1]: Leaving directory `/home/vagrant/carrierwrt'
make: *** [all] Error 2

Firmware download

Hi all! I have a CT-5365 router and don't know witch firmware download.... Its' not clear.
Can you tell me?

Detected Broadcom 0x6348 CPU revision b0
CPU revision is: 00029107 (Broadcom BCM6348)
board_bcm963xx: board name: 96348A-122

Thnaks!

Adding aditional Devices

Hi Do you have a write up on adding new Devices to the build .

Looking for support on MT7621 .

add driver and target

Hi, im trying to use carrierwrt. I have a question:

I'm using a mt7620 device and openwrt don't support this device, i'm using this driver and works well.

How can i use the driver and the target with carrierwrt? Do i need to create a package? Is there any documentation on this?

Thanks!

Gateway

Hello,
I install this on a Rocket M2 (ubiquiti) but i cant login to it cause i cant find the default gateway.
I have tried the following:
192.168.1.1
192.168.2.1
192.168.1.20

I have run a scan on all the IP addresses from 192.168.1.1 to 192.168.16.254 but no luck.
Please help.....

Failed with trunk

I'm having issues using the HEAD commit under the trunk branch (from openwrt).

Any ideas?

screen shot 2014-05-20 at 10 08 18 am

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.