Jump to content

Recommended Posts

Posted

 

OK then, a quick test to see what DVFS thinks about this idea:

echo performance | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
wget http://www.phoronix-test-suite.com/benchmark-files/c-ray-1.1.tar.gz
tar xf c-ray-1.1.tar.gz
cd c-ray-1.1/
gcc -O3 -mcpu=cortex-a53 -o c-ray-mt c-ray-mt.c -lm -lpthread && ./c-ray-mt -t 32 -s 320x240 -r 8 -i sphfract -o output.ppm 
cd

Anything better than `7 seconds (7437 milliseconds)` will have meant more than 4 cores can be utilised at once. (gcc 5.4 required for an apples to apples comparison)

 

In case it does work, something like e.g. `-mtune=cortex-a57.cortex-a53` can be added to the gcc command line to enable big.little optimisations.

Posted

@balbes150,

 

Can I try to generate an Armbian image using your code from?

https://github.com/150balbes/lib

 

Is it the "official" porting to Armbian building system?

 

What is the stage today?

 

1. Yes, You can use this git to build (it is in the public domain).

2. No, this is not the official version. The process of inclusion in the official GIT requires considerable time.

 

 

OK then, a quick test to see what DVFS thinks about this idea:

echo performance | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
wget http://www.phoronix-test-suite.com/benchmark-files/c-ray-1.1.tar.gz
tar xf c-ray-1.1.tar.gz
cd c-ray-1.1/
gcc -O3 -mcpu=cortex-a53 -o c-ray-mt c-ray-mt.c -lm -lpthread && ./c-ray-mt -t 32 -s 320x240 -r 8 -i sphfract -o output.ppm 
cd

Anything better than `7 seconds (7437 milliseconds)` will have meant more than 4 cores can be utilised at once. (gcc 5.4 required for an apples to apples comparison)

 

In case it does work, something like e.g. `-mtune=cortex-a57.cortex-a53` can be added to the gcc command line to enable big.little optimisations.

 

In the next few days I'll try to run this test (now I have disabled s912 to upgrade the cooling system).

Posted

could you please name me the files

The sd card to run armbian on s912,

everything works perfectly on S905

but not on s912 (GT1) after replacing

appropriate files. Thank advance

 

Scusate per il mio google english

Posted

The results of running Your command sequence on s905x and s912 with a new look.

 

https://yadi.sk/d/K4UJK0UD3CzNbL

 

By the way, to simplify testing, I created a simple script aml_cpu.sh (of Your data), which can be downloaded here. I decided at the time to add it to the images that would be any non-trained user is able to run on any TV box that would have the information with different devices (the script is located in /root directory in the new images).

 

aml_cpu.sh

 

https://yadi.sk/d/jn_hH4GB3CzKtU

Posted

Thanks @balbes150! The results (7992 vs 4781) do indicate perfect scaling. In other words, as long as there's no thermal throttling, S912 really seems to offer 66% more computing power. Not bad for a $50 box :) 

Posted

IMHO the Capacity of all processor Amlogic is much more than is possible in the manufactured home TV boxes. The reason is that for good performance you need a good (active) cooling system (for long-term work in maximum performance mode). The vast majority of TV boxes use a more stripped-down and primitive cooling system. I do not think the cooling system, those funny metal plates that are installed in sealed plastic boxes in many TV boxes. Perhaps this is due to the fact that the regular Android interface is very simplified and accordingly, do not trouble yourself a good cooling system. Perhaps for this reason, Amlogic forced to release the dtb and the source code with the restriction that-be to ensure the operability of its products in such a non-threatening environment.

Posted

Thanks @balbes150! The results (7992 vs 4781) do indicate perfect scaling. In other words, as long as there's no thermal throttling, S912 really seems to offer 66% more computing power. Not bad for a $50 box :)

 

It would be nice to be tested on different devices, users, to have more data for evaluation.

Posted

On my Beelink GT1 with SN starting with A912 

c-ray-mt v1.1
Rendering took: 4 seconds (4750 milliseconds)
 
And btw, wifi is working.
I've run it on with :
Armbian_5.24_S9xxx_mate_Ubuntu_xenial_3.14.29_desktop_20170205.img
Posted

 

On my Beelink GT1 with SN starting with A912 

c-ray-mt v1.1
Rendering took: 4 seconds (4750 milliseconds)

Could you try running the renderer for a few minutes? e.g:

./c-ray-mt -t 32 -s 1900x1400 -r 8 -i sphfract -o output.ppm

It takes 254 seconds on my MiniMX III (S905) so unless S912 starts overheating it should complete the same task in about 152s.

Posted

Look at my comment #133 - the command is meant to run inside the c-ray-1.1 directory after compilation. If you ran the benchmark at least once, the c-ray-mt binary should be found there. 

Posted

Look at my comment #133 - the command is meant to run inside the c-ray-1.1 directory after compilation. If you ran the benchmark at least once, the c-ray-mt binary should be found there. 

Thanks, here are my results.

 To run a command as administrator (user "root"), use "sudo <command>".

See "man sudo_root" for details.
 
ron@amlogic-s905x:~$ echo performance | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
[sudo] password for ron: 
performance
Resolving www.phoronix-test-suite.com (www.phoronix-test-suite.com)... 23.111.154.110
Connecting to www.phoronix-test-suite.com (www.phoronix-test-suite.com)|23.111.154.110|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 231074 (226K) [application/x-gzip]
Saving to: ‘c-ray-1.1.tar.gz’
 
c-ray-1.1.tar.gz    100%[===================>] 225.66K   302KB/s    in 0.7s    
 
2017-02-05 18:15:44 (302 KB/s) - ‘c-ray-1.1.tar.gz’ saved [231074/231074]
 
ron@amlogic-s905x:~$ tar xf c-ray-1.1.tar.gz
ron@amlogic-s905x:~$ cd c-ray-1.1/
ron@amlogic-s905x:~/c-ray-1.1$ gcc -O3 -mcpu=cortex-a53 -o c-ray-mt c-ray-mt.c -lm -lpthread && ./c-ray-mt -t 32 -s 320x240 -r 8 -i sphfract -o output.ppm
c-ray-mt v1.1
Rendering took: 8 seconds (8244 milliseconds)
ron@amlogic-s905x:~/c-ray-1.1$ cd
ron@amlogic-s905x:~$ ^C
ron@amlogic-s905x:~$ 
Posted

 

Rendering took: 8 seconds (8244 milliseconds)

 

Yeah, that's more or less it on a S905X. If you shut the X server down, like:

sudo service lightdm stop

you should be able to achieve peak performance.

Posted

The results of running Your command sequence on s905x and s912 with a new look.

 

https://yadi.sk/d/K4UJK0UD3CzNbL

 

By the way, to simplify testing, I created a simple script aml_cpu.sh (of Your data), which can be downloaded here. I decided at the time to add it to the images that would be any non-trained user is able to run on any TV box that would have the information with different devices (the script is located in /root directory in the new images).

 

aml_cpu.sh

 

https://yadi.sk/d/jn_hH4GB3CzKtU

c-ray-mt v1.1
Rendering took: 7 seconds (7232 milliseconds)

on Mini MX-G (s905) running gentoo

Posted

could you please name me the files

The sd card to run armbian on s912,

everything works perfectly on S905

but not on s912 (GT1) after replacing

appropriate files. Thank advance

 

Scusate per il mio google english

 

The launch is the same as S905. To capture the image. To activate it-boot. Try to start the system without manually copying the dtb file (in the latest images this feature is fixed and should work).

Posted

Could you try running the renderer for a few minutes? e.g:

./c-ray-mt -t 32 -s 1900x1400 -r 8 -i sphfract -o output.ppm

It takes 254 seconds on my MiniMX III (S905) so unless S912 starts overheating it should complete the same task in about 152s.

It was close ! (About 40°c on start and 50 after).

vincs@amlogic-s905x:~/Downloads/c-ray-1.1$ ./c-ray-mt -t 32 -s 1900x1400 -r 8 -i sphfract -o output.ppm
c-ray-mt v1.1
Rendering took: 164 seconds (164293 milliseconds)

Posted
Rendering took: 164 seconds (164293 milliseconds)

 

Interesting! Looks not too hot @50°c, so provided you were on performance governor, this could either mean the 4-core baseline was slightly worse on that box or the benchmark doesn't scale at these settings. 

Posted

