Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
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
Post time 2016-2-21 10:22:26 | Show all posts
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
Post time 2016-2-21 10:37:09 | Show all posts
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 the Code

1

Threads

25

Posts

216

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
216
 Author| Post time 2016-2-23 00:23:51 From the mobile phone | Show all posts
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| Post time 2016-2-23 00:25:21 From the mobile phone | Show all posts
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
Post time 2016-2-23 13:21:37 | Show all posts
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
Post time 2016-2-23 13:56:50 | Show all posts
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

189

Credits

Registered member

Rank: 2

Credits
189
Post time 2016-3-4 17:44:03 | Show all posts
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| Post time 2016-3-4 21:55:49 | Show all posts
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

189

Credits

Registered member

Rank: 2

Credits
189
Post time 2016-3-5 00:04:55 | Show all posts
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

189

Credits

Registered member

Rank: 2

Credits
189
Post time 2016-3-5 01:55:20 | Show all posts
very good board, very very poor software support....   
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-8-21 20:18 GMT+8 , Processed in 0.031094 second(s), 19 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list