MiCode / Xiaomi_Kernel_OpenSource

Xiaomi Mobile Phone Kernel OpenSource
8.74k stars 3.22k forks source link

dagu-s-oss , Can't compile successfully #5382

Open abbuaus opened 1 year ago

abbuaus commented 1 year ago

https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/dagu-s-oss

Can't compile successfully, can you give me a tutorial? According to the wiki also can not succeed

WARNING: EXPORT symbol "gsi_write_channel_scratch" [vmlinux] version generation failed, symbol will not be versioned. ld.lld: error: relocation R_AARCH64_ABS32 cannot be used against symbol __crc_gsi_write_channel_scratch; recompile with -fPIC

defined in built-in.a(drivers/platform/msm/gsi/gsi.o) referenced by gsi.c drivers/platform/msm/gsi/gsi.o:(___kcrctab+gsi_write_channel_scratch+0x0) in archive built-in.a /home/linux/dagu-s-oss/Makefile:1196: recipe for target 'vmlinux' failed make[1]: *** [vmlinux] Error 1

shidalao commented 9 months ago

solution: sed -i 's/static union __packed gsi_channel_scratch/static union gsi_channel_scratch/' drivers/platform/msm/gsi/gsi.c

let me know if it helps or not

dirt2022 commented 9 months ago

solution: sed -i 's/static union __packed gsi_channel_scratch/static union gsi_channel_scratch/' drivers/platform/msm/gsi/gsi.c

let me know if it helps or not

it will compile successfully . But cannot boot (not bootloop,just stuck in the MI logo)

Branch pipa-t-oss , same problem

shidalao commented 8 months ago

solution: sed -i 's/static union __packed gsi_channel_scratch/static union gsi_channel_scratch/' drivers/platform/msm/gsi/gsi.c let me know if it helps or not

it will compile successfully . But cannot boot (not bootloop,just stuck in the MI logo)

Branch pipa-t-oss , same problem

Then it should be another problem, such as module signature...

dirt2022 commented 8 months ago

But how can I solve the boot stuck problem?

---Original--- From: @.> Date: Wed, Mar 13, 2024 16:25 PM To: @.>; Cc: @.**@.>; Subject: Re: [MiCode/Xiaomi_Kernel_OpenSource] dagu-s-oss , Can't compilesuccessfully (Issue #5382)

solution: sed -i 's/static union __packed gsi_channel_scratch/static union gsi_channel_scratch/' drivers/platform/msm/gsi/gsi.c let me know if it helps or not

it will compile successfully . But cannot boot (not bootloop,just stuck in the MI logo)

Branch pipa-t-oss , same problem

Then it should be another problem, such as module signature...

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>