Skip to content

ramips: add support for Cudy WR1300 #3816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

pyckle
Copy link
Contributor

@pyckle pyckle commented Jan 27, 2021

Specifications:

  • SoC: MediaTek MT7621AT
  • RAM: 128 MB (DDR3)
  • Flash: 16 MB (SPI NOR)
  • WiFi: MediaTek MT7603E, MediaTek MT7612E
  • Switch: 1 WAN, 4 LAN (Gigabit)
  • Ports: 1 USB 3.0
  • Buttons: Reset, WPS
  • LEDs: Power, System, Wan, Lan 1-4, WiFi 2.4G, WiFi 5G, WPS, USB
  • Power: DC 12V 1A tip positive

UART Serial:
115200 baud
Located on unpopulated 4 pin header near J4:

J4
[o] Rx
[o] Tx
[o] GND
[ ] Vcc - Do not connect

Installation:

Download and flash the manufacturer's built OpenWRT image available at
http://www.cudytech.com/openwrt_software_download
Install the new OpenWRT image via luci (System -> Backup/Flash firmware)

Recovery:

  • Loads only signed manufacture firmware due to bootloader RSA verification
  • serve tftp-recovery image as /recovery.bin on 192.168.1.88/24
  • connect to any lan ethernet port
  • power on the device while holding the reset button
  • wait at least 8 seconds before releasing reset button for image to
    download
  • See http://www.cudytech.com/newsinfo/547425.html

Signed-off-by: Andrew Pikler andrew.pikler@gmail.com

@adschm adschm added the target/ramips pull request/issue for ramips target label Jan 27, 2021
@pyckle pyckle force-pushed the master_cudy_wr1300 branch from e9b1d06 to 41d72f2 Compare January 27, 2021 20:05
@pyckle
Copy link
Contributor Author

pyckle commented Jan 27, 2021

Hey @adschm, thanks for your time and the lighting fast review. I think I've addressed all of your concerns. Let me know if there are other necessary changes or ways for me to make this cleaner. Thanks!

@pyckle pyckle force-pushed the master_cudy_wr1300 branch from 41d72f2 to fa6fed9 Compare January 27, 2021 20:12
@pyckle pyckle force-pushed the master_cudy_wr1300 branch 5 times, most recently from 4d61eee to 0b707f5 Compare January 28, 2021 16:07
@mans0n
Copy link
Member

mans0n commented Jan 29, 2021

I would be happy if you sort key/led nodes by node name or gpio pin number.

@pyckle pyckle force-pushed the master_cudy_wr1300 branch from 0b707f5 to 5ea4cc5 Compare February 2, 2021 15:00
@pyckle
Copy link
Contributor Author

pyckle commented Feb 2, 2021

I would be happy if you sort key/led nodes by node name or gpio pin number.

Done, I believe.

@pyckle pyckle force-pushed the master_cudy_wr1300 branch from 5ea4cc5 to 3a28fe2 Compare February 2, 2021 18:46
@pyckle pyckle requested a review from adschm February 3, 2021 07:23
@pyckle pyckle force-pushed the master_cudy_wr1300 branch 3 times, most recently from db494d6 to c48173b Compare February 4, 2021 22:21
@adschm
Copy link
Member

adschm commented Feb 6, 2021

please add a comment like "Make sure to not keep settings!" after the flashing instructions in the commit message.

@pyckle pyckle force-pushed the master_cudy_wr1300 branch from c48173b to 308ab4b Compare February 6, 2021 19:12
@pyckle
Copy link
Contributor Author

pyckle commented Feb 7, 2021

please add a comment like "Make sure to not keep settings!" after the flashing instructions in the commit message.

Done. I believe the force box will need to be checked too - the SUPPORTED_DEVICES variable didn't seem to work. Should I mention that too, or should I work to attempt to make this check pass?

@pyckle pyckle requested a review from adschm February 7, 2021 07:20
@adschm
Copy link
Member

adschm commented Feb 7, 2021

Well, if the SUPPORTED_DEVICES does not work then please remove it.

@pyckle pyckle force-pushed the master_cudy_wr1300 branch from 308ab4b to 083aeac Compare February 7, 2021 14:14
Specifications:
 - SoC: MediaTek MT7621AT
 - RAM: 128 MB (DDR3)
 - Flash: 16 MB (SPI NOR)
 - WiFi: MediaTek MT7603E, MediaTek MT7612E
 - Switch: 1 WAN, 4 LAN (Gigabit)
 - Ports: 1 USB 3.0
 - Buttons: Reset, WPS
 - LEDs: Power, System, Wan, Lan 1-4, WiFi 2.4G, WiFi 5G, WPS, USB
 - Power: DC 12V 1A tip positive

UART Serial:
  115200 baud
  Located on unpopulated 4 pin header near J4:

  J4
  [o] Rx
  [o] Tx
  [o] GND
  [ ] Vcc - Do not connect

Installation:

Download and flash the manufacturer's built OpenWRT image available at
http://www.cudytech.com/openwrt_software_download
Install the new OpenWRT image via luci (System -> Backup/Flash firmware)
Be sure to NOT keep settings. The force upgrade may need to be checked
due to differences in router naming conventions.

Recovery:
 - Loads only signed manufacture firmware due to bootloader RSA verification
 - serve tftp-recovery image as /recovery.bin on 192.168.1.88/24
 - connect to any lan ethernet port
 - power on the device while holding the reset button
 - wait at least 8 seconds before releasing reset button for image to
   download
 - See http://www.cudytech.com/newsinfo/547425.html

MAC addresses as verified by OEM firmware:

use   address   source
LAN   *:f0      label
WAN   *:f1      label + 1
2g    *:f0      label
5g    *:f2      label + 2

The label MAC address is found in bdinfo 0xde00.

Signed-off-by: Andrew Pikler <andrew.pikler@gmail.com>
@pyckle pyckle force-pushed the master_cudy_wr1300 branch from 083aeac to 3f26fb0 Compare February 7, 2021 19:21
@pyckle
Copy link
Contributor Author

pyckle commented Feb 8, 2021

Well, if the SUPPORTED_DEVICES does not work then please remove it.

Done. I also documented in the commit it may require a force flashing. I think this is OK. If somebody makes a mistake and flashes the wrong firmware, the bootloader's TFTP recovery should be adequate to prevent bricking.

@adschm
Copy link
Member

adschm commented Feb 9, 2021

Thanks, will be merged during the next hour.

@adschm adschm closed this Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs changes target/ramips pull request/issue for ramips target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants