Slackware 15 on a MacBook Pro 8.2 booting issue and fix
slackware grub boot macbook-pro 8.2
https://everymac.com/systems/apple/m...olt-specs.html I was given an old 2011 MacBookPro not really my cup of tea but by far the best spec computer I have. This was the first UEFI machine I has so I was worried about bricking it so I kept the EFI partiton and the apple recovery. I first tried Linux Mint on a live usb as I expected it to have all the crap I might need to install. It worked fine so I installed to a small partition on sda2. Everything worked so I installed Slackware to sda4. but I could only get it to boot from grub manually after holding down the alt key and selecting efi from the apple firmware . Anyway I found the fix on the Debian wiki and thought I'd post the symptoms and the fix. Once booted I installed the broadcom, isight firmware and pommed-light from slackbuilds.org. Using xfce the function keys volume, screen brightness and keyboard backlight are working Ive not tried or worked out what the other keys are yet. Wifi, webcam all work. slackbook grub> set root=(hd1,gpt4) grub> linux /boot/vmlinuz-huge-5.15.19 grub> initrd /boot/initrd.gz grub> boot sda1 EFI don't touch sda2 mint (empty) sda3 apple (recovery) don't touch sda4 Slackware 15 sda5 arch (empty) sda6 /home sda7 swap if I use grub-mkconfig -o /boot/grub/grub.cfg grub-install /dev/sda It hangs at "fbo: switching to radeon from EFI VGA" Same if I use efibootmgr to list then set Slackware as the boot option. If I hold down the alt after the chime and choose efi from the apple menu it fails to boot and falls back to a grub prompt. I can then run grub> set root=(hd1,gpt4) grub> linux /boot/vmlinuz-huge-5.15.19 grub> initrd /boot/initrd.gz grub> boot and it boots correctly past switching to radeon from EFI VGA and the screen is correctly setup The fix: " https://wiki.debian.org/InstallingDe...MacBookPro/8-3 6. Edit the file /etc/grub.d/10_linux Look for these lines:- if ([ "$ubuntu_recovery" = 0 ] || [ x$type != xrecovery ]) && \ ([ "x$GRUB_GFXPAYLOAD_LINUX" != x ] || [ "$gfxpayload_dynamic" = 1 ]); then echo " gfxmode \$linux_gfx_mode" | sed "s/^/$submenu_indentation/" fi After these lines add in:- This was about line 130 on my slackware 15 install echo " outb 0x728 1" | sed "s/^/$submenu_indentation/" echo " outb 0x710 2" | sed "s/^/$submenu_indentation/" echo " outb 0x740 2" | sed "s/^/$submenu_indentation/" echo " outb 0x750 0" | sed "s/^/$submenu_indentation/" These lines disable the AMD GPU leaving just the integrated Intel HD3000 graphics working Run update-grub Reboot " ---------------8<-----------8<-----------------8<-------------- On Slackware 15 it was: else if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ]; then echo " load_video" | sed "s/^/$submenu_indentation/" fi echo " set gfxpayload=$GRUB_GFXPAYLOAD_LINUX" | sed "s/^/$submenu_indentation/" fi I put his about line 130 on my slackware 15 install echo " outb 0x728 1" | sed "s/^/$submenu_indentation/" echo " outb 0x710 2" | sed "s/^/$submenu_indentation/" echo " outb 0x740 2" | sed "s/^/$submenu_indentation/" echo " outb 0x750 0" | sed "s/^/$submenu_indentation/" save then grub-mkconfig -o /boot/grub/grub.cfg grub-install /dev/sda Reboot ---------------8<-----------8<-----------------8<-------------- pinxi -bay System: Host: slackbook.local Kernel: 5.15.19 arch: x86_64 bits: 64 compiler: gcc v: 2.37-slack15 parameters: BOOT_IMAGE=/boot/vmlinuz-huge-5.15.19 root=UUID=7a7a1189-b079-48c1-8f9f-7d0acad69797 ro Desktop: catwm vt: 1 dm: startx Distro: Slackware 15.0 Machine: Type: Laptop System: Apple product: MacBookPro8,2 v: 1.0 serial: <superuser required> Chassis: type: 10 v: Mac-94245A3940C91C80 serial: <superuser required> Mobo: Apple model: Mac-94245A3940C91C80 v: MacBookPro8,2 serial: <superuser required> UEFI: Apple v: MBP81.88Z.0047.B27.1201241646 date: 01/24/12 Battery: ID-1: BAT0 charge: 73.0 Wh (98.6%) condition: 74.0/75.2 Wh (98.3%) volts: 12.5 min: 10.9 model: SMP bq20z451 type: Li-ion serial: N/A status: full cycles: 145 CPU: Info: quad core Intel Core i7-2720QM [MT MCP] arch: Sandy Bridge speed (MHz): avg: 914 min/max: 800/3300 Graphics: Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics vendor: Apple driver: i915 v: kernel arch: Gen-6 code: Sandybridge process: Intel 32nm built: 2011 ports: active: LVDS-1 empty: DP-1,HDMI-A-1,VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0126 class-ID: 0300 Device-2: Apple FaceTime HD Camera type: USB driver: uvcvideo usb: rev: 2.0 speed: 480 Mb/s lanes: 1 mode: legacy-2 bus-ID: 1-2:3 chip-ID: 05ac:8509 class-ID: 0e02 serial: DJHB1X0THVDH7HA0 Display: server: X.Org v: 1.20.14 with: Xwayland v: 21.1.4 driver: X: loaded: modesetting unloaded: vesa alternate: fbdev dri: i965 gpu: i915 resolution: 1440x900~60Hz API: OpenGL v: 3.3 Mesa 21.3.5 renderer: Mesa DRI Intel HD Graphics 3000 (SNB GT2) compat-v: 3.0 direct-render: Yes Network: Device-1: Broadcom NetXtreme BCM57765 Gigabit Ethernet PCIe driver: tg3 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: N/A bus-ID: 02:00.0 chip-ID: 14e4:16b4 class-ID: 0200 Device-2: Broadcom BCM4331 802.11a/b/g/n vendor: Apple AirPort Extreme driver: bcma-pci-bridge v: N/A modules: bcma pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 14e4:4331 class-ID: 0280 Drives: Local Storage: total: 698.64 GiB used: 32.82 GiB (4.7%) Info: Processes: 212 Uptime: 27m wakeups: 4 Memory: 7.67 GiB used: 1.27 GiB (16.6%) Init: SysVinit v: 3.01 runlevel: 3 default: 3 tool: /etc/rc.d Compilers: gcc: 11.2.0 alt: 11.2.0 clang: 13.0.0 Packages: pm: pkgtool pkgs: 1399 libs: 238 tools: slackpkg pm: rpm pkgs: 0 Shell: Bash v: 5.1.16 running-in: xterm pinxi: 3.3.26-41 ========================================================================= edit: As I was reminded after kernel upgrade to update grub again. grub-mkconfig -o /boot/grub/grub.cfg grub-install /dev/sda Reboot |
It sounds like it was real punishment to get going. On a point of order,
Quote:
|
All times are GMT -5. The time now is 09:05 PM. |