Author: Demetris

Openwrt Designated Driver (Trunk) Build for Orange Pi PC/Pi Plus

[Copy link]

2

threads

29

posts

112

credits

Registered member

Rank: 2

credits
112
Published in 2016-2-21 10:22:26 | Show all floors
Edited by boob at 2016-2-21 12:25

Link to download 2 files I modifiy : http://www.filedropper.com/dwmac-sunxictar

then "make / make -j 2 / make V=s"
Hope it's help to win ethernet support for a perfect headless mainline OS


Warning : sorry i edited archive, i was do a mistake about interruption (forget -32 the value seeing in datasheet), so don't try older (1Hour) link but this one :  
http://www.filedropper.com/dwmac-sunxictar
I add one option (2 lines as commenting) to reset PHY at 25mhz instead 24mhz like in stmmac driver #define

2

threads

29

posts

112

credits

Registered member

Rank: 2

credits
112
Published in 2016-2-21 10:37:09 | Show all floors
Edited by boob at 2016-2-21 12:19
  1. //ADD
  2. gmac: ethernet@01c30000 {
  3.             compatible = "allwinner,sun7i-a20-gmac", "snps,dwmac";
  4.             reg = <0x01c30000 0x1054>;
  5.             interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
  6.             interrupt-names = "macirq";
  7.             clocks = <&bus_gates 17>;
  8.             clock-names = "stmmaceth";
  9.             //Maybe init phy at 25mhz after reset? (defaut CLK_SEL 24mhz = 1)
  10.             //resets = <&ahb_rst 17>, <&ahb2_rst 2>, <&emac_clk_reg_rst 16>, <&emac_clk_reg_rst 18>;
  11.             //reset-names = "stmmaceth", "ephyrst", "pwrup", "clk_sel_25mhz";
  12.             resets = <&ahb_rst 17>, <&ahb2_rst 2>, <&emac_clk_reg_rst 16>;
  13.             reset-names = "stmmaceth", "ephyrst", "pwrup";
  14.             snps,pbl = <2>;
  15.             snps,fixed-burst;
  16.             snps,force_sf_dma_mode;
  17.             status = "disabled";
  18.             #address-cells = <1>;
  19.             #size-cells = <0>;
  20.         };
Copy code

1

threads

25

posts

216

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
216
 Author| Published in 2016-2-23 00:23:51 from mobile | Show all floors
Hi sorry for late response. Did you manage to fix ETH driver?

1

threads

25

posts

216

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
216
 Author| Published in 2016-2-23 00:25:21 from mobile | Show all floors
Edited by Demetris at 2016-2-23 02:57

Here is the source link
https://github.com/Ntemis/openwrtcc/commits/DD
Sunxi support is in DD openwrt branch you can sent me a pull request.

2

threads

29

posts

112

credits

Registered member

Rank: 2

credits
112
Published in 2016-2-23 13:21:37 | Show all floors
Thank for testing commit but sorry error typo

Sorry sure I done an mistake here :
//ADD - EMAC Clock Register defaut value 0x58000 - need reset bit 16 (power up)
                emac_clk_reg_rst: reset@01c30000 {
                        #reset-cells = <1>;
                        compatible = "allwinner,sun6i-a31-ahb1-reset";
                        reg = <0x01c30000 0x4>;
                };

please remplace it by
//ADD - EMAC Clock Register defaut value 0x58000 - need reset bit 16 (power up)
                emac_clk_reg_rst: reset@01c00030 {
                        #reset-cells = <1>;
                        compatible = "allwinner,sun6i-a31-ahb1-reset";
                        reg = <0x01c00030 0x4>;
                };

I follow this talk https://groups.google.com/forum/#!topic/linux-sunxi/v7Gd8Qn1W-M about ethernet support. Hope someone will find solution before i receive my board

2

threads

29

posts

112

credits

Registered member

Rank: 2

credits
112
Published in 2016-2-23 13:56:50 | Show all floors
There is some news on ethernet support : Labbe Correntin has release his work on ethernet sun-i8. Look like a new driver to test
https://groups.google.com/forum/#!topic/linux-sunxi/

3

threads

39

posts

191

credits

Registered member

Rank: 2

credits
191
Published in 2016-3-4 17:44:03 | Show all floors
Edited by yo2ldk at 2016-3-4 18:13

Hello Demetris,

   thank you for your effort, i wait this image for long time
i have OPI PC and can't wait to try it; if WIFI is active will be perfect!
if I put wifi dongle, can I use as wifi router??  
or is needed both, lan and wifi for that?

1

threads

25

posts

216

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
216
 Author| Published in 2016-3-4 21:55:49 | Show all floors
You can use any supported usb wifi dongle with an usb to ethernet or one wifi to connect to and other to act as Access Point or you can wait until lan driver is fixed.
All i can say is this board flies with openwrt, is very fast as it has more power and ram from many of the top of the line available commercial routers. ;)

3

threads

39

posts

191

credits

Registered member

Rank: 2

credits
191
Published in 2016-3-5 00:04:55 | Show all floors
Edited by yo2ldk at 2016-3-5 01:39

my opi pc not boot, make it sd with win32 diskimager
my wifi adapters seems to not work (8188cu), I cannot access 192.168.1.1
I have somewhere an usb to rj45 adapter, but not find it yet
what usb port is working, all ore only one?
later edit:

I foud rj45 to usb adapter, i write image on sd with linux,
led link is ok but  page 192.168.1.1 is not available..   
wifi still not good.


any tips?

3

threads

39

posts

191

credits

Registered member

Rank: 2

credits
191
Published in 2016-3-5 01:55:20 | Show all floors
very good board, very very poor software support....   
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list