Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mac mini Installation Woes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
oaaltone
n00b
n00b


Joined: 14 Sep 2003
Posts: 3
Location: Amherst, MA

PostPosted: Thu Feb 10, 2005 8:08 pm    Post subject: Mac mini Installation Woes Reply with quote

Alright, the Mac mini boots the 2004.3 LiveCD just fine; everything works out of the box (I don't need wireless/bluetooth/sound).

I followed the install guide as well I could, seeing that there are some inconsistencies (for instance, /etc/fstab is described strangely).

I chose to use genkernel, and compiled like this:
Code:
genkernel --udev --kernel-config=/usr/share/genkernel/ppc/G4 all


I use the automatic yaboot configurator and that seems to go fine, provided I tell it where the kernel is (/boot/kernel-2.6.10-gentoo-r6).

I reboot, and Gentoo starts to boot fine, then I receive the following error:
Code:
* Checking root filesystem...
ext2fs_check_if_mount: No such file or directory while determining whether /dev/hda4 is mounted.
fsck.ext2: No such file or directory while tryping to open /dev/hda5
/dev/hda4: The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

* Filesystem could not be fixed :(

Give root password for maintenance
(or type Control-D for normal startup):


I got around this error by running this at the yaboot prompt:
Code:
Linux video=ofonly gentoo=nodevfs devfs=nomount udev


Now I can boot into Gentoo fine, but the network card is not working. It worked on the LiveCD, and I was under the impression that genkernel would give me a similar kernel.

This guy's post seems to suggest everything works fine:
http://www.oreillynet.com/cs/user/view/cs_msg/51045

Any suggestions?

Misc. output:

/etc/fstab:
Code:
/dev/hda3      none      swap      sw         0 0
/dev/hda4      /      ext3      noatime         0 1
/dev/cdroms/cdrom0   /mnt/cdrom   iso9660      noauto,ro      0 0
none         /proc      proc      defaults      0 0
none         /dev/shm   tmpfs      defaults      0 0


/etc/yaboot.conf:
Code:
boot=/dev/hda2
device=/pci@f4000000/ata-6@d/disk@0:
partition=4
root=/dev/hda4
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/kernel-2.6.10-gentoo-r6
   label=Linux
   read-only


/etc/genkernel.conf:
Code:
# Genkernel Configuration File

# ===========GENKERNEL BASIC CONFIGURATION=============

# Run 'make menuconfig' before compiling this kernel?
MENUCONFIG="no"

# Run 'make clean' before compilation?
# If set to NO, implies MRPROPER WILL NOT be run
# Also, if clean is NO, it won't copy over any configuration
# file, it will use what's there.
CLEAN="yes"

# Run 'make mrproper' before configuration/compilation?
MRPROPER="yes"

# Copy bootsplash into the initrd image?
BOOTSPLASH="yes"

# Override the arch detection?
# ARCH_OVERRIDE="x86"

# Mount /boot automatically if it isn't mounted?
MOUNTBOOT="yes"

# Save the new configuration in /etc/kernels upon
# successfull compilation
SAVE_CONFIG="yes"

# Use Color output in Genkernel?
USECOLOR="yes"

# Add new kernel to grub?
# BOOTLOADER="grub"

# =========GENKERNEL LOCATION CONFIGURATION============
# Variables:
#   %%ARCH%%  - Final determined architecture
#   %%CACHE%% - Final determined cache location

# Default share directory location
GK_SHARE="/usr/share/genkernel"

# Location of helper-scripts
#GK_BIN="${GK_SHARE}/bin"
GK_BIN="${GK_SHARE}"
# Location of the default cache
CACHE_DIR="${GK_SHARE}/pkg/%%ARCH%%"
# Log output file
DEBUGFILE="/var/log/genkernel.log"
# Debug Level
DEBUGLEVEL=1

# Default location of kernel source
DEFAULT_KERNEL_SOURCE="/usr/src/linux"
# Default kernel config (only use to override using %%ARCH%%/kernel-config-${VER}.${PAT} !)
# DEFAULT_KERNEL_CONFIG="${GK_SHARE}/%%ARCH%%/kernel-config"

# Configuration file for busybox
BUSYBOX_CONFIG="${GK_SHARE}/%%ARCH%%/busy-config"
# BusyBox Version
BUSYBOX_VER="1.00-pre7-losetup-crypto-alpha"
# Busybox bin-cache location, to store pre-compiled busybox
# binary is just a bzip2 busybox executable
BUSYBOX_BINCACHE="%%CACHE%%/busybox-${BUSYBOX_VER}-%%ARCH%%.bz2"
# Location of BusyBox source tarball
BUSYBOX_SRCTAR="${GK_SHARE}/pkg/busybox-${BUSYBOX_VER}.tar.bz2"
# Directory created after busybox tarball is extracted
BUSYBOX_DIR="busybox-${BUSYBOX_VER}"

MODULE_INIT_TOOLS_VER="0.9.15-pre4"
MODULE_INIT_TOOLS_SRCTAR="${GK_SHARE}/pkg/module-init-tools-${MODULE_INIT_TOOLS_VER}.tar.bz2"
MODULE_INIT_TOOLS_DIR="module-init-tools-${MODULE_INIT_TOOLS_VER}"
MODULE_INIT_TOOLS_BINCACHE="%%CACHE%%/insmod-%%ARCH%%-static-2.6.bz2"

MODUTILS_VER="2.4.26"
MODUTILS_SRCTAR="${GK_SHARE}/pkg/modutils-${MODUTILS_VER}.tar.bz2"
MODUTILS_DIR="modutils-${MODUTILS_VER}"
MODUTILS_BINCACHE="%%CACHE%%/insmod-%%ARCH%%-static-2.4.bz2"

DIETLIBC_VER="0.27"
DIETLIBC_SRCTAR="${GK_SHARE}/pkg/dietlibc-${DIETLIBC_VER}.tar.bz2"
DIETLIBC_DIR="dietlibc-${DIETLIBC_VER}"
DIETLIBC_BINCACHE="%%CACHE%%/dietlibc-${DIETLIBC_VER}-%%ARCH%%.tar.bz2"
DIETLIBC_BINCACHE_TEMP="%%CACHE%%/dietlibc-${DIETLIBC_VER}-%%ARCH%%-tempdir"

DEVFSD_VER="1.3.25-dietlibc-kernel25"
DEVFSD_SRCTAR="${GK_SHARE}/pkg/devfsd-${DEVFSD_VER}.tar.bz2"
DEVFSD_DIR="devfsd"
DEVFSD_BINCACHE="%%CACHE%%/devfsd-${DEVFSD_VER}-%%ARCH%%.bz2"
DEVFSD_CONF_BINCACHE="%%CACHE%%/devfsd-conf-${DIETLIBC_VER}-%%ARCH%%.bz2"

UDEV_VER="039"
UDEV_DIR="udev-${UDEV_VER}"
UDEV_SRCTAR="${GK_SHARE}/pkg/udev-${UDEV_VER}.tar.bz2"
UDEV_BINCACHE="%%CACHE%%/udev-${UDEV_VER}-%%ARCH%%.tar.bz2"

DEVICE_MAPPER_VER="1.00.17"
DEVICE_MAPPER_DIR="device-mapper.${DEVICE_MAPPER_VER}"
DEVICE_MAPPER_SRCTAR="${GK_SHARE}/pkg/device-mapper.${DEVICE_MAPPER_VER}.tgz"
DEVICE_MAPPER_BINCACHE="%%CACHE%%/device-mapper-${DEVICE_MAPPER_VER}-%%ARCH%%.tar.bz2"

LVM2_VER="2.00.25"
LVM2_DIR="LVM2.${LVM2_VER}"
LVM2_SRCTAR="${GK_SHARE}/pkg/LVM2.${LVM2_VER}.tgz"
LVM2_BINCACHE="%%CACHE%%/LVM2.${LVM2_VER}-%%ARCH%%.tar.bz2"


lspci:
Code:
0000:00:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 AGP
0000:00:10.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200] (rev 01)
0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 PCI
0001:10:17.0 Class ff00: Apple Computer Inc. KeyLargo/Intrepid Mac I/O
0001:10:18.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:19.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:1a.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:1b.0 USB Controller: NEC Corporation USB (rev 43)
0001:10:1b.1 USB Controller: NEC Corporation USB (rev 43)
0001:10:1b.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
0002:20:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 Internal PCI
0002:20:0d.0 Class ff00: Apple Computer Inc. UniNorth/Intrepid ATA/100
0002:20:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth 2 FireWire (rev 81)
0002:20:0f.0 Ethernet controller: Apple Computer Inc. UniNorth 2 GMAC (Sun GEM) (rev 80)


lsmod:
Code:
Module                  Size  Used by
ext3                  129396  1
jbd                    84036  1 ext3
Back to top
View user's profile Send private message
Achille
n00b
n00b


Joined: 04 Jan 2005
Posts: 74

PostPosted: Thu Feb 10, 2005 10:39 pm    Post subject: Reply with quote

There is a site dedicated to the installation of Debian Linux on the Mac mini. You can find there a config file for the kernel.
Back to top
View user's profile Send private message
oaaltone
n00b
n00b


Joined: 14 Sep 2003
Posts: 3
Location: Amherst, MA

PostPosted: Fri Feb 11, 2005 1:00 am    Post subject: Reply with quote

Achille wrote:
There is a site dedicated to the installation of Debian Linux on the Mac mini. You can find there a config file for the kernel.

Thanks. I went through the installation again, this time compiling the kernel with this .config.

Everything is working now!

I posted my experiences here:
http://aaltonen.us/archive/2005/02/11/linux-on-the-mac-mini/
Back to top
View user's profile Send private message
mavherzog
n00b
n00b


Joined: 10 Feb 2005
Posts: 8
Location: Southern Iraq

PostPosted: Mon Feb 14, 2005 3:06 am    Post subject: Reply with quote

oaaltone wrote:
I posted my experiences here:
http://aaltonen.us/archive/2005/02/11/linux-on-the-mac-mini/


Excellent write up! I'll will compare your experiences with my own as soon as MY Mac Mini is delivered. (I actually ordered THREE of them...two base models for the kids and one a little more pimped out for myself (faster CPU, 512MB ram, smartdrive, bigger HD, etc))

If the OS X/Gentoo on PPC experience is what I hope, I'm fully expecting that my Mini will end up on my wife's desk and I will be purchasing a higher-end Mac by year's end. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum