Port-prep archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: 40p support broken since 3.99.22?
On Tue, Apr 11, 2017 at 12:24 PM, Robert Swindells <rjs%fdy2.co.uk@localhost> wrote:
>
>>> Can you provide instructions how to reproduce this?
>>
>>Just try to boot a NetBSD 4.0+ on a 40p machine.
>
> A description of what steps to follow would be helpful.
>
> Sure, we can read the qemu documentation and work it out for ourselves
> but it would be a lot quicker to have the exact steps that you followed.
Oh, I didn't realize you are trying to reproduce it with qemu. My
initial intent was confirming that it's really a NetBSD fault, not
qemu. Because the PReP Emulation in qemu is incomplete (though since
Hervé is working on it, it gets better). So I tried to use NetBSD as a
test case for qemu, but probably it also gets the other way around.
Anyways, steps to reproduce the problem with qemu:
1. Building qemu:
a. Download Hervé's current branch:
http://repo.or.cz/qemu/hpoussin.git/tree/refs/heads/40p (it should
work with the current master too, but Hervé's branch has a few
improvements in S3 emulation and is currently better tested)
b. actual build:
$ cd qemu
$ mkdir build && cd build
$ ../configure --target-list=ppc-softmmu --disable-guest-agent
--disable-tools --disable-glusterfs --disable-libusb
--disable-libiscsi --disable-spice --disable-vhost-net --disable-docs
(you can as well omit all the --disable stuff, I use it to speed the
build process up)
$ make
2. Obtain the IBM 40p Firmware:
wget -c ftp://service.boulder.ibm.com/rs6000/firmware/7020-40p/P12H0456.IMG
3. Run the test:
$ ppc-softmmu/qemu-system-ppc -M 40p -bios /path/to/P12H0456.IMG
-nographic -serial telnet::4441,server -monitor stdio -fda
/path/to/NetBSD-4.0-sysinst_small_com0.fs
in another shell
$ telnet localhost 4441
<wait ~2 minutes till it starts booting NetBSD. If you have an
X-Server you can omit the -nographic option and see the IBM boot
animation>
>> NetBSD/prep BOOT, Revision 1.8
>> (builds@wb33, Sun Dec 16 00:02:26 PST 2007)
Boot:
Loading in()
3499144+98620=0x36e8c8
start=0x100000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 4.0 (INSTALL_SMALL) #0: Sun Dec 16 00:54:11 PST 2007
builds@wb33:/home/builds/ab/netbsd-4-0-RELEASE/prep/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/prep/compile/INSTALL_SMALL
Model: IBM PPS Model 6015
total memory = 128 MB
avail memory = 120 MB
trap: kernel read DSI trap @ 0x7c3042a6 by 0x22e210 (DSISR 0x40000000,
err=14), lr 0x1f2c6c
panic: trap
If you are using the NetBSD git tree https://github.com/jsonn/src.git ,
the first broken commit is
commit 82d4758aba7d79da03afd63052e91df33acea97e
Author: garbled <garbled>
Date: Fri Jun 9 01:19:10 2006 +0000
Completely rework how we look up PCI interrupts on prep:
The last working one is the one just before:
69f907f Added more register define.
--
Regards,
Artyom Tarasenko
SPARC and PPC PReP under qemu blog: http://tyom.blogspot.com/search/label/qemu
Home |
Main Index |
Thread Index |
Old Index