installation snippets

goal: efi-bootable installation of OS X, Windows 8, Linux (opensuse 12.3)

backup harddisk:

  • unused 16 GB usb stick
  • use os x disk utility to create a guid partition table with two partitions (first with 1 GB size, formatted mac os extended journaled)
  • download os x recovery tool from apple here
  • run the recovery tool (in os x) and format the usb stick
  • use os x disk utility to create a second partition on the usb stick
  • use this second partition as time machine backup and let time machine create a full backup (might take some hours with usb 2 sticks);
    – needs about 12 GB to backup the preinstalled os x of mac mini;
    – change energy settings in system settings that this backup does not get interrupted by automatic sleep mode.
  • make sure that the usb stick is bootable:
    boot with pressed option/alt-key

reformat hard disk as gpt disk without (protective) mbr

  • warning: a backup is required because all data on the disk will be erased
  • in order to get as second os windows with efi boot the disk is formated with windows diskpart (following this helpful tutorial)
  • boot with some windows 8 install media (windows 7 or vista should work as well)
    – press shift+F10 to get a console window
    (it might be neccessary to enter repair options screen first)
    – run diskpart with

    • list disk
    • select disk 0
    • clean
    • convert gpt
      in case convert gpt fails with error write protected
      and attr dis shows read-only yes, then run
      attr dis clear readonly
      now convert gpt should work
    • create partition efi size=256
    • format fs=fat32 quick label=EFI
    • create partition primary size=51200 [size of your OS X partition in MB; Ex. 50GB = 51200]
    • list partition
    • create partition msr size=128
    • create partition primary size=30720 (desired size of your Windows partition; Ex. 30GB = 30720)
    • format fs=ntfs quick label=Windows
    • exit

    – reboot

restore os x

  • boot with pressed option/alt-key, select the usb stick with osx recovery tool
    – restore os x using the time machine backup
  • reboot into os x
    – run boot camp to download windows drivers
    (store the drivers in your os x home folder)
    – do not use boot camp to prepare your hard disk!
    – install rEFIt 0.14 boot loader from sourceforge
    -the configuration file of rEFIt allows to set os x as default os
    (/efi/refit/refit.conf on the os x system partition
    default_selection M)

prepare efi-bootable windows 8 install medium

  • warning: in bios-mode the installer does not accept the disk and windows partition created with diskpart
    (only windows 8 64 bit properly prepared install media support (u)efi-mode )
  • steps to create a efi-bootable usb stick from only bios-bootable dvd (as described here)
    – unused 4 GB usb stick
    – run diskpart (from windows vista/7/8 or from a windows 7/8 installer)
    – run diskpart with

    • list disk
    • select disk X (make sure X corresponds to the 4 GB usb stick!)
    • clean
    • create partition primary
    • select partition 1
    • active
    • format fs=fat32 quick
    • assign
    • exit

    – copy files from existing bios-bootable windows 8 64 bit install medium to the new usb stick

    • xcopy E:\*.* /s/e/f F:\

    – this assumes the existing install medium has drive letter E: and the new medium has drive letter F:
    – reboot into os x and copy the folder with bootcamp drivers to the new usb stick

install windows 8

  • boot with the efi bootable windows 8 pro 64 bit install medium
  • select the windows partition created before
    (if the installer displays that this partion is not formatted then efi-boot failed; you have to retry to boot into efi-mode)
  • after installation of windows 8 install bootcamp drivers (enables networking)
  • to get rEFIt boot manager back
    – either boot with pressed option/alt-key into osx and use system settings to select start volume “os x”
    – or use the windows 8 bootcamp system tray applet to select the start volume “os x”

opensuse 12.3 installation

  • burn an OpenSuse 12.3 64 bit install dvd (full installer, not only network installer)
  • efi-boot with this dvd (using grubx64.efi)
  • select user defined install
  • add linux partitions to the hard disk
    – an additional fat32 data partition which has rw access by os x, windows and linux might be useful
    – the partioning summary should show that /dev/sda1 is used as boot device
  • in boot manager settings select “test for other systems”, use grub2-efi and ignore the error message
  • install linux
    – should be successful except network
  • to get rEFIt boot manager back boot into windows and use bootcamp system try applet
    (windows should be displayed in the grub2 boot menu; eles use pressed option/alt key during boot)
opensuse 12.3 enable wired network
  • the tg3 network module has to be recompiled with additional pci id lines
    (the same issue is in Desinfec’t 2013 published by german c’t magazine: patched ubuntu tg3.ko: tg3_desinfect2013)
  • boot into linux and use yast to install from dvd build tools and linux kernel source and linux headers:
    – the rightmost tab in yast software install tool (“Schemata” in german version) allows to select
    – basic development tools
    – c/c++ development
    – linux kernel development
  • the file tg3.c has to be patched as decribed here
    (lspci -nn gives [14e4:1686] which corresponds in tg3.h to TG3PCI_DEVICE_TIGON3_57766
    but the device id TG3PCI_DEVICE_TIGON3_57766 is missing in tg3.c)
    – copy /usr/src/linux/drivers/net/ethernet/broadcom/tg3.c to tg3.c.orig and add the lines marked with +
    (without writing the ‘+’ sign)

    {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57762)},
    + {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57766)},
    + {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57782)},
    + {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57786)},
    - then recompile tg3.ko; run inside a konsole window:
    cd /usr/src/linux
    make clean
    make oldconfig
    cp /usr/src/linux-obj/x86_64/desktop/Module.symvers /usr/src/linux/
    (or cp /boot/symvers-3.xyz.gz /usr/src/linux; cd /usr/src/linux; gunzip symvers-3.xyz.gz;
    ln -s symvers-3.xyz Module.symvers)
    make scripts
    make prepare
    cd drivers/net/ethernet/broadcom/
    make -C /usr/src/linux SUBDIRS=$PWD modules
    su
    cp tg3.ko /lib/modules/3.7.10-1.1-desktop/kernel/drivers/net/ethernet/broadcom/
  • finally re-insert tg3 kernel module:
    - rmmod tg3
    - insmod tg3
  • use command dmesg and ifconfig -a to verify that network interface eth0 is now available
  • use yast to setup wired network eth0

opensuse 12.3 enable wireless network

  •  kernel module b43 needs firmware files which should be downloaded by
    sudo /usr/sbin/install_bcm43xx_firmware
    (as diplayed by:
    rmmod b43
    modprobe b43
    dmesg
    )
  • currently (2013-03) install_bcm43xx_firmware does not install all required files
    (ucode29_mimo.fw is missing)
  • download these firmware files (which claim to be part of netgear wndr4500 gpl source package)
  • open this archive and extract linux/wl_apsta.o to /lib/firmware/broadcom-wl-firmwares/
  • open a konsole window with root rights and run
    cd /lib/firmware/broadcom-wl-firmwares
    b43-fwcutter -w /lib/firmware/ wl_apsta.o
  • now run:
    rmmod b43
    modprobe b43
    dmesg
    This should display Broadcom 4331 WLAN found
  • then use yast or network manager to configure wireless network
bluetooth not working: lsusb ID 05ac:828a Apple, Inc. probably solved like done for
ID 05ac:8286 Apple, Inc. (Macbook Pro): see https://lkml.org/lkml/2012/7/9/473

+++ b/drivers/bluetooth/btusb.c
@@ -84,6 +84,9 @@ static struct usb_device_id btusb_table[] = {
+ /* Apple MacBookPro10,1 */
+ { USB_DEVICE(0x05ac, 0x8286) },
+

Leave a Reply