Date: Sat, 18 Oct 2003 17:30:53 +0800 From: "Zhang Weiwu" <weiwuzhang@hotmail.com> To: freebsd-mobile@freebsd.org Subject: realtek cardbus drive? Message-ID: <Law11-F123EkCNYOtbf0000b12c@hotmail.com>
next in thread | raw e-mail | index | archive | help
Hello. I just get a Realtek 8193-chip based cardbus NIC, the pccardd won't recognize it. I am on 4.8 RC2 on Thinkpad R30. Check the /etc/default/pccard.conf, I found no card is using the Realtek drive (rl0). I just checked out the newest /etc/default/pccard.conf, so far there isn't any card in it uses the rl. I thought I can simple write a pccard.conf file, so I #pccardc dumpcis Tuple: #1 code = 0xff (Terminator) Length = 0 So it seems the card don't have CIS. Here is the INSTALL.TXT shipped with the card, perhaps is helpful. I have the shipped source code. It is a bit too larg (50K) for mailing list. Realtek CardBus Ethernet Card Installation on Linux 1. Compile the source code : ->Copy the source code rtl8139.c (ver 1.08 above) to a directory and execute "gcc -DCARDBUS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c rtl8139.c -o realtek_cb.o -I/usr/src/linux/pcmcia-cs-3.0.9/include/" The directory "pcmcia-cs-3.0.9" stands for the card service version you use. Please change it to the version on your system in order to include proper .h file. The final file is realtek_cb.o 2. Copy driver : ->Copy the file "realtek_cb.o" to "/lib/modules/2.2.14-5.0/pcmcia" 3. Edit config: ->Add 5 lines to the file "/etc/pcmcia/config" # # Device driver definitions # device "realtek_cb" (==>Add 1/5) class "network" module "cb_enabler", "realtek_cb" (==>Add 2/5) : : # # CardBus Cards # card "Realtek CardBus Ethernet Card" (==>Add 3/5) manfid 0x0000, 0x024C (==>Add 4/5) bind "realtek_cb" (==>Add 5/5) The values 0x0000, 0x024C are JEDEC ID and can be read by typing "cardctl ident" on console with one card on socket. 4. Edit linuxconf ->Type "linuxconf" and choose "Config"-->"Networking"-->"Client tasks"--> "Basic host information". Select an adapter, enable it, and type "realtek_cb" on "Kernel module" and "eth0" (or eth1, eth2) on "Net device". Click on "Accept" button and "Act/change" button. 5. Restart the computer. 6. More information about kernel compile: http://metalab.unc.edu/mdw/HOWTO/Kernel-HOWTO.html More information about install: man pcmcia _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Law11-F123EkCNYOtbf0000b12c>