Subject: Re: iBook problems and solutions
To: None <ma-500@rj8.so-net.ne.jp>
From: Masafumi Hotta <ma-500@rj8.so-net.ne.jp>
List: port-macppc
Date: 08/19/2007 22:53:40
Hello,

This is what I've tried to work -current on clamshell iBook G3 since
last month.
I hope this report will help somebody.

Apple iBook 466MHz Special Edition Key Lime (FireWire) (M8245LL/A)


I made some changes on iBook.
First, I put more RAM on it.
It had 64MB on board and 128MB was added.
Using "firefox" web browser, it took so long time to start.
So, I put 512MB RAM instead of 128MB, and I felt better than before.

Second, using the kernel with genfb. 
Using genfb* instead of ofb* made iBook more useful.
Faster console and big fonts made me feel good.
I could exit X and go back to console with option + control + delete
key combination. Using ofb*, "DefaultDepth 8" had to be specified to
go back to console. But using genfb*, "DefaultDepth" didn't matter.

To use genfb*, I made the kernel config file comment out two lines,
--------------------------------------------------------------------
ofb*   at pci? dev ? function ?  # Generic Open Firmware Framebuffer
machfb*      at pci? function ?    # ATI Mach 64, Rage, Rage Pro
--------------------------------------------------------------------

and added this line,
--------------------------------------------------------------------
genfb* at pci? 
--------------------------------------------------------------------

and built the kernel.
I think genfb is fine.

I am happy to use iBook running NetBSD.
Finally, I would like to thank Michael and David to help me.



Masafumi Hotta
--------------------------------------------------------------------
This is latest dmesg:

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.99.26 (GENFB) #0: Sun Aug  5 21:15:14 JST 2007
	pen4@pen4.masafumi:/home/pen4/macppc/obj/sys/arch/macppc/compile/GENFB
total memory = 576 MB
avail memory = 545 MB
timecounter: Timecounters tick every 10.000 msec
init_interrupt: found OpenPIC @ pa 0x80040000, 0x80040000
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 0.2), ID 0 (primary)
cpu0: HID0 8090c0a4<EMCP,DOZE,DPM,ICE,DCE,SGE,BTIC,BHT>, powersave: 1
cpu0: 466.67 MHz, 512KB WB L2 cache
uni_n0 at mainbus0 address 0xf8000000
ki2c0 at uni_n0 address 0xf8001000
iic0 at ki2c0: I2C bus
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Interface (rev. 0x00)
genfb0 at pci0 dev 16 function 0: ATI Technologies Rage Mobility M3 (AGP)
wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
obio0 at pci1 dev 23 function 0: addr 0x80000000
enabling KeyLargo internal modem
i2s at obio0 offset 0x10000 not configured
zsc0 at obio0: irq 22,50
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
adb0 at obio0 offset 0x16000 irq 47: apm0 at adb0: battery flags 0x5, 99% charged
3 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 2: PowerBook G3 keyboard (Japanese layout)
wskbd0 at akbd0: console keyboard, using wsdisplay0
ams0 at adb0 addr 3: EMP trackpad <tpad> 2-button, 400 dpi
wsmouse0 at ams0 mux 0
abtn0 at adb0 addr 7: buttons
battery at obio0 offset 0x0 not configured
backlight at obio0 offset 0xf300 not configured
ki2c1 at obio0
iic1 at ki2c1: I2C bus
wdc0 at obio0 offset 0x1f000 irq 19: DMA transfer
atabus0 at wdc0 channel 0
wdc1 at obio0 offset 0x20000 irq 20: DMA transfer
atabus1 at wdc1 channel 0
wdc2 at obio0 offset 0x21000 irq 21: DMA transfer
atabus2 at wdc2 channel 0
ohci0 at pci1 dev 24 function 0: Apple Computer KeyLargo USB Controller (rev. 0x00)
ohci0: interrupting at irq 27
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1 at pci1 dev 25 function 0: Apple Computer KeyLargo USB Controller (rev. 0x00)
ohci1: can't map mem space
uninorth2 at mainbus0
pci2 at uninorth2 bus 0
pci2: i/o space, memory space enabled
pchb2 at pci2 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
fwohci0 at pci2 dev 14 function 0: Apple Computer product 0x0018 (rev. 0x01)
fwohci0: interrupting at irq 40
fwohci0: OHCI version 1.0 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:30:65:ff:fe:bb:a3:c0
fwohci0: Phy 1394a available S400, 1 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x01)
gem0: interrupting at irq 41
gem0: Ethernet address 00:30:65:bb:a3:c0, 10KB RX fifo, 4KB TX fifo
bmtphy0 at gem0 phy 0: BCM5201 10/100 media interface, rev. 2
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "mftb" frequency 16644884 Hz quality 100
resCount=4080 plen=20 len=-4
fwohci0: AR DMA status=8409,  skip buffer done
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, Not found IRM capable node
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <IBM-DJSA-210>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 9590 MB, 19485 cyl, 16 head, 63 sec, 512 bytes/sect x 19640880 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <MATSHITADVD-ROM SR-8174, , C113> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)