NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: NetBSD 9.0 not properly configuring NIC
Hi Masanobu and sorry for the delay. I had issues (again) with the
mailserver.
On mar 02 14:58, SAITOH Masanobu wrote:
> Could you test with ukphy by removing atphy from your kernel?
I did as you suggested, commenting the line
atphy* at mii? phy ? # Attansic/Atheros PHYs
in /usr/src/sys/arch/amd64/conf/GENERIC, recompiled and it works!
Here you can find:
- new dmesg, https://pastebin.com/UyEqRFs7
- new `ifconfig -a', https://pastebin.com/xHq2GZeJ
For me it's ok this way. If there is something else that I can do,
please let me know.
If instead it's ok for you too, could you please include this
modification in the kernel, so that -current and the next versions
already have it?
> Thanks in advance.
Thanks to you for the suggestion,
Rocky
P.S.1
Some considerations/doubts:
- Just out of curiosity, was it possible (as an alternative) to disable
`atphy' with `userconf disable atphy' in boot(8)? I tried it in a VM
with wm(4) NIC, which uses makphy(4): booting with `userconf disable
makphy', ukphy(4) has been used instead of makphy(4) (and it works).
- nfe(4) lists several mii(4) drivers (hope that they can be called this
way): `ciphy', `icsphy', `makphy', `rlphy', but not `atphy'. So, I
wonder: why `atphy' was called?
- I am not sure about this, but according to the motherboard manual
<https://dlcdnets.asus.com/pub/ASUS/mb/socketAM2/M2N-MX_SE_Plus/E3353_M2N-MX_SE_PLUS.zip>
this NIC should also support 1 Gbps transmission, so I guess 1000baseTX,
but the dmesg lists only 10base* and 100base*.
P.S.2
If anyone is interested, the atphy(4) driver has been excluded from the
kernel as follows. I downloaded the NetBSD sources (kernel, tools,
...) for NetBSD 9.0 release using the procedure in this Chapter:
<http://www.netbsd.org/docs/guide/en/chap-fetch.html>
with `cvs checkout -r netbsd-9-0-RELEASE -P src'.
Then, as specified in
<http://www.netbsd.org/docs/guide/en/chap-kernel.html>
I considered the GENERIC kernel configuration file for my architecture
(amd64):
/usr/src/sys/arch/amd64/conf/GENERIC
I copied it to a new file, MGENERIC and looked for `atphy' inside the
file. The only line with this name is the one mentioned above:
atphy* at mii? phy ? # Attansic/Atheros PHYs
I commented it, and then compiled the kernel using the new configuration
file:
./build.sh -j 3 -U tools kernel=MGENERIC
(`-j' is related to the number of threads, it may be 50 % higher than the
number of cores, which in my case is 2).
Then, I installed and used the new kernel as instructed in par. 32.6 of the
above chapter page.
This same procedure can be followed to remove/tune any other feature in
the kernel configuration file (GENERIC, or any other in the directory).
Home |
Main Index |
Thread Index |
Old Index