How to find a right value for hw.cbb.start_memory?

Kevin Oberman oberman at es.net
Thu Dec 18 09:41:11 PST 2003


> Date: Thu, 18 Dec 2003 15:21:44 +0300
> From: "Sergey A. Osokin" <osa at freebsd.org.ru>
> Sender: owner-freebsd-mobile at freebsd.org
> 
> Hello,
> Does anyone have an idea how to find a right value for
> hw.cbb.start_memory?
> 
> I use a 3Com Megahertz 56K Modem (3CXM756) with
> my HP 6100 Omnibook notebook and with
> device	pcic
> device	card	1
> works fine.
> 
> Part of verbose boot:
> pcib2: device pccard0 requested decoded memory range 0xd0000-0xd0000
> pcic: mem addr 0xd0000: reg 48: d0 0 d0 0 0 7f 10
> pcic: mem addr 0: reg 48: 0 0 0 0 0 0 0
> ...
> pcib2: device pccard0 requested decoded I/O range 0x3f8-0x3ff
> pcib2: device pccard0 requested decoded I/O range 0x2f8-0x2ff
> ...
> pccard0: Assigning sio4: io 0x2f8-0x2ff irq 10 flags 0x0
> pcib2: device sio4 requested decoded I/O range 0x2f8-0x2ff
> pcic: I/O win 0 flags 11 2f8-2ff
> pcic: I/O win 0 flags 1 2f8-2ff
> sio4 at port 0x2f8-0x2ff irq 10 slot 0 on pccard0
> pcib2: device sio4 requested decoded I/O range 0x2f8-0x2ff
> pcic: I/O win 0 flags 11 2f8-2ff
> sio4: type 16550A
> sio4: Forcing IRQ to 10
> sio4: unable to activate interrupt in fast mode - using normal mode
> 
> I tried to use
> device cbb
> device pccard
> device cardbus
> but its don't work for me:
> pcib2: device pccard0 requested decoded memory range 0x88000000-0xffffffff
> CIS is too long -- truncating
> pccard0: Card has no functions!
> cbb0: PC Card card activation failed
> 
> Also I tried to change hw.cbb.start_memory to 0xd0202000,
> but it don't help me.

hw.cbb.start_memory ust be greater than the actual DRAM on the
system. So if you have 512 MB of memory (as I do), a working value will
be at least 0x20000000. It might need to be higher. For 768M, start at
0x30000000 and if you have 1 GB, start at 0x40000000. 

I have 512 MB and set it at 0x20000000. I see agp at 0xe0000000, cbb0 at
0x50000000, cbb1 at 0x51000000 and fxp0 at 0xd0200000. I I tried
starting at 0xd0202000, I would not have space for everything.

You may also need hw.pci.allow_unsupported_io_range="1".
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman at es.net			Phone: +1 510 486-8634


More information about the freebsd-mobile mailing list