🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.netbsd.port.powerpc
Article #1

IBM 43P-150 support

#1
From: Michael
Date: Sun, 06 Sep 2026 17:56
149 lines
12084 bytes
Hello,

a little while ago I finally got my hands on an IBM 43P-150, and today
I got it to run NetBSD well enough to be useful. I'll commit the
necessary changes in the next few days.
Here's what needed attention:
- the BAT-mapping code in ofppc/machdep.c maps too much. We want PCI
  memory and IO space, which is 0x80000000 - 0xfec00000, no more. Care
  must be taken to *not* BAT-map anything beyond 0xff000000, but we do
  want 0xf0000000 - 0xfeffffff since that's where IBM OF likes to put
  BARs and the PCI IO space lives there too.
- the pckbd driver does not attach, it randomly fails the selftest in
  pckbc_isa.c. Longer timeout, some changes to delay() from
  evbppc/nintendo, and matching the keyboard controller's node name (
  '8042' ) got it going.
- the 43P-150 has a prepivr, so we need options PIC_PREPIVR
- options PCI_NETBSD_CONFIGURE may move the graphics card's BARs around
  which will mess up the early console
- IBM's OpenFirmware configures PCI cards on the primary bus but does
  not enable them, so the ohci card I stuck in there would not attach
  because memory space access was disabled. Simply enabling it made it
  work.
- PICs cascaded to the openpic were registered with the wrong polarity,
  see PR60640. I committed the fix earlier today.
- IBM OF doesn't seem to configure devices on the secondary PCI bus at
  all
- the onboard audio thing is an ad1848, we have support in the kernel
  but only as a component used by other drivers
- the ISA bus code should use OpenFirmware to find and attach devices

That being said, getting it to boot was quite easy - netbooting works
the same as on macppc or sparc64, and booting from disk only needs a
FAT partition with ofwboot in it, so you can 'boot disk:,\ofwboot',
which will find the NetBSD disklabel and load a kernel from an ffs1
partition. I *think* libsa supports ffs2 but that didn't work with
-current from a few days ago.

Here's some dmesg pr0n:

[     1.000000] NetBSD 11.99.8 (GENERIC) #64: Sun Sep  6 11:29:39 EDT 2026
[     1.000000]         ml@paddy:/disk/build/obj_ofppc/sys/arch/ofppc/compile/GENERIC
[     1.000000] Model: IBM,7043-150
[     1.000000] total memory = 640 MB
[     1.000000] avail memory = 609 MB
[     1.000000] timecounter: Timecounters tick every 10.000 msec
[     1.000000] bootpath: /pci@80000000/scsi@10/sd@6,0/netbsd
[     1.000000] mainbus0 (root)
[     1.000000] rtas0 at mainbus0: version 1, entry @pa 0x6db6dc
[     1.000000] cpu0 at mainbus0: 604e (rev 1.2), ID 0 (primary)
[     1.000000] cpu0: HID0 0xc001c086<EMCP,DBP,NHR,ICE,DCE,SGE,BHT,NOPDST>, powersave: 1
[     1.000000] cpu0: 374.06 MHz
[     1.000000] cpu0: L1 I-cache 32 KB 32B/line, D-cache 32 KB 32B/line
[     1.000000] cpu0: L2 cache 1 MB 32B/line
[     1.000000] ofwpci0 at mainbus0
[     1.000000] io base=0x0 offset=0xfe000000 limit=0xc00000
[     1.000000] mem base=0x80000000 offset=0x0 limit=0xfe000000
[     1.000000] prepivr at 0xab41b000
[     1.000000] Found openpic at fbec0000
[     1.000000] OpenPIC Version 1.1: Supports 4 CPUs and 16 interrupt sources.
[     1.000000] pci0 at ofwpci0 bus 0: OFW method configuration space access
[     1.000000] pci0: i/o space, memory space enabled
[     1.000000] pchb0 at pci0 dev 0 function 0
[     1.000000] pchb0: vendor 1057 product 0002 (rev. 0x40)
[     1.000000] pchb0: L2 cache: 1M, internally controlled write-back mode
[     1.000000] pcib0 at pci0 dev 11 function 0: vendor 10ad product 0565 (rev. 0x10)
[     1.000000] pcib0:
[     1.000000] vendor 10ad product 0105 (IDE mass storage, interface 0x8f, revision 0x05) at pci0 dev 11 function 1 not configured
[     1.000000] pcn0 at pci0 dev 12 function 0: AMD PCnet-PCI Ethernet
[     1.000000] pcn0: Am79c971 PCnet-FAST rev 6, Ethernet address 00:04:ac:17:c5:ed
[     1.000000] pcn0: interrupting at irq 22
[     1.000000] nsphy0 at pcn0 phy 1: DP83840 10/100 media interface, rev. 1
[     1.000000] nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
[     1.000000] ukphy0 at pcn0 phy 31: OUI 0x000058, model 0x0001, rev. 1
[     1.000000] ukphy0: 10baseT, 10baseT-FDX, auto
[     1.000000] vendor 1014 product 0046 (undefined, subclass 0x00) at pci0 dev 13 function 0 not configured
[     1.000000] esiop0 at pci0 dev 16 function 0: Symbios Logic 53c875 (ultra-wide scsi)
[     1.000000] esiop0: using on-board RAM
[     1.000000] esiop0: interrupting at irq 23
[     1.000000] scsibus0 at esiop0: 16 targets, 8 luns per target
[     1.000000] machfb0 at pci0 dev 18 function 0: vendor 1002 product 4752 (rev. 0x27)
[     1.000000] machfb0: using MMIO aperture
[     1.000000] machfb0: 16 MB aperture at 0xfc000000, 4 KB registers at 0xfbe9e000
[     1.000000] machfb0: 128 KB ROM at 0xfbea0000
[     1.000000] machfb0: 8192 KB SGRAM 114.992 MHz, maximum RAMDAC clock 230 MHz
[     1.000000] machfb0: found composite sync disabled
[     1.000000] machfb0: initial resolution 1280x1024 at 8 bpp
[     1.000000] wsdisplay0 at machfb0 kbdmux 1: console (default, vt100 emulation)
[     1.000000] wsmux1: connecting to wsdisplay0
[     1.000000] direct rendering for machfb0 unsupported
[     1.000000] ohci0 at pci0 dev 22 function 0: vendor 1045 product c861 (rev. 0x10)
[     1.000000] csr: 02800140
[     1.000000] ohci0: autoconfiguration error: memory access is disabled
[     1.000000] ohci0: interrupting at irq 17
[     1.000000] ohci0: OHCI version 1.0, legacy support
[     1.000000] usb0 at ohci0: USB revision 1.0
[     1.000000] ppb0 at pci0 dev 23 function 0: vendor 1014 product 0022 (rev. 0x01)
[     1.000000] pci1 at ppb0 bus 1
[     1.000000] pci1: i/o space, memory space enabled
[     1.000000] isa0 at pcib0
[     1.000000] com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, 16-byte FIFO
[     1.000000] com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, 16-byte FIFO
[     1.000000] pckbc0 at isa0 port 0x60-0x64
[     1.000000] pckbd0 at pckbc0 (kbd slot)
[     1.000000] pckbc0: using irq 1 for kbd slot
[     1.000000] wskbd0 at pckbd0: console keyboard, using wsdisplay0
[     1.000000] attimer0 at isa0 port 0x40-0x43
[     1.000000] pcppi0 at isa0 port 0x61
[     1.000000] fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
[     1.000000] attimer0: attached to pcppi0
[     1.000000] vmmask 39800000 schedmask 39800000 highmask 7f800000
[     1.000000] WARNING: system needs entropy for security; see entropy(7)
[     1.000000] timecounter: Timecounter "mftb" frequency 20781582 Hz quality 100
[     1.000061] timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
[     1.000061] scsibus0: waiting 2 seconds for devices to settle...
[     1.023547] uhub0 at usb0: NetBSD (0x0000) OHCI root hub (0x0000), class 9/0, rev 1.00/1.00, addr 1
[     1.023547] uhub0: 2 ports with 2 removable, self powered
[     1.023547] fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
[     2.623509] uhidev0 at uhub0 port 1 configuration 1 interface 0
[     2.623509] uhidev0: Logitech (0x046d) USB Trackball (0xc408), rev 1.10/14.00, addr 2, iclass 3/1
[     2.643523] ums0 at uhidev0: 5 buttons
[     2.643523] wsmouse0 at ums0 mux 0
[     3.743511] uhidev1 at uhub0 port 2 configuration 1 interface 0
[     3.743511] uhidev1: USB (0xc0f4) usb keyboard (0x07c0), rev 1.10/1.10, addr 3, iclass 3/1
[     3.763524] ukbd0 at uhidev1
[     3.763524] wskbd1 at ukbd0 mux 1
[     3.763524] wskbd1: connecting to wsdisplay0
[     3.763524] uhidev2 at uhub0 port 2 configuration 1 interface 1
[     3.763524] uhidev2: USB (0xc0f4) usb keyboard (0x07c0), rev 1.10/1.10, addr 3, iclass 3/0
[     3.793530] uhidev2: 2 report ids
[     3.793530] uhid0 at uhidev2 reportid 1: input=2, output=0, feature=0
[     3.793530] uhid1 at uhidev2 reportid 2: input=1, output=0, feature=0
[     3.883509] cd0 at scsibus0 target 3 lun 0: <IBM, CDRM00203\000\000\000\000\000!K, 1_05> cdrom removable
[     3.883509] cd0: sync (50.00ns offset 15), 16-bit (40.000MB/s) transfers
[    14.463514] sd0 at scsibus0 target 6 lun 0: <IBM, DCAS-34330W, S65A> disk fixed
[    14.523514] sd0: 4134 MB, 8205 cyl, 6 head, 171 sec, 512 bytes/sect x 8467200 sectors
[    14.623518] sd0: sync (50.00ns offset 15), 16-bit (40.000MB/s) transfers, tagged queueing
[    17.003516] WARNING: 1 error while detecting hardware; check system log.
[    17.003516] boot device: sd0
[    17.003516] root on sd0a dumps on sd0b
[    17.043520] root file system type: ffs
[    17.043520] kern.module.path=/stand/ofppc/11.99.8/modules
[    19.423561] entropy: best effort

have fun
Michael

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <20260906135629.28967c44@bushmills>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Michael <macallan1888@gmail.com>
Newsgroups: muc.lists.netbsd.port.powerpc
Subject: IBM 43P-150 support
Date: Sun, 6 Sep 2026 13:56:29 -0400
Organization: Newsgate at muc.de e.V.
Sender: port-powerpc-owner@NetBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <20260906135629.28967c44@bushmills>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="10085"; mail-complaints-to="news-admin@muc.de"
Authentication-Results: mail.netbsd.org (amavisd-new);
	dkim=pass (2048-bit key) header.d=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1788717396; x=1789322196; darn=netbsd.org;
        h=content-transfer-encoding:content-type:mime-version:message-id
         :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=mlTk7IIxudWVgpMpBDbtNd5uEatfRLVjMgmHqiorcIQ=;
        b=iRmNH+TLPqa4icQ3CJdDmREEJJBKjAx5Q59GQE7gyV1cHVDqjKV5yRV/GfHYugsfTY
         q9qwwOlJc/m9d5Zz1M2duQU+mPWPICaY91U+Td4jiphxac9ZBbyUULabcTtIHNFIKOQp
         YzMi4A95J1WcKpuKSBEh+fj6DcRWFGpCF5kmU0Ge/8Jn369mlWjaODfi/2jJp4cv+t3y
         8pHBY3+dOe3jOrXCH4vAo3T9geHMEq4nYfaCMW7CiV1/xNADVqhyI9WqITlvqP8YXnAC
         L+PpY/cVQ2BeS8b9CRCV/cSdh+0HIV81qBTgmj3or0UvlqJXVpFTW2yUNAxW+r1RGJS+
         w96Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20251104; t=1788717396; x=1789322196;
        h=content-transfer-encoding:content-type:mime-version:message-id
         :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to:content-type;
        bh=mlTk7IIxudWVgpMpBDbtNd5uEatfRLVjMgmHqiorcIQ=;
        b=gkfPPJTExZKLG6jNfqb1w+2KWt8WskrzB1DCpOFK7UcfbpneVv4kZv0GI8jrbccyfa
         C5Ox87DfsibnNgpO1/rUH/0VWtomLbiYOYYaJ7qSh6S4Err6Pqlm/lVKngeirRZbCHme
         xUaYc0cQ2WyEWjp2DRMAXzNwAwnmEJhBOZqRobcZEImJjZnDzR5uhNBRckcQtZ+9TKfw
         wurZ3V/p6WsdP27gpNixlyrjcJkfJh2mfSKnCpg+m5fZ7bguW9O81rH42Br05Wxkx2MQ
         wrcUlq7gXKXw1MXMJ9FeVZozDfvziCBGKMQVwAjQaBFk3MnGOmhuhXwJgzdp8/BD6IKT
         Q70g==
X-Gm-Message-State: AFuF++nX08wNfMr7rWevsUndTc/enD80gUsJT85mJGruEhCIGohL2b2f
	ULNTyJpkzG+ygyBZOYTha2XEbI+95fZv4KIGXPy5z55JfdqEIzzR3DVQcEDGbg==
X-Gm-Gg: AYBFou1ydEm0SbBs7jXOaodkmWzFksUoCv/DZyDncThZ5AhbOC1FaBes0cGHF5oHWVE
	TOA6NaVqsmh9YoL+uwc7d3mcDQcXOV4DJBj6zmHSRd+Ebx1tF5DiXI/3Q1bQQqRI1FqETHNCuVW
	riw2kiFwaEXq3zvzmGkZpSHkuMljBn9laXz2PRNSsrVRqexEjDJiPEku0PycHWsCfQaWbPeRvNW
	9TyTI0qB4P+uMbweW1l2gI1J3FJFpQmdqvI4MFMOqMm78KEHGixJV6GoJ4g1l5EpZ24UJRURkt4
	vpgwqOz1vfOiF52lQYC591Q0QipMsCmbNP/nRG/L5SX04GZumC3+JumyLUMAX8shjmXFuQRKQs5
	WAlqi2473ioElqMfQ1CwhMWP0SQmruTq7yQGPHdkOHVq4tcO9AauyXyPlA5R1OxjgyAUe+G2I9s
	yKxVwdbK3n6in2BkVvszn8KbqnwJjQXHgcFIT8GDTFD74EhgqzfzRroS/AakNhmVfKTJV3IElFD
	6sNWfMnyN/2nA==
Precedence: bulk
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes