104 Commits

Author SHA1 Message Date
chench00
e6b6bc11f7 add support for hygon tpcm 2024-08-27 16:04:17 +08:00
wangyueliang
1c3e5b182f Inherit 'Add BLS Support' patch from grub-2.06 2024-08-08 15:41:05 +08:00
peng_zou
234d66e79a remove BuildRequires:pesign >= 0.99-8 and fix bug about petitboot doesn't ignore EFI entries for ppc64le 2024-07-15 14:57:35 +08:00
yueyuankun
ffc10c83b2 Export all variables from the initial context when creating a submenu. 2024-07-02 09:16:51 +08:00
peng_zou
b4e3f33334 add support for ppc64le 2024-06-25 14:40:36 +08:00
Qiumiao Zhang
6864661b83 fix log printing in tpcm_kunpeng module again
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit 4444af68de5a9fa588a296537208ff24f7c78212)
2024-06-24 21:16:00 +08:00
Qiumiao Zhang
b991af1095 fix log printing in tpcm_kunpeng module
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2024-06-20 07:06:15 +00:00
yueyuankun
16ede924d7 :Add gfxterm_background and serial modules to grub.efi 2024-06-19 15:03:17 +08:00
wangziliang
8c7269a15f disk/mdraid1x_linux: Prevent infinite recursion 2024-06-17 06:47:02 +00:00
Qiumiao Zhang
4155120fe5 lib/libtasn1: Fix ETYPE_OK off by one array size check
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2024-06-05 02:03:28 +00:00
Xue Liu
48fdc532e5 Fix that patch233 introduced old code 2024-05-28 17:03:18 +08:00
Juxin Gao
49d8f0dc10 LoongArch: Add back-compatibility for linux kernel.
Signed-off-by: Juxin Gao <gaojuxin@loongson.cn>
2024-05-25 13:03:15 +08:00
ouuleilei
20f2ea943e Add sophgo's patch to support risc-v machine SG2042 2024-05-24 20:51:30 +08:00
Qiumiao Zhang
c7c9317412 loongarch64: fix GRUB_EFI_MAX_ALLOCATION_ADDRESS undeclared
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2024-05-11 07:11:21 +00:00
肖在
eaccc141e1 Handle non-continuous data blocks in directory extents 2024-05-11 11:33:07 +08:00
肖在
88a9257d49
Revert "Handle non-continuous data blocks in"
This reverts commit e0cd43f8a5486debeba17349abbb088001164d70.
2024-05-11 03:26:36 +00:00
肖在
e0cd43f8a5 Handle non-continuous data blocks in
directory extents

The directory extent list does not have to be a continuous list of data
blocks. When GRUB tries to read a non-existant member of the list,
grub_xfs_read_file() will return a block of zero'ed memory. Checking for
a zero'ed magic number is sufficient to skip this non-existant data block.

Prior to commit 07318ee7e (fs/xfs: Fix XFS directory extent parsing)
this was handled as a subtle side effect of reading the (non-existant)
tail data structure. Since the block was zero'ed the computation of the
number of directory entries in the block would return 0 as well.
2024-05-11 10:06:01 +08:00
肖在
fd1e9fdd65
Revert " Handle non-continuous data blocks in"
This reverts commit 242fa05f2412202b241bbea01dc2bd69214b2e33.
2024-05-11 01:46:46 +00:00
肖在
242fa05f24 Handle non-continuous data blocks in
directory extents

