Skip to content

Support for Apple iBook G4 #33

@vmlemon

Description

@vmlemon

After recently acquiring an iBook G4, it may be interesting to support it as a build/runtime target, for Orion.

(It originally shipped with Mac OS X 10.4.11, which I've made a backup of, and I've managed to install Ubuntu 9.04, which is now officially unsupported, but at least allows for installing a GNU toolchain).

dmesg reports:

tyson@G4Buntu:~$ dmesg
[    0.000000] Using PowerMac machine description
[    0.000000] Total memory = 128MB; using 256kB for hash table (at c7fc0000)
[    0.000000] Linux version 2.6.28-6-powerpc (buildd@adare) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #20-Ubuntu Fri Apr 17 08:30:40 UTC 2009 (Ubuntu 2.6.28-6.20-powerpc)
[    0.000000] Found initrd at 0xc1a00000:0xc225d000
[    0.000000] Found UniNorth memory controller & host bridge @ 0xf8000000 revision: 0xd2
[    0.000000] Mapped at 0xff7c0000
[    0.000000] Found a Intrepid mac-io controller, rev: 0, mapped at 0xff740000
[    0.000000] Processor NAP mode on idle enabled.
[    0.000000] PowerMac motherboard: iBook G4
[    0.000000] via-pmu: Server Mode is disabled
[    0.000000] PMU driver v2 initialized for Core99, firmware: 0c
[    0.000000] console [udbg0] enabled
[    0.000000] Found UniNorth PCI host bridge at 0x00000000f0000000. Firmware bus number: 0->0
[    0.000000] PCI host bridge /pci@f0000000  ranges:
[    0.000000]  MEM 0x00000000f1000000..0x00000000f1ffffff -> 0x00000000f1000000 
[    0.000000]   IO 0x00000000f0000000..0x00000000f07fffff -> 0x0000000000000000
[    0.000000]  MEM 0x0000000090000000..0x000000009fffffff -> 0x0000000090000000 
[    0.000000] Found UniNorth PCI host bridge at 0x00000000f2000000. Firmware bus number: 0->0
[    0.000000] PCI host bridge /pci@f2000000 (primary) ranges:
[    0.000000]  MEM 0x00000000f3000000..0x00000000f3ffffff -> 0x00000000f3000000 
[    0.000000]   IO 0x00000000f2000000..0x00000000f27fffff -> 0x0000000000000000
[    0.000000]  MEM 0x0000000080000000..0x000000008fffffff -> 0x0000000080000000 
[    0.000000] Found UniNorth PCI host bridge at 0x00000000f4000000. Firmware bus number: 0->0
[    0.000000] PCI host bridge /pci@f4000000  ranges:
[    0.000000]  MEM 0x00000000f5000000..0x00000000f5ffffff -> 0x00000000f5000000 
[    0.000000]   IO 0x00000000f4000000..0x00000000f47fffff -> 0x0000000000000000
[    0.000000] nvram: Checking bank 0...
[    0.000000] nvram: gen0=559, gen1=558
[    0.000000] nvram: Active bank is: 0
[    0.000000] nvram: OF partition at 0x410
[    0.000000] nvram: XP partition at 0x1020
[    0.000000] nvram: NR partition at 0x1120
[    0.000000] Top of RAM: 0x8000000, Total RAM: 0x8000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00008000
[    0.000000]   Normal   0x00008000 -> 0x00008000
[    0.000000]   HighMem  0x00008000 -> 0x00008000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00008000
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c045c5fc, node_mem_map c04d0000
[    0.000000]   DMA zone: 256 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 32512 pages, LIFO batch:7
[    0.000000]   Normal zone: 0 pages used for memmap
[    0.000000]   HighMem zone: 0 pages used for memmap
[    0.000000]   Movable zone: 0 pages used for memmap
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: root=/dev/hda3 ro quiet splash video=ofonly 
[    0.000000] mpic: Setting up MPIC " MPIC 1   " version 1.2 at 80040000, max 4 CPUs
[    0.000000] mpic: ISU size: 64, shift: 6, mask: 3f
[    0.000000] mpic: Initializing for 64 sources
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000000] GMT Delta read from XPRAM: 0 minutes, DST: off
[    0.000000] time_init: decrementer frequency = 18.432000 MHz
[    0.000000] time_init: processor frequency   = 799.999998 MHz
[    0.000000] clocksource: timebase mult[d9038e4] shift[22] registered
[    0.000000] clockevent: decrementer mult[4b7] shift[16] cpu[0]
[    0.000109] Console: colour dummy device 80x25
[    0.000119] console handover: boot [udbg0] -> real [tty0]
[    0.000281] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000480] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.009960] High memory: 0k
[    0.009971] Memory: 115964k/131072k available (4296k kernel code, 14956k reserved, 176k data, 360k bss, 212k init)
[    0.010065] SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.010084] Calibrating delay loop... 36.73 BogoMIPS (lpj=73472)
[    0.080138] Security Framework initialized
[    0.080165] SELinux:  Disabled at boot.
[    0.080244] AppArmor: AppArmor initialized
[    0.080264] Mount-cache hash table entries: 512
[    0.080773] device-tree: Duplicate name in /cpus/PowerPC,G4@0, renamed to "l2-cache#1"
[    0.083910] Initializing cgroup subsys ns
[    0.083923] Initializing cgroup subsys freezer
[    0.084635] net_namespace: 752 bytes
[    0.084754] regulator: core version 0.5
[    0.084869] NET: Registered protocol family 16
[    0.085482] KeyWest i2c @0xf8001003 irq 42 /uni-n@f8000000/i2c@f8001000
[    0.085495]  channel 0 bus <multibus>
[    0.085500]  channel 1 bus <multibus>
[    0.085571] KeyWest i2c @0x80018000 irq 26 /pci@f2000000/mac-io@17/i2c@18000
[    0.085579]  channel 0 bus <multibus>
[    0.085602] PMU i2c /pci@f2000000/mac-io@17/via-pmu@16000/pmu-i2c
[    0.085609]  channel 1 bus <multibus>
[    0.085615]  channel 2 bus <multibus>
[    0.086326] PCI: Probing PCI hardware
[    0.086528] pci 0000:00:10.0: reg 10 32bit mmio: [0x98000000-0x9fffffff]
[    0.086541] pci 0000:00:10.0: reg 14 io port: [0x400-0x4ff]
[    0.086553] pci 0000:00:10.0: reg 18 32bit mmio: [0x90000000-0x9000ffff]
[    0.086575] pci 0000:00:10.0: reg 30 32bit mmio: [0x90020000-0x9003ffff]
[    0.086593] pci 0000:00:10.0: supports D1 D2
[    0.086965] pci 0001:10:17.0: reg 10 32bit mmio: [0x80000000-0x8007ffff]
[    0.087025] pci 0001:10:18.0: reg 10 32bit mmio: [0x000000-0x000fff]
[    0.087085] pci 0001:10:19.0: reg 10 32bit mmio: [0x000000-0x000fff]
[    0.087146] pci 0001:10:1a.0: reg 10 32bit mmio: [0x80083000-0x80083fff]
[    0.087221] pci 0001:10:1b.0: reg 10 32bit mmio: [0x80082000-0x80082fff]
[    0.087262] pci 0001:10:1b.0: supports D1 D2
[    0.087269] pci 0001:10:1b.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.087280] pci 0001:10:1b.0: PME# disabled
[    0.087321] pci 0001:10:1b.1: reg 10 32bit mmio: [0x80081000-0x80081fff]
[    0.087361] pci 0001:10:1b.1: supports D1 D2
[    0.087368] pci 0001:10:1b.1: PME# supported from D0 D1 D2 D3hot D3cold
[    0.087376] pci 0001:10:1b.1: PME# disabled
[    0.087417] pci 0001:10:1b.2: reg 10 32bit mmio: [0x80080000-0x800800ff]
[    0.087457] pci 0001:10:1b.2: supports D1 D2
[    0.087464] pci 0001:10:1b.2: PME# supported from D0 D1 D2 D3hot D3cold
[    0.087472] pci 0001:10:1b.2: PME# disabled
[    0.088297] pci 0002:20:0d.0: reg 10 32bit mmio: [0xf5004000-0xf5007fff]
[    0.088356] pci 0002:20:0e.0: reg 10 32bit mmio: [0xf5000000-0xf5000fff]
[    0.088392] pci 0002:20:0e.0: supports D1 D2
[    0.088398] pci 0002:20:0e.0: PME# supported from D0 D1 D2 D3hot
[    0.088407] pci 0002:20:0e.0: PME# disabled
[    0.088433] pci 0002:20:0f.0: reg 10 32bit mmio: [0xf5200000-0xf53fffff]
[    0.088461] pci 0002:20:0f.0: reg 30 32bit mmio: [0xf5100000-0xf51fffff]
[    0.088953] bus: 00 index 0 io port: [0x802000-0x1001fff]
[    0.088961] bus: 00 index 1 mmio: [0xf1000000-0xf1ffffff]
[    0.088969] bus: 00 index 2 mmio: [0x90000000-0x9fffffff]
[    0.088976] bus: 10 index 0 io port: [0x00-0x7fffff]
[    0.088983] bus: 10 index 1 mmio: [0xf3000000-0xf3ffffff]
[    0.088990] bus: 10 index 2 mmio: [0x80000000-0x8fffffff]
[    0.088997] bus: 20 index 0 io port: [0xff7fe000-0xffffdfff]
[    0.089005] bus: 20 index 1 mmio: [0xf5000000-0xf5ffffff]
[    0.093925] usbcore: registered new interface driver usbfs
[    0.093978] usbcore: registered new interface driver hub
[    0.094065] usbcore: registered new device driver usb
[    0.104232] NET: Registered protocol family 8
[    0.104240] NET: Registered protocol family 20
[    0.104420] AppArmor: AppArmor Filesystem Enabled
[    0.104911] NET: Registered protocol family 2
[    0.108241] Switched to high resolution mode on CPU 0
[    0.140301] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140472] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.140558] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.140604] TCP: Hash tables configured (established 4096 bind 4096)
[    0.140611] TCP reno registered
[    0.152331] NET: Registered protocol family 1
[    0.152707] checking if image is initramfs... it is
[    2.036674] Freeing initrd memory: 8564k freed
[    2.038411] Thermal assist unit not available
[    2.038742] Registering PowerMac CPU frequency driver
[    2.038749] Low: 606 Mhz, High: 798 Mhz, Boot: 606 Mhz
[    2.060511] audit: initializing netlink socket (disabled)
[    2.060549] type=2000 audit(1572705505.060:1): initialized
[    2.076188] VFS: Disk quotas dquot_6.5.1
[    2.076274] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.076491] fuse init (API version 7.10)
[    2.076712] msgmni has been set to 243
[    2.077082] alg: No test for stdrng (krng)
[    2.077115] io scheduler noop registered
[    2.077120] io scheduler anticipatory registered
[    2.077125] io scheduler deadline registered
[    2.077168] io scheduler cfq registered (default)
[    2.077474] Using unsupported 1024x768 ATY,Via_A at 9c008000, depth=8, pitch=1024
[    2.093254] Console: switching to colour frame buffer device 128x48
[    2.108602] fb0: Open Firmware frame buffer device on /pci@f0000000/ATY,ViaParent@10/ATY,Via_A@0
[    2.108664] Using unsupported 640x480 ATY,Via_B at 99008000, depth=8, pitch=768
[    2.108798] fb1: Open Firmware frame buffer device on /pci@f0000000/ATY,ViaParent@10/ATY,Via_B@1
[    2.111117] Generic non-volatile memory driver v1.1
[    2.112724] brd: module loaded
[    2.112839] Fixed MDIO Bus: probed
[    2.112925] MacIO PCI driver attached to Intrepid chipset
[    2.114088] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[    2.114396] Uniform Multi-Platform E-IDE driver
[    2.114521] ide-pmac 0002:20:0d.0: enabling device (0000 -> 0002)
[    2.114738] adb: starting probe task...
[    2.360740] adb devices: [2]: 2 c4 [3]: 3 1 [7]: 7 1f
[    2.366673] ADB keyboard at 2, handler 1
[    2.366688] Detected ADB keyboard, type ISO, swapping keys.
[    2.366846] input: ADB keyboard as /devices/virtual/input/input1
[    2.376314] input: ADB Powerbook buttons as /devices/virtual/input/input2
[    2.403101] ADB mouse at 3, handler set to 4 (trackpad)
[    2.461546] input: ADB mouse as /devices/virtual/input/input3
[    2.461554] adb: finished probe task...
[    3.132225] ide-pmac: Found Apple UniNorth ATA-6 controller (PCI), bus ID 3, irq 39
[    3.132255] Probing IDE interface ide0...
[    3.420403] hda: FUJITSU MHT2030AT, ATA DISK drive
[    4.092286] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[    4.093636] hda: UDMA/100 mode selected
[    4.094898] ide0 at 0xc9022000-0xc9022070,0xc9022160 on irq 39
[    5.112225] ide-pmac: Found Apple KeyLargo ATA-3 controller (macio), bus ID 0, irq 24
[    5.112248] Probing IDE interface ide1...
[    5.512410] hdc: MATSHITACD-RW CW-8123, ATAPI CD/DVD-ROM drive
[    5.848290] hdc: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[    5.848467] hdc: MWDMA2 mode selected
[    5.848662] ide1 at 0xc9026000-0xc9026070,0xc9026160 on irq 24
[    5.848901] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.848955] ehci_hcd 0001:10:1b.2: enabling device (0004 -> 0006)
[    5.848976] ehci_hcd 0001:10:1b.2: EHCI Host Controller
[    5.849134] ehci_hcd 0001:10:1b.2: new USB bus registered, assigned bus number 1
[    5.872263] ehci_hcd 0001:10:1b.2: irq 63, io mem 0x80080000
[    5.884222] ehci_hcd 0001:10:1b.2: USB 2.0 started, EHCI 1.00
[    5.884424] usb usb1: configuration #1 chosen from 1 choice
[    5.884494] hub 1-0:1.0: USB hub found
[    5.884518] hub 1-0:1.0: 5 ports detected
[    5.884807] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.884856] Apple USB OHCI 0001:10:18.0 disabled by firmware
[    5.884881] Apple USB OHCI 0001:10:19.0 disabled by firmware
[    5.884903] ohci_hcd 0001:10:1a.0: enabling device (0000 -> 0002)
[    5.884925] ohci_hcd 0001:10:1a.0: OHCI Host Controller
[    5.885062] ohci_hcd 0001:10:1a.0: new USB bus registered, assigned bus number 2
[    5.885101] ohci_hcd 0001:10:1a.0: irq 29, io mem 0x80083000
[    5.959911] usb usb2: configuration #1 chosen from 1 choice
[    5.959974] hub 2-0:1.0: USB hub found
[    5.960006] hub 2-0:1.0: 2 ports detected
[    5.960239] ohci_hcd 0001:10:1b.0: enabling device (0000 -> 0002)
[    5.960259] ohci_hcd 0001:10:1b.0: OHCI Host Controller
[    5.960392] ohci_hcd 0001:10:1b.0: new USB bus registered, assigned bus number 3
[    5.960419] ohci_hcd 0001:10:1b.0: irq 63, io mem 0x80082000
[    6.035921] usb usb3: configuration #1 chosen from 1 choice
[    6.035986] hub 3-0:1.0: USB hub found
[    6.036008] hub 3-0:1.0: 3 ports detected
[    6.036202] ohci_hcd 0001:10:1b.1: enabling device (0000 -> 0002)
[    6.036240] ohci_hcd 0001:10:1b.1: OHCI Host Controller
[    6.036383] ohci_hcd 0001:10:1b.1: new USB bus registered, assigned bus number 4
[    6.036411] ohci_hcd 0001:10:1b.1: irq 63, io mem 0x80081000
[    6.111897] usb usb4: configuration #1 chosen from 1 choice
[    6.111960] hub 4-0:1.0: USB hub found
[    6.111985] hub 4-0:1.0: 2 ports detected
[    6.112250] uhci_hcd: USB Universal Host Controller Interface driver
[    6.112437] usbcore: registered new interface driver libusual
[    6.136301] mice: PS/2 mouse device common for all mice
[    6.136469] platform ppc-rtc.0: rtc core: registered ppc_md as rtc0
[    6.136546] PowerMac i2c bus pmu 2 registered
[    6.136585] PowerMac i2c bus pmu 1 registered
[    6.136623] PowerMac i2c bus mac-io 0 registered
[    6.136662] PowerMac i2c bus uni-n 1 registered
[    6.136720] PowerMac i2c bus uni-n 0 registered
[    6.137049] TCP cubic registered
[    6.137297] registered taskstats version 1
[    6.137650] input: PMU as /devices/virtual/input/input4
[    6.148282] Registered led device: pmu-front-led
[    6.148292] /build/buildd/linux-ports-2.6.28/drivers/rtc/hctosys.c: unable to open rtc device (y)
[    6.148319] Freeing unused kernel memory: 212k init
[    6.864785] ide-cd driver 5.00
[    6.870625] ide-cd: hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache
[    6.870649] Uniform CD-ROM driver Revision: 3.20
[    6.959436] ide-gd driver 1.18
[    6.959502] hda: max request size: 512KiB
[    7.021670] sungem.c:v0.98 8/24/03 David S. Miller (davem@redhat.com)
[    7.041424] hda: 58605120 sectors (30005 MB) w/2048KiB Cache, CHS=16383/255/63
[    7.043131] hda: cache flushes supported
[    7.043269]  hda: [mac] hda1 hda2 hda3 hda4
[    7.088621] PHY ID: 4061e4, addr: 0
[    7.089461] eth0: Sun GEM (PCI) 10/100/1000BaseT Ethernet 00:0a:95:b1:0d:62
[    7.089469] eth0: Found BCM5221 PHY
[    7.090302] ohci1394 0002:20:0e.0: enabling device (0000 -> 0002)
[    7.141478] ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[40]  MMIO=[f5000000-f50007ff]  Max Packet=[2048]  IR/IT contexts=[8/8]
[    8.426209] ieee1394: Host added: ID:BUS[0-00:1023]  GUID[000a95fffeb10d62]
[    8.673325] PM: Starting manual resume from disk
[    8.793783] EXT4-fs: barriers enabled
[    8.814107] kjournald2 starting.  Commit interval 5 seconds
[    8.814145] EXT4-fs: delayed allocation enabled
[    8.814150] EXT4-fs: file extents enabled
[    8.825996] EXT4-fs: mballoc enabled
[    8.826016] EXT4-fs: mounted filesystem with ordered data mode.
[    9.488396] eth0: Link is up at 100 Mbps, full-duplex.
[   11.104541] udev: starting version 141
[   11.462846] pmac_zilog: 0.6 (Benjamin Herrenschmidt <benh@kernel.crashing.org>)
[   11.463188] ttyPZ0 at MMIO 0x80013020 (irq = 22) is a Z85c30 ESCC - Serial port
[   11.463495] ttyPZ1 at MMIO 0x80013000 (irq = 23) is a Z85c30 ESCC - Serial port
[   11.488654] Linux agpgart interface v0.103
[   11.496719] agpgart-uninorth 0000:00:0b.0: Apple UniNorth 2 chipset
[   11.496898] agpgart-uninorth 0000:00:0b.0: configuring for size idx: 8
[   11.497185] agpgart-uninorth 0000:00:0b.0: AGP aperture is 32M @ 0x0
[   13.181079] apm_emu: PMU APM Emulation initialized.
[   13.225186] loop: module loaded
[   13.465566] SCSI subsystem initialized
[   13.962781] input: PowerMac Beep as /devices/pci0001:10/0001:10:17.0/input/input5
[   14.039749] adt746x: version 1 (supported)
[   14.039761] adt746x: Thermostat bus: 1, address: 0x2e, limit_adjust: 0, fan_speed: -1
[   14.039768] sensor 0: PWR/MEMORY BOTTOMSIDE
[   14.039773] sensor 1: CPU BOTTOMSIDE
[   14.039778] sensor 2: GPU ON DIE
[   14.040376] adt746x: ADT7467 initializing
[   14.042800] adt746x: Lowering max temperatures from 69, 92, 101 to 70, 50, 70
[   14.534569] Adding 364040k swap on /dev/hda4.  Priority:-1 extents:1 across:364040k
[   14.873366] EXT4 FS on hda3, internal journal on hda3:8
[   16.697074] type=1505 audit(1572705519.696:2): operation="profile_load" name="/sbin/dhclient-script" name2="default" pid=1555
[   16.697654] type=1505 audit(1572705519.696:3): operation="profile_load" name="/sbin/dhclient3" name2="default" pid=1555
[   16.697901] type=1505 audit(1572705519.696:4): operation="profile_load" name="/usr/lib/NetworkManager/nm-dhcp-client.action" name2="default" pid=1555
[   16.698103] type=1505 audit(1572705519.696:5): operation="profile_load" name="/usr/lib/connman/scripts/dhclient-script" name2="default" pid=1555
[   16.872396] type=1505 audit(1572705519.872:6): operation="profile_load" name="/usr/sbin/tcpdump" name2="default" pid=1560
[   17.805959] eth0: Link is up at 100 Mbps, full-duplex.
[   17.805973] eth0: Pause is disabled
[   19.060463] NET: Registered protocol family 17
[   21.133033] NET: Registered protocol family 10
[   21.133338] lo: Disabled Privacy Extensions
[   22.879431] input: Mouseemu virtual keyboard as /devices/virtual/input/input6
[   22.910320] input: Mouseemu virtual mouse as /devices/virtual/input/input7
[   31.796379] eth0: no IPv6 routers present
[   85.957761] ondemand governor failed, too long transition latency of HW, fallback to performance governor

/proc/cpuinfo reports:

tyson@G4Buntu:~$ cat /proc/cpuinfo 
processor	: 0
cpu		: 7455, altivec supported
clock		: 798.720000MHz
revision	: 3.3 (pvr 8001 0303)
bogomips	: 48.41
timebase	: 18432000
platform	: PowerMac
model		: PowerBook6,3
machine		: PowerBook6,3
motherboard	: PowerBook6,3 MacRISC3 Power Macintosh
detected as	: 287 (iBook G4)
pmac flags	: 0000001a
L2 cache	: 256K unified
pmac-generation	: NewWorld
Memory		: 128 MB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions