Commit Graph

242 Commits

Author SHA1 Message Date
Tianling Shen
48c09a67d3 uboot-mtk-20250711: support mainline FIT partition
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-22 19:23:16 +08:00
Tianling Shen
c9e03f3279 uboot-mtk-20250711: keep env after flash bootloader
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-22 19:23:16 +08:00
Tianling Shen
55767168a4 uboot-mtk-20250711: fix build without CONFIG_MEDIATEK_MULTI_MTD_LAYOUT
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-22 19:23:16 +08:00
Tianling Shen
6924bf4723 uboot-mtk-20250711: net: add missing header
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-22 19:23:16 +08:00
Tianling Shen
ca1f0493f5 uboot-mtk-20250711: switch to pending en8811h phy driver
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-22 19:23:16 +08:00
Aabandon
34da03f67c uboot-mtk-20250711: add support for fmsh gsto dosilicon spi-nand 2025-08-22 19:23:16 +08:00
hanwckf
197102eef9 uboot-mtk-20250711: add support for foresee spi-nand 2025-08-22 19:23:16 +08:00
Tianling Shen
ccda9255f4 Revert "uboot-2025: add common.h"
This reverts commit 1174f431a6.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-22 19:23:16 +08:00
Tianling Shen
97c8b930c7 uboot-mtk-20250711: mtd_layout: remove reference to common.h
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-22 19:23:16 +08:00
hanwckf
674623b0fe uboot-mtk-20250711: glbtn: remove reference to common.h
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-22 19:23:16 +08:00
Tianling Shen
0dc4b558f1 uboot-mtk-20250711: poller: remove reference to common.h
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-22 19:23:16 +08:00
Tianling Shen
40a1c1e8f4 uboot-mtk-20250711: enable pstore for mt7622/mt7981/mt7986/mt7988
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-22 19:23:16 +08:00
Tianling Shen
a2c8e65769 uboot-mtk-20250711: fix build with emmc bootmenu
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-08-22 19:23:16 +08:00
Tom Rini
56dede40b8 uboot-mtk-20250711: env: Correct Kconfig type for ENV_MMC_SW_PARTITION
As part of renaming environment related Kconfig options,
ENV_MMC_SW_PARTITION was inadvertently changed from a string to a bool.
Correct this.

Fixes: ffc4914703a2 ("env: Rename ENV_MMC_PARTITION to ENV_MMC_SW_PARTITION")
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
2025-08-22 19:23:16 +08:00
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