Date: Wed, 6 Feb 2002 16:44:27 +0100 From: "Rabbit" <rabbit@kotnet.org> To: <freebsd-mobile@freebsd.org> Subject: How to find the correct offset for the MAC-address of a NE2000-compatibel PCMCIA NIC? Message-ID: <002501c1af25$29331970$0700000a@rabbit>
next in thread | raw e-mail | index | archive | help
First, sorry for the long mail ;-)
I liked to do a net-install of FreeBSD 4.5 release on my laptop using my
Longshine LCS-8538TX PCMCIA NIC, which is NE2000-compatible.
First, the install floppy paniced :-(
I got that solved using the advice given in the 4.4 release notes under
pccard support... wonder why this advice was removed with the 4.5 release,
since it still applies. ;-)
Anyway, my PCMCIA-controller got detected allright (it's a TI-1225, which is
supported), but my card wasn't... :(
So I did a minimal install from a local FAT-partition, so I could start
messing about a bit ;-)
I got the card to work by adding the following entry to /etc/pccard.conf
# Longshine LCS-8538TX
card "Dual Speed" "10/100 Port Attached PC Card"
config auto "ed" ?
insert /etc/pccard_ether $device start
remove /etc/pccard_ether $device stop
This works, and gives me the following output when I plug in the card:
Feb 6 16:22:17 pccardd[146]: pccardd started
Feb 6 16:22:20 /kernel: pccard: card inserted, slot 1
Feb 6 16:22:26 pccardd[146]: Card "Dual Speed"("10/100 Port Attached PC
Card") [1.0] [ ] matched "Dual Speed" ("10/100 Port Attached PC Card")
[(null)] [(null)]
Feb 6 16:22:31 /kernel: ed1 at port 0x300-0x31f irq 11 slot 1 on pccard1
Feb 6 16:22:31 /kernel: ed1: address 01:d4:ff:03:00:20, type NE2000 (16
bit)
Feb 6 16:22:31 pccardd[146]: ed1: Dual Speed (10/100 Port Attached PC
Card) inserted.
The only problem is that the mac-address given isn't the correct one (which
is printed on the card, and is also given by windows and linux)
So I probably just have to add an 'ether 0x???' line to my pccard.conf file,
though is there a way I can find the offset I'm looking for? Like maybe I
could dump the card's memory and search for the correct address in it? If
that's possible, how do I do it?
I tested network connectivity, hardwiring the correct mac-address, and
everything works fine. But hardwiring is the 'dirty' way, and I'd like to
use the 'clean' way, if possible ;-)
And another question: My current installation is a bit messed up (my fault
:p), so once I got this all to work properly, I'd like to do a fresh
install. Is it possible to customize the mfsroot.flp floppy so that my new
pccard.conf file is in there, and so I could do a net install? If so, how do
I do this?
Thanks very much!
- rabbit
Oh, and if it may be helpful, here's my dmesg:
And you'll probably notice that pccardd isn't started automatically. I did
that on purpose so that I could still boot if I totally screwed up my config
(since I read somewhere that a wrong pccard.conf can cause a system hang...
;-))
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002
murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC
Timecounter "i8254" frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (851.93-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x68a Stepping = 10
Features=0x387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,
PAT,PSE36,PN,MMX,FXSR,SSE>
real memory = 268369920 (262080K bytes)
config> di sn0
config> di lnc0
config> di ie0
config> di fe0
config> di cs0
config> di bt0
config> di aic0
config> di aha0
config> di adv0
config> q
avail memory = 256450560 (250440K bytes)
Preloaded elf kernel "kernel" at 0xc0496000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc049609c.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 8 entries at 0xc00fe840
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI model 4c42 graphics accelerator> at 0.0
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x1100-0x110f at device 7.1 on
pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xf300-0xf31f irq 10
at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ums0: Logitech USB Mouse, rev 1.10/6.20, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
chip1: <Intel 82371AB Power management controller> port 0x1400-0x140f at
device 7.3 on pci0
pcic0: <TI PCI-1225 PCI-CardBus Bridge> at device 10.0 on pci0
pcic0: PCI Memory allocated: 0x44000000
pcic0: Polling mode
pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC
pci int + CSC serial isa irq]
pccard0: <PC Card bus (classic)> on pcic0
pcic1: <TI PCI-1225 PCI-CardBus Bridge> at device 10.1 on pci0
pcic1: PCI Memory allocated: 0x44001000
pcic1: Polling mode
pcic1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC
pci int + CSC serial isa irq]
pccard1: <PC Card bus (classic)> on pcic1
pci0: <unknown card> (vendor=0x104c, dev=0x8019) at 13.0 irq 10
chip2: <ESS Technology Maestro 2E Audio controller> port 0x3100-0x31ff irq 5
at device 16.0 on pci0
orm0: <Option ROMs> at iomem 0xc0000-0xcffff,0xe2000-0xe2fff,0xe3000-0xe3fff
on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/15 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ad0: 19077MB <FUJITSU MHN2200AT> [38760/16/63] at ata0-master UDMA33
acd0: CDROM <CRN-8241B> at ata1-master using PIO4
Mounting root from ufs:/dev/ad0s3a
pccard: card inserted, slot 1
logo_saver: no suitable graphics mode
module_register_init: MOD_LOAD (logo_saver, c16eba58, 0) error 19
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002501c1af25$29331970$0700000a>
