Skip to content
Snippets Groups Projects
  1. Dec 04, 2023
  2. Nov 11, 2023
  3. Nov 10, 2023
    • Christian Marangi's avatar
      ipq-wifi: update to Git HEAD (2023-11-10) · f6a9f0c5
      Christian Marangi authored
      
      c9db9d0b3027 ipq8074: add Asus RT-AX89X BDF
      33154283e54a ipq8074: update RegDB in new submitted BDF
      2b034415ac3d ipq40xx: add YYeTs LE1 BDF
      a9c253ebe926 ipq8074: add Netgear WAX620 Board file for Netgear WAX620, extracted from stock (bdwlan.b290) firmware and repacked.
      ec0960967999 qca-wireless: ipq40xx: add BDFs for ZTE MF287
      57aa1b1562ac ipq8174: Add Linksys MX4200
      52a1c2940605 ipq8074: add Netgear WAX630 Board file for Netgear WAX630. Extracted from stock (WAX630_BDF.bin) firmware and repacked.
      e7701b85d46d ipq8074: update RegDB in new submitted BDF
      cd04ab7f984f qcn9074: update RegDB in new submitted BDF
      f70fdf9438ae ipq8074: add Arcadyan AW1000 BDF
      21c4d976b1e6 ipq8074: add CMCC RM2-6 BDF
      f92fa0a2bdcf ipq8074: add ZTE MF269 BDF
      371d4dce9b9a ipq8074: add Yuncore AX880 BDF
      0c2e810e71ed qcn9074: fix prpl Foundation Haze BDF for old mac80211 version
      
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      f6a9f0c5
  4. Nov 09, 2023
  5. Nov 08, 2023
    • Hauke Mehrtens's avatar
      px5g-wolfssl: Fix permission of private key · 5106f554
      Hauke Mehrtens authored
      
      Store the private key with read and write permission for the user only
      and not with read permissions for everyone. This converts the
      write_file() function from fopen() to open() because open allows to
      specify the permission mask of the newly created file. It also adds and
      fixes some existing error handling.
      
      OpenSSL does this in the same way already.
      
      With this change it looks like this:
      root@OpenWrt:/# ls -al /etc/uhttpd.*
      -rw-r--r--    1 root     root           749 Nov  6 23:14 /etc/uhttpd.crt
      -rw-------    1 root     root           121 Nov  6 23:14 /etc/uhttpd.key
      
      Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      (cherry picked from commit 6aad5ab0)
      5106f554
    • Hauke Mehrtens's avatar
      px5g-mbedtls: Fix permission of private key · 6fd16b0d
      Hauke Mehrtens authored
      
      Store the private key with read and write permission for the user only
      and not with read permissions for everyone. This converts the
      write_file() function from fopen() to open() because open allows to
      specify the permission mask of the newly created file. It also adds and
      fixes some existing error handling.
      
      OpenSSL does this in the same way already.
      
      With this change it looks like this:
      root@OpenWrt:/# ls -al /etc/uhttpd.crt /etc/uhttpd.key
      -rw-r--r--    1 root     root           519 Nov  6 22:58 /etc/uhttpd.crt
      -rw-------    1 root     root           121 Nov  6 22:58 /etc/uhttpd.key
      
      Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      (cherry picked from commit 929c9a58)
      6fd16b0d
    • Felix Fietkau's avatar
      hostapd: use rtnl to set up interfaces · 6de0e0d0
      Felix Fietkau authored
      
      In wpa_supplicant, set up wlan interfaces before adding them
      
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      (cherry picked from commit c2a30b6e)
      6de0e0d0
    • Felix Fietkau's avatar
      wifi: fix applying mesh parameters when wpa_supplicant is in use · bbfb920e
      Felix Fietkau authored
      
      Apply them directly using nl80211 after setting up the interface.
      Use the same method in wdev.uc as well
      
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      (cherry picked from commit 53131426)
      bbfb920e
    • Felix Fietkau's avatar
      netifd: update to the latest version · f780cfb9
      Felix Fietkau authored
      
      383753dd65ae device/bridge: support passing extra vlans in the device_set_state call
      b6e75eafc1af device: send notifications for device events via ubus
      cab415c7aefd bridge: add auth-required bridge members with auth_status=0 if vlan is enabled
      827a02f0343c bridge: add support for configuring vlans for auth=1,auth_status=false
      40ed7363caf2 device: fix build error on 32 bit systems
      516ab774cc16 system-linux: fix race condition on bringing up wireless devices
      
      Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
      (cherry picked from commit 41d7439a)
      f780cfb9
  6. Nov 06, 2023
    • Tianling Shen's avatar
      mediatek: add CMCC RAX3000M support · d3c19352
      Tianling Shen authored
      
      Hardware specification:
        SoC: MediaTek MT7981B 2x A53
        Flash: 64GB eMMC or 128 MB SPI-NAND
        RAM: 512MB
        Ethernet: 4x 10/100/1000 Mbps
        Switch: MediaTek MT7531AE
        WiFi: MediaTek MT7976C
        Button: Reset, Mesh
        Power: DC 12V 1A
      - UART: 3.3v, 115200n8
        --------------------------
        |         Layout         |
        |   -----------------    |
        | 4 | GND TX VCC RX | <= |
        |   -----------------    |
        --------------------------
      
      Gain SSH access:
      1. Login into web interface, and download the configuration.
      2. Enter fakeroot, decompress the configuration:
         tar -zxf cfg_export_config_file.conf
      3. Edit 'etc/config/dropbear', set 'enable' to '1'.
      4. Edit 'etc/shadow', update (remove) root password:
         'root::19523:0:99999:7:::'
      5. Repack 'etc' directory:
         tar -zcf cfg_export_config_file.conf etc/
         * If you find an error about 'etc/wireless/mediatek/DBDC_card0.dat',
           just ignore it.
      6. Upload new configuration via web interface, now you can SSH to RAX3000M.
      
      Check stroage type:
      Check the label on the back of the device:
      "CH EC CMIIT ID: xxxx" is eMMC version
      "CH    CMIIT ID: xxxx" is NAND version
      
      eMMC Flash instructions:
      1. SSH to RAX3000M, and backup everything, especially 'factory' part.
         ('data' partition can be ignored, it's useless.)
      2. Write new GPT table:
         dd if=openwrt-mediatek-filogic-cmcc_rax3000m-emmc-gpt.bin of=/dev/mmcblk0 bs=512 seek=0 count=34 conv=fsync
      3. Erase and write new BL2:
         echo 0 > /sys/block/mmcblk0boot0/force_ro
         dd if=/dev/zero of=/dev/mmcblk0boot0 bs=512 count=8192 conv=fsync
         dd if=openwrt-mediatek-filogic-cmcc_rax3000m-emmc-preloader.bin of=/dev/mmcblk0boot0 bs=512 conv=fsync
      4. Erase and write new FIP:
         dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=13312 count=8192 conv=fsync
         dd if=openwrt-mediatek-filogic-cmcc_rax3000m-emmc-bl31-uboot.fip of=/dev/mmcblk0 bs=512 seek=13312 conv=fsync
      5. Set static IP on your PC:
         IP 192.168.1.254, GW 192.168.1.1
      6. Serve OpenWrt initramfs image using TFTP server.
      7. Cut off the power and re-engage, wait for TFTP recovery to complete.
      8. After OpenWrt has booted, perform sysupgrade.
      9. Additionally, if you want to have eMMC recovery boot feature:
           (Don't worry! You will always have TFTP recovery boot feature.)
         dd if=openwrt-mediatek-filogic-cmcc_rax3000m-initramfs-recovery.itb of=/dev/mmcblk0p4 bs=512 conv=fsync
      
      NAND Flash instructions:
      1. SSH to RAX3000M, and backup everything, especially 'Factory' part.
      2. Erase and write new BL2:
         mtd erase BL2
         mtd write openwrt-mediatek-filogic-cmcc_rax3000m-nand-preloader.bin BL2
      3. Erase and write new FIP:
         mtd erase FIP
         mtd write openwrt-mediatek-filogic-cmcc_rax3000m-nand-bl31-uboot.fip FIP
      4. Set static IP on your PC:
         IP 192.168.1.254, GW 192.168.1.1
      5. Serve OpenWrt initramfs image using TFTP server.
      6. Cut off the power and re-engage, wait for TFTP recovery to complete.
      7. After OpenWrt has booted, erase UBI volumes:
         ubidetach -p /dev/mtd0
         ubiformat -y /dev/mtd0
         ubiattach -p /dev/mtd0
      8. Create new ubootenv volumes:
         ubimkvol /dev/ubi0 -n 0 -N ubootenv -s 128KiB
         ubimkvol /dev/ubi0 -n 1 -N ubootenv2 -s 128KiB
      9. Additionally, if you want to have NAND recovery boot feature:
           (Don't worry! You will always have TFTP recovery boot feature.)
         ubimkvol /dev/ubi0 -n 2 -N recovery -s 20MiB
         ubiupdatevol /dev/ubi0_2 openwrt-mediatek-filogic-cmcc_rax3000m-initramfs-recovery.itb
      10. Perform sysupgrade.
      
      Signed-off-by: default avatarTianling Shen <cnsztl@immortalwrt.org>
      (cherry picked from commit 423186d7)
      [rebased to 23.05]
      Signed-off-by: default avatarTianling Shen <cnsztl@immortalwrt.org>
      d3c19352
    • Tianling Shen's avatar
      uboot-mediatek: add support for CMCC RAX3000M · 429715a2
      Tianling Shen authored
      
      The OEM U-Boot uses dual boot and signature verification which does not
      support by OpenWrt. So add a custom U-Boot build for OpenWrt.
      
      Signed-off-by: default avatarTianling Shen <cnsztl@immortalwrt.org>
      (cherry picked from commit fddd735d)
      429715a2
    • Tianling Shen's avatar
      arm-trusted-firmware-mediatek: add emmc/spim-nand ddr4 build for mt7981 · b209f456
      Tianling Shen authored
      
      They will be used on CMCC RAX3000M.
      
      Signed-off-by: default avatarTianling Shen <cnsztl@immortalwrt.org>
      (cherry picked from commit 7d8ffe94)
      b209f456
    • Mikhail Zhilkin's avatar
      treewide: fix MERCUSYS brand spelling · 04cde73d
      Mikhail Zhilkin authored
      This commit fixes MERCUSYS brand spelling. The proper name is capitalized.
      
      Link: https://www.mercusys.com/
      Link: https://github.com/torvalds/linux/blob/master/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c#L7779
      
      
      
      Signed-off-by: default avatarMikhail Zhilkin <csharper2005@gmail.com>
      (cherry picked from commit 45a50a06)
      04cde73d
    • Hauke Mehrtens's avatar
      mbedtls: Activate secp521r1 curve by default · 3223f31f
      Hauke Mehrtens authored
      Activate the secp521r1 ecliptic curve by default. This curve is allowed
      by the CA/Browser forum, see
      https://cabforum.org/wp-content/uploads/CA-Browser-Forum-BR-v2.0.1-redlined.pdf#page=110
      
      
      
      This increases the size of libmbedtls12_2.28.5-1_aarch64_generic.ipk by
      about 400 bytes:
      Without:
      252,696 libmbedtls12_2.28.5-1_aarch64_generic.ipk
      With:
      253,088 libmbedtls12_2.28.5-2_aarch64_generic.ipk
      
      Fixes: #13774
      Acked-by: default avatarKoen Vandeputte <koen.vandeputte@citymesh.com>
      Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
      (cherry picked from commit 3c17cdbc)
      3223f31f
    • Petr Štetiar's avatar
      image: fix image generation within ImageBuilder · cfadbc09
      Petr Štetiar authored
      
      Changes introduced in commit d604a072 ("build: add CycloneDX SBOM
      JSON support") broke ImageBuilder:
      
        Cannot open '/openwrt-imagebuilder-ath79-generic.Linux-x86_64/tmp/.packageinfo': No such file or directory
      
      So lets fix it by wrapping the BOM generation behind condition of IB
      feature check.
      
      Fixes: #13881
      Fixes: d604a072 ("build: add CycloneDX SBOM JSON support")
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      (cherry picked from commit c4259a65)
      cfadbc09
  7. Nov 05, 2023
  8. Nov 04, 2023
Loading