cannot boot with linux-libre>=5.7, amdgpu and cryptsetup
edgarlux at tutanota.de
edgarlux at tutanota.de
Fri Jul 24 21:18:09 UTC 2020
My previous e-mail provider does not let me sent e-mails (super fishy). I have been trying to reply for days.
On 2020-07-20 19:57, Denis 'GNUtoo' Carikli wrote:
> On Sun, 19 Jul 2020 03:05:37 +0000
> edgar at openmail.cc wrote:
>
>> I guess that you mean in the Linux source code, not in Linux Libre,
>> right? (I was unable to find that line in my copy of linux-libre 5.7)
> Both will work. Here we're just testing some things so even if you use
> Linux for the tests, we can still re-incorporate the patch in
> linux-libre later on.
If you do a grep on the linux-libre source, that line does not exist:
#+begin_QUOTE
... request_firmware ...
#+end_QUOTE
I am assuming that you meant this:
#+begin_SRC C
err = reject_firmware(&adev->firmware.gpu_info_fw, fw_name, adev->dev);
#+end_SRC
=request_firmware= from linux was replaced by =reject_firmware= in linux-libre
I followed the instructions from
#+begin_EXAMPLE
I've also a more in depth howto here:
https://libreplanet.org/wiki/Group:Hardware/research/gpu/radeon/How_to_patch_and_test_linux-libre_in_Parabola
#+end_EXAMPLE
I skipped the "Find the Linux driver file to patch", "Patching linux-libre" and "Deblobing Linux" parts and went directly to "Building linux-libre". I commented some sections as you suggested to build and install (see linux-libre.diff)
Basically,
1. I cloned linux-libre
#+begin_SRC bash
torsocks git clone https://jxself.org/git/linux-libre.git
#+end_SRC
2. checked out the 5.7.9 branch into a new branch
#+begin_SRC bash
cd linux-libre
git checkout v5.7.9-gnu -b amdgpu-test
#+end_SRC
3. modified the source (see attachment)
4. set the kernel name
#+begin_SRC bash
sed 's#^CONFIG_LOCALVERSION=".*"$#CONFIG_LOCALVERSION="-amdgpu"#' -i .config
sed 's/^CONFIG_LOCALVERSION_AUTO=y$/# CONFIG_LOCALVERSION_AUTO is not set/g' -i .config
#+end_SRC
5. built the kernel
#+begin_SRC bash
make -j4; make -j4 modules
#+end_SRC
6. chroot into the partition with systemD
#+begin_SRC bash
arch-chroot /mypart/
#+end_SRC
7. installed the kernel
#+begin_SRC bash
make modules_install
install arch/x86/boot/bzImage /boot/vmlinuz-linux-amdgpu
#+end_SRC
#+begin_SRC conf
ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux-amdgpu"
PRESETS=('default')
default_image="/boot/initramfs-linux-amdgpu.img"
#+end_SRC
#+begin_SRC bash
mkinitcpio -p linux-amdgpu
#+end_SRC
8. Modified my boot loader and restarted
Still no joy. I am attaching the log :) . Let me know what is next. Thanks!
--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:
https://tutanota.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-libre_amdgpu.diff.gz
Type: application/gzip
Size: 1088 bytes
Desc: not available
URL: <http://www.fsfla.org/pipermail/linux-libre/attachments/20200724/0a4244e5/attachment.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amdgpu-5.7.9-gnu-amdgpu+-200723_1242.log.gz
Type: application/gzip
Size: 2480 bytes
Desc: not available
URL: <http://www.fsfla.org/pipermail/linux-libre/attachments/20200724/0a4244e5/attachment-0001.gz>
More information about the linux-libre
mailing list