Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Synchronous Exception on some arm cpus #2488

Merged
merged 1 commit into from Jul 20, 2023

Conversation

amazingfate
Copy link
Contributor

Issues maybe related: #1188 #1658 #2458
I'm testing on a rk3588 sbc with an edk2 firmware.
I encountered the same issue edk2-porting/edk2-rk3588#6 as above.
After a lot of grub_printf I find that file->name here is not initilized by grub_bufio_open. And my rk3588 will get Synchronous Exception when grub_strncmp runs with nullfile->name. So I just skip it when there is no file->name.

@ventoy
Copy link
Owner

ventoy commented Jul 20, 2023

Thank you.

@ventoy ventoy merged commit 529541f into ventoy:master Jul 20, 2023
@opsiff
Copy link

opsiff commented Jul 20, 2023

Thank you.
It works on my Qingyun L410 with Ventoy 1.0.94 AA64 version.
I will Test on Qingyun L420 and other platform which has Synchronous Exception before.

@opsiff
Copy link

opsiff commented Jul 20, 2023

Success works in Qingyun L420 with SecureBoot Disabled.

I thinks that it solves #2458 #1099 .
My installed OS image:UOS klv-1050u4

@gzmgs
Copy link

gzmgs commented Aug 21, 2023

Success works in Qingyun L420 with SecureBoot Disabled.

I thinks that it solves #2458 #1099 . My installed OS image:UOS klv-1050u4

I try ventoy(1.0.93) on my QingYun L420,but got Synchronous Exception error while boot from usbdisk:

here is what i found at the BiosDfxExceptionLog

Synchronous Exception at 0x0000000075DED2B0
PC 0x000075DED2B0
PC 0x000075DEBE6C
PC 0x0003FFF87284
PC 0x0003FFF7A834
PC 0x0003FFF7AD48
PC 0x0003FFF7B06C
PC 0x0003FFF7B0E4
PC 0x000075DED0E0
PC 0x00007ECC798C (0x00007ECC0000+0x0000798C) [ 1] DxeCore.dll
PC 0x00007E924320 (0x00007E91C000+0x00008320) [ 2] BdsDxe.dll
PC 0x00007E926440 (0x00007E91C000+0x0000A440) [ 2] BdsDxe.dll
PC 0x00007ECCB0EC (0x00007ECC0000+0x0000B0EC) [ 3] DxeCore.dll
PC 0x00007ECCB6C4 (0x00007ECC0000+0x0000B6C4) [ 3] DxeCore.dll
PC 0x00003A408D48
[ 1] /srv/workspace/work_dir/work_code/out/target/product/baltimore/obj/Build/baltimore_cs_kelvinv/RELEASE_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll
[ 2] /srv/workspace/work_dir/work_code/out/target/product/baltimore/obj/Build/baltimore_cs_kelvinv/RELEASE_GCC5/AARCH64/ByoModulePkg/BdsDxe/BdsDxe/DEBUG/BdsDxe.dll
[ 3] /srv/workspace/work_dir/work_code/out/target/product/baltimore/obj/Build/baltimore_cs_kelvinv/RELEASE_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll

X0 0x0000000000000000 X1 0x0000000075DF0F6C X2 0x0000000000000003 X3 0x000000000000003A
X4 0x0000000000000000 X5 0x000000000000003A X6 0x0000000000000060 X7 0x0000000000000003
X8 0x0000000000000000 X9 0xFFFFFFFFFFFFFFFF X10 0x0000000000000200 X11 0x0000000000000020
X12 0x00000003FF355278 X13 0x00000003FF3551E0 X14 0x00000003FF355240 X15 0x0000000000000001
X16 0x0000000075DEBDD8 X17 0x0000000000000000 X18 0x0000000000FFFFFF X19 0x00000003FF3712E0
X20 0x0000000000000001 X21 0x0000000075DF0F6C X22 0x000000007FFFF4CF X23 0x0000000000000000
X24 0x0000000000000000 X25 0x0000000000000000 X26 0x0000000000000000 X27 0x00000003FFF7A000
X28 0x0000000000000000 FP 0x000000007FFFF440 LR 0x0000000075DEBE6C

