I successfully built LFS for ppc and now I have troubles to make it boot. Please give me a hint how to create a proper bootstrap partition and set nvram with powerpc-utils.
1) I set up a MAC partition table with a bootstrap partition as described in 'info parted'. root:~# parted -s /dev/hda p Model: IBM-IC25N015ATDA04-0 (ide) Disk /dev/hda: 15.1GB Sector size (logical/physical): 512B/512B Partition Table: mac Number Start End Size File system Name Flags 1 512B 32.8kB 32.3kB Apple 2 32.8kB 1049kB 1016kB bootstrap boot 3 1049kB 1075MB 1074MB linux-swap(new) swap swap 4 1075MB 3222MB 2147MB ext3 var 5 3222MB 6444MB 3221MB ext3 root root 6 6444MB 15.1GB 8660MB ext3 home 2) The hfsutils aren't available right now (ftp://ftp.mars.org/pub/hfs/) so I desided to create a msdosfs on the bootstrap partition. Does this work at all? root:~# mkdosfs -v /dev/hda2 mkdosfs 2.11 (12 Mar 2005) /dev/hda2 has 16 heads and 63 sectors per track, logical sector size is 512, using 0xf8 media descriptor, with 1984 sectors; file system has 2 12-bit FATs and 4 sectors per cluster. FAT size is 2 sectors, and provides 486 clusters. Root directory contains 512 slots. Volume ID is 83dbad1c, no volume label. root:~# fsck -v /dev/hda2 fsck 1.39 (29-May-2006) dosfsck 2.11 (12 Mar 2005) dosfsck 2.11, 12 Mar 2005, FAT32, LFN Checking we can access the last sector of the filesystem Boot sector contents: System ID "mkdosfs" Media byte 0xf8 (hard disk) 512 bytes per logical sector 2048 bytes per cluster 1 reserved sector First FAT starts at byte 512 (sector 1) 2 FATs, 12 bit entries 1024 bytes per FAT (= 2 sectors) Root directory starts at byte 2560 (sector 5) 512 root directory entries Data area starts at byte 18944 (sector 37) 486 data clusters (995328 bytes) 63 sectors/track, 16 heads 0 hidden sectors 1984 sectors total Checking for unused clusters. /dev/hda2: 0 files, 0/486 clusters 3) Next I set up this configuration ... installed and checked. root:~# cat /etc/yaboot.conf boot=/dev/hda2 fstype=msdos device=/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]: partition=5 root=/dev/hda5 timeout=30 install=/usr/lib/yaboot/yaboot magicboot=/usr/lib/yaboot/ofboot usemount image=/lfskernel label=lfs read-only root:~# ybin ybin: Warning: `nvsetenv' could not be found, nvram will not be updated ybin: Warning: You must manually configure OpenFirmware to boot. root:~# mount -v /dev/hda2 /mnt mount: you didn't specify a filesystem type for /dev/hda2 I will try type vfat /dev/hda2 on /mnt type vfat (rw) root:~# ls -l /mnt total 150 -rwxr-xr-x 1 root root 2665 1980-01-01 06:00 ofboot.b -rwxr-xr-x 1 root root 145504 1980-01-01 06:00 yaboot -rwxr-xr-x 1 root root 458 1980-01-01 06:00 yaboot.cnf 4) Openfirmware reports this error: 0 > boot hd:2,yaboot MAC-PARTS: bad partition can<B4>t OPEN: hd:2,yaboot ok -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
