Skip to content

filogic: add support for GL.iNet GL-MT6000 #13414

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 3 commits into from

Conversation

zhaojh329
Copy link
Contributor

@zhaojh329 zhaojh329 commented Sep 5, 2023

Hardware specification:

  • SoC: MediaTek MT7986A 4x A53
  • Flash: 8GB EMMC
  • RAM: 1GB DDR4
  • Ethernet:
    • 2x2.5G RJ45 port (RTL8221B)
    • 4x1G RJ45 ports (MT7531AE)
  • WLAN:
    • 2.4GHz: MT7976GN 4T4R
    • 5GHz: MT7976AN 4T4R
  • Button: Reset
  • LED: 1 x dual color LED
  • USB: 1 x USB 3.0
  • Power: DC 12V 4A
  • UART: 3V3 115200 8N1 (Pinout: GND TX RX VCC)
  • JTAG: 9 PIN

If you want to use u-boot from OpenWrt, you can upgrade it safely.

  • bl2: openwrt-mediatek-filogic-glinet_gl-mt6000-preloader.bin
  • fip: openwrt-mediatek-filogic-glinet_gl-mt6000-bl31-uboot.fip

openwrt-mediatek-filogic-glinet_gl-mt6000-squashfs-factory.bin is used in OpenWrt's u-boot.

image

image

@github-actions github-actions bot added kernel pull request/issue with Linux kernel related changes core packages pull request/issue for core (in-tree) packages target/mediatek pull request/issue for mediatek target labels Sep 5, 2023
@zhaojh329
Copy link
Contributor Author

image?

awkward.

Copy link
Member

@dangowrt dangowrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks quite good already, only some small/cosmetic changes are needed.

@zhaojh329 zhaojh329 force-pushed the mt6000 branch 2 times, most recently from c86c5ed to 55dfadc Compare September 6, 2023 05:04
@mrkiko
Copy link
Contributor

mrkiko commented Sep 6, 2023

Hi!
May I ask you if you can add installation instructions / recovery method?

Thanks a lot!

Enrico

@zhaojh329
Copy link
Contributor Author

Installation instructions / recovery method for devices of GL.iNet is well-known.

@mrkiko
Copy link
Contributor

mrkiko commented Sep 6, 2023

The "surrounding" changes looks good to me; I haven't checked the DTS tough.
Very apreciated you added u-boot support as well.

@zhaojh329
Copy link
Contributor Author

I'll add a bootmenu for the u-boot later.

@zhaojh329 zhaojh329 force-pushed the mt6000 branch 2 times, most recently from 7f3e438 to d57f28b Compare September 7, 2023 16:31
@zhaojh329
Copy link
Contributor Author

I'll add a bootmenu for the u-boot later.

Done.

@zhaojh329 zhaojh329 force-pushed the mt6000 branch 5 times, most recently from ed63deb to e1615f5 Compare September 9, 2023 10:57
@zhaojh329 zhaojh329 requested a review from dangowrt September 11, 2023 01:05
@zhaojh329 zhaojh329 force-pushed the mt6000 branch 2 times, most recently from 2c9bb16 to f088f39 Compare September 18, 2023 11:57
@dangowrt
Copy link
Member

The changes themselves look all good now, however, it would be nice to split this into several commits:

  • commit adding *net-phy-realtek-support-interrupt-of-RTL8221B.patch
  • commit add U-Boot build for MT6000
  • commit adding uboot-envtools settings for MT6000
  • commit add DTS and image build for MT6000

@zhaojh329
Copy link
Contributor Author

The changes themselves look all good now, however, it would be nice to split this into several commits:

  • commit adding *net-phy-realtek-support-interrupt-of-RTL8221B.patch
  • commit add U-Boot build for MT6000
  • commit adding uboot-envtools settings for MT6000
  • commit add DTS and image build for MT6000

OK.

@zhaojh329
Copy link
Contributor Author

@dangowrt
The mt76 driver usually reads the eeprom on the mtd partition at dts. For emmc device we need to use caldata_extract script to read the eeprom. However, the default eeprom file breaks the caldata script execution.

https://github.com/openwrt/openwrt/blob/main/package/kernel/mt76/Makefile#L590

@dangowrt
Copy link
Member

Yes, I know and agree. In the future we should have nvmem-cells attached to MMC hardware or software partitions, but for now adn Linux 5.15 in OpenWrt we need a work-around in user-space. So yeah, those default EEPROM files should each go into a package of its own...

@zhaojh329 zhaojh329 force-pushed the mt6000 branch 2 times, most recently from d743b1d to 679a366 Compare September 25, 2023 04:11
@aiamadeus
Copy link
Contributor

Actually you should use pick or am my commit: aiamadeus@e8261f7

@zhaojh329
Copy link
Contributor Author

Actually you should use pick or am my commit: aiamadeus@e8261f7

Done.

zhaojh329 and others added 3 commits September 28, 2023 12:42
This commit introduces interrupt support for RTL8221B.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
The mt76 driver usually reads the eeprom on the mtd partition at dts.
For emmc device we need to use caldata_extract script to read the
eeprom. However, the default eeprom file breaks the caldata script
execution, so remove it.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Hardware specification:
* SoC: MediaTek MT7986A 4x A53
* Flash: 8GB EMMC
* RAM: 1GB DDR4
* Ethernet:
  * 2x2.5G RJ45 port (RTL8221B)
  * 4x1G RJ45 ports (MT7531AE)
* WLAN:
  * 2.4GHz: MT7976GN 4T4R
  * 5GHz: MT7976AN 4T4R
* Button: Reset
* LED: 1 x dual color LED
* USB: 1 x USB 3.0
* Power: DC 12V 4A
* UART: 3V3 115200 8N1 (Pinout: GND TX RX VCC)
* JTAG: 9 PIN

If you want to use u-boot from OpenWrt, you can upgrade it safely.
* bl2: openwrt-mediatek-filogic-glinet_gl-mt6000-preloader.bin
* fip: openwrt-mediatek-filogic-glinet_gl-mt6000-bl31-uboot.fip

`openwrt-mediatek-filogic-glinet_gl-mt6000-squashfs-factory.bin` is used in OpenWrt's u-boot.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
@dangowrt
Copy link
Member

picked to main branch fe10f97

@dangowrt dangowrt closed this Sep 28, 2023
@DRCRecoveryData
Copy link

Hardware specification:

  • SoC: MediaTek MT7986A 4x A53

  • Flash: 8GB EMMC

  • RAM: 1GB DDR4

  • Ethernet:

    • 2x2.5G RJ45 port (RTL8221B)
    • 4x1G RJ45 ports (MT7531AE)
  • WLAN:

    • 2.4GHz: MT7976GN 4T4R
    • 5GHz: MT7976AN 4T4R
  • Button: Reset

  • LED: 1 x dual color LED

  • USB: 1 x USB 3.0

  • Power: DC 12V 4A

  • UART: 3V3 115200 8N1 (Pinout: GND TX RX VCC)

  • JTAG: 9 PIN

If you want to use u-boot from OpenWrt, you can upgrade it safely.

  • bl2: openwrt-mediatek-filogic-glinet_gl-mt6000-preloader.bin
  • fip: openwrt-mediatek-filogic-glinet_gl-mt6000-bl31-uboot.fip

openwrt-mediatek-filogic-glinet_gl-mt6000-squashfs-factory.bin is used in OpenWrt's u-boot.

image

image

Can i get this dev board for testing the firmware ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core packages pull request/issue for core (in-tree) packages kernel pull request/issue with Linux kernel related changes target/mediatek pull request/issue for mediatek target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants