From owner-freebsd-ppc@FreeBSD.ORG Thu Oct 30 16:00:56 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53A4B1065691; Thu, 30 Oct 2008 16:00:56 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (unknown [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 870748FC19; Thu, 30 Oct 2008 16:00:55 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id C06101CCA0; Thu, 30 Oct 2008 17:01:43 +0100 (CET) Date: Thu, 30 Oct 2008 17:01:43 +0100 From: Ed Schouten To: Nathan Whitehorn Message-ID: <20081030160143.GL1165@hoeg.nl> References: <20081030061645.GJ1165@hoeg.nl> <4909BA61.8060008@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bZ2MuwyI/0uB8yuJ" Content-Disposition: inline In-Reply-To: <4909BA61.8060008@freebsd.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: FreeBSD/ppc Subject: Re: PowerBook 12" hangs right after attaching ams0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 16:00:56 -0000 --bZ2MuwyI/0uB8yuJ Content-Type: multipart/mixed; boundary="sMZCuqyhuhd4ycTi" Content-Disposition: inline --sMZCuqyhuhd4ycTi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Nathan, * Nathan Whitehorn wrote: > Drat. Could you try the patch at > http://people.freebsd.org/~nwhitehorn/adb-delayed-attach.diff? After applying the patch, it still gets stuck during boot. > I'd also be interested to know what the bit of your dmesg around > macgpio0 looks like, in particular the line from the attachment for > pmuextint0. I've attached the dmesg to this email. > Unfortunately, ams0's attach doesn't have any debug information in it. > It is stuck somewhere between lines 171 and 183 of adb_mouse.c, if you > want to fill it with printf(). I can confirm it indeed gets stuck in adb_mouse_attach(), namely during its call to adb_set_device_handler(). I've just added a `return (ENXIO)' to adb_mouse_probe(), so I can at least boot my PowerBook for now. The keyboard support rocks. Thanks! :-) There are some random things I still have to look into: - I've dd'd the boot loader to /dev/ad0s2, but for some reason my Mac still refuses to boot from it. - The processor still runs at 533 MHz. I think Linux also did this when I tried it 3-4 years ago. - I thought we had some kind of experimental bwi(4) port sitting in P4. Would be cool to see if it works. --=20 Ed Schouten WWW: http://80386.nl/ --sMZCuqyhuhd4ycTi Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="powerbook-dmesg.txt" Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #3: Thu Oct 30 15:50:11 UTC 2008 ed@mecca.80386.nl:/usr/obj/store/home/ed/svn/freebsd-src/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. cpu0: Motorola PowerPC 7455 revision 3.3, 533.33 MHz cpu0: HID0 8450c0bc real memory = 659062784 (628 MB) avail memory = 631754752 (602 MB) kbd0 at kbdmux0 nexus0: unin0: on nexus0 unin0: Version 210 pcib0: on nexus0 pci0: on pcib0 vgapci0: mem 0x91000000-0x91ffffff,0x94000000-0x97ffffff irq 48 at device 16.0 on pci0 pcib1: on nexus0 pci1: on pcib1 macio0: mem 0x80000000-0x8007ffff at device 23.0 on pci1 openpic0: mem 0x40000-0x7ffff on macio0 macgpio0: mem 0x50-0x7f on macio0 pmuextint0: gpio 9 irq 47 on macgpio0 scc0: mem 0x13000-0x13fff,0x8400-0x84ff,0x8500-0x85ff,0x8600-0x86ff,0x8700-0x87ff irq 22,5,6,23,7,8 on macio0 scc0: [FILTER] scc0: [FILTER] uart0: on scc0 uart0: [FILTER] uart1: on scc0 uart1: [FILTER] pmu0: mem 0x16000-0x17fff irq 25 on macio0 pmu0: [ITHREAD] adb0: on pmu0 ata0 mem 0x20000-0x20fff,0x8800-0x88ff irq 24,12 on macio0 ata0: [ITHREAD] pci1: at device 18.0 (no driver attached) ohci0: mem 0x80082000-0x80082fff irq 27 at device 24.0 on pci1 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered ohci1: mem 0x80081000-0x80081fff irq 28 at device 25.0 on pci1 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered ohci2: mem 0x80080000-0x80080fff irq 29 at device 26.0 on pci1 ohci2: [GIANT-LOCKED] ohci2: [ITHREAD] usb2: OHCI version 1.0, legacy support usb2: on ohci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered pcib2: on nexus0 pci2: on pcib2 ata1: mem 0xf5004000-0xf5007fff irq 39 at device 13.0 on pci2 ata1: [ITHREAD] fwohci0: mem 0xf5000000-0xf5000fff irq 40 at device 14.0 on pci2 fwohci0: [FILTER] fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:0a:95:ff:fe:73:d6:e6 fwohci0: Phy 1394a available S400, 1 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:0a:95:73:d6:e6 fwe0: Ethernet address: 02:0a:95:73:d6:e6 sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode gem0: mem 0xf5200000-0xf53fffff irq 41 at device 15.0 on pci2 miibus0: on gem0 bmtphy0: PHY 0 on miibus0 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto gem0: 10kB RX FIFO, 4kB TX FIFO gem0: Ethernet address: 00:0a:95:73:d6:e6 gem0: [ITHREAD] sc0: on nexus0 sc0: Unknown <16 virtual consoles, flags=0x300> ugen0: on uhub0 Timecounter "decrementer" frequency 33280357 Hz quality 0 Timecounters tick every 10.000 msec firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) acd0: DVDR at ata0-master WDMA2 ad0: 57231MB at ata1-master UDMA100 akbd0: at device 2 on adb0 kbd1 at akbd0 --sMZCuqyhuhd4ycTi-- --bZ2MuwyI/0uB8yuJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkkJ2mcACgkQ52SDGA2eCwV/cQCfdMnZh4ZWsx3k5lL6ZrIh/D0w FW4An1fXJYgJ1OpAPdjhIz/epBhViXGU =MFGk -----END PGP SIGNATURE----- --bZ2MuwyI/0uB8yuJ--