User:Comfortably Paranoid

From Mactel-Linux

Jump to: navigation, search

I joined so I could leave a comment at MacBook_Pro_(Santa_Rosa)_with_Fedora_7

Notes on Fedora Core 7 Installation

  • While it is possible to boot the MacBook Pro from the FC7 installation DVD, it is not possible to actually run the installation from it. This is not intuitive at all. The installation program will compalin about not finding installation files, and you can install from another source. This requires on of the following:
  • An external DVD drive. This is what I am using.
  • User "Zontar" at Fedora Forum installed FC7 from a DVD iso images on an external USB hard drive "I then chose to install Fedora using the DVD iso image which I had on an external USB hard drive" [1] (July 2007).
  • Perform a network install. But from where?
  • I had an external DVD drive, and so I put the FC7 DVD (the actual install DVD, not a DVD containing the ISO image, although that could work, too). I actually used two FC7 DVDs: one in the external DVD drive, one in the MacBook Pro's internal drive.
  • I didn't use Bootcamp, instead used the command-line partition. I got stuck when I issued the command "sfdisk --force -c /dev/sda 3 83" (an ominous error message was given). Other than than, I followed the directions
  • Partition:
  • Create custom layout
  • The new "windows" partition is sda3 type "Foreign". Delete it
  • Add mount point "/" of type ext3 on sda3, and a swap partition as sda4
  • Use GRUB boot loader.
  • Install the bootloader to first sector of boot partition
  • After finishing the installation, booting to rescue mode and running sfdisk gave an error.
  • Installed rEFIt, but did not sync partition tables. sfdisk gave the familiair error: WARNING: GPT detected on '/dev/sda/'! The util sfdisk doesn't support GPT. Use GNU Parted. But then it says: Done. Since it says "done" I ran grub-install anyway. It replied "the file /boot/grub/stage1 not read correctly."
  • sync'd the partition tables using rEFIt. Rebooted to rescue mode. sfdisk gave the same warnings. However grub-install replied "Installation finished. No errors reported" (and some more text). On the following reboot, the rEFIt detected the linux drive properly.

Keyboard

The backlight controls didn't work after installing F7.

Downloaded pommed from debian, but got errors. Installed the package:

rpm -Uvh dbus-devel-1.0.2-4.fc7.i386.rpm
rpm -Uvh alsa-lib-devel-1.0.14-0.4.rc3.fc7.i386.rpm
audiofile-devel-0.2.6-6.fc7.i386.rpm
yum install libconfuse
yum install libconfuse-devel
yum -y install libsmbios-devel
yum install xorg-x11-server-source
rpm -Uvh zlib-devel-1.2.3-10.fc7.i386.rpm
rpm -Uvh pciutils-devel-2.2.4-3.fc7.i386.rpm

and this helped resolve some errors. However, I got to the point where make pommed gave a compiler error I couldn't resolve. While it couldn't find the header pci/pci.h, there is a file in sys/pci.h. So with this command,

ln -s /usr/include/sys /usr/include/pci

the compiler found the header file. But this warning was issued:

mactel/x1600_backlight.c:232: warning: implicit declaration of function ‘pci_alloc’

which doesn't look good to me

It was hard to find evtest. I found evtest.c in this package:

ftp://rpmfind.net/linux/SuSE-Linux/i386/9.3/suse/src/input-utils-2004.05.13-3.src.rpm

Fortunately, although running the make file caused many warnings (errors?), evtest compiled OK. Running pommed -d gives a clue to the correct device, it was /dev/input/event4:

./evtest /dev/input/event4

Seems like I'm missing some events:

 Event code 113 (Mute)
Event code 114 (VolumeDown)
   Event code 115 (VolumeUp)
   Event code 224 (?)
   Event code 225 (?)
   Event code 227 (?)
   Event code 228 (?)
   Event code 229 (?)
   Event code 230 (?)

Seems the kernel lacks CONFIG_USB_HIDINPUT_POWERBOOK=y. On to recompiling the kernel? See [2] and [3]. I don't know if this is helpful or not: [4]

Personal tools