[WIP] Fedora 25 Server on Powermac G5


so first day of challenge has been fruitfull one.

inspired thread amiga ppc guys

http://forum.hyperion-entertainment.biz/viewtopic.php?f=35&t=3524

, decided give try , succeeded after 9 hours of trial , error.

first state installed fedora 25 server on g5 , have no idea how dual-boot.
second not ssh system typed instructions in manually whilst reading them screen.
third procedure not faint-hearted , nothing explode have dedicate time complete it.

procedure followed :

http://linuxhacker.ru/d/?q=node/360

some things upfront had differently.
  1. the author had non-working dvd , mine works burned cd-iso , booted cd.
    got fedora 25 server netinstall iso dutch mirror here :

    http://ftp.nluug.nl/os/linux/distr/...64/iso/fedora-server-netinst-ppc64-25-1.2.iso
  2. as installer starts (graphical screen language choice) , press
    ctrl+alt+fn+f2 , you have command-shell , type : modprobe i2c-powermac

    press ctrl+alt+fn+f6 to return graphical installation screen

    avoid fans start spinning , creating jet-plane sound , figured out after 2 hours of planes taking off in living-room.
  3. i not author start ssh or vnc couldn't copy paste config, read screen , typed on manually.
  4. the author chose manual partitioning , didn't , chose automatic partitioning
  5. the author chose minimal install , doesn't exist in fedora 25, fedora 25 server is text based server install
my adapted procedure :

chose language, selected automatic partition, waited mirror found , clicked on begin installation .
@ screen can set root password , don't, wait yaboot error .

press ctrl+alt+fn+f2 and go shell.
follow procedure , here version :

mkdir /etc/yum.repos.d
cat <<eof >/etc/yum.repos.d/fedora.repo
[fedora]
name=fedora 25 - ppc64
failovermethod=priority
baseurl=http://ftp.nluug.nl/os/linux/distr/fedora-secondary/releases/25/server/ppc64/os/
enabled=1
#metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-fedora-25-ppc64
skip_if_unavailable=false
eof

dnf --releasever=25 --nogpgcheck --installroot /mnt/sysimage/ groupinstall -y 'fedora server edition'

chroot /mnt/sysimage
dnf clean all
dnf install -y kernel grub2 hfsutils lvm2

cat > /etc/default/grub <<eof
grub_timeout=5
grub_distributor="$(sed 's, release .*$,,g' /etc/system-release)"
grub_default=saved
grub_disable_submenu=true
grub_terminal_output="console"
grub_cmdline_linux="rd.lvm.lv=powermac_ssd/swap rd.lvm.lv=powermac_ssd/root $([ -x /usr/sbin/rhcrashkernel-param ] && /usr/sbin/rhcrashkernel-param || :) nomodeset"
the smiley has colon , round bracket off course
nomodeset doesn't work radeon videocard

grub_disable_recovery="true"
eof

grub2-mkconfig >/etc/grub2.cfg

cat >/tmp/grub_modules <<eof
moddep.lst bitmap.mod datehook.mod gzio.mod lsmmap.mod all_video.mod reboot.mod terminal.mod bitmap_scale.mod datetime.mod halt.mod memdisk.mod regexp.mod test.mod blocklist.mod echo.mod help.mod memrw.mod relocator.mod trig.mod boot.mod elf.mod hexdump.mod minicmd.mod scsi.mod true.mod bufio.mod ext2.mod hfs.mod msdospart.mod search.mod video.mod cat.mod fat.mod hfsplus.mod normal.mod search_fs_file.mod video_fb.mod cmp.mod font.mod ieee1275_fb.mod part_apple.mod search_fs_uuid.mod videoinfo.mod configfile.mod fshelp.mod linux.mod part_msdos.mod search_label.mod cpio.mod gettext.mod loadenv.mod parttool.mod setjmp.mod crypto.mod gfxmenu.mod loopback.mod probe.mod sleep.mod date.mod gfxterm.mod ls.mod read.mod suspend.mod kernel.img
eof

mkdir /tmp/grub-modules
cd /tmp/grub-modules
in `cat /tmp/grub_modules` ; cp /usr/lib/grub/powerpc-ieee1275/$i . ; done

did blkid /dev/sda3 uuid needed hereunder

cat > ../grub.cfg <<eof
search --no-floppy --fs-uuid --set=root a732e5bd-e4a8-4ffb-a0fe-f49fca582cc4
set prefix=($root)/grub2
configfile /grub2/grub.cfg
eof

grub2-mkimage -c ../grub.cfg -p /grub2 -o powerpc-ieee1275 -o ../grub.img *.mod

set root password using passwd

# fan control fixup
cat >/etc/modprobe.d/windfarm_powermac.conf <<eof
# powermac11,2 kind of windfarm modules
install windfarm_pm112 /sbin/modprobe i2c_powermac ; /sbin/modprobe --ignore-install windfarm_pm112

dnf update

reboot open firmware using cmd+option+o+f

followed these instructions
https://github.com/masterzorag/g5_ppc64-linux

had boot hd:,grub.img

grub2 start , fedora 25 server start , have console.

for reason , server version needs ipv6, tried disable haven't succeeded yet far it's ethernet cable plugged in directly isp modem since provide ipv6 addresses already.
otherwise stay stuck during boot @ ipv6 addresrequest


dnf grouplist will show desktopmanagers can install , installed mate via

(dnf groupinstall "mate desktop")

{3-jul-2017}
what worked me dnf group install mate-desktop
then echo "exec /usr/bin/mate-session" >>~./xinitrc
first time can start startx after reboot lightdm start automatically.
 

so i'm guessing doesn't video-card.

tried mate, cinnamon , lxde.

lxde starts colors weird.

in screenshot terminal looks ok on real screen it's unreadable.

unfortunately switching radeon nvidia didn't help.

lxde.png
 


Forums Macs PowerPC Macs


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

How would you like to be sentenced by a computer program?

MBP extremely slow, HDD cable replaced, what next?

How much is my cMP worth?