I'm building version 1.1.0 of the Cross Linux From Scratch (CLFS) PowerPC system.  I don't actually have any PowerPC hardware so I'm using QEMU.  I have built QEMU 0.13.0 from source because Debian Lenny only comes with version 0.9.1 and it's a bit old.

When booting my CLFS system in QEMU, this is my command line:
andrew@bigbox:~$ qemu-system-ppc -nographic \
-hda cross-lfs-ppc/disk.img -kernel \
cross-lfs-ppc/clfs-fs/boot/clfskernel-2.6.24.7 -M g3beige
The switches used are:
-nographic -> QEMU should output to my terminal rather than VNC
-hda -> This is the file to use as disk /dev/hda
-kernel -> The kernel to use
-M g3beige -> QEMU should emulate a beige G3 PowerMac

When I was building my CLFS system, I didn't follow the directions for Yaboot because I was under the impression that I could simply hand QEMU the kernel and root file system and it would be happy.  When creating my disk image, I didn't create any partitions, everything's simply in hda.  One of these two spots are probably the root of my problem.  I'm going to try building Yaboot first and if that doesn't fix it, I'll work on creating the partitions correctly within my disk image file.

When booting, QEMU goes through its normal bios output but after finding a display and building the device tree, it hangs with:
Calling quiesce ...
returning from prom_init
After a few minutes, it will reboot and end up at the same place.  The verbosity is not much help for debugging and Google doesn't seem to be my friend with this issue.

I'll be sure to either comment on this post as to my resolution or I'll write another post detailing the fix.

Comments


Published

01 December 2010