Skip to content
Snippets Groups Projects
  1. Dec 02, 2016
    • Jo-Philipp Wich's avatar
      scripts: getver.sh: append Git short hash to revision · a642a11f
      Jo-Philipp Wich authored
      
      Change getver.sh to append a short Git commit hash to the end of the artifical
      revision number. This way we still have order- and comparable commit numbers
      but also a direct relation to the Git commit.
      
      The new output format will look like "r2400+2-882472e" for dirty trees or like
      "r2402-882472e" for clean ones.
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      a642a11f
    • Jo-Philipp Wich's avatar
      build: adjust version number handling · 5f3c96c2
      Jo-Philipp Wich authored
      Move the revision info to the VERSION_CODE variable and default VERSION_NUMBER
      to CURRENT for master branch builds.
      
      Also introduce a new menuconfig option CONFIG_VERSION_CODE which allows users
      to override the revision value put into VERSION_CODE and adjust the template
      files used by the base-files package to accomodate for the changed semantics.
      
      While we're at it, also adjust the various URLs to match the current web site.
      
      After this commit, the relevent files will look like the examples given below:
      
          # cat /etc/openwrt_version
          r2398+1
      
          # cat /etc/openwrt_release
          DISTRIB_ID='LEDE'
          DISTRIB_RELEASE='CURRENT'
          DISTRIB_REVISION='r2398+1'
          DISTRIB_CODENAME='reboot'
          DISTRIB_TARGET='x86/64'
          DISTRIB_DESCRIPTION='LEDE Reboot CURRENT r2398+1'
          DISTRIB_TAINTS='no-all override'
      
          # cat /usr/lib/os-release
          NAME="LEDE"
          VERSION="CURRENT, Reboot"
          ID="lede"
          ID_LIKE="lede openwrt"
          PRETTY_NAME="LEDE Reboot CURRENT"
          VERSION_ID="current"
          HOME_URL="http://lede-project.org/"
          BUG_URL="http://bugs.lede-project.org/"
          SUPPORT_URL="http://forum.lede-project.org/"
          BUILD_ID="r2398+1"
          LEDE_BOARD="x86/64"
          LEDE_TAINTS="no-all override"
          LEDE_DEVICE_MANUFACTURER="LEDE"
          LEDE_DEVICE_MANUFACTURER_URL="http://lede-project.org/"
          LEDE_DEVICE_PRODUCT="Generic"
          LEDE_DEVICE_REVISION="v0"
          LEDE_RELEASE="LEDE Reboot CURRENT r2398+1"
      
      On a release branch, those files would look like:
      
          # cat /etc/openwrt_version
          r2399
      
          # cat /etc/openwrt_release
          DISTRIB_ID='LEDE'
          DISTRIB_RELEASE='16.12-CURRENT'
          DISTRIB_REVISION='r2399'
          DISTRIB_CODENAME='test_release'
          DISTRIB_TARGET='x86/64'
          DISTRIB_DESCRIPTION='LEDE Test Release 16.12-CURRENT r2399'
          DISTRIB_TAINTS='no-all override'
      
          # cat /usr/lib/os-release
          NAME="LEDE"
          VERSION="16.12-CURRENT, Test Release"
          ID="lede"
          ID_LIKE="lede openwrt"
          PRETTY_NAME="LEDE Test Release 16.12-CURRENT"
          VERSION_ID="16.12-current"
          HOME_URL="http://lede-project.org/"
          BUG_URL="http://bugs.lede-project.org/"
          SUPPORT_URL="http://forum.lede-project.org/"
          BUILD_ID="r2399"
          LEDE_BOARD="x86/64"
          LEDE_TAINTS="no-all override"
          LEDE_DEVICE_MANUFACTURER="LEDE"
          LEDE_DEVICE_MANUFACTURER_URL="http://lede-project.org/"
          LEDE_DEVICE_PRODUCT="Generic"
          LEDE_DEVICE_REVISION="v0"
          LEDE_RELEASE="LEDE Test Release 16.12-CURRENT r2399"
      
      On a release tag, those files would look like:
      
          # cat /etc/openwrt_version
          r2500
      
          # cat /etc/openwrt_release
          DISTRIB_ID='LEDE'
          DISTRIB_RELEASE='17.02.1'
          DISTRIB_REVISION='r2500'
          DISTRIB_CODENAME='mighty_unicorn'
          DISTRIB_TARGET='x86/64'
          DISTRIB_DESCRIPTION='LEDE Mighty Unicorn 17.02.1 r2500'
          DISTRIB_TAINTS='no-all override'
      
          # cat /usr/lib/os-release
          NAME="LEDE"
          VERSION="17.02.1, Mighty Unicorn"
          ID="lede"
          ID_LIKE="lede openwrt"
          PRETTY_NAME="LEDE Mighty Unicorn 17.02.1"
          VERSION_ID="17.02.1"
          HOME_URL="http://lede-project.org/"
          BUG_URL="http://bugs.lede-project.org/"
          SUPPORT_URL="http://forum.lede-project.org/"
          BUILD_ID="r2500"
          LEDE_BOARD="x86/64"
          LEDE_TAINTS="no-all override"
          LEDE_DEVICE_MANUFACTURER="LEDE"
          LEDE_DEVICE_MANUFACTURER_URL="http://lede-project.org/
      
      "
          LEDE_DEVICE_PRODUCT="Generic"
          LEDE_DEVICE_REVISION="v0"
          LEDE_RELEASE="LEDE Mighty Unicorn 17.02.1 r2500"
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      Acked-by: default avatarFelix Fietkau <nbd@nbd.name>
      5f3c96c2
    • Felix Fietkau's avatar
  2. Dec 01, 2016
  3. Nov 30, 2016
  4. Nov 29, 2016
    • Alberto Bursi's avatar
      base-files: add a wrapper for init scripts in profile · d52676d1
      Alberto Bursi authored
      
      "service" is a simple wrapper that will allow to call init.d scripts
      
      current method:     #  /etc/init.d/network reload
      with the wrapper:   #  service network reload
      
      If the wrapper is called without arguments or with a wrong init script name, it will print an error and list the content of /etc/init.d/ folder
      
      Signed-off-by: default avatarAlberto Bursi <alberto.bursi@outlook.it>
      d52676d1
    • Kevin Darbyshire-Bryant's avatar
      kernel: bump to 4.4.35 · 102cb474
      Kevin Darbyshire-Bryant authored
      
      Refresh patches on all 4.4 supported platforms.
      
      077-0005-bgmac-stop-clearing-DMA-receive-control-register-rig.patch
      removed as now upstream.
      
      Compile & run tested: ar71xx - Archer C7 v2
      
      Signed-off-by: default avatarKevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
      102cb474
    • Alberto Bursi's avatar
      docs: deleting docs because they are obsolete · 882f4d2d
      Alberto Bursi authored
      
      the docs in /docs folder are pretty much obsolete and in a not very friendly format (latex, that requires to be
      compiled), leaving them there only causes confusion.
      LEDE documentation's place is the wiki, or the site.
      
      Signed-off-by: default avatarAlberto Bursi <alberto.bursi@outlook.it>
      882f4d2d
    • Mathias Kresin's avatar
      lantiq: drop obsolete patch · c0e66478
      Mathias Kresin authored
      
      ifxhcd never had roothub support but since kernel 3.x it was expected
      that a roothub always exists.
      
      The patched fixed a null pointer deref in the usb subsystem because of
      the missing roothub.
      
      Since ifxhcd is gone, this whole patch isn't required any longer.
      
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      c0e66478
    • Mathias Kresin's avatar
      uboot-lantiq: Add BT Home Hub 5A support · 36148d92
      Mathias Kresin authored
      
      Based on the submission to the uboot-lantiq repo by Martin Blumenstingl.
      
      Use the ddr_settings.h from the GPL tarball. The NAND boot optimized
      one (with memory tuning enabled) doesn't work for the UART boot image.
      
      Use the same mtd layout as the stock u-boot. Add add UBI support.
      
      Use the leds to indicate boot status like it is done with the stock
      u-boot. Switch on the red power led if kernel image can't be loaded.
      Otherwise switch the green led on.
      
      Make only the ramboot u-boot available. Only this image is required for
      the first installation of LEDE.
      
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      36148d92
    • Mathias Kresin's avatar
      lantiq: use BT HomeHub 5 Type A OEM partition layout · 0e34459e
      Mathias Kresin authored
      This way the on nand bad block table is preserved and used. Add support
      for nand OOB ECC checksums as well. It should fix all reported ubi
      errors, which were all related to bad nand blocks and a purged on nand
      bad block table.
      
      The existing ubi partition will be reused, which eliminates the need
      to touch the caldata during initial install. The BT u-boot has support
      for loading a kernel from an ubi volume. It isn't necessary any longer
      to replace the BT u-boot with a custom compiled one to use LEDE.
      
      It is required to restore the BT Firmware and install LEDE from scratch
      to switch to the new partition layout.
      
      An image for restoring the BT firmware and installing LEDE is provided
      at https://github.com/mkresin/lede/releases
      
      .
      
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      0e34459e
    • Mathias Kresin's avatar
      lantiq: backport kernel patch to pass of node to nand_dt_init · 860210c3
      Mathias Kresin authored
      
      Backport upstream commit a61ae81a1907af1987ad4c77300508327bc48b23.
      
      The actually purpose of the patch was to do some cleanup. As a side
      effect of this cleanup, the device node is now passed to nand_dt_init.
      
      This allows to use the common nand device tree properties
      
       - nand-bus-width
       - nand-on-flash-bbt
       - nand-ecc-mode
       - nand-ecc-step-size
       - nand-ecc-strength
      
      for the plat_nand driver.
      
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      860210c3
    • Mathias Kresin's avatar
      lantiq: drop ath9k device tree binding & ath9k pci fixup · 62a347b1
      Mathias Kresin authored
      
      Due to the addition of the bindings to the ath9k driver, this code
      isn't used any longer. The fixup is now done by the owloader.
      
      Rename the ath_eep.c file to ath5k_eep.c to indicate that this files
      includes ath5k related code only.
      
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      62a347b1
    • Martin Blumenstingl's avatar
      lantiq: use ath9k device tree bindings binding/owl-loader · a2061686
      Martin Blumenstingl authored
      
      This moves the extraction of the eeprom/calibration data to a hotplug
      firmware script. Additionally it modifies all .dts to configure ath9k
      directly from within the .dts.
      
      The owl-loader approach enables support on devices with exotic eeprom
      data locations (such as unaligned positions on the flash or data
      inside an UBI volume).
      
      Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      [add ath9k caldata mac address patcher]
      [fixes DGN3500 wifi mac]
      [fixes BTHOMEHUBV3A wifi mac]
      [set invalid mac for BTHOMEHUB2B, FRITZ3370, FRITZ7320 & FRITZ7360SL to restore previous random mac behavior]
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      a2061686
    • Martin Blumenstingl's avatar
      kernel: mac80211: disable ath9k bands via device tree · 448b9b67
      Martin Blumenstingl authored
      
      These properties allow overriding the settings from the EEPROM
      which indicate whether a band is enabled or not.
      Setting this property is only needed when the RF circuit does not
      support the 2.4GHz or 5GHz band while it is enabled nevertheless in the
      EEPROM.
      
      These patches will be replaced with a future upstream version which
      will introduces an ieee80211 device tree property to disable bands.
      
      Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      448b9b67
    • Martin Blumenstingl's avatar
      kernel: mac80211: add pending ath9k EEPROM swapping patches · 3f889418
      Martin Blumenstingl authored
      There are two types of swapping the EEPROM data in the ath9k driver.
      Before this series one type of swapping could not be used without the
      other.
      
      The first type of swapping looks at the "magic bytes" at the start of
      the EEPROM data and performs swab16 on the EEPROM contents if needed.
      The second type of swapping is EEPROM format specific and swaps
      specific fields within the EEPROM itself (swab16, swab32 - depends on
      the EEPROM format).
      
      With this series the second part now looks at the EEPMISC register
      inside the EEPROM, which uses a bit to indicate if the EEPROM data
      is Big Endian (this is also done by the FreeBSD kernel).
      This has a nice advantage: currently there are some out-of-tree hacks
      (in OpenWrt and LEDE) where the EEPROM has a Big Endian header on a
      Big Endian system (= no swab16 is performed) but the EEPROM itself
      indicates that it's data is Little Endian. Until now the out-of-tree
      code simply did a swab16 before passing the data to ath9k, so ath9k
      first did the swab16 - this also enabled the format specific swapping.
      These out-of-tree hacks are still working with the new logic, but it
      is recommended to remove them. This implementation is based on a
      discussion with Arnd Bergmann who raised concerns about the
      robustness and portability of the swapping logic in the original OF
      support patch review, see [0].
      
      After a second round of patches (= v1 of this series) neither Arnd
      Bergmann nor I were really happy with the complexity of the EEPROM
      swapping logic. Based on a discussion (see [1] and [2]) we decided
      that ath9k should use a defined format (specifying the endianness
      of the data - I went with __le16 and __le32) when accessing the
      EEPROM fields. A benefit of this is that we enable the EEPMISC based
      swapping logic by default, just like the FreeBSD driver, see [3]. On
      the devices which I have tested (see below) ath9k now works without
      having to specify the "endian_check" field in ath9k_platform_data (or
      a similar logic which could provide this via devicetree) as ath9k now
      detects the endianness automatically. Only EEPROMs which are mangled
      by some out-of-tree code still need the endian_check flag (or one can
      simply remove that mangling from the out-of-tree code).
      
      [0] http://www.spinics.net/lists/linux-wireless/msg152634.html
      [1] https://marc.info/?l=linux-wireless&m=147250597503174&w=2
      [2] https://marc.info/?l=linux-wireless&m=147254388611344&w=2
      [3] https://github.com/freebsd/freebsd/blob/50719b56d9ce8d7d4beb53b16e9edb2e9a4a7a18/sys/dev/ath/ath_hal/ah_eeprom_9287.c#L351
      
      
      
      Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      3f889418
    • Martin Blumenstingl's avatar
      kernel: mac80211: backport ath9k device tree support patches · 1847248f
      Martin Blumenstingl authored
      These patches add support for configuring ath9k based devices via
      devicetree. This was tested on PCI(e) based devices. This should work
      for AHB based devices as well (adding more AHB specific properties may
      still be needed) as soon as the ath79 platform is ready to populate the
      ath9k wmac via devicetree.
      This patchset was accepted upstream, more information can be found on
      the linux-wireless list:
      https://www.spinics.net/lists/linux-wireless/msg155474.html
      
      
      
      Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
      1847248f
    • Matthias Schiffer's avatar
      ar71xx: fix syntax error in /lib/ar71xx.sh · a15ea362
      Matthias Schiffer authored
      
      Remove all comments in ubnt_xm_board_detect(), as it's not possible to add
      comments to specific lines of the case construct anyways.
      
      Fixes: 9a5801e7 "ar71xx: add model detection for UBNT Rocket Ti"
      Signed-off-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>
      a15ea362
Loading