Skip to content
Snippets Groups Projects
  1. Jul 23, 2021
    • lemoer's avatar
      contrib: add push_pkg.sh to enhance package development workflow (v2) (#2023) · d4dee692
      lemoer authored
      v2: In contrast to the last patches, this is now built on top of ssh
          only, without using e.g. 9pfs. Furthermore it works also with
          arbitary remote hosts on any target/architecture. Also the
          scripts were renamed and moved to /scripts.
      
      The aim of this commit is to allow fast rebuild cycles during the
      development of gluon packages.
      
      Currently the following workflow can be used:
      
      	# start a local qemu instance
      	scripts/run_qemu.sh output/images/factory/[...].img
      
      	# do your changes in the file you want to patch
      	vi package/gluon-ebtables/files/etc/init.d/gluon-ebtables
      
      	# rebuild and update the package
      	scripts/push_pkg.sh package/gluon-ebtables/
      
      	# test your changes
      	...
      
      	# do more changes
      	...
      
      	# rebuild and update the package
      	scripts/push_pkg.sh package/gluon-ebtables/
      
      	# test your changes
      	...
      
      	(and so on...)
      
      Implementation details:
      - Currently this is based on ssh/scp.
      - Opkg is used to install/update the packages in the remote machine.
      
      Benefits:
      - This works with compiled and non-compiled packages.
      - This works with native OpenWrt and Gluon packages.
      - This even performs the check_site.lua checks as they are integrated
        as post_install scripts into the openwrt package.
      - It works for all architectures/targets.
      Unverified
      d4dee692
  2. Jul 18, 2021
  3. Jul 13, 2021
    • Matthias Schiffer's avatar
      ramips-rt305x: drop target · 09c9b78e
      Matthias Schiffer authored
      VoCores aren't exactly useful mesh nodes except for experimentation.
      They certainly aren't worth maintaining a whole target, in particular
      one that has a WLAN driver not used by any other target.
      09c9b78e
  4. Jul 06, 2021
  5. Jun 29, 2021
    • David Bauer's avatar
    • Dark4MD's avatar
      ramips-mt76x8: add Xiaomi Mi Router 4C · aab7d8ac
      Dark4MD authored
      Specifications:
      
      - CPU: MediaTek MT7628AN (580MHz)
      - Flash: 16MB
      - RAM: 64MB DDR2
      - 2.4 GHz: IEEE 802.11b/g/n with Integrated LNA and PA
      - Antennas: 4x external single band antennas
      - WAN: 1x 10/100M
      - LAN: 2x 10/100M
      - LEDs: 2x yellow/blue. Programmable (labelled as power on case)
                            - Non-programmable (shows WAN activity)
      - Button: Reset
      
      How to install:
      
      1- Use OpenWRTInvasion to gain telnet and ftp access.
      2- Push openwrt firmware to /tmp/ using ftp.
      3- Connect to router using telnet. (IP: 192.168.31.1 -
         Username: root - No password)
      4- Use command "mtd -r write /tmp/firmware.bin OS1" to flash into
         the router..
      5- It takes around 2 minutes. After that router will restart itself
         to OpenWrt.
      aab7d8ac
    • Dark4MD's avatar
      ramips-mt7621: add Xiaomi Mi Router 4A (Gigabit Edition) · a5e085b5
      Dark4MD authored
      Specifications:
      
      - SoC:      MediaTek MT7621
      - Flash:    16 MiB NOR SPI
      - RAM:      128 MiB DDR3
      - Ethernet: 3x 10/100/1000 Mbps (switched, 2xLAN + WAN)
      - WIFI0:    MT7603E 2.4GHz 802.11b/g/n
      - WIFI1:    MT7612E 5GHz 802.11ac
      - Antennas: 4x external (2 per radio), non-detachable
      - LEDs:     Programmable "power" LED (two-coloured, yellow/blue)
                  Non-programmable "internet" LED (shows WAN activity)
      - Buttons:  Reset
      
      Installation:
      
      Bootloader won't accept any serial input unless "boot_wait" u-boot
      environment variable is changed to "on".
      
      Vendor firmware won't accept any serial input until "uart_en" is
      set to "1".
      
      Using the https://github.com/acecilia/OpenWRTInvasion exploit you
      can gain access to shell to enable these options:
      
      To enable uart keyboard actions - 'nvram set uart_en=1'
      To make uboot delay boot work - 'nvram set boot_wait=on'
      Set boot delay to 5 - 'nvram set bootdelay=5'
      
      Then run 'nvram commit' to make the changes permanent.
      
      Once in the shell (following the OpenWRTInvasion instructions) you
      can then run the following to flash OpenWrt and then reboot:
      
      'cd /tmp; curl https://downloads.openwrt.org/...-sysupgrade.bin
        --output firmware.bin; mtd -e OS1 -r write firmware.bin OS1'
      a5e085b5
  6. Jun 28, 2021
  7. Jun 26, 2021
  8. Jun 21, 2021
  9. Jun 15, 2021
  10. Jun 10, 2021
  11. May 27, 2021
  12. Apr 27, 2021
  13. Apr 14, 2021
  14. Jan 13, 2021
  15. Jan 10, 2021
  16. Dec 11, 2020
  17. Nov 14, 2020
  18. Nov 05, 2020
  19. Oct 06, 2020
  20. Sep 02, 2020
  21. Sep 01, 2020
  22. Aug 29, 2020
  23. Aug 28, 2020
    • Andreas Ziegler's avatar
    • Matthias Schiffer's avatar
      features: fix handling of logical expressions · 13b743d5
      Matthias Schiffer authored
      The rewrite of the feature handling introduced multiple major bugs. One
      of them was caused by the way Lua's logical operators work:
      
      An expression of the form
      
          _'autoupdater' and _'web-advanced'
      
      would return 'web-advanced' rather than the boolean true when _ returned
      both strings unchanged (because the features are enabled).
      
      As entries with more than a single feature name in their expressions did
      not set no_default, Gluon would then attempt to add gluon-web-advanced to
      the package selection, as web-advanced is a "pure" feature.
      
      To fix this, and get rid of the annoying nodefault, separate handling of
      "pure" feature and handling of logical expressions into two separate
      functions, called feature() and when(). To simplify the feature
      definitions, the package list is now passed directly to these functions
      rather than in a table with a single field 'packages'.
      
      Fixes: ee5ec5af ("build: rewrite features.sh in Lua")
      13b743d5
Loading