On Tue, Apr 14, 2020 at 09:18:18AM +0900, rgc wrote:
> > What am I missing?
> 
> here is something i posted a while back:
> https://marc.info/?l=openbsd-ppc&m=158007222311388&w=2
> 
> my current commandline is something like:
> qemu-system-ppc \
> -M mac99,via=pmu-adb -cpu g4 \
> -nodefaults \
> -nographic \
> -display none \
> -serial mon:stdio \
> -cdrom test.iso \
> -drive format=raw,file=/path/to/obsd.raw \
> -boot d \
> $@ 2> stderr
> 
> as you can see this is console only (a presudo serial console)
> 
> if you use '-nodefaults' USB devices will not be automatically added, 
> 'pmu-adb'
> does not need USB, so you get to workaround the USB (ohci) hang. 
> 
> i redirect ... "2> stderr" ... the pesky logs to a file. thus no need to muck
> around the qemu code.
> 
> > Point 1) successed from install66.iso  but the installed system doesn't boot
> > Trying hd,\\:tbxi...
> > No valid state has been set by load or init-program
> > 
> > I've tried few boot hd,:ofwboot /bsd variations but I'm stuck.
> 
> please read #3 booting and blessing
> i tried to do a custom openbios build to debug it but have never got around
> to trying it out.
> 
> what i did to overcome this was to create a very rough ISO that contained a 
> test
> kernel (i was testing clang compiled kernels) ... and mounted the disk (wd0)
> manually (something like "boot -a")... as i said, very rough.
> 
> if you used an install disk to boot from ... you get a RAMDISK ... which boots
> off and mounts your work disk. this was NOT what i wanted to i had to modify
> the ISO.
> 
> network has not been good to me either. one time it worked, then it just 
> fails.
> 
> rgc

Thanks for the hints rgc.  They got me a little further too.  I got a blessed
iso made with the following commands:

mkhybrid -part -r -hfs -hfs-bless tmp/ofwboot \
        -path-list path-list -o boot.iso tmp/

Where path-list just contains the list of programs that lie in tmp/ in my
case bsd.rd, bsd and ofwboot.

The darndest thing is that with the PROPOLICE kernel bsd now panics on 
zscninit() so I'm personally in need of a NO_PROPOLICE GENERIC kernel and also
have the ohci removed (which -nodefaults didn't remove).

When I get home later today (I'm currently away from home) I'll compile such
a kernel and I'll report back if I can boot into the installed system then.

This has been very educational for me.  And I thank Hannu for starting this
topic.  Having a QEMU anything is always good to have.  I can live without
the -nic for now as long as I can compile kernels in QEMU on this amd64 MBP.

PS: I bypassed the zscninit panic by screwing with the register of
/aliases/scca which breaks zscninit and continues to boot (but then I'm not
seeing anything on console after the kernel finished).  The command for that
was

" reg" delete-property

in openfirmware after cd'ing into /aliases/scca.  It may seem I'm just breaking
things but I view it as intelligently breaking things to get beyond a spot to
see what's after.

Best Regards,
-peter

Reply via email to