Skip to content
Snippets Groups Projects
  1. Feb 13, 2017
  2. Nov 19, 2016
    • Felix Fietkau's avatar
      base-files: validate metadata of sysupgrade images · cc853810
      Felix Fietkau authored
      
      Use fwtool to extract it, only require metadata to be present if the
      platform sysupgrade script sets REQUIRE_IMAGE_METADATA=1
      
      Image metadata is in JSON format and contains a list of supported
      devices, along with version information that could be displayed by a UI
      later before the actual upgrade happens.
      
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      cc853810
  3. Nov 03, 2016
    • Christian Lamparter's avatar
      base-files, mac80211, broadcom-wl: wifi detection and configuration · 5f8f8a36
      Christian Lamparter authored
      
      Currently, the wifi detection script is executed as part of
      the (early) boot process. Pluggable wifi USB devices, which
      are inserted at a later time are not automatically
      detected and therefore they don't show up in LuCI.
      
      A user has to deal with wifi detection manually, or restart
      the router.
      
      However, the current "sleep 1" window - which the boot
      process waits for wifi devices to "settle down" - is too
      short to detect wifi devices for some routers anyway.
      
      For example, this can happen with USB WLAN devices on the
      WNDR4700. This is because the usb controller needs to load
      its firmware from UBI and initialize, before it can operate.
      
      The issue can be seen on a BT HomeHub 5A as well as soon as
      the caldata are on an ubi volume. This is because the ath9k
      card has to be initialized by owl-loader first. Which has to
      wait for the firmware extraction script to retrieve the pci
      initialization values inside the caldata.
      
      This patch moves the wifi configuration to hotplug scripts.
      For mac80211, the wifi configuration will now automatically
      run any time a "ieee80211" device is added. Likewise
      broadcom-wl's script checks for new "net" devices which
      have the "wl$NUMBER" moniker.
      
      Issues with spawning multiple interface configuration - in
      case the detection script is run concurrently - have been
      resolved by using a named section for the initial
      configuration. Concurrent configuration scripts will now
      simply overwrite the same existing configuration.
      
      A workaround which preserves the "sleep 1" window for just
      the first boot has been added. This allows the existing
      brcm47xx boot and mvebu uci-default scripts to correctly
      setup the initial mac addresses and regulatory domain.
      
      And finally, the patch renames the "wifi detect" into
      "wifi config". As the script no longer produces any output
      that has to be redirected or appended to the configuration
      file.
      
      Thanks to Martin Blumenstingl for helping with the implementation
      and testing of the patch.
      
      Acked-by: default avatarJo-Philipp Wich <jo@mein.io>
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      5f8f8a36
    • Mathias Kresin's avatar
      base-files: generate /etc/config/wireless, if it doesn't exist · ba3540db
      Mathias Kresin authored
      
      This patch adds a check in "wifi detect" to test if the wireless
      configuration file does exist. If it doesn't exist, an empty
      /etc/config/wireless file will be created.
      
      This is necessary because uci doesn't create new files,
      instead the tool just exits with "uci: Entry not found".
      
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      ba3540db
  4. Oct 04, 2016
  5. Jul 26, 2016
  6. Feb 09, 2016
    • Jo-Philipp Wich's avatar
      x86: preserve partition table on sysupgrade · 4aeeead3
      Jo-Philipp Wich authored
      
      With this patch sysupgrade will write directly to the partitions
      instead of to the main disk.  The UUID is copied from the image
      to the MBR as well.  This prevents the mbr from being completely
      overwritten and losing the partition table.  The -p option has
      been added to maintain the original behavior and overwite the
      entire disk with the new image.  Tests have been added to ensure
      that the image partitions match up with the active partitions.
      
      Signed-off-by: default avatarRob Mosher <nyt-openwrt@countercultured.net>
      
      SVN-Revision: 48682
      4aeeead3
  7. Feb 08, 2016
  8. Jan 17, 2016
  9. Oct 02, 2015
  10. Apr 09, 2015
    • John Crispin's avatar
      base-files: add support for platform_pre_upgrade function · 5d8f9e03
      John Crispin authored
      
      Current NAND sysupgrade process is a bit hard to follow due to the way
      of triggering stage1. Currently this is done by leaving a /mark/ in the
      form of /tmp/sysupgrade-nand-path during nand_do_platform_check.
      Existence of this mark stops standard sysupgrade process (as the result
      of sysupgrade_pre_upgrade exit). This may be a bit misleading.
      
      Proposed solution adds a new function that will allow platform.sh
      trigger NAND sysupgrade consciously. This will also allow cleaning
      nand_do_platform_check limiting it to just checking the image.
      
      Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
      
      SVN-Revision: 45338
      5d8f9e03
  11. Mar 10, 2015
  12. Nov 24, 2014
  13. Oct 14, 2014
    • John Crispin's avatar
      scripts: fix wrong usage of '==' operator · 20940138
      John Crispin authored
      
      [base-files] shell-scripting: fix wrong usage of '==' operator
      
      normally the '==' is used for invoking a regex parser and is a bashism.
      all of the fixes just want to compare a string. the used busybox-ash
      will silently "ignore" this mistake, but make it portable/clean at least.
      
      this patch does not change the behavior/logic of the scripts.
      
      Signed-off-by: default avatarBastian Bittorf <bittorf@bluebottle.com>
      
      SVN-Revision: 42911
      20940138
  14. Oct 06, 2014
  15. Jun 16, 2014
  16. Jun 11, 2014
  17. Apr 07, 2014
  18. Jan 17, 2014
  19. Dec 11, 2013
  20. Dec 09, 2013
  21. Dec 02, 2013
  22. Nov 19, 2013
  23. Nov 14, 2013
    • Felix Fietkau's avatar
      ar71xx: Unifi AP Pro sysupgrade patch · ff17114b
      Felix Fietkau authored
      
      The current implementation of mtd will not append the backup
      file created by sysupgrade to the correct partition, as mtd will append
      the data to first jffs2 partition it finds. As the kernel is also
      stored on a jffs2 partition (which resides before the overlay
      partition), the data will be appended to this partition.
      
      To fix this problem, a new option
      
      -s <number>             skip the first n bytes when appending data to the jffs2 partiton, defaults to "0"
      
      is added to mtd.
      
      Signed-off-by: default avatarPeter Wagner <tripolar@gmx.at>
      
      SVN-Revision: 38807
      ff17114b
  24. Jul 31, 2013
  25. Jul 30, 2013
  26. Jun 10, 2013
  27. Apr 25, 2013
  28. Mar 27, 2013
  29. Feb 21, 2013
  30. Jan 02, 2013
  31. Dec 19, 2012
  32. Aug 12, 2012
  33. Aug 09, 2012
Loading