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 08-15-2022, 02:30 PM   #1
tercel
Member
 
Registered: Aug 2022
Posts: 54
Blog Entries: 23

Rep: Reputation: 0
Can I re-build and use "unfinished" kernel module?


Hi,

I have a AMD Radeon HD 4350 Graphics card and I am trying to install its driver.

I installed the driver but at the end it gives this error :

Code:
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.

Creating symlink /var/lib/dkms/fglrx/8.97.100.7/source ->
                 /usr/src/fglrx-8.97.100.7

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
cd /var/lib/dkms/fglrx/8.97.100.7/build; sh make.sh --nohints --uname_r=5.10.0-8-amd64 --norootcheck...(bad exit status: 1)
[Error] Kernel Module : Failed to build fglrx-8.97.100.7 with DKMS
[Error] Kernel Module : Removing fglrx-8.97.100.7 from DKMS
[Reboot] Kernel Module : update-initramfs
What I checked that, there are folders in /usr/src/fglrx-8.97.100.7/ which is linked as source. My question is this, program failed to build kernel module. Can I continue and build that from where it remained? I asked since I noticed that it uses DKMS(Dynamic Kernel Module Support). Maybe I can manage to rebuild it myself.

For clearing up my question;
1. can I run sudo sh make.sh --nohints --uname_r=5.10.0-8-amd64 manually to build a module called fglrx-8.97.100.7
2. and then load it into kernel by update-iniframfs by sudo modprobe fglrx-8.97.100.7 ?

Thanks.
 
Old 08-16-2022, 07:37 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,140
Blog Entries: 6

Rep: Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828
https://www.amd.com/en/support/graph...radeon-hd-4350
https://www.amd.com/en/support/kb/fa...u-installation

General info
https://wiki.archlinux.org/title/AMDGPU
https://wiki.gentoo.org/wiki/AMDGPU
https://github.com/archlinux/svntogi...trunk/PKGBUILD

You can certainly build a kernel module. You need the kernel headers for your kernel, the AMD source, all of the depends, and the correct compiler flags.

The amdgpu module and mesa is not in your distros repo? Using your package manager to install that from your repo would be the way to do it.

You need to give a lot more info.
 
Old 08-16-2022, 08:59 AM   #3
tercel
Member
 
Registered: Aug 2022
Posts: 54

Original Poster
Blog Entries: 23

Rep: Reputation: 0
Thanks ! I installed

firmware-amd-graphics
Binary firmware for AMD/ATI graphics chips

package for Debian and rebooted, it works flawlessly.
 
  


Reply



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
There are many unfinished apache processes jcorzo21 Linux - Server 1 09-14-2017 06:06 PM
Unfinished file copies? brpy1 Linux Mint 3 06-21-2011 07:20 PM
[SOLVED] Can't boot after unfinished -current upgrade; libblkid.so.1 missing sombragris Slackware 2 04-06-2010 11:58 AM
LXer: Software's unfinished business for 2007 LXer Syndicated Linux News 0 12-27-2006 08:21 AM
Unfinished threads unSpawn LQ Suggestions & Feedback 3 07-12-2001 04:39 PM

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

All times are GMT -5. The time now is 02:39 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