V0 0x0046454542444145 4478305F454C4449 V1 0x0000000000000000 0000000000000000
V2 0x0000000000000000 0000000000000000 V3 0x0000000000000000 0000000000000000
V4 0x0000000000000000 0000000000000000 V5 0x0000000000000000 0000000000000000
V6 0x0000000000000000 0000000000000000 V7 0x0000000000000000 0000000000000000
V8 0x0000000000000000 0000000000000000 V9 0x0000000000000000 0000000000000000
V10 0x0000000000000000 0000000000000000 V11 0x0000000000000000 0000000000000000
V12 0x0000000000000000 0000000000000000 V13 0x0000000000000000 0000000000000000
V14 0x0000000000000000 0000000000000000 V15 0x0000000000000000 0000000000000000
V16 0x0000000000000000 0000000000000000 V17 0x0000000000000000 0000000000000000
V18 0x0000000000000000 0000000000000000 V19 0x0000000000000000 0000000000000000
V20 0x0000000000000000 0000000000000000 V21 0x0000000000000000 0000000000000000
V22 0x0000000000000000 0000000000000000 V23 0x0000000000000000 0000000000000000
V24 0x0000000000000000 0000000000000000 V25 0x0000000000000000 0000000000000000
V26 0x0000000000000000 0000000000000000 V27 0x0000000000000000 0000000000000000
V28 0x0000000000000000 0000000000000000 V29 0x0000000000000000 0000000000000000
V30 0x0000000000000000 0000000000000000 V31 0x0000000000000000 0000000000000000

SP 0x000000007FFFF440 ELR 0x0000000075DED2B0 SPSR 0x20000205 FPSR 0x00000000
ESR 0x96000007 FAR 0x0000000000000000

ESR : EC 0x25 IL 0x1 ISS 0x00000007

Data abort: Translation fault, third level

Stack dump:
000007FFFF340: 00000003FF3CB000 0000000000000000 000000007FFFF3D0 0000000075DEBEE0
000007FFFF360: 00000003FF371420 0000000000000022 0000000000000000 000000007FFFF468
000007FFFF380: 0000000000000000 00000003FF371260 0000000075DEC000 0000000000000000
000007FFFF3A0: 00000003FFF7A000 0000000000000000 00000003FF371420 0000000000000000
000007FFFF3C0: 00000003FF371420 0000000000000050 000000007FFFF410 00000003FFF53420
000007FFFF3E0: 000000007FFFF3F0 0000000075DE898C 000000007FFFF410 00000003FFF53540
000007FFFF400: 00000003FF36F840 000000039C000000 000000007FFFF490 0000000075DEC128
000007FFFF420: 00000003FF371420 00000003FF373CE0 00000003FF371420 0000000000000003

000007FFFF440: 000000007FFFF480 00000003FFF87284 00000003FF36D560 0000000000000000
000007FFFF460: 0000000000000040 00000003FFF7A000 00000003FF3712E0 0000000000000000
000007FFFF480: 000000007FFFF4D0 00000003FFF7A834 000000007FFFF558 00000003FF3712E0
000007FFFF4A0: 00000003FFF7A000 00000003FFF7A000 00000003FF3712E0 00000003FFF7AD30
000007FFFF4C0: 00000003FF3716C0 00000003FFF7A000 000000007FFFF4F0 00000003FFF7AD48
000007FFFF4E0: 00000003FF3716C0 00000003FFF7A000 000000007FFFF560 00000003FFF7B06C
000007FFFF500: 00000003FFF92C00 00000003FF373E40 0000000075DED000 00000003FF3740E0
000007FFFF520: 0000000075DED000 0000000075DED000 0000000000000000 0000000000000000

@gzmgs
Copy link

gzmgs commented Aug 21, 2023

the error above fixed in ventoy 1.0.94 ,ventoy can start from usb on Qintyun L420 now.

Thank amazingfate and ospiff!

@gzmgs
Copy link

gzmgs commented Aug 21, 2023

Success works in Qingyun L420 with SecureBoot Disabled.

I thinks that it solves #2458 #1099 . My installed OS image:UOS klv-1050u4

Hi ! I tried to install debian/ubuntu/windows on Qingyun L420 with ventoy , but faiiled with hang_in_black_screen.

have you any idea install os other than UOS on Qingyun L420?

@opsiff
Copy link

opsiff commented Aug 22, 2023

have you any idea install os other than UOS on Qingyun L420?

HUAWEI provide their BSP kernel with their many no upstream changes and some AOSP kernel changes in L420,and if you want to bootup other distro,just try to binary replace vmlinux and some other kernel modules, rebuild initrd,and usermode driver like mesa.

Other person has an exapmle,link:
https://blog.zenithal.me/2022/01/18/Use-Icenowy-With-Icenowy/

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.

None yet

5 participants