November 18, 2019, 03:49:25 am

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


sunxi-gmac on cb2

Started by con, December 06, 2013, 03:51:41 am

Previous topic - Next topic

con

Thought i'd share this with you.

I tried using the GMAC drivers on the CB2, which should work, after some attempts. There is just the gmac portion in the fex files missing and with a recent (e.g. 3.4.67) version of the sunxi-linux kernel you should be able to compile the gmac module and load it.

note: do not include the emac driver in the kernel and do not load it!

Fex part for CB2:

[gmac_para]
gmac_used = 1
gmac_rxd3 = port:PA00<5><default><default><default>
gmac_rxd2 = port:PA01<5><default><default><default>
gmac_rxd1 = port:PA02<5><default><default><default>
gmac_rxd0 = port:PA03<5><default><default><default>
gmac_txd3 = port:PA04<5><default><default><default>
gmac_txd2 = port:PA05<5><default><default><default>
gmac_txd1 = port:PA06<5><default><default><default>
gmac_txd0 = port:PA07<5><default><default><default>
gmac_rxclk = port:PA08<5><default><default><default>
gmac_rxerr = port:PA09<5><default><default><default>
gmac_rxdV = port:PA10<5><default><default><default>
gmac_mdc = port:PA11<5><default><default><default>
gmac_mdio = port:PA12<5><default><default><default>
gmac_txen = port:PA13<5><default><default><default>
gmac_txclk = port:PA14<5><default><default><default>
gmac_crs = port:PA15<5><default><default><default>
gmac_col = port:PA16<5><default><default><default>
gmac_reset = port:PA17<1><default><default><default>

ratin

does cb2 have a gmac (gigabit mac) to use the gmac driver on?

rose28357

No, CB2 has a 100 MBit interface.
Bug the gmac driver contains also an emac driver for 100MBit. So it is a universal driver for CB2 and CT.

ratin

Quote from: rose28357 on June 16, 2014, 08:16:38 pm
No, CB2 has a 100 MBit interface.
Bug the gmac driver contains also an emac driver for 100MBit. So it is a universal driver for CB2 and CT.


Gotcha, I saw "gmac driver disabled" message in the kernel, and did not see the gmac entries in my fex. Perhaps adding only the gmac related fex entries described in this thread will load the driver.

ratin

Quote from: ratin on June 17, 2014, 04:18:01 am
Quote from: rose28357 on June 16, 2014, 08:16:38 pm
No, CB2 has a 100 MBit interface.
Bug the gmac driver contains also an emac driver for 100MBit. So it is a universal driver for CB2 and CT.


Gotcha, I saw "gmac driver disabled" message in the kernel, and did not see the gmac entries in my fex. Perhaps adding only the gmac related fex entries described in this thread will load the driver.


Just updating here, although I got sunxi_gmac driver to load, its unable to get a DHCP address. I am not so thrilled to get this working anyway since it does not buy anything to use the gmac driver on a CB2 which has the 10/100 mbps