Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
15-inch powerbook g4 (albook) pcmcia problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
kambroff
n00b
n00b


Joined: 06 Jul 2004
Posts: 6
Location: Cameron Park, CA

PostPosted: Tue Jul 06, 2004 11:20 pm    Post subject: 15-inch powerbook g4 (albook) pcmcia problems Reply with quote

Hello everyone, thankyou for reading this post.

I have been trying to get a Linksys WPC11 v.3.3 that has been lent to me working on my powerbook. I'm having trouble getting pcmcia to work at all. I have never had a system with pcmcia or cardbus, so I could be missing something trivial. First, here is some info about my system.

Kernel 2.6.7
gentoo-release Gentoo Base System version 1.5.1
pcmcia-cs version 3.2.7-

'cardctl status' looks normal
Code:
$ cardctl status
Socket 0:
  3.3V 16-bit PC Card
  function 0: [ready]



'cardctl info' doesn't as the manfid is wrong
Code:
$ cardctl info
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255



and 'cardctl ident' doesn't work either
Code:
$ cardctl ident
Socket 0:
  no product info available


And when I 'cardctl insert', the system log reads...
Code:
cardmgr[6878]: socket 0: Anonymous Memory


So cardmgr thinks that every card is a storage device.

According the Linux PCMCIA HOWTO at the end of this link...
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/PCMCIA-HOWTO.html#ss3.5
My problem (as far as I can tell) is the result of invalid memory and port ranges in /etc/pcmcia/config.opts. I have searched the net high and low for valid ranges (other than the defaults), and none of them have worked out. Here is my config.opts file with some of the values I have tried. About half of the caused pcmcia_core to Oops.
Code:
#
# /etc/pcmcia/config.opts
#
#----------------------------------------------------------------------
#

## orininal values from portage
#include port 0x1000-0x1fff
#include memory 0x90000000-0x9003ffff

## values from pcmcia-cs.sf.net faq
# include port 0x100-0x4ff, port 0x1000-0x17ff
# include memory 0x80000000-0x80ffffff

## values I got from `lspci -v`
## Memory window 0: 90000000-9ffff000 (prefetchable)
## Memory window 1: f3200000-f33ff000
# include port 0x100-0x4ff, port 0x1000-0x17ff
# include memory 0x90000000-0xf33ff000

## http://lists.samba.org/archive/linux/2002-April/003044.html
# include port 0x100-0x4ff, port 0x1000-0x17ff
# include memory 0xa7000000-0xa7ffffff

## http://list.debian.org/debian-powerpc/2004/04/msg00643.html
# include memory 0xa0003000-0xa0ffffff
# include port 0x9100-0x9fff
# -------------------------------------------------------
# include memory 0x90000000-0xA0ffffff
# include port 0x100-0x4ff, port 0x800-0x8ff, port 0xc00-0xcff

## from http://kayz.org/kay/titanium/config.opts
include port 0x100-0x4ff, port 0x1000-0x17ff
include memory 0x80000000-0x80ffffff
exclude irq 4
exclude irq 7


Is my diagnosis correct? If so, do any of you with albooks have correct values? If not, what am I missing. It is possible that I missed something else. In my kernel I have included all the necesarry drivers

Code:
# PCMCIA/CardBus support
CONFIG_PCMCIA=m
CONFIG_PCMCIA_PROBE=y
CONFIG_YENTA=m
CONFIG_NET_WIRELESS=y
CONFIG_ISA=y
CONFIG_ISAPNP=y


Do you have any help for a hopeless pcmcia newbie?
Back to top
View user's profile Send private message
SeJo
Retired Dev
Retired Dev


Joined: 08 Oct 2002
Posts: 298
Location: Belgium

PostPosted: Wed Jul 07, 2004 6:31 am    Post subject: Reply with quote

hi there,


i have a G4 powerbook aluminum also here are my config.opts details:
Code:

include port 0x800-0x8ff
include memory 0x80080000-0x8008ffff

works like a charm...
_________________
"I am not bound to please thee with my answers."
Back to top
View user's profile Send private message
kambroff
n00b
n00b


Joined: 06 Jul 2004
Posts: 6
Location: Cameron Park, CA

PostPosted: Wed Jul 07, 2004 8:31 pm    Post subject: hmm... still doesn't work Reply with quote

Thankyou for the response SeJo!

That seemed to solve the problem at first, as `cardctl [ ident | info ]` now returns a sane value for manfid, but cannot get the Product info. Now when I insert the card, cardmgr barfs into the syslog...

Code:
$ su -c "cardctl eject; cardctl insert; tail /var/log/messages"
su(pam_unix)[15228]: session closed for user root
su(pam_unix)[15232]: session opened for user root by kyle(uid=1000)
prism2_cs.o: 0.2.1-pre17 Unloaded
p80211.o: 0.2.1-pre17 Unloaded
cardmgr[7981]: unsupported card in socket 0
cardmgr[7981]:     no product info available
cardmgr[7981]:     manfid: 0x3021, 0x0024


At first I thought that it didn't recognize the card because the modules were unloaded. But if I load them and the insert the card, i get the same old message...

Code:
cardmgr[7981]: socket 0: Anonymous Memory
cardmgr[7981]: bind 'memory_cs' to socket 0 failed: Invalid argument


Have any ideas? What could I be missing? It's probably something stupid. I'll dig around some more.

thankyou,
-kyle
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum