openwrt/target/linux/mediatek
Chris Webb 7eda44f536 uboot-mediatek: support GL.iNet GL-X3000 and GL-XE3000
Add u-boot support based on the kernel dts introduced in d1016446 and
the GL-MT6000 u-boot support in fe10f974.

The pcie-mediatek-gen3 kernel driver doesn't like hotplug, so to work in
PCIe mode, the 5G modem on this device needs to be switched on by u-boot
before starting the kernel. Include an init_modem step in the boot_system
action to set the relevant gpios. (The factory bootloader does the same,
using Mediatek SDK-specific gpio_power_clr and gpio_pull_up.)

Ideally the modem would be started using gpio-hog in the device tree, but
this will need to wait until mediatek gpio-hog support is fixed upstream:

  https://lore.kernel.org/u-boot/6ef2583e85eea60560d7776377d662779e7c44e5.1722419839.git.chris@arachsys.com/

The bootloader can be replaced using the built-in web interface of the
factory bootloader. Hold the reset button for five seconds while powering
on the device and it will boot into a recovery http server.

http://192.168.1.1/uboot.html and http://192.168.1.1/bl2.html can then
be used to upload openwrt-mediatek-filogic-glinet_gl-x3000-bl31-uboot.fip
and openwrt-mediatek-filogic-glinet_gl-x3000-preloader.bin respectively.

Alternatively, from a root shell on the running system, unlock the boot
partition with

  echo 0 >/sys/block/mmcblk0boot0/force_ro

then write openwrt-mediatek-filogic-glinet_gl-x3000-bl31-uboot.fip to
/dev/mmcblk0p4 and openwrt-mediatek-filogic-glinet_gl-x3000-preloader.bin
to /dev/mmcblk0boot0.

Signed-off-by: Chris Webb <chris@arachsys.com>
Link: https://github.com/openwrt/openwrt/pull/15645
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-09-22 23:50:40 +02:00
..
base-files mediatek: add Adtran SmartRG SDG-8733A 2024-09-20 22:47:05 +01:00
dts mediatek: add Adtran SmartRG SDG-8733A 2024-09-20 22:47:05 +01:00
files/drivers mediatek: phase out uImage.FIT partition parser 2024-08-28 15:11:52 +01:00
files-6.6 mediatek: filogic: convert MT7981 RFB to fitblk 2024-08-28 15:11:51 +01:00
filogic mediatek: add Adtran SmartRG SDG-8733A 2024-09-20 22:47:05 +01:00
image uboot-mediatek: support GL.iNet GL-X3000 and GL-XE3000 2024-09-22 23:50:40 +02:00
mt7622 mediatek: phase out uImage.FIT partition parser 2024-08-28 15:11:52 +01:00
mt7623 mediatek: phase out uImage.FIT partition parser 2024-08-28 15:11:52 +01:00
mt7629 mediatek: phase out uImage.FIT partition parser 2024-08-28 15:11:52 +01:00
patches-6.6 mediatek: add Adtran SmartRG SDG-8733A 2024-09-20 22:47:05 +01:00
Makefile mediatek: switch to Linux 6.6 2024-05-03 21:32:30 +01:00
modules.mk mediatek: mt7623: build mt6577_auxadc driver into kernel 2022-12-05 23:14:36 +00:00