Advertisement
Guest User

Untitled

a guest
Dec 4th, 2019
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. Decided to bite the bullet and attempt to install debian sid on my emac yesterday. After fighting KMS and the strange timings of the emac monitor for a while I have graphics working (with KMS and radeon).
  2. The key is that you must manually specify a monitor EDID binary, but do it in the initramfs so it is available at boot.
  3. A rough guide, hopefully I remembered all the steps:
  4. Make sure you have an ethernet connection for internet during the install
  5. Use https://cdimage.debian.org/cdimage/ports/10.0/powerpc/iso-cd/debian-10.0-powerpc-NETINST-1.iso
  6. (I boot from USB by dd'ing to a USB stick at /dev/sdb with
  7. dd if=debian-10.0-powerpc-NETINST-1.iso of=/dev/sdb
  8. and then booting from OF with
  9. boot ud:,\\yaboot
  10. ... YMMV, but make sure /dev/sdb is really your USB stick)
  11. After installation boot by entering "Linux nomodeset" at the yaboot "boot:" prompt (just so you can boot to console and fix some things).
  12. Login and change to root with "su". I also need to "export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin" as root since for some reason this isn't set already (add it to /root/.bashrc).
  13. Download debian-ports-archive-keyring_2018.01.05_all.deb from http://archive.ubuntu.com/ubuntu/pool/universe/d/debian-ports-archive-keyring/ and install it with "dpkg -i debian-ports-archive-keyring_2018.01.05_all.deb". You can do the download either from the newly booted machine or copy the file on a USB stick.
  14. Edit /etc/apt/sources.list to look like:
  15. ------------------------------------------------------------------------------------------------------
  16. deb http://ftp.ports.debian.org/debian-ports/ unstable main
  17. deb http://ftp.ports.debian.org/debian-ports/ unreleased main
  18. deb http://ftp.ports.debian.org/debian-ports/ experimental main
  19. deb [arch=all] http://ftp.debian.org/debian unstable main contrib non-free
  20. deb https://www.deb-multimedia.org sid main
  21. ------------------------------------------------------------------------------------------------------
  22. Update all your packages with:
  23. sudo apt-get update && sudo apt-get upgrade -y
  24. Install some other packages (CA certs, ssh server, xfce4 desktop, new kernel, all firmware packages):
  25. apt-get install ca-certificates xfce4 openssh-server linux-image-5.3.0-2-powerpc linux-headers-5.3.0-2-powerpc firmware-linux-free firmware-linux-nonfree
  26. Grab the 1280x960.bin file attached to this post. Run:
  27. mkdir -p /lib/firmware/edid
  28. Copy the file into the newly created directory.
  29. Create a file /usr/share/initramfs-tools/hooks/edid with the following contents:
  30. (facebook is mangling the text here, so I've created a pastebin: https://pastebin.com/LAMkdTVf)
  31. Give it executable permissions with:
  32. chmod +x /usr/share/initramfs-tools/hooks/edid
  33. Run "update-initramfs -u"
  34. Finally reboot. At the yaboot "boot:" prompt enter "Linux drm.edid_firmware=edid/1280x960.bin".
  35. You should find everything works great :)
  36. Now you can permanently add the change. Edit /etc/yaboot.conf and after "initrd=/boot/initrd.img" line add:
  37. append="drm.edid_firmware=edid/1280x960.bin"
  38. Then run "ybin -v"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement