<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/target/linux, branch v23.05.2</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v23.05.2</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v23.05.2'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2023-11-13T13:02:38Z</updated>
<entry>
<title>treewide: fix shell errors during dump stage</title>
<updated>2023-11-13T13:02:38Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-06-15T14:11:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=51bb178824f937b1f1988c9351e3586f81c18b74'/>
<id>urn:sha1:51bb178824f937b1f1988c9351e3586f81c18b74</id>
<content type='text'>
Fixes following issues:

 bash: -c: line 1: `echo 1686820180&lt;LINUX_VERMAGIC&gt; | /staging_dir/host/bin/mkhash md5 | cut -b1-8'
 bash: -c: line 1: `echo 1686820180&lt;LINUX_VERMAGIC&gt; | /staging_dir/host/bin/mkhash md5 | sed -E 's/(.{8})(.{4})(.{4})(.{4})(.{10})../\1-\2-\3-\4-\500/''
 bash: -c: line 1: syntax error near unexpected token `|'
 bash: line 1: *1024*1024: syntax error: operand expected (error token is "*1024*1024")
 bash: line 1: (64 + ): syntax error: operand expected (error token is ")")
 expr: syntax error: missing argument after '+'

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit 8fc496be860192f8bd1f16913657626014c8863f)
</content>
</entry>
<entry>
<title>ramips: add support for MeiG SLT866 4G CPE</title>
<updated>2023-11-13T00:58:08Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2023-10-24T17:05:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=b38b5c42997e527f91e653a4b6d77a5717d3cd14'/>
<id>urn:sha1:b38b5c42997e527f91e653a4b6d77a5717d3cd14</id>
<content type='text'>
Hardware:
 - SoC: Mediatek MT7621 (MT7621AT)
 - Flash: 32 MiB SPI-NOR (Macronix MX25L25635E)
 - RAM: 128 MiB
 - Ethernet: Built-in, 2 x 1GbE
 - 3G/4G Modem: MEIG SLM828 (currently only supported with ModemManager)
 - SLIC: Si32185 (unsupported)
 - Power: 12V via barrel connector
 - Wifi 2.4GHz: Mediatek MT7603BE 802.11b/g/b
 - Wifi 5GHz: Mediatek MT7613BE 802.11ac/n/a
 - LEDs: 8x (7 controllable)
 - Buttons: 2x (RESET, WPS)

Installing OpenWrt:
 - sysupgrade image is compatible with vendor firmware.

Recovery:
 - Connect to any of the Ethernet ports, configure local IP:
   10.10.10.3/24 (or 192.168.10.19/24, depending on OEM)
 - Provide firmware file named 'mt7621.img' on TFTP server.
 - Hold down both, RESET and WPS, then power on the board.
 - Watch network traffic using tcpdump or wireshark in realtime to
   observe progress of device requesting firmware. Once download has
   completed, release both buttons and wait until firmware comes up.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
(cherry picked from commit bc335f296740ac386e1ef09a49f1844419b0ccf9)
</content>
</entry>
<entry>
<title>kernel: support reading hex MAC address from NVMEM</title>
<updated>2023-11-13T00:58:08Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2023-10-26T02:50:40Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=03e26f856fe3a7508436bbb3acc394708cf9ac8c'/>
<id>urn:sha1:03e26f856fe3a7508436bbb3acc394708cf9ac8c</id>
<content type='text'>
In addition to binary and ASCII-formatted MAC addresses, add support
for processing hexadecimal encoded MAC addresses from NVMEM.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
(cherry picked from commit 7db87d7c6846977402899b27881824b3df4f50ab)
</content>
</entry>
<entry>
<title>kernel: add support MeigLink SLM828 modem</title>
<updated>2023-11-13T00:58:08Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2023-10-26T02:46:44Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a00fc406b9adb37039b3b6f7f8914477b1f8caae'/>
<id>urn:sha1:a00fc406b9adb37039b3b6f7f8914477b1f8caae</id>
<content type='text'>
Another Qualcomm-based USB-connected modem, offering endpoints
 0 : rndis_host (link to voip subsystem listening on 169.254.5.100)
 1 : rndis_host (?)
 2 : option (?)
 3 : option (at)
 4 : option (at)
 5 : option (?)
 6 : GobiNet (qmi)
 7 : ?

Add support for this modem in rndis_host, option and qmi_wwan driver
which allows the modem to be used with ModemManager.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
(cherry picked from commit f32baf6a65fbe294b9eb7b93f39b2aea1c3402ae)
</content>
</entry>
<entry>
<title>ramips: cf-ew72-v2: Add support for COMFAST CF-EW72 V2</title>
<updated>2023-11-13T00:58:08Z</updated>
<author>
<name>Alexey D. Filimonov</name>
</author>
<published>2023-08-18T21:26:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=275f7e07ee0ba4d0797cb8ef2ff2077fcc26f1ea'/>
<id>urn:sha1:275f7e07ee0ba4d0797cb8ef2ff2077fcc26f1ea</id>
<content type='text'>
Add support for COMFAST CF-EW72 V2

Hardware:
-   SoC: Mediatek MT7621 (MT7621DAT or MT7621AT)
-   Flash: 16 MiB NOR
-   RAM: 128 MiB
-   Ethernet: Built-in, 2 x 1GbE
-   Power: only 802.3af PD on any port, injector supplied in the box
-   PoE passthrough: No
-   Wifi 2.4GHz: Mediatek MT7603BE 802.11b/g/b
-   Wifi 5GHz: Mediatek MT7613BEN 802.11ac/n/a
-   LEDs: 8x (only 1 is both visible and controllable, see below)
-   Buttons: 1x (RESET)

Installing OpenWrt:
Flashing is done using Mediatek U-Boot System Recovery Mode
-   make wired connection with 2 cables like this:
-     -   PC (LAN) &lt;-&gt; PoE Injector (LAN)
-     -   PoE Injector (POE) &lt;-&gt; CF-EW72 V2 (LAN). Leave unconnected to CF-EW72 V2 yet.
-   configure 192.168.1.(2-254)/24 static ip address on your PC LAN
-   press and keep pressed RESET button on device
-   power the device by plugging PoE Injector (POE) &lt;-&gt; CF-EW72 V2 (LAN) cable
-   wait for about 10 seconds until wifi led stops blinking and release RESET button
-   navigate from your PC to http://192.168.1.1 and upload OpenWrt *-factory.bin firmware file
-   proceed until router starts blinking with wifi led again (flashing) and stops (rebooting to OpenWrt)

MAC addresses as verified by OEM firmware:
  vendor OpenWrt  address
  LAN    lan\eth0 label
  WAN    wan     label + 1
  2g     phy0    label + 2
  5g     phy1    label + 3

  The label MAC address was found in 0xe000.

LEDs detailed:
  The only both visible and controllable indicator is blue:wlan LED.
  It is not bound by default to indicate activity of any wireless interfaces.

  Place (WAN-&gt;ANT) | Num | GPIO | LED name (LuCI)   | Note
  -----------------|-----|-----------------------------------------------------------------------------------------
             power | 1   |      |                   | POWER LED. Not controlled with GPIO.
      hidden_led_2 | 2   | 13   | blue:hidden_led_2 | This LED does not have proper hole in shell.
               wan | 3   |      |                   | WAN LED. Not controlled with GPIO.
      hidden_led_4 | 4   | 16   | blue:hidden_led_4 | This LED does not have proper hole in shell.
               lan | 5   |      |                   | LAN LED. Not controlled with GPIO.
      noconn_led_6 | 6   |      |                   | Not controlled with GPIO, possibly not connected
              wlan | 7   | 15   | blue:wlan         | WLAN LED. Wireless indicator.
      noconn_led_8 | 8   |      |                   | Not controlled with GPIO, possibly not connected

  mt76-phy0 and mt76-phy1 leds also exist in OpenWrt, but do not exist on board.

Signed-off-by: Alexey D. Filimonov &lt;alexey@filimonic.net&gt;
(cherry picked from commit ff95f859ebf710d2914472a3feeeb0d187d14459)
</content>
</entry>
<entry>
<title>ramips: Add support for ComFast CF-E390AX</title>
<updated>2023-11-13T00:58:08Z</updated>
<author>
<name>Usama Nassir</name>
</author>
<published>2023-05-19T00:35:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=65bf66f7274a0f992836516df9f6033c07aa6b27'/>
<id>urn:sha1:65bf66f7274a0f992836516df9f6033c07aa6b27</id>
<content type='text'>
Add support for ComFast CF-E390AX. It is a 802.11 wifi6 cieling AP, based on MediaTek MT7261AT.

Specifications:
SoC: MediaTek MT7621AT
RAM: 128 MiB
Flash: 16 MiB NOR (Macronix mx25l12805d)

Wireless: MT7915E (2.4G) 802.11ax/b/g/n MT7915E (5G) 802.11ac/ax/n
Ethernet: 2 x 1Gbs
Button: 1 x "Reset" button
LED: 1x Blue LED + 1x Red LED + 1x green LED
Power: PoE

Manufacturer Page:
http://en.comfast.com.cn/index.php?m=content&amp;c=index&amp;a=show&amp;catid=84&amp;id=75

Flash Layout:
0x000000000000-0x000000030000 : "bootloader"
0x000000030000-0x000000040000 : "config"
0x000000050000-0x000000060000 : "factory"
0x000000090000-0x000001000000 : "firmware"

First install:
1. Set device into http firmware fail safe upload mode by pressing the reset button for 10 seconds while powering
   it on. Once the LED stops flashing, safe mode will be running.
2. Set PC IP address to 192.168.1.2
3. Browse to 192.168.1.1 and upload the factory image using the web interface.

Signed-off-by: Usama Nassir &lt;usama.nassir@gmail.com&gt;
(cherry picked from commit f24c9b9d863c2635e472e83028d28cc8d0a7c7c6)
</content>
</entry>
<entry>
<title>mediatek: add CMCC RAX3000M support</title>
<updated>2023-11-06T23:46:00Z</updated>
<author>
<name>Tianling Shen</name>
</author>
<published>2023-09-23T07:04:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=d3c193525e6210da2834050e92a077d408381320'/>
<id>urn:sha1:d3c193525e6210da2834050e92a077d408381320</id>
<content type='text'>
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 | &lt;= |
  |   -----------------    |
  --------------------------

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 &gt; /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: Tianling Shen &lt;cnsztl@immortalwrt.org&gt;
(cherry picked from commit 423186d7d8b4f23aee91fca4f1774a195eba00d8)
[rebased to 23.05]
Signed-off-by: Tianling Shen &lt;cnsztl@immortalwrt.org&gt;
</content>
</entry>
<entry>
<title>treewide: fix MERCUSYS brand spelling</title>
<updated>2023-11-06T23:40:00Z</updated>
<author>
<name>Mikhail Zhilkin</name>
</author>
<published>2023-10-29T14:51:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=04cde73d56ebe83f3452c6e4f07cc39e19e8ea38'/>
<id>urn:sha1:04cde73d56ebe83f3452c6e4f07cc39e19e8ea38</id>
<content type='text'>
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: Mikhail Zhilkin &lt;csharper2005@gmail.com&gt;
(cherry picked from commit 45a50a06fb3f39ea70936dd967a74e6e96f0cd89)
</content>
</entry>
<entry>
<title>mediatek: add label-mac for GL.iNet GL-MT3000</title>
<updated>2023-11-04T01:45:23Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2023-11-03T21:05:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=ec54022549f90ba4b72ac4f089ee46510c7127e4'/>
<id>urn:sha1:ec54022549f90ba4b72ac4f089ee46510c7127e4</id>
<content type='text'>
The MAC-address of gmac0 matches the one printed on the bottom label.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
(cherry picked from commit ae500e62e2938e112ae1fc6aa7389e8c7b784b13)
</content>
</entry>
<entry>
<title>bcm53xx: add the latest fix version of brcm_nvram</title>
<updated>2023-11-02T08:45:16Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2023-11-02T08:08:54Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=41f27bbb6d0af2f37098b97cd28d5f514a6fc417'/>
<id>urn:sha1:41f27bbb6d0af2f37098b97cd28d5f514a6fc417</id>
<content type='text'>
It was just sent for upstream.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
(cherry picked from commit 943bd3c9f6244c928cd168302d638a6a218fd4e6)
</content>
</entry>
</feed>
