From owner-freebsd-mobile Wed Feb 6 7:44:51 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from eos.telenet-ops.be (eos.telenet-ops.be [195.130.132.40]) by hub.freebsd.org (Postfix) with ESMTP id 1F39837B422 for ; Wed, 6 Feb 2002 07:44:14 -0800 (PST) Received: from rabbit (D576490F.kabel.telenet.be [213.118.73.15]) by eos.telenet-ops.be (Postfix) with SMTP id 4D1752045D for ; Wed, 6 Feb 2002 16:30:42 +0100 (CET) Message-ID: <002501c1af25$29331970$0700000a@rabbit> From: "Rabbit" To: Subject: How to find the correct offset for the MAC-address of a NE2000-compatibel PCMCIA NIC? Date: Wed, 6 Feb 2002 16:44:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 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: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1100-0x110f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xf300-0xf31f irq 10 at device 7.2 on pci0 usb0: 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: port 0x1400-0x140f at device 7.3 on pci0 pcic0: 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: on pcic0 pcic1: 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: on pcic1 pci0: (vendor=0x104c, dev=0x8019) at 13.0 irq 10 chip2: port 0x3100-0x31ff irq 5 at device 16.0 on pci0 orm0: