Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Apple iBook G4 #33

Open
vmlemon opened this issue Nov 2, 2019 · 8 comments
Open

Support for Apple iBook G4 #33

vmlemon opened this issue Nov 2, 2019 · 8 comments

Comments

@vmlemon
Copy link
Owner

vmlemon commented Nov 2, 2019

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
@vmlemon
Copy link
Owner Author

vmlemon commented Nov 2, 2019

lspci reports:

tyson@G4Buntu:~$ sudo lspci -vvvv
0000:00:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 AGP
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 16, Cache Line Size: 32 bytes
	Capabilities: [80] AGP version 1.0
		Status: RQ=8 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
		Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>
	Kernel driver in use: agpgart-uninorth
	Kernel modules: uninorth-agp

0000:00:10.0 VGA compatible controller: ATI Technologies Inc M9+ 5C63 [Radeon Mobility 9200 (AGP)] (rev 01)
	Subsystem: ATI Technologies Inc M9+ 5C63 [Radeon Mobility 9200 (AGP)]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 255 (2000ns min), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 48
	Region 0: Memory at 98000000 (32-bit, prefetchable) [size=128M]
	Region 1: I/O ports at 0400 [disabled] [size=256]
	Region 2: Memory at 90000000 (32-bit, non-prefetchable) [size=64K]
	Expansion ROM at f1000000 [disabled] [size=128K]
	Capabilities: [58] AGP version 2.0
		Status: RQ=80 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
		Command: RQ=1 ArqSz=0 Cal=0 SBA+ AGP- GART64- 64bit- FW- Rate=<none>
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 PCI
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 16, Cache Line Size: 32 bytes
	Kernel modules: uninorth-agp

0001:10:17.0 Class ff00: Apple Computer Inc. KeyLargo/Intrepid Mac I/O
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 16, Cache Line Size: 32 bytes
	Region 0: Memory at 80000000 (32-bit, non-prefetchable) [size=512K]
	Kernel driver in use: macio

0001:10:18.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB (prog-if 10)
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin A routed to IRQ 27

0001:10:19.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB (prog-if 10)
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin A routed to IRQ 28

0001:10:1a.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB (prog-if 10)
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 16 (750ns min, 21500ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 29
	Region 0: Memory at 80083000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci_hcd

0001:10:1b.0 USB Controller: NEC Corporation USB (rev 43) (prog-if 10)
	Subsystem: NEC Corporation USB
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 16 (250ns min, 10500ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 63
	Region 0: Memory at 80082000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME+
	Kernel driver in use: ohci_hcd

0001:10:1b.1 USB Controller: NEC Corporation USB (rev 43) (prog-if 10)
	Subsystem: NEC Corporation USB
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 16 (250ns min, 10500ns max), Cache Line Size: 32 bytes
	Interrupt: pin B routed to IRQ 63
	Region 0: Memory at 80081000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME+
	Kernel driver in use: ohci_hcd

0001:10:1b.2 USB Controller: NEC Corporation USB 2.0 (rev 04) (prog-if 20)
	Subsystem: NEC Corporation USB 2.0
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 16 (4000ns min, 8500ns max), Cache Line Size: 32 bytes
	Interrupt: pin C routed to IRQ 63
	Region 0: Memory at 80080000 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: ehci_hcd

0002:20:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 Internal PCI
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 16, Cache Line Size: 32 bytes
	Kernel modules: uninorth-agp

0002:20:0d.0 Class ff00: Apple Computer Inc. UniNorth/Intrepid ATA/100
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR+ INTx-
	Latency: 32, Cache Line Size: 32 bytes
	Interrupt: pin ? routed to IRQ 39
	Region 0: Memory at f5004000 (32-bit, non-prefetchable) [size=16K]
	Kernel driver in use: ide-pmac

0002:20:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth 2 FireWire (rev 81) (prog-if 10)
	Subsystem: Apple Computer Inc. Device 5811
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (3000ns min, 6000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 40
	Region 0: Memory at f5000000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [44] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME+
	Kernel driver in use: ohci1394
	Kernel modules: ohci1394

0002:20:0f.0 Ethernet controller: Apple Computer Inc. UniNorth 2 GMAC (Sun GEM) (rev 80)
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR+ INTx-
	Latency: 16 (16000ns min, 16000ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 41
	Region 0: Memory at f5200000 (32-bit, non-prefetchable) [size=2M]
	Expansion ROM at f5100000 [disabled] [size=1M]
	Kernel driver in use: gem
	Kernel modules: sungem

@vmlemon
Copy link
Owner Author

vmlemon commented Nov 2, 2019

Worth pointing out that the main Ubuntu repositories don't provide packages for this release, anymore, but https://newit.co.uk/forum/index.php?topic=2329.0 mentions alternatives.

@vmlemon
Copy link
Owner Author

vmlemon commented Nov 2, 2019

In case that page ever goes away, those are:

deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse

@vmlemon
Copy link
Owner Author

vmlemon commented Nov 2, 2019

So, the current status of trying to build on Ubuntu 9.04 PPC 32-bit is:
If I manually edit contrib/cml2/cmlcompile.py, and contrib/cmlconfigure.py to manually use Python 2.6, instead of Python 2.7, I can run make menuconfig, and see the configuration menu, but trying to build the kernel fails, since it's trying to use a bunch of GCC flags, that aren't available, for gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3, on this platform:

root@G4Buntu:~/Canvio/OrionPPC32/Orion/kernel/p32# make
gcc: unrecognized option '-no-pie'
make[1]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/kernel/p32'
===> src/generic/lib.cc
cd src/generic/ &&  gcc  -nostdinc -I/home/tyson/Canvio/OrionPPC32/Orion/kernel/p32/include -I/home/tyson/Canvio/OrionPPC32/Orion/kernel/src -I/home/tyson/Canvio/OrionPPC32/Orion/kernel/src/generic -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include/ -Uia32 -Up4 -Upc99 -Uv4 -Urr -D__ARCH__=ia32 -D__CPU__=p4 -D__PLATFORM__=pc99 -D__API__=v4 -D__SCHED__=rr -imacros /home/tyson/Canvio/OrionPPC32/Orion/kernel/p32/config/config.h -imacros /home/tyson/Canvio/OrionPPC32/Orion/kernel/src/generic/macros.h -include /home/tyson/Canvio/OrionPPC32/Orion/kernel/src/generic/config.h  -include /home/tyson/Canvio/OrionPPC32/Orion/kernel/src/generic/types.h -fno-rtti -fno-builtin  -fomit-frame-pointer -fno-exceptions -Wall -Wno-non-virtual-dtor -Wno-format -O2 -m32 -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -fno-pie -no-pie -Wno-narrowing -fno-stack-protector -march=pentium4   -Wno-conversion -fno-stack-protector  -c /home/tyson/Canvio/OrionPPC32/Orion/kernel/src/generic/lib.cc
gcc: unrecognized option '-no-pie'
cc1plus: error: unrecognized command line option "-mpreferred-stack-boundary=2"
cc1plus: error: unrecognized command line option "-mno-mmx"
cc1plus: error: unrecognized command line option "-mno-sse"
cc1plus: error: unrecognized command line option "-mno-sse2"
cc1plus: error: unrecognized command line option "-mno-sse3"
cc1plus: error: unrecognized command line option "-march=pentium4"
cc1plus: warning: unrecognized command line option "-Wno-narrowing"
make[1]: *** [src/generic/lib.o] Error 1
make[1]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/kernel/p32'
make: *** [all] Error 2

@vmlemon
Copy link
Owner Author

vmlemon commented Nov 2, 2019

Trying to build the userland results in:

root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ./configure
configure: error: Unknown hardware architecture: ppc.
	Please specify hardware architecture using --host=ARCH.

@vmlemon
Copy link
Owner Author

vmlemon commented Nov 2, 2019

root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# autoreconf 
Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 188.
Use of uninitialized value $libtoolize in pattern match (m//) at /usr/bin/autoreconf line 188.

After installing libtool, I was able to re-run autoreconf, which produced no output, but we still see:

root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ./configure
configure: error: Unknown hardware architecture: ppc.
	Please specify hardware architecture using --host=ARCH.

Trying something else:

root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ./configure --host=powerpc
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for powerpc-gcc... no
checking for powerpc-elf-gcc... no
checking for powerpc-unknown-elf-gcc... no
checking for powerpc-linux-gcc... no
checking for powerpc-unknown-linux-gcc... no
checking for powerpc-unknown-linux-gnu-gcc... no
checking for powerpc-pc-linux-gnu-gcc... no
checking for powerpc-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for gawk... gawk
checking location of libgcc.a... /usr/lib/gcc/powerpc-linux-gnu/4.3.3
checking location of stdarg.h... /usr/lib/gcc/powerpc-linux-gnu/4.3.3/include
checking kernel build directory... $(top_builddir)
configure: creating ./config.status
config.status: creating config.mk
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib/l4/Makefile
config.status: creating lib/io/Makefile
config.status: creating serv/Makefile
config.status: creating serv/sigma0/Makefile
config.status: creating apps/Makefile
config.status: creating apps/bench/Makefile
config.status: creating apps/bench/pingpong/Makefile
config.status: creating apps/grabmem/Makefile
config.status: creating apps/l4test/Makefile
config.status: creating util/Makefile
config.status: creating util/kickstart/Makefile
config.status: creating util/grubdisk/Makefile
config.status: creating util/piggybacker/Makefile
config.status: creating util/piggybacker/ofppc/Makefile
config.status: creating util/piggybacker/ofppc64/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/elf-loader/Makefile
config.status: creating config.h
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ppc
ppc    ppc32  ppc64  
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ls /usr/lib/po
policykit/         powerpc-linux-gnu/ 
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ls /usr/lib/po
policykit/         powerpc-linux-gnu/ 
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# ls /usr/lib/powerpc-linux-gnu/
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# 

@vmlemon
Copy link
Owner Author

vmlemon commented Nov 2, 2019

If I force ./configure --host=powerpc, and do make clean, in user, I can actually get this far:

root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# make
make[1]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
===> Making dependencies in .
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
===> debug.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c debug.cc -o debug.o
In file included from ../../include/l4/kip.h:35,
                 from debug.cc:31:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> powerpc.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c powerpc.cc -o powerpc.o
In file included from ../../include/l4/kip.h:35,
                 from powerpc.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> Linking ./libl4.a
ar cru libl4.a  debug.o powerpc.o  
ranlib libl4.a
cp libl4.a ../../lib/libl4.a
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
===> Making dependencies in .
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
make[2]: Warning: File `.depend' has modification time 0.1 s in the future
===> get_hex.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c get_hex.cc -o get_hex.o
In file included from get_hex.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> print.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c print.cc -o print.o
In file included from print.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> powerpc.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c powerpc.cc -o powerpc.o
In file included from powerpc.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
In file included from powerpc.cc:52:
fdt.h: In member function ‘int fdt_header_t::get_size()’:
fdt.h:106: warning: suggest parentheses around + or - in operand of &
fdt.h: In member function ‘int fdt_property_t::get_size()’:
fdt.h:113: warning: suggest parentheses around + or - in operand of &
powerpc.cc: In function ‘void io_init()’:
powerpc.cc:156: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:159: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:166: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:177: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:181: warning: unused variable ‘comport_phys’
===> 1275tree.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c 1275tree.cc -o 1275tree.o
In file included from 1275tree.h:36,
                 from 1275tree.cc:37:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> fdt.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c fdt.cc -o fdt.o
In file included from ../../include/l4io.h:35,
                 from fdt.cc:33:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
In file included from fdt.cc:34:
fdt.h: In member function ‘int fdt_header_t::get_size()’:
fdt.h:106: warning: suggest parentheses around + or - in operand of &
fdt.h: In member function ‘int fdt_property_t::get_size()’:
fdt.h:113: warning: suggest parentheses around + or - in operand of &
===> Linking ./libio.a
ar cru libio.a  get_hex.o print.o powerpc.o 1275tree.o fdt.o  
ranlib libio.a
cp libio.a ../../lib/libio.a
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
make[1]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib'
make[1]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/serv'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/serv/sigma0'
===> Making dependencies in .
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/serv/sigma0'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/serv/sigma0'
===> crt0-powerpc.S
gcc -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -msoft-float -fno-builtin -Wno-conversion -c crt0-powerpc.S -o crt0-powerpc.o
===> sigma0.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -msoft-float -fno-builtin -Wno-conversion -fno-exceptions -fno-stack-protector -c sigma0.cc -o sigma0.o
In file included from ../../include/l4/kip.h:35,
                 from sigma0.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> sigma0_mem.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -msoft-float -fno-builtin -Wno-conversion -fno-exceptions -fno-stack-protector -c sigma0_mem.cc -o sigma0_mem.o
In file included from ../../include/l4/kip.h:35,
                 from sigma0_mem.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> region.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -msoft-float -fno-builtin -Wno-conversion -fno-exceptions -fno-stack-protector -c region.cc -o region.o
In file included from ../../include/l4/message.h:36,
                 from region.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> Linking ./sigma0
ld -e_start -N -L../../lib -L/usr/lib/gcc/powerpc-linux-gnu/4.3.3 -nostdlib   -Ttext=00500000 crt0-powerpc.o sigma0.o sigma0_mem.o region.o    -ll4 -lio -lgcc -o sigma0
ld: Warning: /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libgcc.a(_fixunsdfsi.o) uses hard float, sigma0 uses soft float
ld: Warning: /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libgcc.a(floatunsidf.o) uses hard float, sigma0 uses soft float
ld: Warning: /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libgcc.a(gedf2.o) uses hard float, sigma0 uses soft float
ld: Warning: /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libgcc.a(ledf2.o) uses hard float, sigma0 uses soft float
ld: Warning: /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libgcc.a(muldf3.o) uses hard float, sigma0 uses soft float
ld: Warning: /usr/lib/gcc/powerpc-linux-gnu/4.3.3/libgcc.a(subdf3.o) uses hard float, sigma0 uses soft float
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/serv/sigma0'
make[1]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/serv'
make[1]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps/bench'
make[3]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps/bench/pingpong'
===> Making dependencies in .
make[3]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps/bench/pingpong'
make[3]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps/bench/pingpong'
make[3]: Warning: File `.depend' has modification time 0.22 s in the future
===> crt0-powerpc.S
gcc -I../../../include -I../../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -fno-builtin -msoft-float -Wno-conversion -c crt0-powerpc.S -o crt0-powerpc.o
===> pingpong.cc
gcc -x c++ -I../../../include -I../../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector -fno-builtin -msoft-float -Wno-conversion -fno-exceptions -fno-stack-protector -c pingpong.cc -o pingpong.o
In file included from ../../../include/l4/kip.h:35,
                 from pingpong.cc:34:
../../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> Linking ./pingpong
ld -e_start -N -L../../../lib -L/usr/lib/gcc/powerpc-linux-gnu/4.3.3 -nostdlib   -Ttext=00600000  -fno-stack-protector -lssp crt0-powerpc.o pingpong.o    -ll4 -lio -lgcc -o pingpong
ld: -f may not be used without -shared
make[3]: *** [pingpong] Error 1
make[3]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps/bench/pingpong'
make[2]: *** [subdirs-all] Error 2
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps/bench'
make[1]: *** [subdirs-all] Error 2
make[1]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/apps'
make: *** [subdirs-all] Error 2
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# 

@vmlemon
Copy link
Owner Author

vmlemon commented Nov 2, 2019

Doing a make clean, and updating the MakeFiles for user/lib gets us to this stage:

root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# make
make[1]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
===> Making dependencies in .
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
===> debug.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c debug.cc -o debug.o
In file included from ../../include/l4/kip.h:35,
                 from debug.cc:31:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> powerpc.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c powerpc.cc -o powerpc.o
In file included from ../../include/l4/kip.h:35,
                 from powerpc.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> Linking ./libl4.a
ar cru libl4.a  debug.o powerpc.o  
ranlib libl4.a
cp libl4.a ../../lib/libl4.a
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/l4'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
===> Making dependencies in .
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
make[2]: Warning: File `.depend' has modification time 0.11 s in the future
===> get_hex.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c get_hex.cc -o get_hex.o
In file included from get_hex.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> print.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c print.cc -o print.o
In file included from print.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> powerpc.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c powerpc.cc -o powerpc.o
In file included from powerpc.cc:32:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
In file included from powerpc.cc:52:
fdt.h: In member function ‘int fdt_header_t::get_size()’:
fdt.h:106: warning: suggest parentheses around + or - in operand of &
fdt.h: In member function ‘int fdt_property_t::get_size()’:
fdt.h:113: warning: suggest parentheses around + or - in operand of &
powerpc.cc: In function ‘void io_init()’:
powerpc.cc:156: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:159: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:166: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:177: warning: deprecated conversion from string constant to ‘char*’
powerpc.cc:181: warning: unused variable ‘comport_phys’
===> 1275tree.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c 1275tree.cc -o 1275tree.o
In file included from 1275tree.h:36,
                 from 1275tree.cc:37:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
===> fdt.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -c fdt.cc -o fdt.o
In file included from ../../include/l4io.h:35,
                 from fdt.cc:33:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
In file included from fdt.cc:34:
fdt.h: In member function ‘int fdt_header_t::get_size()’:
fdt.h:106: warning: suggest parentheses around + or - in operand of &
fdt.h: In member function ‘int fdt_property_t::get_size()’:
fdt.h:113: warning: suggest parentheses around + or - in operand of &
===> Linking ./libio.a
ar cru libio.a  get_hex.o print.o powerpc.o 1275tree.o fdt.o  
ranlib libio.a
cp libio.a ../../lib/libio.a
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/io'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/linux'
===> Rebuilding ./Makefile
config.status: creating ./Makefile
config.status: creating config.h
config.status: config.h is unchanged
===> Making dependencies in .
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/linux'
make[2]: Entering directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/linux'
===> Rebuilding ./Makefile
config.status: creating ./Makefile
config.status: creating config.h
config.status: config.h is unchanged
===> liballoc_hooks.cc
gcc -x c++ -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -fno-exceptions -fno-stack-protector -D_WANT_FREEBSD11_STAT -c liballoc_hooks.cc -o liballoc_hooks.o
In file included from ../../include/l4/space.h:35,
                 from liballoc_hooks.cc:2:
../../include/l4/types.h:35: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
liballoc_hooks.cc: In function ‘void* liballoc_alloc(int)’:
liballoc_hooks.cc:84: warning: comparison between signed and unsigned integer expressions
===> apicore.c
gcc -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -std=c99 -c apicore.c -o apicore.o
===> assert.c
gcc -I../../include -I../.. -I/usr/lib/gcc/powerpc-linux-gnu/4.3.3/include   -fno-stack-protector -nostdinc -fno-stack-protector -g -O2 -msoft-float  -mno-regnames -meabi -msdata=none -mno-toc   -fno-stack-protector -lssp -O2 -g -Wall -Wshadow -fno-stack-protector  -Wno-conversion -std=c99 -c assert.c -o assert.o
In file included from ../../include/sys/_types.h:35,
                 from ../../include/sys/types.h:47,
                 from stand.h:3,
                 from assert.c:32:
../../include/machine/_types.h:85: error: redefinition of typedef ‘__uintptr_t’
../../include/machine/_types.h:52: error: previous declaration of ‘__uintptr_t’ was here
../../include/machine/_types.h:109: error: redefinition of typedef ‘__uint_least16_t’
../../include/machine/_types.h:40: error: previous declaration of ‘__uint_least16_t’ was here
../../include/machine/_types.h:110: error: redefinition of typedef ‘__uint_least32_t’
../../include/machine/_types.h:41: error: previous declaration of ‘__uint_least32_t’ was here
In file included from ../../include/sys/types.h:65,
                 from stand.h:3,
                 from assert.c:32:
../../include/sys/_stdint.h:51: error: redefinition of typedef ‘int64_t’
../../include/machine/_types.h:33: error: previous declaration of ‘int64_t’ was here
../../include/sys/_stdint.h:71: error: redefinition of typedef ‘uint64_t’
../../include/machine/_types.h:34: error: previous declaration of ‘uint64_t’ was here
In file included from ../../include/sys/types.h:376,
                 from stand.h:3,
                 from assert.c:32:
../../include/sys/select.h:105: warning: ‘struct timeval’ declared inside parameter list
../../include/sys/select.h:105: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from assert.c:32:
stand.h:17: warning: ‘struct open_file’ declared inside parameter list
stand.h:18: warning: ‘struct open_file’ declared inside parameter list
stand.h:20: warning: ‘struct open_file’ declared inside parameter list
stand.h:22: warning: ‘struct open_file’ declared inside parameter list
stand.h:23: warning: ‘struct open_file’ declared inside parameter list
stand.h:24: warning: ‘struct stat’ declared inside parameter list
stand.h:24: warning: ‘struct open_file’ declared inside parameter list
stand.h:25: warning: ‘struct dirent’ declared inside parameter list
stand.h:25: warning: ‘struct open_file’ declared inside parameter list
assert.c: In function ‘__assert’:
assert.c:38: warning: implicit declaration of function ‘panic’
make[2]: *** [assert.o] Error 1
make[2]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib/linux'
make[1]: *** [subdirs-all] Error 2
make[1]: Leaving directory `/home/tyson/Canvio/OrionPPC32/Orion/user/lib'
make: *** [subdirs-all] Error 2
root@G4Buntu:~/Canvio/OrionPPC32/Orion/user# 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant