diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-02-19 16:23:05 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-02-19 16:23:05 +0100 |
commit | 3b4a6baa2dea7e02d0b7ea4dd38111c504da64d2 (patch) | |
tree | 2f15c620b8fd586204fd49d21108b842b4b89a98 /content | |
parent | 5a319ea7c0843928222bbaf7805c943506ea4c7a (diff) | |
download | www-andreasbaumann-cc-3b4a6baa2dea7e02d0b7ea4dd38111c504da64d2.tar.gz www-andreasbaumann-cc-3b4a6baa2dea7e02d0b7ea4dd38111c504da64d2.tar.bz2 |
updated A1211 mac blog with addendum (kernel 5.7.6)
Diffstat (limited to 'content')
-rw-r--r-- | content/blog/archlinux-macbook-a1211.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/content/blog/archlinux-macbook-a1211.md b/content/blog/archlinux-macbook-a1211.md index 8a04d4b..57ad990 100644 --- a/content/blog/archlinux-macbook-a1211.md +++ b/content/blog/archlinux-macbook-a1211.md @@ -120,6 +120,7 @@ options fail. My version of the module is [here](/text/blog/archlinux-macbook-a1211/radeon_bios.c), check out function *radeon_read_bios_from_firmware* and the code calling that function. + In order to use the Radeon driver for KMS as early as possible, I put it into the init-RAM-disk: @@ -292,3 +293,34 @@ around and I'm not buying new machines since 10 years (I do buy old ones from Eb the VESA radeon topic in the Archlinux forum. * https://wiki.archlinux.org/index.php/Mac#Webcam: how to make the camera work +## Addendum 19.2.2021 + +For kernel 5.7.6 updated version [here](/text/blog/archlinux-macbook-a1211/radeon_bios-5.7.6.c) . + +Also a small walkthrough on how to update the module (in a most likely not too official way): + +``` +wget https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.7.6.tar.xz +make mrproper +zcat /proc/config.gz > .config +sed -i 's/.*CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION="-arch1-1"/g' .config +sed -i 's/.*CONFIG_LOCALVERSION_AUTO.*/# CONFIG_LOCALVERSION_AUTO is not set/g' .config +make oldconfig +make scripts prepare modules_prepare +make -C . M=drivers/gpu/drm/radeon +rm -f /lib/modules/5.7.6-arch1-1/kernel/drivers/gpu/drm/radeon/radeon.ko.xz +xz -c drivers/gpu/drm/radeon/radeon.ko \ + > /lib/modules/5.7.6-arch1-1/kernel/drivers/gpu/drm/radeon/radeon.ko.xz +depmod -av +mkinitcpio -P +cp /boot/initramfs-linux.img /mnt/efi/. +cp /boot/initramfs-linux-fallback.img /mnt/efi/. + +# Archlinux kernel compilation +https://wiki.archlinux.org/index.php/Kernel/Traditional_compilation#Download_the_kernel_source +# build just one module +https://yoursunny.com/t/2018/one-kernel-module/ +``` + +Where /mnt/efi is the VFAT rEFIt EFI partition which contains grub and the kernel +image and RAM disk. |