openwrt/package/boot/uboot-mediatek/patches
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
..
000-mtk-20-configs-mt7622-enable-environment-for-mt7622_rfb.patch uboot-mediatek: update to U-Boot 2024.01 release 2024-02-15 19:06:37 +00:00
050-mt7622-enable-pstore.patch uboot-mediatek: remove '0x' prefix from pstore node 2022-04-19 17:07:38 +01:00
051-mt7986-enable-pstore.patch uboot-mediatek: update to U-Boot 2023.01 2023-01-13 14:49:52 +00:00
052-mt7981-enable-pstore.patch mediatek: mt7981: add reserved memory to support pstore 2023-05-27 11:01:36 +01:00
100-02-drivers-mtd-add-support-for-MediaTek-SPI-NAND-flash-.patch uboot-mediatek: snfi: FM35Q1GA is x4-only 2024-06-05 21:05:52 +01:00
100-03-mtd-mtk-snand-add-support-for-SPL.patch uboot-mediatek: update to U-Boot 2023.01 2023-01-13 14:49:52 +00:00
100-04-env-add-support-for-generic-MTD-device.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-05-mtd-add-a-new-mtd-device-type-for-NMBM.patch uboot-mediatek: update to v2023.04 2023-04-12 22:02:27 +01:00
100-06-mtd-add-core-facility-code-of-NMBM.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-07-mtd-nmbm-add-support-for-mtd.patch uboot-mediatek: update to U-Boot 2023.01 2023-01-13 14:49:52 +00:00
100-08-common-board_r-add-support-to-initialize-NMBM-after-.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-09-cmd-add-nmbm-command.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-10-cmd-mtd-add-markbad-subcommand-for-NMBM-testing.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-11-env-add-support-for-NMBM-upper-MTD-layer.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-12-mtd-mtk-snand-add-NMBM-support-for-SPL.patch uboot-mediatek: additions from MTK SDK 2022-08-28 20:33:15 +01:00
100-13-cmd-add-a-new-command-for-NAND-flash-debugging.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-14-mtd-spi-nor-add-support-to-read-flash-unique-ID.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-15-cmd-sf-add-support-to-read-flash-unique-ID.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-16-cmd-bootmenu-add-ability-to-select-item-by-shortkey.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-17-common-spl-spl_nand-enable-CONFIG_SYS_NAND_U_BOOT_OF.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-18-board-mt7629-add-support-for-booting-from-SPI-NAND.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-19-board-mt7622-use-new-spi-nand-driver.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-20-board-mt7981-add-reference-board-using-new-spi-nand-.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-21-mtd-spi-nor-add-more-flash-ids.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-22-mtd-spi-nand-backport-from-upstream-kernel.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-23-mmc-mtk-sd-add-support-to-display-verbose-error-log.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-24-cmd-ubi-make-volume-find-create-remove-APIs-public.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
100-25-cmd-ubi-allow-creating-volume-with-all-free-spaces.patch uboot-mediatek: update to U-Boot 2023.01 2023-01-13 14:49:52 +00:00
100-26-env-ubi-add-support-to-create-environment-volume-if-.patch uboot-mediatek: update to U-Boot 2024.01 release 2024-02-15 19:06:37 +00:00
100-27-mtd-ubi-add-support-for-UBI-end-of-filesystem-marker.patch uboot-mediatek: update to U-Boot 2024.01 release 2024-02-15 19:06:37 +00:00
100-29-board-mediatek-wire-up-NMBM-support.patch uboot-mediatek: update to U-Boot 2024.01 release 2024-02-15 19:06:37 +00:00
103-mt7988-enable-pstore.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
105-configs-add-usefull-stuff-to-mt7988-rfb.patch uboot-mediatek: fix build error on mt7988-rfb 2024-07-15 11:55:48 +02:00
106-configs-sync-mt7981-rfb-storage.patch uboot-mediatek: add build for mt7981 rfb 2023-09-21 10:15:08 +01:00
107-configs-add-useful-options-to-mt7981-rfb.patch uboot-mediatek: fix build error on mt7981-rfb and openwrt-one 2024-09-02 12:42:05 +02:00
108-dts-arm64-mt7981-rfb-add-mtd-partitions.patch uboot-mediatek: add build for mt7981 rfb 2023-09-21 10:15:08 +01:00
120-use-xz-instead-of-lzma.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
130-fix-mkimage-host-build.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
160-net-phy-add-support-for-Airoha-ethernet-PHY-driver.patch uboot-mediatek: add builds for BananaPi BPi-R3 mini 2024-02-15 19:30:08 +00:00
200-cmd-add-imsz-and-imszb.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
211-cmd-bootmenu-custom-title.patch uboot-mediatek: update to v2023.04 2023-04-12 22:02:27 +01:00
220-cmd-env-readmem.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
230-cmd-add-pstore-check.patch uboot-mediatek: update to U-Boot 2024.01 release 2024-02-15 19:06:37 +00:00
250-fix-mmc-erase-timeout.patch uboot-mediatek: update to U-Boot 2024.01 release 2024-02-15 19:06:37 +00:00
280-image-fdt-save-name-of-FIT-configuration-in-chosen-node.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
290-mt7981-add-USB-nodes.patch uboot-mediatek: refresh patches 2024-05-25 03:54:20 +01:00
300-mt7623-fix-mmc-get-env-dev.patch mediatek: mt7623: phase out uImage.FIT partition parser 2024-02-24 03:02:35 +00:00
301-mt7622-generic-reset-button-ignore-env.patch uboot-mediatek: update to U-Boot release v2024.07 2024-07-14 16:29:49 +01:00
302-mt7623-generic-reset-button-ignore-env.patch mediatek: mt7623: phase out uImage.FIT partition parser 2024-02-24 03:02:35 +00:00
303-mt7986-generic-reset-button-ignore-env.patch uboot-mediatek: fix factory/reset button 2023-04-20 11:40:24 +01:00
304-mt7981-generic-reset-button-ignore-env.patch uboot-mediatek: add Qihoo 360T7 support 2023-05-27 11:17:08 +01:00
305-mt7988-generic-reset-button-ignore-env.patch uboot-mediatek: update to version 2023.07.02 2023-07-29 15:07:11 +01:00
310-mt7988-select-rootdisk.patch uboot-mediatek: update to U-Boot 2024.01 release 2024-02-15 19:06:37 +00:00
311-mt7986-select-rootdisk.patch uboot-mediatek: fix typo patch filename 2024-03-11 19:14:14 +00:00
312-mt7622-select-rootdisk.patch mediatek: mt7622: convert BPi-R64 to all-UBI layout and fitblk 2024-02-15 19:30:08 +00:00
313-mt7623-select-rootdisk.patch mediatek: mt7623: phase out uImage.FIT partition parser 2024-02-24 03:02:35 +00:00
314-mt7981-select-rootdisk.patch uboot-mediatek: fix build error on mt7981-rfb and openwrt-one 2024-09-02 12:42:05 +02:00
400-update-bpir2-defconfig.patch uboot-mediatek: refresh device defconfig files 2024-07-14 16:29:49 +01:00
401-update-u7623-defconfig.patch uboot-mediatek: refresh device defconfig files 2024-07-14 16:29:49 +01:00
402-update-bananapi-bpi-r64-device-tree.patch uboot-mediatek: fix factory/reset button 2023-04-20 11:40:24 +01:00
403-add-bananapi_bpi-r64-snand.patch mediatek: mt7622: convert BPi-R64 to all-UBI layout and fitblk 2024-02-15 19:30:08 +00:00
404-add-bananapi_bpi-r64_defconfigs.patch uboot-mediatek: remove hard-coded UBI volume numbers 2024-07-14 16:29:49 +01:00
405-dts-mt7623n-bpi-r2-fix-leds.patch uboot-mediatek: fix factory/reset button 2023-04-20 11:40:24 +01:00
406-dts-mt7623n-bpi-r2-uart0-force-highspeed.patch uboot-mediatek: fix factory/reset button 2023-04-20 11:40:24 +01:00
410-add-linksys-e8450.patch uboot-mediatek: refresh device defconfig files 2024-07-14 16:29:49 +01:00
412-add-ubnt-unifi-6-lr.patch uboot-mediatek: refresh device defconfig files 2024-07-14 16:29:49 +01:00
420-add-support-for-RAVPower-RP-WD009.patch uboot-mediatek: refresh device defconfig files 2024-07-14 16:29:49 +01:00
421-zbtlink_zbt-wg3526-16m.patch uboot-mediatek: refresh device defconfig files 2024-07-14 16:29:49 +01:00
429-add-netcore-n60.patch uboot-mediatek: remove hard-coded UBI volume numbers 2024-07-14 16:29:49 +01:00
430-add-bpi-r3.patch uboot-mediatek: refresh device defconfig files 2024-07-14 16:29:49 +01:00
431-add-xiaomi_redmi-ax6000.patch uboot-mediatek: fix broken patch 2024-09-02 12:42:05 +02:00
432-add-tplink-xdr608x.patch uboot-mediatek: remove hard-coded UBI volume numbers 2024-07-14 16:29:49 +01:00
433-add-qihoo_360t7.patch uboot-mediatek: remove hard-coded UBI volume numbers 2024-07-14 16:29:49 +01:00
434-add-xiaomi_mi-router-wr30u.patch uboot-mediatek: remove hard-coded UBI volume numbers 2024-07-14 16:29:49 +01:00
435-add-h3c_magic-nx30-pro.patch uboot-mediatek: remove hard-coded UBI volume numbers 2024-07-14 16:29:49 +01:00
436-add-glinet-mt6000.patch uboot-mediatek: refresh device defconfig files 2024-07-14 16:29:49 +01:00
437-add-cmcc_rax3000m.patch mediatek: switch to fitblk for cmcc rax3000m 2024-07-18 13:20:58 +01:00
438-add-jcg_q30-pro.patch uboot-mediatek: remove hard-coded UBI volume numbers 2024-07-14 16:29:49 +01:00
439-add-zyxel_ex5601-t0.patch uboot-mediatek: remove hard-coded UBI volume numbers 2024-07-14 16:29:49 +01:00
440-add-xiaomi_mi-router-ax3000t.patch uboot-mediatek: remove hard-coded UBI volume numbers 2024-07-14 16:29:49 +01:00
441-add-jdcloud_re-cp-03.patch uboot-mediatek: refresh device defconfig files 2024-07-14 16:29:49 +01:00
442-add-bpi-r3-mini.patch uboot-mediatek: refresh device defconfig files 2024-07-14 16:29:49 +01:00
443-add-nokia_ea0326gmp.patch uboot-mediatek: remove hard-coded UBI volume numbers 2024-07-14 16:29:49 +01:00
444-add-abt_asr3000.patch mediatek: add ABT ASR3000 support 2024-07-21 16:13:06 +02:00
450-add-bpi-r4.patch uboot-mediatek: remove hard-coded UBI volume numbers 2024-07-14 16:29:49 +01:00
451-add-tplink-xtr8488.patch uboot-mediatek: add TP-LINK TL-XTR8488 support 2024-07-25 22:54:16 +02:00
452-add-xiaomi-redmi-ax6s.patch uboot-mediatek: remove hard-coded UBI volume numbers 2024-07-14 16:29:49 +01:00
453-add-openwrt-one.patch uboot-mediatek: openwrt_one: set ethaddr from factory 2024-09-19 20:31:50 +01:00
454-add-glinet-x3000.patch uboot-mediatek: support GL.iNet GL-X3000 and GL-XE3000 2024-09-22 23:50:40 +02:00