avafinger / orangepi-h6-ubuntu-base-minimal

Mainline kernel 5.1 5.2 5.3 5.4 H6 (Orange Pi One Plus)
17 stars 5 forks source link

Tag v1.9 not booting, black screen #5

Open pinighg opened 4 years ago

pinighg commented 4 years ago

Hi Avafinger, thank you for your great work! I registered in GitHub just for asking you a few questions:

I tried to boot with instructions in v1.9 but in a 16GB sd card and Orange pi one plus does not boot properly (screen does not start) and perhaps board is reseting continuously. It is mandatory to have 8GB sd?

Then I tried wit v.1.10 because I thought that was a problem of 16GB sd instead of being 8GB, so I followed your instructions for format and flash sdcard and I had same results.

Finally I get another 2GB SD and did same procedure, in both cases it finishes flashing ok, but same results when I put in Orangepi.

I checked md5sum of files and are ok.

When SBC starts the light flashes red and yellow instantly and then stops and turn on led of Ethernet. Several seconds ago same thing happens.

I installed a Virtuabox with ubuntu 18.04 to make all procedure again and same results.

Before I found your work I installed last Armbian in same sd card and it works ok (but no sound), also I installed kernel 4.9 version from Orange Pi's official web, and then build script and I added new rootfs with debootstrapped Debian and it works ok (but I can't change resolution, 1920x1080 is fixed and changes in DTB files are not applied).

So after all my mistakes will be great if you can help me to make it work, I'm a newbie on this.

Thank you.

avafinger commented 4 years ago

Just type ENTER key a few times and you will see the login prompt.

If you have the heart-beat on the led, it is OK!

avafinger commented 4 years ago

It is mandatory to have 8GB sd?

No, you can have 32GB sd card but you have to manually (fdisk or gparted) reclaim the remaining card space.

pinighg commented 4 years ago

Just type ENTER key a few times and you will see the login prompt.

If you have the heart-beat on the led, it is OK!

Thanks, it's not a continuos heartbeat, is just when starts, but I tried hitting enter but does not work. Now I downloaded mainline build from Xunlong: https://github.com/orangepi-xunlong

And compiled for Orange Pi one Plus, and works ok but no audio, (it takes all night to finish).

Then my last chance will be to download build of Armbian, and apply next patches: https://github.com/warpme/minimyth2/tree/master/script/kernel/linux-5.4/files

According to one post in Armbian forum that fixes Audio and video acceleration too: https://forum.armbian.com/topic/12284-eachlink-h6-support-with-mainline-kernel/

I never applied a patch but I read that in user patches folder of Armbian I can put this files to compile again with that, currently is downloading data.

The best solution for me is to make work your distro but I can't figure out how to do it.

With your last instructions I have same result, does not even detect HDMI output, I checked if there is a corrupted OS partition with e2fsck in virtual box but is all ok.

I'm using ubuntu 18.04 as host system to create SD and format_sd_mainline and flash_card.sh scripts. Do I need to do another extra step?

Thank you again for your fast answer.

avafinger commented 4 years ago

Do you have a TTL to USB ? https://www.youtube.com/watch?v=kS1x6nrnnK0

I'm using ubuntu 18.04 as host system to create SD and format_sd_mainline and flash_card.sh scripts. Do I need to do another extra step?

No.

Try this first and than update with the latest, see what you get.

kernel 5.0.y OS Img is available here (use 7z to unzip and burn to SD card with Win32DiskImager or Etcher): https://mega.nz/#!NPoSkIyT!Ul1n_1WVklPXlR2nHQxEE356_2iM8WAWWm9AWNR08hg

pinighg commented 4 years ago

Do you have a TTL to USB ? https://www.youtube.com/watch?v=kS1x6nrnnK0 Sadly I don't have TTL to USB.

Try this first and than update with the latest, see what you get.

kernel 5.0.y OS Img is available here (use 7z to unzip and burn to SD card with Win32DiskImager or Etcher): https://mega.nz/#!NPoSkIyT!Ul1n_1WVklPXlR2nHQxEE356_2iM8WAWWm9AWNR08hg

Today I bought a new 8GB card, I extracted this image, and I can see first boot screen just about a second, and it says "starting kernel" then HDMI behaves as undetected signal, but as you told me I hit several keys in keyboard but nothing happens, but if press CTRL+ALT+DEL the Orangepi power off, so keyboard input is working. For restarting I need to unplug and plug again power source.

I saw closely my board and it says v.2.0 could it be an issue?

Thank you!

avafinger commented 4 years ago

I saw closely my board and it says v.2.0 could it be an issue?

Yes, Could be. But sounds like it is just the HDMI (monitor) resolution that is not detected correctly if you still have the heartbeat on the led. If the heartbeat speeds up it looks like the kernel crashed.

You could try to ssh to the board, try to find the IP and do an shh ubuntu@IP

avafinger commented 4 years ago

ssh i meant.

pinighg commented 4 years ago

Thanks it did not work, I can't do ssh, I looked at router DHCP to check but it does not have leases. I tried a different 7zip program to unzip and flashed it again with etcher (before I was using DD directly) but no luck.

In Xunlong mainline kernel is 5.3.5 and I managed to have sound, video but there is no thermal sensors, perhaps if in a future you could update to last kernel and upload a 7z image of full image and my SBC would work.

Thank's anyway for all your support, I really appreciate it.

avafinger commented 4 years ago

You could try to transplant the Xulong Image and modules and see if it boots. You should link Image to the Xulong Image file. Type in: ll /boot I will build one OS Image with Xulong Kernel and you can give it a try.

pinighg commented 4 years ago

Thanks! I built mainline from xulong and it boots ok and also have audio but no accelerated graphics and xorg shows videos like 2 frame per second. and thermal control or cpu freq are missing, I tried to add those options to kernel config but it does not work.

My last try was with test.libreelec.tv version that was built yesterday, with that version I have audio, accelerated graphics but not thermal options I cannot check board temperature or cpu temperature.

And also is a version just with kodi and I cannot install x11, for me the perfect version is like Armbian or Ubuntu minimal with all drivers and audio like yours.

For me it’s a great news if you can build that.

Thanks again

On Tuesday, December 10, 2019, avafinger notifications@github.com wrote:

You could try to transplant the Xulong Image and modules and see if it boots. You should link Image to the Xulong Image file. Type in: ll /boot I will build one OS Image with Xulong Kernel and you can give it a try.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/issues/5?email_source=notifications&email_token=ADVEZ44XVGSR6PFOKKKEXKDQX5275A5CNFSM4JXWEXDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGO4EQI#issuecomment-563987009, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADVEZ47E5VX6VFOUM7DJPSTQX5275ANCNFSM4JXWEXDA .

-- Gabriel H. Giovaniello +54 2216230146

avafinger commented 4 years ago

My last try was with test.libreelec.tv version that was built yesterday, with that version I have audio, accelerated graphics but not thermal options I cannot check board temperature or cpu temperature.

Can you check if HW accel is with panfrost or mali? Can you host (github) a complete kernel source code tree from this build? (after the patches applied)

I have noticed my kernel tree is outdated and to have panfrost enabled i have to move to kernel 5.4.y

avafinger commented 4 years ago

No need to host in github if you can tar.gz the kernel source code tree after all patches applied to the tree.

pinighg commented 4 years ago

Hi!

Sadly I don’t know how to recompile kernel of LibreElec I just downloaded full image from next link:

https://test.libreelec.tv/LibreELEC-H6.arm-9.80-nightly-20191209-d0f5bf5-orangepi-one-plus.img.gz

in this url there are images for all supported Orangepi: https://test.libreelec.tv/

I ran dmesg and it confirms that is panfrost as you told me:

Here I send pastebin of it results:

http://ix.io/246c

Also I send attached DTB of libreelec that I get from installed version.

sun50i-h6-orangepi-one-plus.dtb.zip

Hope this help you and thanks again

avafinger commented 4 years ago

Can you get the Kernel config also?

pinighg commented 4 years ago

Yes, here I send:

http://ix.io/247S

I extracted with following command, I don't know if it is ok: "cat /proc/config.gz | gunzip > running.config"

Please tellme if you need anything else.

On 11 Dec 2019, at 09:15, avafinger notifications@github.com wrote:

Can you get the Kernel config also?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/issues/5?email_source=notifications&email_token=ADVEZ47UCK2OHUNTG6LAWY3QYDKVVA5CNFSM4JXWEXDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGS4Y2A#issuecomment-564513896, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADVEZ43Q7LLQMHXNTMLHJDTQYDKVVANCNFSM4JXWEXDA.

avafinger commented 4 years ago

It is fine. I will see if i can do something with 5.4, but there are lots of changes on 5.4 so it may take days to come up with something stable. But you should know beforehand that HW accel. may work only with Wayland (i think gnome) and not X11 yet. Afaik.

pinighg commented 4 years ago

Ok, thanks! I don’t know if its full HW accell, perhaps with Cedrus and x11 I can be fine, I just want to have youtube or video with proper FPS and I presume that this can be achieved with a good h264 decoder, I tested Armbian and X interface goes well overall and Youtube videos too, but no sound. Perhaps with your new release all this can work together.

Thanks a lot for your support.

On 11 Dec 2019, at 11:08, avafinger notifications@github.com wrote:

It is fine. I will see if i can do something with 5.4, but there are lots of changes on 5.4 so it may take days to come up with something stable. But you should know beforehand that HW accel. may work only with Wayland (i think gnome) and not X11 yet. Afaik.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/issues/5?email_source=notifications&email_token=ADVEZ43MRHRGHEFIPEQYH6LQYDX5BA5CNFSM4JXWEXDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGTHS7A#issuecomment-564558204, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADVEZ46OFZ7P67XVHKL5L2LQYDX5BANCNFSM4JXWEXDA.

gurukewl commented 4 years ago

ssh i meant.

Hi Avafinger, What do i have to do to get IP for the image? I tried updating the resolv.conf as instructed but it is not working.

Edit and update the file /etc/resolver.conf to reflect your network (DNS)

Thanks for your work on the images....

avafinger commented 4 years ago

I have updated the kernel to 5.3.9 based on xunlong and hopefully, DHCP and HDMI should work. at least works here.

There are 3 "speedbin" on H6, say fast, normal and slow.

Anyway, no mali or panfrost on this 5.3.y. Cedrus is built.

@pinighg Can you try and see if it boots?

@coolsdaks In this Image the resolver.conf should be updated automagically , if should get IP from your DHCP, maybe you can force it as shown below:

ubuntu@opi-h6:~$ systemd-resolve --status
Global
         DNS Servers: 192.168.254.254
          DNSSEC NTA: 10.in-addr.arpa
                      16.172.in-addr.arpa
                      168.192.in-addr.arpa
                      17.172.in-addr.arpa
                      18.172.in-addr.arpa
                      19.172.in-addr.arpa
                      20.172.in-addr.arpa
                      21.172.in-addr.arpa
                      22.172.in-addr.arpa
                      23.172.in-addr.arpa
                      24.172.in-addr.arpa
                      25.172.in-addr.arpa
                      26.172.in-addr.arpa
                      27.172.in-addr.arpa
                      28.172.in-addr.arpa
                      29.172.in-addr.arpa
                      30.172.in-addr.arpa
                      31.172.in-addr.arpa
                      corp
                      d.f.ip6.arpa
                      home
                      internal
                      intranet
                      lan
                      local
                      private
                      test

Link 2 (eth0)
      Current Scopes: none
       LLMNR setting: yes
MulticastDNS setting: no
      DNSSEC setting: no
    DNSSEC supported: no
ubuntu@opi-h6:~$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.254.101  netmask 255.255.0.0  broadcast 192.168.255.255
        inet6 fe80::cb2:ccff:fe3c:e072  prefixlen 64  scopeid 0x20<link>
        ether 0e:b2:cc:3c:e0:72  txqueuelen 1000  (Ethernet)
        RX packets 1278  bytes 105678 (105.6 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1185  bytes 175846 (175.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 28  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 84  bytes 6108 (6.1 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 84  bytes 6108 (6.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ubuntu@opi-h6:~$ sudo dhclient -v eth0
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/0e:b2:cc:3c:e0:72
Sending on   LPF/eth0/0e:b2:cc:3c:e0:72
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0xec4c433a)
DHCPREQUEST of 192.168.254.101 on eth0 to 255.255.255.255 port 67 (xid=0x3a434cec)
DHCPOFFER of 192.168.254.101 from 192.168.254.254
DHCPACK of 192.168.254.101 from 192.168.254.254
RTNETLINK answers: File exists
bound to 192.168.254.101 -- renewal in 3449 seconds.
ubuntu@opi-h6:~$ 
Every 2.0s: ./h6-monitor.sh                     opi-h6: Thu Dec 12 12:52:19 2019

CPU1 freq      : 912 MHz
CPU2 freq      : 1320 MHz
CPU3 freq      : 1320 MHz
CPU4 freq      : 1800 MHz
CPU count      : 4
Governor       : ondemand
Core voltage   : 1.16 V
SOC Temp       : 45.63 C
ubuntu@opi-h6:~$ uname -ra
Linux opi-h6 5.3.9-xunlong #2 SMP PREEMPT Wed Dec 11 16:25:47 -03 2019 aarch64 aarch64 aarch64 GNU/Linux
avafinger commented 4 years ago

Ubuntu 18.04 OS Image is here: https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/releases/tag/v1.24

pinighg commented 4 years ago

Hi Avafinger, that are really good news, lastly I managed to boot your previous version (5.1.3) and is the best of all distros that I tested before, I get 10 degrees less of temperature than with Armbian and is soo minimal! it's great, but I have just noise in HDMI sound.

I don't know exactly why I cannot recreate img before, Previously I used Unarchiver in Mac, and appears a dialog with file localization when I tried to unzip 7z, then I tried with p7zip and 7z native command line and image fails too in 2 different SD, finally I tested with an app called "Keka" that unzips 7z format and I successfully boot your img files, so I upgraded step by step until kernel 5.1.3 and everything is great with exception of sound, I followed your Alsa instructions, and also tested different "asound.conf" versions and I hear just noise in HDMI output when I run speaker-test or I try to play a wav file, also in other distros to test sound I installed sox and play a demo mp3 with good results, but in this I cannot manage to make it work.

If I try to recreate sd card with your script, in old version (with format_sd_mainline) it fails, and also fails with this new version v.124, I mean the process end correctly but don't boot when I put in Orangepi , perhaps you can create an img file and I will test or if you can tell me in which Linux version you are running this scripts I can recreate environment in a virtual machine and test if I can create SD, I getting no bootable results in Ubuntu 18.04 inside virtual box.

Thanks a lot for your great and fast support!

avafinger commented 4 years ago

If I try to recreate sd card with your script, in old version (with format_sd_mainline) it fails, and also fails with this new version v.124

It failed to create the sd card Image (script error?) or failed to boot?

Currently, i have Ubuntu 16.04 , no VM, Old machine..

pinighg commented 4 years ago

It fails to boot, process ends successfully but no boot in Orange pi, I’ll download an Ubuntu iso to check if it is a problem with my version and let you know If it works.

Thanks

On Thursday, December 12, 2019, avafinger notifications@github.com wrote:

If I try to recreate sd card with your script, in old version (with format_sd_mainline) it fails, and also fails with this new version v.124

It failed to create the sd card Image (script error?) or failed to boot?

Currently, i have Ubuntu 16.04 , no VM, Old machine..

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/issues/5?email_source=notifications&email_token=ADVEZ46DU2QWJ63KJABQPQTQYKGJLA5CNFSM4JXWEXDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGXYD7A#issuecomment-565150204, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADVEZ44YIOQL6Q5HP44IBDTQYKGJLANCNFSM4JXWEXDA .

-- Gabriel H. Giovaniello +54 2216230146

avafinger commented 4 years ago

today I built Kernel 5.4.2 , i have CPU Temp but no Cpu Freq. I have hdmi-sound available but can't play anything on this..

ubuntu@opi-h6:~$ uname -ra
Linux opi-h6 5.4.2 #1 SMP PREEMPT Thu Dec 12 14:59:01 -03 2019 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@opi-h6:~$ sudo aplay /usr/share/sounds/alsa/Front_Left.wav 
Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1363: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 48000
PERIOD_TIME: 125000
PERIOD_SIZE: 6000
PERIOD_BYTES: 12000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 24000
BUFFER_BYTES: 48000
TICK_TIME: 0
ubuntu@opi-h6:~$ sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SPDIF [On-board SPDIF], device 0: spdif-dit-hifi dit-hifi-0 [spdif-dit-hifi dit-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: allwinnerhdmi [allwinner-hdmi], device 0: 5091000.i2s-i2s-hifi i2s-hifi-0 [5091000.i2s-i2s-hifi i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
ubuntu@opi-h6:~$ sudo ./h6-monitor.sh
cat: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq: No such file or directory
awk: line 1: runaway regular expression /1000} ...
CPU1 freq      : MHz  
cat: /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq: No such file or directory
awk: line 1: runaway regular expression /1000} ...
CPU2 freq      : MHz  
cat: /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq: No such file or directory
awk: line 1: runaway regular expression /1000} ...
CPU3 freq      : MHz  
cat: /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq: No such file or directory
awk: line 1: runaway regular expression /1000} ...
CPU4 freq      : MHz  
CPU count      : 4  
cat: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: No such file or directory
Governor       :   
Core voltage   : 0.90 V 
SOC Temp       : 47.64 C 
ubuntu@opi-h6:~$ 
pinighg commented 4 years ago

I finished installing your v1.24 and it's great, I tried 3 different guest os in VirtualBox but the problem seems to be the low level access to SD card in VirtualBox, so I created a loop device with an img file and modified your format_sd_mainline and flash_card to use always a "p" letter like if it was installing in a mmcblk, and I successfully created img file running your scripts on /dev/loop1

Then in my host system I put img file on SD with etcher and it works!

I have 48 degrees with cpu idle without heatsink.

When I put some video to test temperature it goes to 70 degrees but it's not overheating, the cpu freq that you configure is great, in one of my first test weeks ago I have similar results in temperature disabling 2 CPUs but it affects performance your config is perfect.

About audio in my first attempts I was doing test with ubuntu user without adding it to audio group and that's why I cannot hear anything. Then I tried with root and I heard noise even with a music wav file but when I ran "speaker-test -t wav" I hear clear voice with your asound.conf file.

Finally I have x11 working, video is flowing well and good audio, all because your great work!

About last kernel issue with audio please tell me how can I help you, I google about the error code but probably you already do it, if you have an image or need additional help will be a pleasure to help you.

avafinger commented 4 years ago

Some progress with Kernel 5.4.2. https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/blob/master/README.md#mainline-kernel-542-experimental

Board still runs a bit hotter than 5.1.y , 46C idle with the heatsink. panfrost and cedrus need some testing...

I will give the 5.4.3 a try..

pinighg commented 4 years ago

Some progress with Kernel 5.4.2. https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/blob/master/README.md#mainline-kernel-542-experimental

  • DVFS works (a bit slow)
  • hdmi-sound works
  • thermal readout works

Board still runs a bit hotter than 5.1.y , 46C idle with the heatsink. panfrost and cedrus need some testing...

I will give the 5.4.3 a try..

That's a great news!

When you have a release please let me know and I will try.

With your v.1.24 everything is great, but I cannot run Gcompris (an educational software), I'm trying to find out why, it says that I lack a kernel module but in your previous version it works ok.

Thanks.

avafinger commented 4 years ago

it says that I lack a kernel module but in your previous version it works ok.

Compare both kernel.config to find out which module is missing

Kernel 5.4.3 works.

alex@svn:~$ ssh ubuntu@192.168.254.100
ubuntu@192.168.254.100's password: 
Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 5.4.3 aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.
Last login: Fri Dec 13 15:16:15 2019
ubuntu@opi-h6:~$ uname -ra
Linux opi-h6 5.4.3 #1 SMP PREEMPT Fri Dec 13 11:46:37 -03 2019 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@opi-h6:~$ sudo ./h6-monitor.sh
[sudo] password for ubuntu: 
CPU1 freq      : 888 MHz 
CPU2 freq      : 888 MHz 
CPU3 freq      : 1320 MHz 
CPU4 freq      : 1320 MHz 
CPU count      : 4  
Governor       : ondemand  
Core voltage   : 0.94 V 
SOC Temp       : 39.45 C 
ubuntu@opi-h6:~$ 
pinighg commented 4 years ago

Great, how can I test your last kernel? I cannot find tag or download instructions

Thanks

On 13 Dec 2019, at 12:27, avafinger notifications@github.com wrote:

it says that I lack a kernel module but in your previous version it works ok.

Compare both kernel.config to find out which module is missing

Kernel 5.4.3 works.

alex@svn:~$ ssh ubuntu@192.168.254.100 ubuntu@192.168.254.100's password: Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 5.4.3 aarch64)

This system has been minimized by removing packages and content that are not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command. Last login: Fri Dec 13 15:16:15 2019 ubuntu@opi-h6:~$ uname -ra Linux opi-h6 5.4.3 #1 SMP PREEMPT Fri Dec 13 11:46:37 -03 2019 aarch64 aarch64 aarch64 GNU/Linux ubuntu@opi-h6:~$ sudo ./h6-monitor.sh [sudo] password for ubuntu: CPU1 freq : 888 MHz CPU2 freq : 888 MHz CPU3 freq : 1320 MHz CPU4 freq : 1320 MHz CPU count : 4
Governor : ondemand
Core voltage : 0.94 V SOC Temp : 39.45 C ubuntu@opi-h6:~$

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/issues/5?email_source=notifications&email_token=ADVEZ42YC2YMMHOFQNCWXWTQYOSUVA5CNFSM4JXWEXDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG2JIRY#issuecomment-565482567, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADVEZ43I4EL3BYQRBOWVUC3QYOSUVANCNFSM4JXWEXDA.

avafinger commented 4 years ago

Here: https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/releases/tag/v1.25

I would suggest you have a second sd card as a backup, so you don't lose any work and can compare both versions.

avafinger commented 4 years ago

linux-image-5.4.3_1.0-26.deb re-uploaded to fix the install error. I hope that will install correctly now.

pinighg commented 4 years ago

linux-image-5.4.3_1.0-26.deb re-uploaded to fix the install error. I hope that will install correctly now.

Hi Avafinger,

I tried to update directly from your 5.3.9 Xunlong, and it fails:

Unpacking linux-image-5.4.3 (1.0-26) ... Setting up linux-image-5.4.3 (1.0-26) ... ERROR: Could not update kernel! Try to fix it manually before reboot. dpkg: error processing package linux-image-5.4.3 (--install): installed linux-image-5.4.3 package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: linux-image-5.4.3

I don't know if I'm doing something wrong, how can I check error log of this install?

BTW yesterday I read about Panfrost and Mali 720 chip in mesa-20.0-dev it was declared stable:

https://www.phoronix.com/scan.php?page=news_item&px=Mali-T720-Stable-Mesa-20.0

pinighg commented 4 years ago

linux-image-5.4.3_1.0-26.deb re-uploaded to fix the install error. I hope that will install correctly now.

I tried with 2 different SD cards that boot's ok with your previous 5.3.9 version, but this always throws an install error as I mentioned in last message, I checked dpkg --contents and there is a /usr folder with Alex:alex user/group I don't know if this can be a problem, also there is a symlink at the end pointing to /arm/ directory that does not exists, I tried to recreate this directory but install fails anyway.

Perhaps if you bring me your 5.4.2 pre-release I can do step by step upgrade from 5.3.9 to determine if it is an error with my setup.

Thank you

avafinger commented 4 years ago

The last upload was supposed to fix the install error. Can you check the contents of files on both deb packages? Just in case it is in the cache of the browser. Ok. I will release tonight a new one.

pinighg commented 4 years ago

Yes, I downloaded it from different browsers even from Orangepi SBC directly after I created sd to discard the problem, I don’t have previous files to compare.

What I did after wrote you yesterday was install kernel, (installation fails). I created a backup of new img and dtb files. And make symlinks manually to 5.4.3 files in /boot partition (replacing Xunlong ones). Then I restarted and boots with new kernel but an error persists in apt manager (half configured kernel) So I uninstalled kernel but kept back files and recreate manually symlinks again and now is working and APT is working too.

I noted an extra slow I/O writes when I install packages or use system in general, as example when I apt-install something, download goes fast but unpacking packages are really slow, this happens with last kernels, (I have an image with your previous work 5.1.3 before Xunlong and works great).

Hope this help you and thank’s again for all your support.

On 16 Dec 2019, at 09:08, avafinger notifications@github.com wrote:

The last upload was supposed to fix the error install. Can you check the contents of files on both deb packages? Just in case it is in the cache of the browser. Ok. I will release tonight a new one.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/issues/5?email_source=notifications&email_token=ADVEZ43OHRW2BTBGC6IPEO3QY5VTXA5CNFSM4JXWEXDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG6P6VI#issuecomment-566034261, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADVEZ4ZUVSJTIHMCOXOQFLTQY5VTXANCNFSM4JXWEXDA.

avafinger commented 4 years ago

Kernel 5.4.3 has a new DVFS and there is a huge CMA reserved memory for KODI, 384M. So i suspect it is running out of memory really soon that makes the system struggling. Here i added ZRAM to mitigate this. To be able to build Kodi i had to suppress CMA. Mesa and Panfrost were built with the huge CMA.

I have built mesa 20 and Kodi on my last attempt. It seems to be working.

I also reverted to the previous DVFS in a hope to restore 1.8GHz without much success, still limited to 1.5GHz.. but i get ~4C less in overall Temp.

I think if you are going Desktop, maybe the kernel without CMA (used for HW decoding) would be a better choice.

I have yet to test real decoding to see if cedrus is working.

pinighg commented 4 years ago

That’s great I tried to test Cedrus with h264fy plugin for chromium but I did not see any big difference in CPU usage when I play video, I mean with our without h264 decoding, cpu usage is high.

Today ill research how to test Mesa/OpenGL I tried with xglinfo and seems to be fine.

When you have a fixed version of kernel (I don’t know if mine is installed ok because I did symlinks manually etc from failed install) please let me know and ill test it.

Best regards

On 16 Dec 2019, at 12:08, avafinger notifications@github.com wrote:

Kernel 5.4.3 has a new DVFS and there is a huge CMA reserved memory for KODI, 384M. So i suspect it is running out of memory really soon that makes the system struggling. Here i added ZRAM to mitigate this. To be able to build Kodi i had to suppress CMA. Mesa and Panfrost were built with the huge CMA.

I have built mesa 20 and Kodi on my last attempt. It seems to be working.

I also reverted to the previous DVFS in a hope to restore 1.8GHz without much success, still limited to 1.5GHz.. but i get ~4C less in overall Temp.

I think if you are going Desktop, maybe the kernel without CMA (used for HW decoding) would be a better choice.

I have yet to test real decoding to see if cedrus is working.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/issues/5?email_source=notifications&email_token=ADVEZ42FDS2ZGEIAIJDWZ5LQY6KVFA5CNFSM4JXWEXDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG7AFXY#issuecomment-566100703, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADVEZ42MSKDYFJCQ7MEHLCLQY6KVFANCNFSM4JXWEXDA.

avafinger commented 4 years ago

Little update. Panfrost is not stable on my build and Cedrus still missing something.

I think the best approach would be to build LibreElec and get the Kernel tree and FFmpeg.

Can you build it in your VM? instructions are here: https://wiki.libreelec.tv/compile

pinighg commented 4 years ago

Hi, I read about it, but in GitHub of LibreElec there is no nightly branch like we need to have all working. I tried to search in full GitHub without luck, perhaps if you can send me from where download this nightly branch I can compile it on my VM.

Thanks.

On 16 Dec 2019, at 21:39, avafinger notifications@github.com wrote:

Little update. Panfrost is not stable on my build and Cedrus still missing something.

I think the best approach would be to build LibreElec and get the Kernel tree and FFmpeg.

Can you build it in your VM? instructions are here: https://wiki.libreelec.tv/compile https://wiki.libreelec.tv/compile — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/issues/5?email_source=notifications&email_token=ADVEZ44RGEU4R4BXQB65YBTQZANVFA5CNFSM4JXWEXDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHAVGLQ#issuecomment-566317870, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADVEZ47XS7EI6HFGTUCK233QZANVFANCNFSM4JXWEXDA.

avafinger commented 4 years ago

Hmmm, no idea. I think the nighty builds are based on the master dev branch.

Check the versioning here if it matches the one you say it works smooth. https://github.com/LibreELEC/LibreELEC.tv/commit/77ecb0d7c54737b8c6b876b55158c5dcfdbc9513

Let's try the master and you test it.

avafinger commented 4 years ago

@pinighg Please share the kernel tree and ffmpeg when you have that ready.

pinighg commented 4 years ago

Hi Avafinger, I checked and master branch is on 9.2 and test is 9.8.8 I’ll be on vacation until 27 but if I get proper repository I’ll let you know and perhaps I’ll ask your help about how to create kernel tree.

Best regards

On Tuesday, December 17, 2019, avafinger notifications@github.com wrote:

@pinighg https://github.com/pinighg Please share the kernel tree and ffmpeg when you have that ready.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/issues/5?email_source=notifications&email_token=ADVEZ4Y2XO6G4TM5NW4QBQTQZFDKRA5CNFSM4JXWEXDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHEC3OA#issuecomment-566767032, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADVEZ46NB3UGCXCJ7MMNOPDQZFDKRANCNFSM4JXWEXDA .

-- Gabriel H. Giovaniello +54 2216230146