cvs commit: src/sys/dev/sk if_sk.c if_skreg.h

Maxim Sobolev sobomax at FreeBSD.org
Fri Apr 28 17:23:29 UTC 2006


Joe Marcus Clarke wrote:
> On Fri, 2006-04-28 at 03:17 +0000, Maxim Sobolev wrote:
>> sobomax     2006-04-28 03:17:37 UTC
>>
>>   FreeBSD src repository
>>
>>   Modified files:
>>     sys/dev/sk           if_sk.c if_skreg.h 
>>   Log:
>>   Add some incomplete support for Marvell Yukon EC controllers based on
>>   OpenBSD changes. With these changes, PHY part of the driver becomes
>>   functional (it senses media changes and negotiates speed just fine),
>>   previously it just hang with no PHY message, but no data goes through
>>   interface (error message is "can not stop transfer of Tx/Rx descriptor).
>>   
>>   Hopefully somebody with more clue/free time will be able to pick up
>>   after me.
> 
> Maxim, I patched if_sk in a similar fashion, and got the same errors you
> did.  I took a look at the Linux sky2 driver which works with the
> MacBook Yukon-II, and the Yukon-II chipset is very different from the
> Yukon.
> 
> However, I did find that the SysKonnect-provided Yukon-II driver works
> quite well (see
> http://lists.freebsd.org/pipermail/freebsd-net/2006-January/009543.html).  Building the driver was easy.  I just untarred the source to /usr/src/sys/dev/myk, and did a make all.  With this driver, I was able to get the wired ethernet in the MacBook to pass traffic.

Thanks for the pointer, I will try that. It is not a big issue for me, 
though, since ath works perfectly just OOB.

> BTW, thanks for your work on the reboot issue.  Oh, and are you using

Don't mention it. The other big and still unresolved issue is getting 
SMP working. I have tried to debug it and as long as I can tell second 
core for some reason doesn't start at all. I have even attempted to 
borrow second CPU kick in magic from xnu (Darwin kernel), but the result 
is the same. My current guess is that since it's mobile processor, the 
2nd core may be turned off for power saving purposes and needs some 
(ACPI?) hohomagic to power it up. Unfortunately I can't find any 
documentation on the processor to check. It is interesting that both 
Linux and Windows don't have any problems with getting it working OOB.

> Alt at boot-time to select FreeBSD, or have you done some EFI magic to
> make FreeBSD the default boot partition?

The former. I think it should be possible to change partition type to be 
FAT temporarily, switch default operating system via MacOS control panel 
(see Boot Camp docco for details) and then switch is back partition type 
to FreeBSD, but I have not tried that.

-Maxim


More information about the cvs-src mailing list