LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-17-2021, 04:03 AM   #1
sncak
LQ Newbie
 
Registered: Feb 2021
Posts: 13

Rep: Reputation: Disabled
Red face 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

Last edited by sncak; 02-17-2021 at 04:37 AM.
 
Old 02-17-2021, 04:32 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
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).
 
Old 02-17-2021, 04:50 AM   #3
sncak
LQ Newbie
 
Registered: Feb 2021
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks for the reply, it was not working.
geting error

Quote:
asm/types.h not found
 
Old 02-17-2021, 04:53 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
would be nice to know what was not working exactly?
Also would be nice to know what did you try to compile exactly?
http://www.catb.org/~esr/faqs/smart-...html#beprecise
 
Old 02-17-2021, 07:55 AM   #5
sncak
LQ Newbie
 
Registered: Feb 2021
Posts: 13

Original Poster
Rep: Reputation: Disabled
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
Quote:
asm/types.h not found
and I am trying to compile for the armv8 board.

Last edited by sncak; 02-17-2021 at 08:01 AM.
 
Old 02-17-2021, 08:18 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
and did you create a symbolic link? (how?)
 
Old 02-17-2021, 08:29 AM   #7
sncak
LQ Newbie
 
Registered: Feb 2021
Posts: 13

Original Poster
Rep: Reputation: Disabled
I tried creating a symbolic link but failed

Quote:
ln -s asm asm-generic
 
Old 02-17-2021, 09:18 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
what was the reason? what's happened? You may need to use root to create that link.
 
Old 02-17-2021, 11:03 AM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 02-17-2021, 11:38 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
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

Last edited by pan64; 02-17-2021 at 11:41 AM.
 
1 members found this post helpful.
Old 02-17-2021, 11:30 PM   #11
sncak
LQ Newbie
 
Registered: Feb 2021
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.

Last edited by sncak; 02-17-2021 at 11:31 PM.
 
Old 02-18-2021, 01:14 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
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.
 
  


Reply

Tags
bash script, kernal-source, shell script



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache asm and asm-util locations for loading server 2.4.9 InterceptorF Linux - Server 4 06-26-2014 12:29 AM
kernel-generic and kernel-generic-smp ?? liuyug Slackware - Installation 5 06-01-2014 07:01 PM
[SOLVED] error: asm/ppc_asm.h: No such file or directory and error: asm/processor.h: No such f Thirupathip Linux - Newbie 3 01-25-2013 03:02 AM
inline asm, 64-bit asm, intercepting segfaults, etc. rainbowsally Programming 0 02-04-2012 05:10 PM
ASM x32 vs ASM x64 Tegramon Programming 3 02-27-2008 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration