Subject: Booting a PowerMac 7200 (progress made since last time !!)
To: None <port-macppc@NetBSD.org>
From: =?ISO-8859-1?Q?R=E9mi_Zara?= <remi_zara@mac.com>
List: port-macppc
Date: 04/22/2005 18:20:57
--Apple-Mail-15-588188194
Content-Type: multipart/mixed;
boundary=Apple-Mail-13-588187717
--Apple-Mail-13-588187717
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=ISO-8859-1;
format=flowed
Well, not a lot, but still...
I've given another shot at booting my PM7200 (whose problem is having a=20=
PPC601).
I've modified ofwboot.xcf and now it loads the kernel file.
See attached (rough) patch.
Then either it hangs if I load an uncompressed kernel, or there is=20
DEFAULT CATCH!, code=3DFFF00700 (see below) if it is gzipped.
How can I tell if it has jumped into the kernel, or if it is not there=20=
yet ?
My guess is again a problem with BAT mappings.
The current code maps the first 256Mb block.
The 601 can only map 8Mb regions. I tried to map the first four.
Any idea ?
Regards,
R=E9mi Zara
0 > boot enet: enet:,/netbsd.gz file: 192.168.1.102,ofwboot.xcfloading=20=
XCOFF
tsize=3DC7E0 dsize=3D2B4 bsize=3D25C0 entry=3DE00000
SECTIONS:
.text 00E00000 00E00000 0000C7E0 000000E0
.data 00E0D000 00E0D000 000002B4 0000C8C0
.bss 00E0D2B8 00E0D2B8 000025C0 00000000
loading .text, done..
loading .data, done..
clearing .bss, done..
>> NetBSD/macppc OpenFirmware Boot, Revision 1.10
>> (rzara@Ordinateur-de-Remi-Zara.local, Fri Apr 22 18:08:21 CEST 2005)
file: 192.168.1.102,ofwboot.xcfnet_open: client addr: 192.168.1.10
net_open: subnet mask: 255.255.255.0
net_open: net gateway: 192.168.1.254
net_open: server addr: 192.168.1.102
net_open: server path: /data/export/macppc
net_open: file name: ofwboot.xcf
Using IP address: 192.168.1.10
root addr=3D192.168.1.102 path=3D/data/export/macppc
5087124+244504 [244576+226593]=3D0x588ed4
start=3D0x100000
DEFAULT CATCH!, code=3DFFF00700
ok
0 > .registers
Client's Fix Pt Regs:
00 00000000 00692EFC 00000000 00692F0C 00693000 00000000 00E0F0BC=20
0000001D
08 00692F2C 00692F30 FFFFFFFF 57000558 00000000 DEADBEEF DEADBEEF=20
DEADBEEF
10 DEADBEEF DEADBEEF DEADBEEF DEADBEEF DEADBEEF DEADBEEF DEADBEEF=20
DEADBEEF
18 DEADBEEF DEADBEEF DEADBEEF 00688ED4 00100000 00E0F0D1 DEADBEEF=20
00E0F0BC
Special Regs:
%IV: 00000700 %SRR0: 57001020 %SRR1: 00080000 %MQ: 00000000
%CR: 50000093 %LR: 0035725C %CTR: 57000558 %XER: C000BE6F
%DAR: FFFFFF8B %DSISR: 40000000 %SDR1: 00FE0000
ok
--
R=E9mi Zara
http://www.remi-zara.net/
--Apple-Mail-13-588187717
Content-Type: multipart/appledouble;
boundary=Apple-Mail-14-588187717
Content-Disposition: attachment
--Apple-Mail-14-588187717
Content-Transfer-Encoding: base64
Content-Type: application/applefile;
name="Locore.c.patch"
Content-Disposition: attachment;
filename=Locore.c.patch
AAUWBwACAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAJAAAAPgAAAAoAAAADAAAASAAAAA4AAAACAAAA
VgAAAX5URVhUUipjaAAATG9jb3JlLmMucGF0Y2gAAAEAAAABTAAAAEwAAAAyAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAASAAJTW9uYWNvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAEAG4AKAPUAqgAbgAoA9QC
qL6O798AAAe/AAAHvwAAAAABAQAAAQAAAAFMAAAATAAAADIAZcCMBisAAAAcADIAAE1QU1IAAAAK
A+3//wAAAAABCuOQ
--Apple-Mail-14-588187717
Content-Transfer-Encoding: 7bit
Content-Type: application/text;
x-mac-type=54455854;
x-unix-mode=0644;
x-mac-creator=522A6368;
name="Locore.c.patch"
Content-Disposition: attachment;
filename=Locore.c.patch
===================================================================
RCS file: /pub/NetBSD-CVS/src/sys/arch/macppc/stand/ofwboot/Locore.c,v
retrieving revision 1.16
diff -u -r1.16 Locore.c
--- ofwboot/Locore.c 17 Mar 2004 23:32:22 -0000 1.16
+++ ofwboot/Locore.c 22 Apr 2005 16:15:31 -0000
@@ -73,17 +73,41 @@
" mtibatu 1,%r0 \n"
" mtibatu 2,%r0 \n"
" mtibatu 3,%r0 \n"
-" mtdbatu 0,%r0 \n"
+/*" mtdbatu 0,%r0 \n"
" mtdbatu 1,%r0 \n"
" mtdbatu 2,%r0 \n"
-" mtdbatu 3,%r0 \n"
+" mtdbatu 3,%r0 \n"*/
" \n"
-" li %r9,0x12 \n" /* BATL(0, BAT_M, BAT_PP_RW) */
+/*" li %r9,0x12 \n"*/ /* BATL(0, BAT_M, BAT_PP_RW) */
+" li %r9,0x7f \n"
" mtibatl 0,%r9 \n"
-" mtdbatl 0,%r9 \n"
-" li %r9,0x1ffe \n" /* BATU(0, BAT_BL_256M, BAT_Vs) */
+/*" mtdbatl 0,%r9 \n"*/
+/*" li %r9,0x1ffe \n"*/ /* BATU(0, BAT_BL_256M, BAT_Vs) */
+" li %r9,0x1a \n"
" mtibatu 0,%r9 \n"
-" mtdbatu 0,%r9 \n"
+/*" mtdbatu 0,%r9 \n"*/
+
+" lis %r9,0x80 \n"
+" addi %r9,%r9,0x7f \n"
+" mtibatl 1,%r9 \n"
+" lis %r9,0x80 \n"
+" addi %r9,%r9,0x1a \n"
+" mtibatu 1,%r9 \n"
+
+" lis %r9,0x100 \n"
+" addi %r9,%r9,0x7f \n"
+" mtibatl 2,%r9 \n"
+" lis %r9,0x100 \n"
+" addi %r9,%r9,0x1a \n"
+" mtibatu 2,%r9 \n"
+
+" lis %r9,0x180 \n"
+" addi %r9,%r9,0x7f \n"
+" mtibatl 3,%r9 \n"
+" lis %r9,0x180 \n"
+" addi %r9,%r9,0x1a \n"
+" mtibatu 3,%r9 \n"
+
" isync \n"
" \n"
" mtmsr %r8 \n"
--Apple-Mail-14-588187717--
--Apple-Mail-13-588187717--
--Apple-Mail-15-588188194
Content-Transfer-Encoding: base64
Content-Type: application/pkcs7-signature;
name=smime.p7s
Content-Disposition: attachment;
filename=smime.p7s
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGFjCCAs8w
ggI4oAMCAQICAw2XNjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh
d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt
YWlsIElzc3VpbmcgQ0EwHhcNMDQxMjA5MjAyODUzWhcNMDUxMjA5MjAyODUzWjBDMR8wHQYDVQQD
ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMSAwHgYJKoZIhvcNAQkBFhFyZW1pX3phcmFAbWFjLmNv
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMIsZ+/0xA/dn0wrw+Tey2DOvgVPl+f7
DTUM5V0f70xGtI4dimfwE8rGeBPZRxRtNZGM9ohshySLPdKbH7Vps1pl1QjeOE5PG02CsmKRejFG
zD1Rl+rEYHRhkEov8av084KkLUwwBAmc3WSV0kKM4juQMEWyc0YhEegyU1LhvN+0nf/P632owxFs
Y3A2K8LStUPVM7KFU9LC8/Rq6xmtitBO1MBQBjJfPreFH42Hn4/g/sZKZlGCK7aM8lakIzI1Xrr5
wyLP+XcrhFPN3fWvYQWyWY7/rka5p7lteUBYN6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