<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [DC][CIK] Bonaire mobile - No displays being turned on"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105996#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [DC][CIK] Bonaire mobile - No displays being turned on"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105996">bug 105996</a>
from <span class="vcard"><a class="email" href="mailto:shawn.starr@rogers.com" title="Shawn Starr <shawn.starr@rogers.com>"> <span class="fn">Shawn Starr</span></a>
</span></b>
<pre>For reference compiling amdgpu.ko with custom patch on a Fedora kernel:
1) rpm -ivh kernel-4.17.0-0.rc0.git7.2.fc29.src.rpm
2) Copy custom patch into rpmbuild/SOURCES
3) Modify kernel.spec to add patch into the listing
4) cd ~/rpmbuild/SPECS; rpmbuild -bp kernel.spec
5) cd ~/rpmbuild/BUILD/kernel-4.16.fc27/linux-4.17.0-0.rc0.git7.2.fc29.x86_64
6) vi Makefile --> add the proper matching kernel version
'-0.rc0.git7.2.fc29.x86_64' to EXTRAVERSION.
7) cp /boot/config-4.17.0-0.rc0.git7.2.fc29.x86_64
~/rpmbuild/BUILD/kernel/4.16.fc17/linux-4.17.0-0.rc0.git7.2.fc29.x86_64/.config
8) cp /lib/modules/4.17.0-0.rc0.git7.2.fc29.x86_64/build/Module.symvers
~/rpmbuild/BUILD/kernel/4.16.fc17/linux-4.17.0-0.rc0.git7.2.fc29.x86_64/
9) cd
~/rpmbuild/BUILD/kernel/4.16.fc17/linux-4.17.0-0.rc0.git7.2.fc29.x86_64/certs
&& cp ~/rpmbuild/SOURCES/x509.genkey .
10) cd .. && make certs
11) make modules_prepare
12) make M= drivers/gpu/drm/amd/amdgpu modules
13) ./scripts/sign-file sha256 certs/signing_key.pem certs/signing_key.x509
drivers/gpu/drm/amd/amdgpu/amdgpu.ko
14) compress kernel modules with xz
15) Replace/move original in
/lib/modules/4.17.0-0.rc0.git7.2.fc29.x86_64/drives/dpu/drm/amd/amdgpu/ of way
16) depmod -a
17) Remove old initramfs and rebuild with dracut</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>