sk0: not freezing up, looking good!! but....

Joshua Tinnin krinklyfig at spymac.com
Sun Jan 23 18:50:27 PST 2005


On Sunday 23 January 2005 03:13 pm, "T.F. Cheng" <tfcheng at yahoo.com> 
wrote:
> Hi,
>    I also have trouble with sk0 driver on my 5.3/i386,
> after a recent search and a cvsup to 5.3-STABLE source
> (01/23/05), config and make depend all install my
> kernel, I was able to boot up the machine with the
> onboard NIC device turned on and without freezing the
> whole thing up, this is good.... really good....
>    however, it still can't do DHCP

Do you have

device		bpf

in your kernel config? dhclient(8) needs it.

>    what I did was I 
> plugined the cable, killed the oroginal dhclient
> process, and reissued one by "/sbin/dhclient sk0", it
> took about a few minute before it gave up the prompt,
>
> and there was no ip address, here is what I am now:
> >ifconfig
>
> sk0:
> flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu
> 1500
>         inet6 fe80::211:2fff:fee0:3d61%sk0 prefixlen
> 64 scopeid 0x2
>         inet 0.0.0.0 netmask 0xff000000 broadcast
> 255.255.255.255
>         ether 00:11:2f:e0:3d:61
>         media: Ethernet autoselect (none)
>         status: no carrier
>
> >dmesg
>
> skc0: <Marvell Gigabit Ethernet> port 0xa800-0xa8ff
> mem 0xfab00000-0xfab03fff irq 10 at device 10.0 on
> pci0
> skc0: Yukon Gigabit Ethernet 10/100/1000Base-T Adapter
> sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
> sk0: Ethernet address: 00:11:2f:e0:3d:61
> miibus0: <MII bus> on sk0
> e1000phy0: <Marvell 88E1000 Gigabit PHY> on miibus0
> e1000phy0:  10baseT, 10baseT-FDX, 100baseTX,
> 100baseTX-FDX, 1000baseTX-FDX, auto
> xl0: <3Com 3c905-TX Fast Etherlink XL> port
> 0xb000-0xb03f irq 10 at device 12.0 on pci0
> miibus1: <MII bus> on xl0
> nsphy0: <DP83840 10/100 media interface> on miibus1
> nsphy0:  10baseT, 10baseT-FDX, 100baseTX,
> 100baseTX-FDX, auto
> xl0: Ethernet address: 00:60:97:d5:2a:85
>
> (xl0 is the NIC i am using as substitute now)
>
>   look like the sk0 is recognizing the device well,
> and thing runs smoothly, really appreciate what people
> have done for sk0, so sorry I don't know how to code.
> And I was trying to identify which version of if_sk.c
> I have now, in the file, it marked:
> ("$FreeBSD: src/sys/pci/if_sk.c,v 1.83.2.6 2005/01/21
> 00:50:51 mlaier Exp $") so I hoped this is the most
> updated. And after cvsuping the source, I only did my
> kernel, not the "world", is this enough? thank you for
> your help.

Actually, if you upgraded your source from 5.3-RELEASE to STABLE, you 
definitely should rebuild world then the kernel, install kernel, world, 
etc. IOW, go though the full procedure outlined in the handbook. 
Although it's possible to rebuild just the kernel or parts of the world 
in some circumstances, you should rebuild the whole thing if you're 
updating more than some isolated parts. The source you have now likely 
requires the world and kernel be built, although I cannot say for sure 
(am not tracking STABLE), but this is by far the safest way.

- jt


More information about the freebsd-questions mailing list