|
I have the board at91sam9g20ek with PHY Davicom DM9161AEP.
with kernel 2.6.30 I had the problem:
kernel BUG at drivers/net/macb.c:442! Unable to handle kernel NULL pointer dereference at virtual address 00000000 pgd = c79e4000 [00000000] *pgd=279fa031, *pte=00000000, *ppte=00000000 Internal error: Oops: 817 [#1] Modules linked in: vin_mod dss_mod k16_mod scsi_wait_scan CPU: 0 Not tainted (2.6.30 #40) PC is at __bug+0x1c/0x28 LR is at __bug+0x18/0x28 pc : [<c002974c>] lr : [<c0029748>] psr: 60000013 sp : c79e1e58 ip : fefff200 fp : 00000040 r10: 00000100 r9 : c78ebb38 r8 : 00000121 r7 : 000000d6 r6 : c78ebb00 r5 : c782e4e0 r4 : 00000120 r3 : 00000000 r2 : 80000013 r1 : 000019c1 r0 : 00000029 Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user Control: 0005317f Table: 279e4000 DAC: 00000015 Process elgatos (pid: 497, stack limit = 0xc79e0268) Stack: (0xc79e1e58 to 0xc79e2000) 1e40: 0000011f c0185ee8 1e60: 00000040 00000000 c79e0000 c78ebb38 00000040 00000100 0000012c c031410c ...... ......
before that ifconfig showed me the errors :
eth0 Link encap:Ethernet HWaddr 00:12:34:56:09:8F inet addr:192.100.101.254 Bcast:192.100.101.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:170240 errors:82 dropped:0 overruns:82 frame:0 TX packets:188302 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:31242471 (29.7 MiB) TX bytes:40814141 (38.9 MiB) Interrupt:21 Base address:0x4000
when booting the kernel was the message from the driver macb :
MACB_mii_bus: probed eth0: Atmel MACB at 0xfffc4000 irq 21 (00:12:34:56:10:8f) eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=ffffffff:00, irq=-1)
I switched to kernel 2.6.33 (with patch from linux4sam), kernel no longer crashes, but overruns errors are present and their number increases with increasing traffic across the LAN. I connected LAN to the switch 10 megabits and got a connection 10/Full - the errors disappeared overruns. But set the media to force 10/Full mode on my board I could not:
mii-tool : SIOCGMIIPHY on 'eth0' failed: Operation not supported no MII interfaces found
QUESTION : MII mode is not supported by the kernel driver ???????????? anyone faced with such problemma?????????????????????????? please help !!!
|