forked from LiBwrt/openwrt-6.x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'op/main' into test
- Loading branch information
Showing
225 changed files
with
8,397 additions
and
3,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-6.1 = .106 | ||
LINUX_KERNEL_HASH-6.1.106 = 3773c9052c7ba7432e8337ca84bee115c1a94ccef9d62b72b99ae30c4cd5f80f | ||
LINUX_VERSION-6.1 = .107 | ||
LINUX_KERNEL_HASH-6.1.107 = f43229d1d73011fa0a37400320a26972946f8ff295c404c31c0dd0407228b0e8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-6.6 = .47 | ||
LINUX_KERNEL_HASH-6.6.47 = d43376c9e9eaa92bb1b926054bd160d329c58a62d64bd65fe1222c11c6564f50 | ||
LINUX_VERSION-6.6 = .48 | ||
LINUX_KERNEL_HASH-6.6.48 = 6b16df7b2aba3116b78fdfd8aea0b6cd7abe8f0cb699b04a66d3169141772029 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 3f7be04a148d23cdb5fd320e0e2923983f8bd1f4 Mon Sep 17 00:00:00 2001 | ||
From: Luka Perkov <[email protected]> | ||
Date: Tue, 6 Aug 2013 22:51:00 +0200 | ||
Subject: MIPS: add board support for ZyXEL P-2812HNU-Fx | ||
Subject: MIPS: add board support for Zyxel P-2812HNU-Fx | ||
|
||
Signed-off-by: Luka Perkov <[email protected]> | ||
|
||
|
@@ -51,7 +51,7 @@ Signed-off-by: Luka Perkov <[email protected]> | |
+/* | ||
+ * Copyright (C) 2013 Luka Perkov <[email protected]> | ||
+ * | ||
+ * The values have been extracted from original ZyXEL U-Boot. | ||
+ * The values have been extracted from original Zyxel U-Boot. | ||
+ * | ||
+ * SPDX-License-Identifier: GPL-2.0+ | ||
+ */ | ||
|
@@ -243,7 +243,7 @@ Signed-off-by: Luka Perkov <[email protected]> | |
+ | ||
+#define CONFIG_MACH_TYPE "P-2812HNU-Fx" | ||
+#define CONFIG_IDENT_STRING " "CONFIG_MACH_TYPE | ||
+#define CONFIG_BOARD_NAME "ZyXEL P-2812HNU-Fx" | ||
+#define CONFIG_BOARD_NAME "Zyxel P-2812HNU-Fx" | ||
+ | ||
+/* Configure SoC */ | ||
+#define CONFIG_LTQ_SUPPORT_UART /* Enable ASC and UART */ | ||
|
102 changes: 102 additions & 0 deletions
102
package/boot/uboot-mediatek/patches/314-mt7981-select-rootdisk.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
--- a/board/mediatek/mt7981/mt7981_rfb.c | ||
+++ b/board/mediatek/mt7981/mt7981_rfb.c | ||
@@ -11,7 +11,9 @@ | ||
#include <env.h> | ||
#include <init.h> | ||
#include <asm/global_data.h> | ||
+#include <asm/io.h> | ||
#include <linux/delay.h> | ||
+#include <linux/libfdt.h> | ||
|
||
#ifndef CONFIG_RESET_BUTTON_LABEL | ||
#define CONFIG_RESET_BUTTON_LABEL "reset" | ||
@@ -81,3 +83,54 @@ int board_nmbm_init(void) | ||
|
||
return 0; | ||
} | ||
+ | ||
+#define MT7981_BOOT_NOR 0 | ||
+#define MT7981_BOOT_SPIM_NAND 1 /* ToDo: fallback to SD */ | ||
+#define MT7981_BOOT_EMMC 2 | ||
+#define MT7981_BOOT_SNFI_NAND 3 /* ToDo (treated as SD) */ | ||
+ | ||
+int ft_system_setup(void *blob, struct bd_info *bd) | ||
+{ | ||
+ const u32 *media_handle_p; | ||
+ int chosen, len, ret; | ||
+ const char *media; | ||
+ u32 media_handle; | ||
+ | ||
+ switch ((readl(0x11d006f0) & 0xc0) >> 6) { | ||
+ case MT7981_BOOT_NOR: | ||
+ media = "rootdisk-nor"; | ||
+ break | ||
+ ;; | ||
+ case MT7981_BOOT_SPIM_NAND: | ||
+ media = "rootdisk-spim-nand"; | ||
+ break | ||
+ ;; | ||
+ case MT7981_BOOT_EMMC: | ||
+ media = "rootdisk-emmc"; | ||
+ break | ||
+ ;; | ||
+ case MT7981_BOOT_SNFI_NAND: | ||
+ media = "rootdisk-sd"; | ||
+ break | ||
+ ;; | ||
+ } | ||
+ | ||
+ chosen = fdt_path_offset(blob, "/chosen"); | ||
+ if (chosen <= 0) | ||
+ return 0; | ||
+ | ||
+ media_handle_p = fdt_getprop(blob, chosen, media, &len); | ||
+ if (media_handle_p <= 0 || len != 4) | ||
+ return 0; | ||
+ | ||
+ media_handle = *media_handle_p; | ||
+ ret = fdt_setprop(blob, chosen, "rootdisk", &media_handle, sizeof(media_handle)); | ||
+ if (ret) { | ||
+ printf("cannot set media phandle %s as rootdisk /chosen node\n", media); | ||
+ return ret; | ||
+ } | ||
+ | ||
+ printf("set /chosen/rootdisk to bootrom media: %s (phandle 0x%08x)\n", media, fdt32_to_cpu(media_handle)); | ||
+ | ||
+ return 0; | ||
+} | ||
--- a/configs/mt7981_emmc_rfb_defconfig | ||
+++ b/configs/mt7981_emmc_rfb_defconfig | ||
@@ -114,3 +114,4 @@ CONFIG_FAT_WRITE=y | ||
CONFIG_HEXDUMP=y | ||
# CONFIG_EFI_LOADER is not set | ||
CONFIG_LMB_MAX_REGIONS=64 | ||
+CONFIG_OF_SYSTEM_SETUP=y | ||
--- a/configs/mt7981_nor_rfb_defconfig | ||
+++ b/configs/mt7981_nor_rfb_defconfig | ||
@@ -126,3 +126,4 @@ CONFIG_DM_SPI=y | ||
CONFIG_MTK_SPIM=y | ||
CONFIG_HEXDUMP=y | ||
CONFIG_LMB_MAX_REGIONS=64 | ||
+CONFIG_OF_SYSTEM_SETUP=y | ||
--- a/configs/mt7981_rfb_defconfig | ||
+++ b/configs/mt7981_rfb_defconfig | ||
@@ -135,3 +135,4 @@ CONFIG_DM_SPI=y | ||
CONFIG_MTK_SPIM=y | ||
CONFIG_HEXDUMP=y | ||
CONFIG_LMB_MAX_REGIONS=64 | ||
+CONFIG_OF_SYSTEM_SETUP=y | ||
--- a/configs/mt7981_sd_rfb_defconfig | ||
+++ b/configs/mt7981_sd_rfb_defconfig | ||
@@ -114,3 +114,4 @@ CONFIG_FAT_WRITE=y | ||
CONFIG_HEXDUMP=y | ||
# CONFIG_EFI_LOADER is not set | ||
CONFIG_LMB_MAX_REGIONS=64 | ||
+CONFIG_OF_SYSTEM_SETUP=y | ||
--- a/configs/mt7981_snfi_nand_rfb_defconfig | ||
+++ b/configs/mt7981_snfi_nand_rfb_defconfig | ||
@@ -120,3 +120,4 @@ CONFIG_DM_SERIAL=y | ||
CONFIG_MTK_SERIAL=y | ||
CONFIG_HEXDUMP=y | ||
CONFIG_LMB_MAX_REGIONS=64 | ||
+CONFIG_OF_SYSTEM_SETUP=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.