LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-04-2016, 12:15 AM   #1
kc3
Member
 
Registered: Jun 2009
Distribution: Linux from Scratch
Posts: 172

Rep: Reputation: 35
Framebuffer on boot constantly restarts with amdgpu/tonga_mc.bin using R9 380 GPU


When I don't include the amdgpu/tonga driver when I compile my kernel my computer boots fine but of course X won't start, if I do include it via CONFIG_EXTRA_FIRMWARE and CONFIG_EXTRA_FIRMWARE_DIR or if I set CONFIG_DRM_AMDGPU=y it seems to find the driver fine however when booting up my framebuffer will continuously restart itself and the computer is unusable, any ideas what would cause this?

I'm using the development blfs 7.8 systemd edition as I used the LFS 7.8 systemd edition. I do apologize in advance about the lack of posting any configuration or log files as I'm not sure what to include (as the computer doesn't boot)

Last edited by kc3; 03-04-2016 at 12:19 AM.
 
Old 03-04-2016, 06:37 AM   #2
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
Quote:
Originally Posted by kc3 View Post
When I don't include the amdgpu/tonga driver when I compile my kernel my computer boots fine but of course X won't start, if I do include it via CONFIG_EXTRA_FIRMWARE and CONFIG_EXTRA_FIRMWARE_DIR or if I set CONFIG_DRM_AMDGPU=y it seems to find the driver fine however when booting up my framebuffer will continuously restart itself and the computer is unusable, any ideas what would cause this?

I'm using the development blfs 7.8 systemd edition as I used the LFS 7.8 systemd edition. I do apologize in advance about the lack of posting any configuration or log files as I'm not sure what to include (as the computer doesn't boot)
AMDGPU is quite a new driver. You may want to try more recent kernel (I had to switch to 4.5-rc to get amdgpu driver usable, but even as a laptop discrete gpu it doesn't do a thing).

Also, to avoid building firmware into kernel, just build amdgpu as module and put the firmware in /lib/firmware/amdgpu. AMD GPU's have quite a number of firmware files and building them all into kernel can result in its increased size and possible performance penalty.
 
Old 03-04-2016, 02:26 PM   #3
kc3
Member
 
Registered: Jun 2009
Distribution: Linux from Scratch
Posts: 172

Original Poster
Rep: Reputation: 35
Thanks for the response, I did however figure out this particular problem. I had compiled the 4.5 kernel and it still did the same thing. Turns out I needed a different or more drivers, I ended up putting all of these file
Code:
tonga_ce.bin, tonga_me.bin, tonga_mec.bin,
tonga_rlc.bin, tonga_sdma.bin, tonga_uvd.bin,
tonga_mc.bin, tonga_mec2.bin tonga_pfp.bin,
tonga_sdma1.bin, tonga_smc.bin tonga_vce.bin
into the /lib/firmware/amdgpu directory while setting CONFIG_DRM_AMDGPU=m and now it boots and seems to load that fine (I don't know if all of those files are needed or just a particular one but the only one my system had ever warned me about was tonga_mc.bin which I already had) However my X still doesn't work and I was hoping this would fix that :/ however as that's a separate issue I'll post a different thread about that.

I do however think that as long as I do not run into any issues I'll be keeping the 4.5 kernel.

Last edited by kc3; 03-04-2016 at 02:28 PM.
 
Old 03-30-2016, 10:59 AM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Try the Xorg configure method from the post in this forum:

http://www.linuxquestions.org/questi...rk-4175521499/

The driver section should have "amdgpu" ideally for your card. You should also activate the option for acceleration method "glamor". However, test the setup first with the "modesetting" driver and no other options. If you get the KMS during startup, then it should be working.
 
  


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
[SOLVED] Failed to boot the salix os constantly wubai Linux - Laptop and Netbook 12 02-12-2013 09:42 AM
[SOLVED] CPU constantly 50% also pcmanfm constantly respawning. linuxpicaxe Linux - Software 2 09-11-2012 04:45 PM
When I try to boot ubuntu, the computer restarts AllShk Ubuntu 3 06-11-2011 01:10 AM
multiple restarts needed to boot? dispozable Ubuntu 5 01-08-2010 07:08 AM
Core 4 restarts at boot i equals daniel Fedora 2 08-23-2005 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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