Simple question, do we have to reinstall a full version each time bables make a release or an apt-get upgrade is enough ? 

I've saw that the firmware was updated last time I did an upgrade (version 0.24 to 0.25 I think).

Posted

Alas, I don't have the technical ability to access network repositories for updates. Another problem is that not all changes can be carried out through regular updates. I was thinking about this question, but have not yet found a simple (for ordinary users) solution.

Posted

 I wonder on other models S912, the system shuts down normally ?

 VONTAR Z5(s912, 2G, 16G) under Armbian_5.24_S9xxx_mate_Ubuntu_xenial_3.14.29_desktop_20170205.img shuts down normally.

 

But something  strange happens:

1. success boot without any dtb.img in SD card boot partition(from  /dtd*). Ethernet working, wifi working and Bluetooth not working.

2. success boot with native dtb.img from Z5 OTA upgrade image.  Ethernet working, wifi and Bluetooth not working.

    Z5_dtb: https://yadi.sk/d/zR3JgyOi3DpXPG

Posted

Has anybody tried to build and run a mainline Linux kernel on a S912 device?

I do have a Beelink GT1 and would like to use a 4.9.x kernel, no graphics required for my headless server, just ethernet and maybe wifi for later. Currently I was able to boot the GT1 with an Armbian image from @balbes150, but this image has only a 3.14.29 kernel.

 

Any advice and pointers are really appreciated.

Posted

Has anybody tried to build and run a mainline Linux kernel on a S912 device?

 

I do have a Beelink GT1 and would like to use a 4.9.x kernel, no graphics required for my headless server, just ethernet and maybe wifi for later. Currently I was able to boot the GT1 with an Armbian image from @balbes150, but this image has only a 3.14.29 kernel.

 

Any advice and pointers are really appreciated.

 

I have not tried any myself but

- http://linux-meson.com/ seems an effort to run latest kernel on amlogic

- https://forums.gentoo.org/viewtopic-t-1058530.html (raspberry pi 3) runs latest kernel

and

- I believe also ubuntu has a generic latest arm64 kernel

But, if any of those sufficiently support GT1 (e.g. network) is to be evaluated or enhanced.

Posted

I would like to use a H96 Pro S912 box with armbian. It's the same hardware as the R-BOX reviewed here

I've opened the box, soldered the serial connector and connect to my laptop.

 

The log file is here.

 

There is no HDMI signal and nothing happens even if I wait half an hour.

 

What could I try to get it boot to armbian?

 

What is the image trying to run ? Delete media file "dtb.img" and try to run it without him. If not start, try to use a USB flash drive. Show the output of "printenv" and "help" from the console UARTиз u-boot.

Posted

I see in the log Armbian run from a USB flash drive that uses a file "dtb.img". You didn't delete it ? For the first check is to start the system WITHOUT a file "dtb.img". Need to see how to run the system with the use of regular dtb data from the internal memory. Add the dtb file is necessary only if without it there is no system start-up. After checking without a dtb file, you can try to use the files from the dtb on the media with names that begin with gxm_q200.

Posted

Sorry, I mistakenly looked at the first log (from SD card). So the built-in dtb data are not suitable for this kernel. I received the following error (related to dwc_otg) on the other TV consoles. You need to find a working dtb file. Either pull the firmware from the regular dtb file and re assemble it under it - (change in file settings dwc_otg).

Can try to run Armbian with another kernel (3.14.79)

Posted

1. Link to the firmware I have doesn't open. You can send me the dtb file from the firmware or load the firmware to another resource ?

2. Have you tried to run Armbian (- 3.14.29) with dtb file from Vega S96 ?

Posted

Another link to the firmware: https://mega.nz/#!U5NQASgZ!WSUivH5juSspjZoDBEAt3wRBq2VJEoi6OsTd4YhpWuY

 

I've tried the latest Armbian_5.24_S9xxx_server_Debian_jessie_3.14.29_20170220.img with s96 dtb -> kernel didn't start. (http://pel.hu/down/20170220194046.log)

 

I've tried Armbian_5.24_Amlogic-s905x_Debian_jessie_3.14.29_20161210.img with s96 dtb -> kernel didn't start 

 

Try this one dtb.

https://yadi.sk/d/dPma5z6w3ELX8Z

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines