UKC only disable ohci1 and leave ohci0

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

UKC only disable ohci1 and leave ohci0

Christian M. Bernard
Hi

(kernel config / UKC question, therefore misc@)

I have an old iBook(macppc)2,1 Maschine (the horrible orange round one :),
that should become my backup firewall. As I will need 2 NICs, I need USB
working for the USB-Ethernet Device. So far so good.

First, the 4.0 kernel on the CD dosn't work because it hangs after ohci1
(see archives, ppc list, sept06), so I disabled ohci at the UKC and
installed. All works fine, but I need the usb0 (the booting kernel with
ohci enabled seemed to have a working usb0 device as it recognised my
mouse correctly (see last dmesg below) before it hung at the ohci1,
therefore the ohci0 should work ok, but how can I only disable ohci1 and
leave ohci0 as is?

(UKC, config) I tried to disable ohci* and added a new device ohci0
instead, but that doesn't seem to work:
part of dmesg (rest see below):
ohci0 at pci1 dev 24 function 0 "Apple USB" rev 0x00: irq 27, version 1.0
usb at ohci0 not configured
"Apple USB" rev 0x00 at pci1 dev 25 function 0 not configured

What do I have to enter at the UKC?

I compiled a kernel with this changes:
(from GENERIC.new)
ohci0           at pci?         # Open Host Controller
#ohci*           at pci?         # Open Host Controller

usb0            at ohci0
#usb*           at ohci?

uhub0   at usb0                 # USB Hubs
#uhub*  at usb?                 # USB Hubs

And that worked now, but what would the correct steps be with config / UKC ?

-cmb

PS: dmesg with ohci enabled - see mailing list archive of ppc (september
2006)
PS: dmesg (with ohci disabled)

OpenBSD 4.0 (GENERIC) #1056: Sat Sep 16 21:21:14 MDT 2006
    [hidden email]:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 167772160 (163840K)
avail mem = 142663680 (139320K)
using 1254 buffers containing 8388608 bytes (8192K) of memory
mainbus0 (root): model PowerBook2,1
cpu0 at mainbus0: 750 (Revision 0x8300): 299 MHz: 512KB backside cache
memc0 at mainbus0: uni-n
ki2c0 at memc0 offset 0xf8001000: cannot get i2c-rate
mpcpcibr0 at mainbus0 pci: uni-north, Revision 0xff
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 "Apple Uni-N AGP" rev 0x00
vgafb0 at pci0 dev 16 function 0 "ATI Mach64 LN" rev 0x64, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
mpcpcibr1 at mainbus0 pci: uni-north, Revision 0x0
pci1 at mpcpcibr1 bus 0
pchb1 at pci1 dev 11 function 0 "Apple Uni-N" rev 0x00
macobio0 at pci1 dev 23 function 0 "Apple Keylargo" rev 0x02
openpic0 at macobio0 offset 0x40000: version 0x4614
macgpio0 at macobio0 offset 0x50
macgpio1 at macgpio0 irq 47
"programmer-switch" at macgpio0 not configured
"extint-gpio12" at macgpio0 not configured
daca0 at macobio0 offset 0x10000: irq 30,1,2
"escc-legacy" at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 22,50
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
"timer" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000 irq 25: via-pmu, 3 targets
akbd0 at adb0 addr 2: PowerBook G4 keyboard (Inverted T)
wskbd0 at akbd0: console keyboard, using wsdisplay0
ams0 at adb0 addr 3: EMP trackpad <tpad> 2-button, 400 dpi
mouse0 at ams0 mux 0
abtn0 at adb0 addr 7: brightness/volume/eject buttons
apm0 at adb0: battery flags 0x1, 0% charged
"battery" at macobio0 offset 0x0 not configured
"backlight" at macobio0 offset 0xf300 not configured
ki2c1 at macobio0 offset 0x18000
iic0 at ki2c1
wdc0 at macobio0 offset 0x1f000 irq 19: DMA
wd0 at wdc0 channel 0 drive 0: <TOSHIBA MK3211MAT>
wd0: 16-sector PIO, LBA, 3102MB, 6354432 sectors
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
wdc1 at macobio0 offset 0x20000 irq 20: DMA
atapiscsi0 at wdc1 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, CD-ROM CR-175, 5AAE> SCSI0
5/cdrom removable
cd0(wdc1:0:0): using BIOS timings, DMA mode 2
wdc2 at macobio0 offset 0x21000 irq 21: DMA
audio0 at daca0
"Apple USB" rev 0x00 at pci1 dev 24 function 0 not configured
"Apple USB" rev 0x00 at pci1 dev 25 function 0 not configured
mpcpcibr2 at mainbus0 pci: uni-north, Revision 0x16
pci2 at mpcpcibr2 bus 0
pchb2 at pci2 dev 11 function 0 "Apple Uni-N Eth" rev 0x00
gem0 at pci2 dev 15 function 0 "Apple Uni-N GMAC" rev 0x00: irq 41,
address 00:0a:27:8d:9a:e8
bmtphy0 at gem0 phy 0: BCM5201 10/100 PHY, rev. 2
bootpath: '/pci@f2000000/mac-io@17/ata-4@1f000/disk@0/bsd'
boot device: wd0.
root on wd0a
rootdev=0x0 rrootdev=0xb00 rawdev=0xb02

dmesg with new kernel (which is not useful you will say...:)

[same as above...]
ohci0 at pci1 dev 24 function 0 "Apple USB" rev 0x00: irq 27, version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Apple OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Apple USB" rev 0x00 at pci1 dev 25 function 0 not configured
mpcpcibr2 at mainbus0 pci: uni-north, Revision 0x16
pci2 at mpcpcibr2 bus 0
pchb2 at pci2 dev 11 function 0 "Apple Uni-N Eth" rev 0x00
gem0 at pci2 dev 15 function 0 "Apple Uni-N GMAC" rev 0x00: irq 41,
address 00:0a:27:8d:9a:e8
bmtphy0 at gem0 phy 0: BCM5201 10/100 PHY, rev. 2
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: Logitech USB-PS/2 Mouse, rev 1.00/1.20, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0
bootpath: '/pci@f2000000/mac-io@17/ata-4@1f000/disk@0/bsd'
boot device: wd0.
root on wd0a
rootdev=0x0 rrootdev=0xb00 rawdev=0xb02

Reply | Threaded
Open this post in threaded view
|

Re: UKC only disable ohci1 and leave ohci0

Miod Vallat
> (UKC, config) I tried to disable ohci* and added a new device ohci0
> instead, but that doesn't seem to work:
> part of dmesg (rest see below):
> ohci0 at pci1 dev 24 function 0 "Apple USB" rev 0x00: irq 27, version 1.0
> usb at ohci0 not configured
> "Apple USB" rev 0x00 at pci1 dev 25 function 0 not configured
>
> What do I have to enter at the UKC?

The simplest way would be to have ohci only attach to pci ``dev 24'':

UKC> change ohci
 72 ohci* at pci* dev -1 function -1 flags 0x0
change [n] y
dev [-1] ? 24
function [-1] ?
flags [0] ?
 72 ohci* changed
 72 ohci* at pci* dev 0x18 function -1 flags 0x0
 73 ohci* at cardbus* dev -1 function -1 flags 0x0
change [n]
UKC>

Miod

Reply | Threaded
Open this post in threaded view
|

Re: UKC only disable ohci1 and leave ohci0

Christian M. Bernard
>> (UKC, config) I tried to disable ohci* and added a new device ohci0
>> instead, but that doesn't seem to work:
>> part of dmesg (rest see below):
>> ohci0 at pci1 dev 24 function 0 "Apple USB" rev 0x00: irq 27, version
>> 1.0
>> usb at ohci0 not configured
>> "Apple USB" rev 0x00 at pci1 dev 25 function 0 not configured
>>
>> What do I have to enter at the UKC?
>
> The simplest way would be to have ohci only attach to pci ``dev 24'':
>
> UKC> change ohci
>  72 ohci* at pci* dev -1 function -1 flags 0x0
> change [n] y
> dev [-1] ? 24
> function [-1] ?
> flags [0] ?
>  72 ohci* changed
>  72 ohci* at pci* dev 0x18 function -1 flags 0x0
>  73 ohci* at cardbus* dev -1 function -1 flags 0x0
> change [n]
> UKC>
>
> Miod
>

good sulution, but somehow, the 'change' command in UKC doesn't work for
me (OpenBSD4.0, cd40.iso, macppc arch)

the bsd.rd kernel just prints this:
UKC> change ohci
 56 ohci* at pci* dev -1 function -1 flags 0x0
change (y/n) ?
_

(after typing 'y' it just hangs. But the 'disable' command works ok)

Also, the /bsd kernel after installing, just doesn't read my 'y' when in
UKC, it just reprints the
change y/n) ?
line again and sometimes prints 'out of memory'

I haven't read about any limitation of the change command in UKC on bsd.rd
or other kernels...

salut
cmb