View previous topic :: View next topic |
Author |
Message |
anthonyw n00b

Joined: 17 Jun 2008 Posts: 13 Location: Dundalk, Ireland
|
Posted: Mon Sep 29, 2014 7:53 am Post subject: Installing gentoo on a G4 desktop |
|
|
I've just started installing gentoo onto a G4 desktop. At work we have about 20 of these and wanted to get some more up to date software running on them. They still have the original Mac OS on them. A colleague of mine has debian stable running on one, and i wanted to try out gentoo.
Haven't done much yet other than prepare the disk. Going to have a go at compiling the kernel on it today.
Any suggestions about kernel configs, what desktop to use etc. welcome.
Quote: |
(chroot) livecd / # cat /proc/cpuinfo
processor : 0
cpu : 7450, altivec supported
clock : 866.666664MHz
revision : 2.1 (pvr 8000 0201)
bogomips : 66.43
total bogomips : 66.43
timebase : 33217983
platform : PowerMac
model : PowerMac3,5
machine : PowerMac3,5
motherboard : PowerMac3,5 MacRISC2 MacRISC Power Macintosh
detected as : 69 (PowerMac G4 Silver)
pmac flags : 00000010
L2 cache : 256K unified
pmac-generation : NewWorld
Memory : 640 MB
|
|
|
Back to top |
|
 |
chithanh Developer


Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Mon Sep 29, 2014 10:34 am Post subject: |
|
|
Just a heads up, there is a known issue using radeon KMS, AGP and libata together. See this post.
If you encounter this problem, radeon.agpmode=0 kernel parameter or switching to the IDE driver might help.
About the kernel config, start with "make pmac32_defconfig" and adjust as needed. |
|
Back to top |
|
 |
anthonyw n00b

Joined: 17 Jun 2008 Posts: 13 Location: Dundalk, Ireland
|
Posted: Tue Sep 30, 2014 4:08 pm Post subject: |
|
|
Thanks for that,
I've just compiled a kernel but can't get it to boot. There's different reports via google of getting yaboot to boot a kernel from an ext4 filesystem, some say they can and some say they can't.
Here's my partitioning i have a swap partition on hda3 and then / on hda4 which is ext4. So no seperate /boot partition.
I'm going to try creating a small ext2 partition for /boot
So going boot from the cd again, tar what i have done already up, repartiton with a small ext2 partition for /boot, and then untar back to the disks again. Just to see if that solves my issue.
Quote: |
livecd linux # mac-fdisk /dev/hda
/dev/hda
Command (? for help): p
/dev/hda
# type name length base ( size ) system
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
/dev/hda3 Apple_UNIX_SVR2 swap 1048576 @ 1664 (512.0M) Linux swap
/dev/hda4 Apple_UNIX_SVR2 root 119052960 @ 1050240 ( 56.8G) Linux native
Block size=512, Number of Blocks=120103200
DeviceType=0x0, DeviceId=0x0
|
|
|
Back to top |
|
 |
anthonyw n00b

Joined: 17 Jun 2008 Posts: 13 Location: Dundalk, Ireland
|
Posted: Wed Oct 08, 2014 4:29 pm Post subject: |
|
|
So I've repartitioned and have gone through a number of kernel recompiles. Here's the screen that is currently displaying just after yaboot.
http://i105.photobucket.com/albums/m225/anthonywalters/computerstuff/bootmsg.jpg
It's hangs here.
My thought processes are that:
This is the kernel starting to boot right?
So then it might be some form of video/display issue?
Code: |
livecd ~ # lspci
0000:00:0b.0 Host bridge: Apple Inc. UniNorth 1.5 AGP
0000:00:10.0 VGA compatible controller: NVIDIA Corporation NV11 [GeForce2 MX/MX 400] (rev a1)
0001:10:0b.0 Host bridge: Apple Inc. UniNorth 1.5 PCI
0001:10:15.0 Multimedia controller: Motorola DSP56301 Digital Signal Processor (rev 03)
0001:10:17.0 Unassigned class [ff00]: Apple Inc. KeyLargo Mac I/O (rev 03)
0001:10:18.0 USB controller: Apple Inc. KeyLargo USB
0001:10:19.0 USB controller: Apple Inc. KeyLargo USB
0002:20:0b.0 Host bridge: Apple Inc. UniNorth 1.5 Internal PCI
0002:20:0e.0 FireWire (IEEE 1394): LSI Corporation FW322/323 [TrueFire] 1394a Controller (rev ff)
0002:20:0f.0 Ethernet controller: Apple Inc. UniNorth GMAC (Sun GEM) (rev 01)
livecd ~ #
|
Code: | livecd ~ # cat /mnt/gentoo/etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT /boot ext2 noauto,noatime 1 2
#/dev/ROOT / ext3 noatime 0 1
#/dev/SWAP none swap sw 0 0
#/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
/dev/hda3 none swap sw 0 0
/dev/hda4 /boot ext2 noauto,noatime 1 2
/dev/hda5 / ext4 noatime 0 1
/dev/cdrom /mnt/cdrom auto noauto,user 0 0
livecd ~ # |
Code: |
livecd ~ # cat /mnt/gentoo/etc/yaboot.conf
## yaboot.conf generated by yabootconfig 1.0.8
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
## append="video=ofonly"
boot=/dev/hda2
#device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
device=hd:
partition=4
root=/dev/hda5
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
image=/kernel-3.12.21-gentoo-r1
label=Linux
read-only
livecd ~ # |
Code: | livecd ~ # mac-fdisk -l
/dev/hda
# type name length base ( size ) system
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
/dev/hda3 Apple_UNIX_SVR2 swap 1310720 @ 1664 (640.0M) Linux swap
/dev/hda4 Apple_UNIX_SVR2 boot 204800 @ 1312384 (100.0M) Linux native
/dev/hda5 Apple_UNIX_SVR2 root 118586016 @ 1517184 ( 56.5G) Linux native
Block size=512, Number of Blocks=120103200
DeviceType=0x0, DeviceId=0x0
/dev/hdb
# type name length base ( size ) system
/dev/hdb1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hdb2 Apple_Driver43 Macintosh 56 @ 64 ( 28.0k) Driver 4.3
/dev/hdb3 Apple_Driver43 Macintosh 56 @ 120 ( 28.0k) Driver 4.3
/dev/hdb4 Apple_Driver_ATA Macintosh 56 @ 176 ( 28.0k) Unknown
/dev/hdb5 Apple_Driver_ATA Macintosh 56 @ 232 ( 28.0k) Unknown
/dev/hdb6 Apple_FWDriver Macintosh 512 @ 288 (256.0k) Unknown
/dev/hdb7 Apple_Driver_IOKit Macintosh 512 @ 800 (256.0k) Unknown
/dev/hdb8 Apple_Patches Patch Partition 512 @ 1312 (256.0k) Unknown
/dev/hdb9 Apple_Free 262144 @ 1824 (128.0M) Free space
/dev/hdb10 Apple_HFS Apple_HFS_Untitled_2 156037504 @ 263968 ( 74.4G) HFS
/dev/hdb11 Apple_Free 16 @ 156301472 ( 8.0k) Free space
Block size=512, Number of Blocks=156301488
DeviceType=0x0, DeviceId=0x0
Drivers-
1: @ 64 for 23, type=0x1
2: @ 120 for 36, type=0xffff
3: @ 176 for 21, type=0x701
4: @ 232 for 34, type=0xf8ff
/dev/hdc
# type name length base ( size ) system
/dev/hdc1 Apple_partition_map Apple 2 @ 1 ( 1.0k) Partition map
/dev/hdc2 Apple_HFS catalyst 20140713 345912 @ 16 (168.9M) HFS
Block size=512, Number of Blocks=345928
DeviceType=0x1, DeviceId=0x1
livecd ~ # |
|
|
Back to top |
|
 |
john90901 n00b

Joined: 12 Dec 2010 Posts: 4
|
Posted: Wed Jul 20, 2016 11:52 am Post subject: |
|
|
Is it just me or does yaboot work correctly only after re-ordering in mac-fdisk so that bootstrap is on partition number 2 , as in, it won't work if it's at number 5 or anything else ?
[G4] |
|
Back to top |
|
 |
GreenNeonWhale n00b

Joined: 30 Mar 2016 Posts: 64
|
Posted: Wed Aug 03, 2016 4:46 am Post subject: that has not been my experience with yaboot |
|
|
I haven't had that problem with yaboot. For example I currently have a PowerMac G3 with the boot partition on partition 4, and the OS on partition 3, and it works just fine. I would recommend the ext2 filesystem for the boot partition, as I know that yaboot can read that filesystem. That's the way I do it on PPC Macs and its worked well for me. |
|
Back to top |
|
 |
GreenNeonWhale n00b

Joined: 30 Mar 2016 Posts: 64
|
Posted: Wed Aug 03, 2016 8:07 pm Post subject: bootstrap or /boot partition |
|
|
I was just thinking, and if you're referring to the Apple_Bootstrap partition, and not the separate /boot partition, then no I haven't tried that on anything other than partition 2. I was thinking of the /boot partition when I wrote my last post. If you do want to move it, you might try manually configuring yaboot.conf if you haven't tried that already. |
|
Back to top |
|
 |
cbefdf n00b

Joined: 07 Aug 2016 Posts: 2
|
|
Back to top |
|
 |
|
|
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
|
|