asm/types.h changed to asm-generic/types.h in linux kernel
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
asm/types.h changed to asm-generic/types.h in linux kernel
I am trying to compile a wifi driver for linux-kernel-5.10.13 on my armv8 board while trying to compile I got an error that
Code:
asm/types.h not found
and I came to know that
Quote:
asm directory was changed to asm-generic
but the issue is there is a lot of code that is still including asm/types.h instead of asm-generic/types.h,
I am new to Linux and I wanted to know is there any way that I can link renamed asm directory to the asm-generic directory
there is a command ln to create links, you will need a symbolic link, but I'm not really sure if that was the perfect solution (although you may try it if you wish).
I've cloned the repository from here and tried to compile the Wifi module following steps from here after following the steps and when trying to compile then I get the error
If both directories already exist then you cannot create a symlink in same location. You may need to symlink individual files or simply copy them over to new location, it does not hurt to have same files in two directories.
additionally I'm not really sure if this source was really compatible with this kernel. Probably need to be uplifted.
but as I see this driver is included in the kernel, so there is no need to do that at all. https://github.com/anthonywong/rtl8723bs
yes, it is true, actually, I am trying to change the wifi driver setting to a concurrent mode so I can turn on Access point mode and station mode at a time. so happened to recompile the module.
is there any other way so I can extract, make config changes and recompile the module.
since [if] it was built into the kernel you need to rebuild it (or at least this kernel module). I mean forget this git repo and download the kernel source instead and modify/reconfigure it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.