Gentoo Archives: gentoo-ppc-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-ppc-user@l.g.o
Subject: [gentoo-ppc-user] What should I copy from Ubuntu
Date: Sun, 12 Sep 2010 16:53:57
Message-Id: AANLkTinP4xF0fkQodd8vb4wVKLppqCL7BjA3QvQwscUX@mail.gmail.com
1 Hi,
2 Sorry for a semi-cross post between the yaboot list and
3 Gentoo-ppc-users. I'm hoping to get this worked out today.
4
5 I had trouble a week ago getting a new Gentoo PPC install to boot
6 on my Mac Mini so for kicks I tried Ubuntu which booted fine. I'd like
7 to get back to running Gentoo and I'm wondering what information I
8 should retain from my Ubuntu installation. The new Gentoo install is
9 back on the Mac Mini and completely up to date, so if I can work out
10 the booting issue I should be good to go. I have not emerge yaboot as
11 of yet as I don't want to break Ubuntu until the last moment if
12 possible.
13
14 To boot do I need anything beyond the info contained in the Ubuntu
15 yaboot.conf, the hard drive partitioning and fstab to get Gentoo
16 working? That's should be enough to somehow construct things correctly
17 in Gentoo, correct?
18
19 Also, the Ubuntu install used an initrd. I presume this is because
20 their one-size-fits-all approach probably requires drivers to boot a
21 lot of different machines. Previously when I had this Mac Mini running
22 Gentoo I didn't use one. I don't need to, correct? (Assuming I can
23 find and build in the right drivers?) Is there anything about yaboot
24 vs grub that makes it prefer an initrd? For now I used the Ubuntu
25 .config for my Gentoo kernel and figured I'd trim it down later after
26 I get the machine at least booting.
27
28 Thanks,
29 Mark
30
31 mark@MacMini:~$ cat /etc/yaboot.conf
32 ## yaboot.conf generated by the Ubuntu installer
33 ##
34 ## run: "man yaboot.conf" for details. Do not make changes until you have!!
35 ## see also: /usr/share/doc/yaboot/examples for example configurations.
36 ##
37 ## For a dual-boot menu, add one or more of:
38 ## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
39
40 boot=/dev/hda2
41 device=/pci@f4000000/ata-6@d/disk@0:
42 partition=3
43 root=/dev/hda3
44 timeout=50
45 install=/usr/lib/yaboot/yaboot
46 magicboot=/usr/lib/yaboot/ofboot
47 enablecdboot
48
49 image=/boot/vmlinux
50 label=Linux
51 read-only
52 initrd=/boot/initrd.img
53 append="quiet splash"
54
55 image=/boot/vmlinux.old
56 label=old
57 read-only
58 initrd=/boot/initrd.img.old
59 append="quiet splash"
60 mark@MacMini:~$
61
62
63
64 mark@MacMini:~$ cat /etc/fstab
65 # /etc/fstab: static file system information.
66 #
67 # Use 'blkid -o value -s UUID' to print the universally unique identifier
68 # for a device; this may be used with UUID= as a more robust way to name
69 # devices that works even if disks are added and removed. See fstab(5).
70 #
71 # <file system> <mount point> <type> <options> <dump> <pass>
72 proc /proc proc nodev,noexec,nosuid 0 0
73 # / was on /dev/hda3 during installation
74 UUID=3d688258-e950-4dd7-87cb-48fa887bb493 / ext4
75 errors=remount-ro 0 1
76 # swap was on /dev/hda4 during installation
77 UUID=a56e05b7-6e4a-4239-83a2-df7e7115a9e8 none swap sw
78 0 0
79
80 /dev/sda1 /media/USB1/video ext2 rw 0 0
81 mark@MacMini:~$
82
83
84
85
86 mark@MacMini:~$ sudo mac-fdisk /dev/hda
87 /dev/hda
88 Command (? for help): p
89 /dev/hda
90 # type name length base
91 ( size ) system
92 /dev/hda1 Apple_partition_map Apple 63 @ 1
93 ( 31.5k) Partition map
94 /dev/hda2 Apple_Bootstrap untitled 2048 @ 2048
95 ( 1.0M) NewWorld bootblock
96 /dev/hda3 Apple_UNIX_SVR2 untitled 39061504 @ 4096
97 ( 18.6G) Linux native
98 /dev/hda4 Apple_UNIX_SVR2 swap 3905536 @
99 39065600 ( 1.9G) Linux swap
100 /dev/hda5 Apple_Free Extra 1984 @ 64
101 (992.0k) Free space
102 /dev/hda6 Apple_UNIX_SVR2 gentoo 41943040 @
103 42971136 ( 20.0G) Linux native
104 /dev/hda7 Apple_Free Extra 71387312 @
105 84914176 ( 34.0G) Free space
106
107 Block size=512, Number of Blocks=156301488
108 DeviceType=0x0, DeviceId=0x0
109
110 Command (? for help):