The directory extent list does not have to be a continuous list of data
blocks. When GRUB tries to read a non-existant member of the list,
grub_xfs_read_file() will return a block of zero'ed memory. Checking for
a zero'ed magic number is sufficient to skip this non-existant data block.
2024-05-11 09:32:27 +08:00
Qiumiao Zhang
c7050828a7 sync patches from openEuler-22.03-LTS-SP3
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit ce31b98a9c7cb28116572daf9e62349bc24e2a2f)
2024-05-07 21:32:14 +08:00
Qiumiao Zhang
d513a38b43 sync patches from 22.03-LTS-Next
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit 908a3e71137970eaa927be7b646ead3ac17ce084)
2024-04-10 11:25:24 +08:00
Qiumiao Zhang
b0a4604866 fix compressed kernel verification failed
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit f567bbdc444bb5ddf157c65e568e5b50a1f17169)
2024-04-08 16:50:50 +08:00
jinlun
6cc7cbae24 Interface for replacing the EFI signature
(cherry picked from commit c9cf3a76023a60fa416036bb95da3e32cb977d4f)
2024-04-01 14:48:32 +08:00
Qiumiao Zhang
acc6d8a204 add TPCM support with ipmi channel
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit 1e52014b39673718830070eb7dfe450646954074)
2024-03-21 20:54:55 +08:00
Qiumiao Zhang
8d295b5bc5 Don't require a password to boot entries generated by grub-mkconfig
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit e07518a0fb083b68bc4dbf4ea3b2eb6bcbe7c5f6)
2024-03-15 14:18:01 +08:00
Qiumiao Zhang
4a55b3894f look for grub.cfg on efi where the app was found
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit 4c4771d498e643899d768f102c0bc6f49fe3e7be)
2024-03-08 18:11:35 +08:00
Qiumiao Zhang
03ef4d01cf modify klist in 10_linux.in
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2024-03-07 02:39:46 +00:00
Qiumiao Zhang
3f42453819 update to 2.12
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2024-03-04 19:17:07 +08:00
Yingkun Meng
54048ecd9e loongarch: Disable relaxation relocations
Signed-off-by: Yingkun Meng <mengyingkun@loongson.cn>
2023-12-25 11:26:57 +08:00
Qiumiao Zhang
317a2cc40c skip verification when not loading grub.cfg
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit 1a70c89178317faf0fe5fe4a7402ce5c1f301084)
2023-12-22 15:30:05 +08:00
Qiumiao Zhang
6c106ce2b6 change the name of module tpcm to tpcm_kunpeng
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit a5fc32e5290b5fd2231cad4ed738d840460e0133)
2023-12-11 14:44:54 +08:00
Qiumiao Zhang
5fbe53a8e7 add TPCM support with ipmi channel
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit bf5379d84f0bd61d407e87d2e4a1dd90528e2e1d)
2023-12-11 10:10:08 +08:00
Qiumiao Zhang
01e5499b45 support openEuler signature
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit ff7aab7c6032ca8c05300ebc886d3d6c8c58af2f)
2023-11-16 16:52:43 +08:00
Qiumiao Zhang
0d987655f0 fix CVE-2023-4692 and CVE-2023-4693
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-10-07 19:56:25 +08:00
Qiumiao Zhang
fbde2eddf8 backport some patches from upstream
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-09-13 22:49:55 +08:00
ouuleilei
034249d78b add a patch to fix build error 2023-09-08 10:11:09 +08:00
Qiumiao Zhang
fa477f729e backport some patches from upstream
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-08-17 19:47:05 +08:00
Yingkun Meng
1eae189350 loongarch: Fix the initrd parameter passing
Signed-off-by: Yingkun Meng <mengyingkun@loongson.cn>
2023-08-09 14:16:50 +08:00
Qiumiao Zhang
526de9571a remove the items of unsupported filesystems in fs.lst
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-07-24 22:06:04 +08:00
Qiumiao Zhang
794af19021 Override the linker and force noexecstack stacks
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-07-17 16:17:40 +08:00
Qiumiao Zhang
2252eb370e use xsdt_addr if present
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-07-03 19:54:42 +08:00
Qiumiao Zhang
581a5d3a1d Revert "EFI: allocate kernel in EFI_RUNTIME_SERVICES_CODE instead of EFI_LOADER_DATA."
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-06-15 22:12:59 +08:00
Qiumiao Zhang
36491a7d0e Read /etc/default/grub.d/*.cfg after /etc/default/grub
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-04-23 21:57:43 +08:00
Qiumiao Zhang
1857bf1c82 backport some patches from upstream
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-04-10 22:22:30 +08:00
mengyingkun
8a04f685e3 LoongArch: Implement cache synchronization operation
Signed-off-by: mengyingkun <mengyingkun@loongson.cn>
(cherry picked from commit 60c48504c262606c75540c014de0c4c5a9ef65bd)
2023-03-23 11:34:39 +08:00
mengyingkun
be5296dfe0 LoongArch: Force initrd load address 64KiB alignment
Signed-off-by: mengyingkun <mengyingkun@loongson.cn>
(cherry picked from commit 49bab1d9ae8b2a13648c414a8cc31b113873e17c)
2023-03-21 14:25:33 +08:00
Qiumiao Zhang
2f4cce5575 Fix missing declaration of strchrnul in rpm-sort
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
2023-03-11 16:18:53 +08:00
mengyingkun
1ba4b16683 LoongArch: Add support for new efi screen info GUID
Signed-off-by: mengyingkun <mengyingkun@loongson.cn>
(cherry picked from commit 722a77ccf7c3d61301d934b3347b8938ba54d033)
2023-03-10 14:19:14 +08:00
mengyingkun
088b4d85c7 loongarch: Add support for v4.0 interface
Signed-off-by: mengyingkun <mengyingkun@loongson.cn>
(cherry picked from commit 048b61123f321de2f517f3a0aebc6c65f38f66f6)
2023-02-13 17:14:54 +08:00
mengyingkun
0957330bbf loongarch: Add EFI frame buffer support
Signed-off-by: mengyingkun <mengyingkun@loongson.cn>
(cherry picked from commit f4711e7975394ab53bc6691b8ec0c4ee41c3fd95)
2023-02-08 10:27:12 +08:00