View: 36085|Reply: 20

OP PC OpenWRT Mainline

[Copy link]

2

threads

29

posts

112

credits

Registered member

Rank: 2

credits
112
Published in 2016-6-2 18:17:06 | Show all floors |Read mode
Edited by boob at 2016-6-2 18:18

Hello

I try to compile Openwrt Buildroot with linux4.6 and the smooth driver for ethernet, thanks to linux-sunxi team and also Others I forget for sure.

Here an image (10MB) for testing on OP PC... http://www.filedropper.com/openw ... sdcard-vfat-ext4img

Working :
-USB ECHI/OCHI on 3 port host.
usb mass storage mounting in ext4 ok.
usb wireless RT5370 Wireless Adapter ok.
usb ethernet Realtek R8152 ok.
usb PL2303 Serial Port ok.
usb 3G modem Qualcomm, Inc. Siemens SG75 ok.

- I2C x 3 + 1 SPIdev in /dev/ thanks to MartinAyotte patch. Not tested.
- UART x 2  
I create an "pinout-helper" property in device tree to find faster the right pins from your user program
cat /sys/firmware/devicetree/base/soc/i2c@01c2ac00/pinout-helper : SCK->A11,SDA->A12
An other for RPI standard port pin number is an idea.

- Ethernet EMAC internal Phy work verry fine, i notice the OP PC need to be connected to an active ethenet cable (to a computer or router) to succes driver initialisation.
After no problem with plug unplug...30% cpu usage on 1 core for BW iperf > 90Mbits - very good work sunxi team


Not working :
- lsmod segment fault
- USB audio sound card
- audio codec sound card
- usb musb otg

OP PC become an usable device for sure and finaly a good way to learn linux as you can

0

threads

3

posts

25

credits

Novice

Rank: 1

credits
25
Published in 2018-4-24 21:07:54 | Show all floors
Edited by wojtal at 2018-4-24 21:14
boob replied at 2016-6-21 19:02
Hello

new update with fixed eth at boot without network cable.


COOL! but the link is not working.

1

threads

9

posts

55

credits

Registered member

Rank: 2

credits
55
Published in 2016-6-23 22:16:33 from mobile | Show all floors
I still have one quesion.Where do you find linux4.6.1 kernel?In sunxi/for-next?I cannot find it.

1

threads

9

posts

55

credits

Registered member

Rank: 2

credits
55
Published in 2016-6-13 07:40:26 from mobile | Show all floors
Good!I finally have Linux 4.6 kernel to use.I think if it has LUCI,it'll be better.

1

threads

9

posts

55

credits

Registered member

Rank: 2

credits
55
Published in 2016-6-13 12:48:39 | Show all floors
Can you give me your .config while compiling the kernel?I want to try to compile too.

2

threads

29

posts

112

credits

Registered member

Rank: 2

credits
112
 Author| Published in 2016-6-21 19:02:38 | Show all floors
Edited by boob at 2016-6-21 19:06

Hello

new update with fixed eth at boot without network cable.
lsmod, insmod fixed.
GCC and G++ 5.2 MUSL tested onbord (for compile small program C and C++ ) with ldd utility
FFmpeg, FFServer good for handle RSTP steam.
NodeJS 4.4 ready.
USB audio Cmedia work fine.
ntfs-3g mount ready.
updatedb, locate utility.
mktorrent, and others i forget...

Config for linux4.6 and buildroot as sample in archive...

SD image 450MB to fit in 512mb sdcard (20mb to download)

http://www.filedropper.com/openwrth3-oppctar

2

threads

29

posts

112

credits

Registered member

Rank: 2

credits
112
 Author| Published in 2016-6-24 02:33:37 | Show all floors
Hi

it's the mainline linux kernel. I used linux-4.6.tar.xz + linux4.6.1 stable patch (maybe not necessary?).
I had to apply some patch to have working usb host (see in linux4.4 openwrt patch).
Also i do a mistake about audio kernel module, it's seem they have to be loaded as module, not directly inside the kernel because audio usb work if i insmod corresponding ko module (already included in kernel).

Good luck!

1

threads

9

posts

55

credits

Registered member

Rank: 2

credits
55
Published in 2016-6-26 13:57:30 | Show all floors
Thank you very much.I managed to compile and run linux 4.7.0-rc3 kernel on OPI-PC.I think it can be a very stable router as I have installed luci on it.Will it possible to run 4.7.0 kernel on Debian?

1

threads

18

posts

320

credits

Intermediate member

Rank: 3Rank: 3

credits
320
Published in 2016-6-26 14:54:49 | Show all floors
there are worries on armbian based on 4.x kernel that the allwinner h3 cpu temperature feedback is missing for 4.x kernel and you might actually end up burning the cpu using the 4.x kernel if you don't limit the cpu speed.

is that also the case for openwrt based on 4.x kernel? if not, how did you deal with this?

2

threads

29

posts

112

credits

Registered member

Rank: 2

credits
112
 Author| Published in 2016-6-27 10:14:22 | Show all floors
Edited by boob at 2016-6-27 10:22

Hi,

mine have an small chipset (from x86 MB, splitted in 2) on H3 (70c when compile -j 4 with armbian OS = good thrmal management). I never heat my openwrt system because it 's light resource system but you think right. In fact it never over 45c...and on 1.5V pad i sense with voltmeter 1.35V so i think there is no risk to overheat the board.
Next step for me : using THS thanks to jfmoine patch and make audiocodec (analog soc audio) working...
Driver from 3.4 kernel compile with adjusting code and dirty include but i have some issue with old fex properties.

Openwrt seem to be very stable for the moment.
I forget to include GCC and G++ in img, i will put inside next step...I add already libwebsocket and make utility in my current config.
Forget to say there is an adb utility, alsa utility (aplay, arecord). I will add mpd when audio h3 soc will be ready

With lucy, didn't have any problem when downloading package from generic allwinner? Some packages seem to working fine (php and other not hardware kernel dependant)...

1

threads

9

posts

55

credits

Registered member

Rank: 2

credits
55
Published in 2016-6-29 19:26:47 from mobile | Show all floors
Finally! I managed to compile and run Linux kernel 4.7.0!The OPI has really become a usable machine.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list