Commit Graph

228 Commits

Author SHA1 Message Date
Weijie Gao
ceaf16b834 uboot-mtk-20250711: mmc: mtk-sd: increase the minimum bus frequency
With a 48MHz input clock, the lowest bus frequency can be as low as
48000000 / (4 * 4095) = 2930Hz. Such an extremely low frequency will cause
the mmc framework take seconds to finish the initialization.

Limiting the minimum bus frequency to a slightly higher value can solve the
issue without any side effects.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
2025-08-22 19:23:16 +08:00
Shiji Yang
6167e64b76 uboot-mtk-20250711: env: mtd: initialize saved_buf pointer
When sect_size is greater than CONFIG_ENV_SIZE, this wild
pointer will cause CPU halt or system crash.

Fixes: 03fb08d4aef8 ("env: Introduce support for MTD")
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
2025-08-22 19:23:16 +08:00
Tianling Shen
be684fbca4 atf-20250711: apply openwrt patches (#136)
* atf-20250711: apply openwrt patches

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* atf-20250711: use shared configs with atf-20240117-bacca82a8

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

---------

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-22 19:22:15 +08:00
airjinkela
e1d742f164 env: mtd: add the missing put_mtd_device() (#135) 2025-08-22 09:46:49 +08:00
hanwckf
2f1606ca8c uboot-2025: mt7987: fix airpi-h5000m phy reset error 2025-08-21 20:58:28 +08:00
hanwckf
90ded9c313 uboot-2025: mt7987: add mt7987-airpi-h5000m 2025-08-21 15:28:19 +08:00
hanwckf
0f1592f654 uboot-2025: net: add rtl8221 phy driver 2025-08-21 15:28:19 +08:00
hanwckf
fdca8cbf91 uboot-2025: start httpd and glbtn at boot 2025-08-21 15:28:19 +08:00
hanwckf
c2a4ac823b uboot-2025: add mtdlayout support 2025-08-21 15:28:15 +08:00
hanwckf
f58deb97cb uboot-2025: add glinet failsafe webui 2025-08-21 14:43:54 +08:00
hanwckf
0f5d75e752 uboot-2025: add glbtn 2025-08-21 14:43:47 +08:00
hanwckf
0a2402759d uboot-2025: add poller 2025-08-21 14:43:34 +08:00
hanwckf
6e780183bf uboot-2025: mtk_httpd: set nocache header 2025-08-21 14:43:14 +08:00
hanwckf
4ece916d9e uboot-2025: add force ipaddr support 2025-08-21 14:43:04 +08:00
hanwckf
95f51717eb uboot-2025: board: keep env after flash FIP 2025-08-21 14:42:27 +08:00
hanwckf
1174f431a6 uboot-2025: add common.h 2025-08-21 14:42:21 +08:00
hanwckf
2e3aaf792e uboot-2025: mt7987: add pstore ramoops 2025-08-21 14:42:09 +08:00
hanwckf
dce813ae37 uboot-2025: fix build 2025-08-21 14:41:59 +08:00
hanwckf
c9d2a37125 atf-2025: configs: add mt7987_emmc_ddr4_defconfig 2025-08-21 14:41:53 +08:00
hanwckf
b14b8315a6 atf-2025: update gitignore 2025-08-21 14:41:45 +08:00
hanwckf
d32234197e atf: add atf-20250711 2025-08-21 14:41:45 +08:00
hanwckf
5443365d19 uboot: add uboot-20250711 2025-08-21 14:41:44 +08:00
hanwckf
c74ba01cc4 build.sh: fix atf-2024/atf-2025 emmc configs 2025-08-21 14:41:43 +08:00
Tianling Shen
8d0a22474b uboot: mt7622: do not auto erase uboot env when reset button is pressed (#131)
Fixes: 84cfb1511b ("uboot: mt7622: add rootdisk support from openwrt")

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-19 16:28:25 +08:00
Tianling Shen
6416a8200b mt7986: add netcore n60 (pro) support (#126)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-19 16:27:52 +08:00
Tianling Shen
7aa1d56981 mt7981: add cudy tr3000 v1 support (#125)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-19 16:27:33 +08:00
Tianling Shen
8f5285bfba atf-20240117-bacca82a8: import new atf (#119)
* atf-20240117-bacca82a8: import new atf

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* atf-20240117-bacca82a8: remove Werror

* atf-20240117-bacca82a8: call bromimage-x86_64 for aarch64 host

* atf-20240117-bacca82a8: export ram boot uart option

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* atf-20240117-bacca82a8: apply openwrt patches

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* atf-20240117-bacca82a8: port board configs

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* build.sh: switch to use atf-20240117-bacca82a8

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* build.sh: support new menuconfig

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* build.sh: pass u-boot path by variable

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

* atf-20231013-0ea67d76a: drop

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

---------

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Co-authored-by: hanwckf <hanwckf@vip.qq.com>
2025-08-19 16:26:53 +08:00
Tianling Shen
475f1640d3 mt7986: add missing config for ruijie rg-x60 (#116)
CONFIG_ENV_IMPORT_FDT won't take effect without
CONFIG_ENV_VARS_UBOOT_CONFIG enabled.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-19 16:26:33 +08:00
Tianling Shen
4e54179aba uboot: do not erase ubi if fip volume is found (#112)
In this case FIP and all other data are stored in ubi.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-19 16:26:14 +08:00
dorfil
b220b09755 Bring up USB on mt2500 target. (#110) 2025-08-19 16:25:48 +08:00
hanwckf
fba9f57848 update README.md 2024-11-29 15:53:30 +08:00
hanwckf
9342a63e46 update README.md 2024-11-29 00:41:08 +08:00
hanwckf
83c7df3f2e atf-2023: add support for mt7988 2024-11-28 15:48:58 +08:00
hanwckf
c186c4a6bd atf-2023: enable uart dl by default 2024-11-28 15:48:12 +08:00
Shuanglei Tao
29b9c3a719 uboot-2023: fix failsafe boot via env (#107) 2024-11-25 23:09:38 +08:00
hanwckf
15ad0ed949 uboot-2023: fix ruijie-x60 build 2024-11-15 02:34:47 +08:00
hanwckf
1d9d2e2be1 atf: call bromimage-x86_64 for aarch64 host 2024-11-15 02:27:39 +08:00
Ashley Lee
0aa0e7eb59 mt7986: add support for Ruijie RG-X60 (NEW) (#95)
* mt7986: add support for Ruijie RG-X60 (NEW)

uboot: add customed bootconf

mt7981: fix Ruijie RG-X30E and Ruijie RG-X30E Pro default config name typo

Signed-off-by: Ashley Lee <code@emtips.net>

* Update uboot-mtk-20220606/arch/arm/dts/mt7986a-ruijie-rg-x60.dts

Co-authored-by: Tianling Shen <cnsztl@gmail.com>

* uboot: using ENV_IMPORT_FDT to setup ruijie x60 bootconf env

---------

Signed-off-by: Ashley Lee <code@emtips.net>
Co-authored-by: hanwckf <my375229675@gmail.com>
Co-authored-by: Tianling Shen <cnsztl@gmail.com>
2024-11-15 02:01:08 +08:00
hanwckf
880d7df742 uboot: add support for xiaomi ax3000t an8855 variant 2024-11-12 00:19:11 +08:00
Tianling Shen
907595c163 uboot-mtk-20230718-09eda825: failsafe: fix build without gl btn
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-11-09 21:09:50 +08:00
Tianling Shen
24215b7553 uboot-mtk-20230718-09eda825: fix erase ubi env for legacy mtd bootmenu
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-11-09 21:09:50 +08:00
hanwckf
9c22e498bf uboot-2022: fix build error 2024-10-28 23:58:24 +08:00
Tianling Shen
c57c434e89 uboot-mtk-20220818: bootmenu_emmc: apply changes to mt7622/mt7988
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-25 21:53:37 +08:00
Tianling Shen
8064c275a5 uboot: fix erasing ubi when flash fit firmware
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-25 21:53:15 +08:00
Tianling Shen
fb350b9cca uboot-mtk-20220606: port mtd_*_skip_bad func from uboot-2023
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-25 21:53:15 +08:00
Tianling Shen
58370a2264 uboot: renew glinet gl-mt2500 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-25 21:52:48 +08:00
Tianling Shen
d2772cc419 uboot: renew glinet gl-mt3000 support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-25 21:52:48 +08:00
Tianling Shen
914e22af6e mt7981: add openembed som7981 support
Signed-off-by: Tianling Shen <i@cnsztl.eu.org>
2024-10-25 21:52:20 +08:00
Tianling Shen
5bfaac82d9 uboot: increase flashing timeout to 180s
Mainly for spi-nor flash, requires more time to complete.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-16 11:03:11 +08:00
Tianling Shen
45c8c841d2 uboot-mtk-20220606: fix read nor again
should read fit size instead of page size.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-16 11:03:11 +08:00