Skip to content

SG2042: Modify some files of SG2042#920

Open
DennisDing2003 wants to merge 8 commits intotianocore:masterfrom
AII-SDU:SG2042_Bootable_Fixed
Open

SG2042: Modify some files of SG2042#920
DennisDing2003 wants to merge 8 commits intotianocore:masterfrom
AII-SDU:SG2042_Bootable_Fixed

Conversation

@DennisDing2003
Copy link

Updated SG2042-related files to align with recent library changes in edk2.

Additionally, several drivers (including ACPI support) have been added.

The changes have been compiled and tested on SG2042 hardware, and the system now boots successfully.

Cc: dahogn dahogn@hotmail.com
Cc: meng-cz mengcz1126@gmail.com
Cc: Jingyu Li jingyu.li01@sophgo.com
Cc: Chao Wei chao.wei@sophgo.com
Signed-off-by: ZixuanDing dennisding2003@gmail.com
Co-authored-by: USER0FISH libing1202@outlook.com

Copy link
Contributor

@vlsunil vlsunil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Some high level feedback.

  1. Please update the PR and commit message as in EDK2 format(https://github.com/tianocore/tianocore.github.io/wiki/Commit-Message-Format). From the PR and commit message itself it should be clear which package/platform the patch is modifying. Ex: "Platform/ARM/VExpressPkg: Update size of virtio blk device".
  2. Commit message should describe the why the change is required and how. Just saying modify doesn't provide enough details to reviewers what exactly is changing and why.
  3. It is great that you are adding ACPI support as well!. However, have you looked at using DynamicTablesPkg which can be used to create most of the common ACPI tables from the DT. It will help in updating or moving to newer platforms.
  4. Please use ACPI 6.6 table versions (ex: in FADT) and run latest upstream FWTS on your platform since RISC-V support is added only in 6.6.

@DennisDing2003
Copy link
Author

Thank you for the detailed feedback. We agree that the third point regarding the DynamicTablesPkg is a valuable suggestion and we plan to explore it. And we will address the first two points by correcting the commit message format and providing the necessary details for the current changes.

@DennisDing2003 DennisDing2003 force-pushed the SG2042_Bootable_Fixed branch 8 times, most recently from fb0f576 to 54b2705 Compare December 10, 2025 13:15
DennisDing2003 and others added 2 commits December 11, 2025 17:33
Modify basic file for SG2042 to ensure successful compilation
and boot. This change is required due to recent modifications
in upstream EDK2 libraries.

Cc: dahogn <dahogn@hotmail.com>
Cc: meng-cz <mengcz1126@gmail.com>
Cc: Jingyu Li <jingyu.li01@sophgo.com>
Cc: Chao Wei <chao.wei@sophgo.com>
Signed-off-by: ZixuanDing <dennisding2003@gmail.com>
Co-authored-by: USER0FISH <libing1202@outlook.com>
Modify .dec files to support boot process of SG2042

Cc: dahogn <dahogn@hotmail.com>
Cc: meng-cz <mengcz1126@gmail.com>
Cc: Jingyu Li <jingyu.li01@sophgo.com>
Cc: Chao Wei <chao.wei@sophgo.com>
Signed-off-by: ZixuanDing <dennisding2003@gmail.com>
Co-authored-by: USER0FISH <libing1202@outlook.com>
Updated SEC-phase files to align with library changes. This
includes adaptations to the modified FDT-related functions and
the removal of FirmwareContext in edk2.

Cc: dahogn <dahogn@hotmail.com>
Cc: meng-cz <mengcz1126@gmail.com>
Cc: Jingyu Li <jingyu.li01@sophgo.com>
Cc: Chao Wei <chao.wei@sophgo.com>
Signed-off-by: ZixuanDing <dennisding2003@gmail.com>
Co-authored-by: USER0FISH <libing1202@outlook.com>
DennisDing2003 and others added 2 commits December 11, 2025 22:08
Modify SmbiosPlatformDxe.c since the version and
structure of Smbios in edk2 are changed.

Cc: dahogn <dahogn@hotmail.com>
Cc: meng-cz <mengcz1126@gmail.com>
Cc: Jingyu Li <jingyu.li01@sophgo.com>
Cc: Chao Wei <chao.wei@sophgo.com>
Signed-off-by: ZixuanDing <dennisding2003@gmail.com>
Co-authored-by: USER0FISH <libing1202@outlook.com>
Add ACPI support to change boot mode from device
tree to ACPI.

Cc: dahogn <dahogn@hotmail.com>
Cc: meng-cz <mengcz1126@gmail.com>
Cc: Jingyu Li <jingyu.li01@sophgo.com>
Cc: Chao Wei <chao.wei@sophgo.com>
Signed-off-by: ZixuanDing <dennisding2003@gmail.com>
Co-authored-by: USER0FISH <libing1202@outlook.com>
DennisDing2003 and others added 3 commits December 11, 2025 22:46
Add some device drivers of SG2042, enabling
support for new hardware features.

Cc: dahogn <dahogn@hotmail.com>
Cc: meng-cz <mengcz1126@gmail.com>
Cc: Jingyu Li <jingyu.li01@sophgo.com>
Cc: Chao Wei <chao.wei@sophgo.com>
Signed-off-by: ZixuanDing <dennisding2003@gmail.com>
Co-authored-by: USER0FISH <libing1202@outlook.com>
Fix some bugs when compiling to support boot
process of SG2042

Cc: dahogn <dahogn@hotmail.com>
Cc: meng-cz <mengcz1126@gmail.com>
Cc: Jingyu Li <jingyu.li01@sophgo.com>
Cc: Chao Wei <chao.wei@sophgo.com>
Signed-off-by: ZixuanDing <dennisding2003@gmail.com>
Co-authored-by: USER0FISH <libing1202@outlook.com>
Fix a PCD to avoid compile error

Cc: dahogn <dahogn@hotmail.com>
Cc: meng-cz <mengcz1126@gmail.com>
Cc: Jingyu Li <jingyu.li01@sophgo.com>
Cc: Chao Wei <chao.wei@sophgo.com>
Signed-off-by: ZixuanDing <dennisding2003@gmail.com>
Co-authored-by: USER0FISH <libing1202@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants