Welcome, Guest

Author Topic: Armbian Stretch and Bionic with 4.19.y  (Read 10384 times)

igorpec

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +18/-0
Armbian Stretch and Bionic with 4.19.y
« on: June 20, 2018, 12:12:56 PM »
v1.0

https://twitter.com/armbian/status/1009360529100591105

- u-boot 2018.07RC1
- kernel 4.17.2
- lot's of patches
- can be rebuild from sources (https://github.com/armbian/build ... you need to add EXPERT=yes when building)

Download:
https://www.armbian.com/olimex-teres-a64/

Support:
not yet.

v1.1
- kernel 4.18.5
- suspend and resume on lid close working
- added Bionic image
- first test release
- extremely lightweight, XFCE desktop, lightdm + chromium only, <1.7G rootfs
- ZRAM, ZSWAP
- boot log: http://ix.io/1lre

v1.2
- kernel 4.19.2
- suspend and resume on lid close broken :(
- battery, temperature (possibly a bit wrong readings), DVFS, HDMI auto detect, power off, eMMC install, Mesa GL drivers,
- pwm enabled but brightness level control not working yet,
- Bluetooth not enabled,
- audio untested
- boot logs: http://ix.io/1tAX

General topic on Allwinner 4.19.y kernel upgrade: https://forum.armbian.com/topic/8795-next-lts-kernel-419y-allwinner-a10-a20-a64-h2-h3-h5-h6-debugging-party
« Last Edit: November 20, 2018, 12:38:37 PM by igorpec »
linux for ARM development boards
www.armbian.com

igorpec

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +18/-0
Re: Armbian Stretch and Bionic with mainline kernel
« Reply #1 on: August 28, 2018, 05:05:00 PM »
v1.1
Bump
linux for ARM development boards
www.armbian.com

jflesch

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
Re: Armbian Stretch and Bionic with 4.18.y
« Reply #2 on: August 29, 2018, 12:22:21 AM »
I've tried suspending the laptop from Xfce, but it hangs while suspending (Teres rev. C). I have no output on the serial line when it happens. Is there any way I can help debug it ?

Other than that, it's a nice work ! It's starting to look good.

For those wondering, from what I've seen there are still some missing parts in v1.1, for instance:

- No Bluetooth
- No sound
- No brightness control
- No battery monitoring

However I've also noticed that the eMMC has much better performance with Armbian than with the Ubuntu from Olimex (45MB/s instead of just 22MB/s according to hdparm). So IMO it's clearly promising :-)

khumarahn

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +9/-0
Re: Armbian Stretch and Bionic with 4.18.y
« Reply #3 on: August 29, 2018, 06:19:43 PM »
Faster eMMC is interesting! Slow disk access is the main bottleneck in my experience. What kind of benchmark does hdparm do? Is there a way to compare some sort of random access between the old and the new kernel?

jflesch

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
Re: Armbian Stretch and Bionic with 4.18.y
« Reply #4 on: August 29, 2018, 08:44:29 PM »
hdparm -tT runs a simple sequential read. One with cache enabled (measure more the memory/cpu than the disk) and one without cache.

I can run bonnie++ instead if you want more detailed statistics.

Here are bonnie++ results with Armbian Ubuntu Bionic:

Code: [Select]
root@teres:/mnt/emmc# bonnie++ -d test -u jflesch:jflesch
Using uid:1000, gid:1000.
Writing a byte at a time...done
Writing intelligently...done
Rewriting...done
Reading a byte at a time...done
Reading intelligently...done
start 'em...done...done...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.97       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
teres            4G   141  99 21640  10 16961   9   504  99 39124   9  1661  65
Latency             61414us    4026ms    7753ms   16692us    5852us    6755us
Version  1.97       ------Sequential Create------ --------Random Create--------
teres               -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 12299  76 +++++ +++  8479  41 12721  76 +++++ +++  7291  36
Latency             78842us    1809us     216ms     115ms     108us     153ms
1.97,1.97,teres,1,1535564920,4G,,141,99,21640,10,16961,9,504,99,39124,9,1661,65,16,,,,,12299,76,+++++,+++,8479,41,12721,76,+++++,+++,7291,36,61414us,4026ms,7753ms,16692us,5852us,6755us,78842us,1809us,216ms,115ms,108us,153ms

khumarahn

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +9/-0
Re: Armbian Stretch and Bionic with 4.18.y
« Reply #5 on: August 29, 2018, 09:05:12 PM »
Can you run the same on the old kernel? I would do it but I've sent my teres back to olimex.

jflesch

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
Re: Armbian Stretch and Bionic with 4.18.y
« Reply #6 on: August 29, 2018, 09:12:11 PM »
Here are the results with an Ubuntu Bionic + Olimex kernel 3.10:

Code: [Select]
root@teres:/# bonnie++ -d test -u jflesch:jflesch
Using uid:1000, gid:1000.
Writing a byte at a time...done
Writing intelligently...done
Rewriting...done
Reading a byte at a time...done
Reading intelligently...done
start 'em...done...done...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version  1.97       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
teres            4G   136  97 16336   7  8579   3   814  96 26147   4  1230  38
Latency             68172us    2639ms    6300ms   23869us     176ms     889ms
Version  1.97       ------Sequential Create------ --------Random Create--------
teres               -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16  8890  47 +++++ +++  5116  24 10781  56 +++++ +++  4070  19
Latency               418ms    2697us     347ms     244ms     133us     351ms
1.97,1.97,teres,1,2797863130,4G,,136,97,16336,7,8579,3,814,96,26147,4,1230,38,16,,,,,8890,47,+++++,+++,5116,24,10781,56,+++++,+++,4070,19,68172us,2639ms,6300ms,23869us,176ms,889ms,418ms,2697us,347ms,244ms,133us,351ms

khumarahn

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +9/-0
Re: Armbian Stretch and Bionic with 4.18.y
« Reply #7 on: August 29, 2018, 09:15:49 PM »
are the filesystems the same?

jflesch

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
Re: Armbian Stretch and Bionic with 4.18.y
« Reply #8 on: August 29, 2018, 09:38:13 PM »
Both are ext4.

igorpec

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +18/-0
Re: Armbian Stretch and Bionic with 4.18.y
« Reply #9 on: September 19, 2018, 07:11:30 PM »
A few numbers which are also not very representative. 4.18.y does not have DVFS yet so CPU stays clocked at 800Mhz.

Armbian: http://ix.io/1n1K
Stock: http://ix.io/1n2D

>No brightness control


At least this should be possible to implement soon, the rest I haven't researched yet.

>I've tried suspending the laptop from Xfce

Suspend works only when the lid is closed.
« Last Edit: September 19, 2018, 07:17:02 PM by igorpec »
linux for ARM development boards
www.armbian.com

igorpec

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +18/-0
Re: Armbian Stretch and Bionic with 4.19.y
« Reply #10 on: November 20, 2018, 12:38:02 PM »
Bump. New version.
linux for ARM development boards
www.armbian.com

jflesch

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
Re: Armbian Stretch and Bionic with 4.19.y
« Reply #11 on: November 27, 2018, 12:37:27 AM »
It's looking great ! :)

I just have a minor issue with external displays: When I plug my screen in, it's correctly detected but doesn't turn on. If I reboot the laptop with the screen still plugged in, the screen turns on correctly and everything works fine.
Anyway, it's still far better than what I got with the Olimex distribution: I haven't been able to use any external screens at all with it.

As soon as brightness control is available, Armbian is going straight to the eMMC of my Teres :-)

lambda

  • Full Member
  • ***
  • Posts: 180
  • Karma: +21/-0
    • Support my work
Re: Armbian Stretch and Bionic with 4.19.y
« Reply #12 on: November 27, 2018, 09:40:52 PM »
As soon as brightness control is available, Armbian is going straight to the eMMC of my Teres :-)

I think for brightness control you have to write to /sys/class/backlight/*/brightness or something like that. To get brightness control via the keyboard probably some configuration for acpid or similar service is needed, but I haven't looked at the latter solution myself yet, so this is just a wild guess.

HTH,
Harald

igorpec

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +18/-0
Re: Armbian Stretch and Bionic with 4.19.y
« Reply #13 on: November 29, 2018, 10:36:09 AM »
Brightness control should be operational (via next adjustment/update) via power manager, key binding is AFAIK n/a and suspend/resume solution has to be figured out (after this, beta label goes off). Bluetooth is apparently working, but is not merged yet ... There are ofc still some issues in general + involved people are simply busy to push this further.
linux for ARM development boards
www.armbian.com

JohnS

  • Hero Member
  • *****
  • Posts: 1729
  • Karma: +34/-48
Re: Armbian Stretch and Bionic with 4.19.y
« Reply #14 on: November 29, 2018, 06:28:16 PM »
It's getting better & better :)

John