Hi,
I'm looking at this commit for the XE3000:
openwrt:main
← arachsys-prs:x3000-uboot
opened 01:56PM - 06 Jun 24 UTC
Add u-boot support based on the kernel dts introduced in d1016446 by @JeThWifirs… t and the GL-MT6000 u-boot support in fe10f974 from @zhaojh329 at GL.iNet.
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`.)
For PR reviewers: I'm not sure what the OpenWrt policy is with duplicating factory bootloader behaviour like this. I'd be fine to drop the `init_modem` as the OpenWrt scripts don't yet support PCIe MBIM and QMI, although this might cause problems when booting the factory kernel.
This has been tested on a real GL-X3000 device, both using `mtk_uartboot` with the OpenWrt-packaged `mt7981-ram-ddr4-bl2.bin`, and also by flashing `openwrt-mediatek-filogic-glinet_gl-x3000-preloader.bin` to `/dev/mmcblk0boot0` and `openwrt-mediatek-filogic-glinet_gl-x3000-bl31-uboot.fip` to `/dev/mmcblk0p4` (the fip partition).
For what it's worth, as well as OpenWrt, I'm able to boot a mainline 6.9.3 kernel fine on this device using this bootloader, although the block NVMEM and mac-base patch series are helpful for mac addresses and wifi eeprom.
I can see there are uboots available for the MT6000, XE3000 and X3000, but nothing for the MT3000 or MT2500 at https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/
I'm struggling to find how to compile this on the Openwrt Wiki.
pwned
October 9, 2024, 7:08am
2
There is no guide to compile uboot. The uboot image compile is triggered due to several config switches in this commit for the linked devices.
Neither MT3000 nor MT2500 are within package/boot/uboot-mediatek/Makefile.
So it seems there is no uboot image mod necessary.
The commit does indicate the same:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=12396686484a488dff1c4a1ee8b5197c552572fe
If you think this is a bug open an issue on github.
1 Like