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

help to build inside android kernel tree #182

Open
Duhjoker opened this issue Sep 8, 2021 · 3 comments
Open

help to build inside android kernel tree #182

Duhjoker opened this issue Sep 8, 2021 · 3 comments

Comments

@Duhjoker
Copy link

Duhjoker commented Sep 8, 2021

hi

working on an Android kernel msm-4.9 for pixel 3a and need to add this inside kernel tree as theres no other way to build it correctly. could you please provide instruction on how to do so. thank you

@lwfinger
Copy link
Owner

lwfinger commented Sep 9, 2021

I do not understand the question. This driver should build on a 4.9 kernel.

@Biohazardousrom
Copy link

Biohazardousrom commented Sep 21, 2023

sorry i have since upgraded my phone and now im working with a linux-5.10 kernel aarch64. i have placed this driver in /drivers/staging with the rest of the rtl drivers i have, adjusted the makefile and kconfig as so and corrected a cflag so that it sees its own includes and the top of the tree /includes

i can get it to vmlinux at lto but at modpost i get this error

ERROR: modpost: module 8723bu uses symbol filp_open from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
make[2]: *** [/home/duhjoker/pantah-kernel-ex/private/gs-google/scripts/Makefile.modpost:152: modules-only.symvers] Error 1
make[2]: *** Deleting file 'modules-only.symvers'
make[1]: *** [/home/duhjoker/pantah-kernel-ex/private/gs-google/Makefile:1501: modules] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [/home/duhjoker/pantah-kernel-ex/private/gs-google/Makefile:185: __sub-make] Error 2

can you please advise me how to continue

please see my commit history for what exactly i have done

https://github.com/Biohazardousrom/Mad-Kali-MaxHunter-Pantah/tree/QPR2-release-test-drivers-rtl

@lwfinger
Copy link
Owner

Sorry it took a while to answer your problem. For Android, an MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
macro call is needed. As I said in the commit message, it does not seem to hurt Linux builds.

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

No branches or pull requests

3 participants