1. 31 Jan, 2023 13 commits
  2. 30 Jan, 2023 6 commits
  3. 29 Jan, 2023 11 commits
  4. 28 Jan, 2023 10 commits
    • Andre Heider's avatar
      ucode: move to the lang submenu · b2463851
      Andre Heider authored
      
      
      Just as lua or the various languages from the package feed.
      libucode is the exception, so move it to the libs menu instead.
      
      Signed-off-by: default avatarAndre Heider <a.heider@gmail.com>
      b2463851
    • Andre Heider's avatar
      uhttpd: clean up Makefile · 9902c852
      Andre Heider authored
      
      
      uhttpd's cmake options all default to ON. Either we set all of them or
      none if the defaults need to be changed. Let's go with the latter.
      
      Because support for all modules is always compiled in, remove two unused
      and useless config toggles.
      
      uhttpd detects and uses libcrypt itself, no need to add it here again.
      
      Signed-off-by: default avatarAndre Heider <a.heider@gmail.com>
      9902c852
    • Hauke Mehrtens's avatar
      px5g-mbedtls: Use getrandom() · d1893f1c
      Hauke Mehrtens authored
      
      
      Instead of accessing /dev/urandom use the getrandom syscall. This way we
      do not have to keep the file open all the time.
      This also fixes a compile error with glibc:
      
      --------
      px5g-mbedtls.c: In function '_urandom':
      px5g-mbedtls.c:48:9: error: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Werror=unused-result]
         48 |         read(urandom_fd, out, len);
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      --------
      
      Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      d1893f1c
    • Dmitry Sokolov's avatar
      ramips: mt7621: add support for Xiaomi Mi Router 4A Gigabit v2 · 39e4f03f
      Dmitry Sokolov authored
      Device is the same as Xiaomi Mi Router 4A Gigabit, except of:
      - 5G WiFi is MT7663
      - addresses of leds, wifi and eth ports are slightly changed
      
      Specs:
        SoC:  MT7621
        CPU:  2 x 880 MHz
        ROM:  16 MB
        RAM:  128 MB
        WLAN: MT7603, MT7663
      
      MAC addresses:
        WAN     ****  factory 0xe006 (label)
        LAN     *:f7  factory 0xe000
        2.4 GHz *:f8  factory 0x0000+0x4 (mtd-eeprom+0x4)
        5 GHz   *:f9  factory 0x8000+0x4 (mtd-eeprom+0x4)
      
      Installation:
      
      Factory firmware is based on a custom OpenWrt 17.x.
      Installation is the same as for Xiaomi Mi Router 4A Gigabit.
      
      Probably the easiest way to install is to use the script from
      this repository: https://github.com/acecilia/OpenWRTInvasion/pull/155
      
      In a more advanced case, you can do everything yourself:
      - gain access to the device through one of the exploits described
        in the link above
      - upload sysupgrade image to /tmp
      - overwrite stock firmware:
        # mtd -e OS1 -r write /tmp/sysupgrade.bin OS1
      
      Recovery:
      
      Recovery procedure is the same as for Xiaomi Mi Router 4A Gigabit.
      Possible options can be found here:
      https://openwrt.org/inbox/toh/xiaomi/xiaomi_mi_router_4a_gigabit_edition
      
      One of the ways is to use another router with OpenWrt:
      - connect both routers by their LAN ports
      - download stock firmware from [1]
      - place it inside /tmp/test.bin on the main router
      - configure PXE/TFTP on the main router
      - power off 4Av2, hold Reset button, power on
      - as soon as image download via TFTP starts, Reset can be released
      - blinking blue wan LED will indicate the end of the flashing process,
        now router can be rebooted
      [1] http://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/r4av2/miwifi_r4av2_firmware_release_2.30.28.bin
      
      
      
      Signed-off-by: default avatarDmitry Sokolov <e323w@proton.me>
      39e4f03f
    • Maxim Anisimov's avatar
      ramips: improve support for Zyxel Keenetic Extra II · 3690c4a0
      Maxim Anisimov authored
      
      
      - drop unneeded default-state for led_power
      - concat firmware partitions to extend available free space
      - increase spi flash frequency to 32 Mhz (value from stock firmware bootlog)
      - drop broken-flash-reset because of onboard flash chip W25Q256FV has reset support
      - add compatible for pcie wifi according to kernel documetation
      - switch to wan mac address with offset 0x28 in rf-eeprom
      
      Signed-off-by: default avatarMaxim Anisimov <maxim.anisimov.ua@gmail.com>
      3690c4a0
    • Maxim Anisimov's avatar
      ramips: use hex value in zyimage command for Keenetic KN-3010 · 2fe29794
      Maxim Anisimov authored
      
      
      This is cosmetic change. The hex value is related to the device
      model and more human friendly.
      
      Signed-off-by: default avatarMaxim Anisimov <maxim.anisimov.ua@gmail.com>
      2fe29794
    • Tom Herbers's avatar
      ath79: add LTE packages for GL-XE300 · 67f283be
      Tom Herbers authored
      
      
      Add LTE packages required for operating the LTE modems shipped with
      the GL-XE300.
      
      Example configuration for an unauthenticated dual-stack APN:
      
      network.wwan0=interface
      network.wwan0.proto='qmi'
      network.wwan0.device='/dev/cdc-wdm0'
      network.wwan0.apn='internet'
      network.wwan0.auth='none'
      network.wwan0.delay='10'
      network.wwan0.pdptype='IPV4V6'
      
      Signed-off-by: default avatarTom Herbers <mail@tomherbers.de>
      67f283be
    • Shiji Yang's avatar
      ath79: improve support for Letv LBA-047-CH · c7059c56
      Shiji Yang authored
      1. Convert wireless calibration data to NVMEM.
      2. Enable control green status LED and change default LED behaviors.
         The three LEDs of LBA-047-CH are in the same position, and the green
         LED will be completely covered by the other two LEDs. So don's use
         green LED as WAN indicator to ensure that only one LED is on at a time.
         LED     Factory          OpenWrt
         blue    internet fail    failsafe && upgrade
         green   internet okay    run
         red     boot             boot
      3. Reduce the SPI clock to 30 MHz because the ath79 target does not
         support 50 MHz SPI operation well. Keep the fast-read support to
         ensure the spi-mem feature (b3f98423
      
      ) is enabled.
      4. Remove unused package "uboot-envtools".
      5. Split the factory image into two parts: rootfs and kernel.
         This change can reduce the factory image size and allow users to
         upgrade the OpenWrt kernel loader uImage (OKLI) independently.
      
         The new installation method: First, rename "squashfs-kernel.bin" to
         "openwrt-ar71xx-generic-ap147-16M-kernel.bin" and rename "rootfs.bin"
         to "openwrt-ar71xx-generic-ap147-16M-rootfs-squashfs.bin". Then we
         can press reset button for about 5 seconds to enter tftp download mode.
         Finally, set IP address to 192.168.67.100 and upload the above two
         parts via tftp server.
      
      Tested on Letv LBA-047-CH
      
      Signed-off-by: default avatarShiji Yang <yangshiji66@qq.com>
      c7059c56
    • Edward Chow's avatar
      ath79: calibrate dlink dir-825 c1 and dir-835 a1 with nvmem · 2a20dc71
      Edward Chow authored
      
      
      Driver for both soc (2.4GHz Wifi) and pci (5 GHz) now pull the calibration
      data from the nvmem subsystem.
      
      This allows us to move the userspace caldata extraction for the pci-e ath9k
      supported wifi into the device-tree definition of the device.
      
      Currently, "mac-address-ascii" cells only works for ethernet and wmac devices,
      so PCI ath9k device uses the old method to calibrate.
      
      Signed-off-by: default avatarEdward Chow <equu@openmail.cc>
      2a20dc71
    • Tony Butler's avatar
      kernel: add kmod-lib-842 · a7f3a519
      Tony Butler authored
      
      
      "842" is a compression scheme and this is the software implementation
      which is too slow to really use beyond a proof of concept.  It can be
      selected in ZRAM, ZSWAP, or `fs/pstore`, and is here for completeness.
      In general you need a Power8 or better with 842-in-hardware for it to
      be fast, but other 842-accelerators are emerging.
      
      Signed-off-by: default avatarTony Butler <spudz76@gmail.com>
      a7f3a519