Jump to content

Khadas EDGE2 + kernel 6.x + panfrost


balbes150

Recommended Posts

Version 20230401 with kernel 6.2 (pancsf-midstream).

With HDMI USB support. 

 

https://disk.yandex.ru/d/W8pOOhizVjq91A

 

To enable HW acceleration, install the mesa package with the forced overwrite option or an archive to enable acceleration for wayland. To enable wayland acceleration, you need to replace the files in the /usr/lib/aarch64-linux-gnu directory with the contents of the archive (with file replacement). After that, acceleration will work with wayland. X11 and wayland acceleration works the same way on Debian Sid (the images are the same as Ubuntu). After starting the system and initial configuration, replace the files from the archive in the same way and acceleration will work. The results of running in Debian Sid Gnome for x11 and wayland.

 

dpkg -i --force-overwrite mesa_23.0.0-dev-2_arm64.deb 

 

After installation and reboot, HW acceleration will work in x11 and wayland.

Please note, this is a test version of mesa for the initial evaluation of the work, some of the functions do not work in it and there may be bugs.

With x11, the system works more stably, but the test results are lower than in gnome+wayland.

 

deb\archive

 

https://disk.yandex.ru/d/h8c-Y2FfAvx76g

Link to comment
Share on other sites

  • Werner changed the title to Khadas EDGE2 + kernel 6.x + pancsf

Ver 20230609-edge (use u-boot) kernel 6.4-rc5 (no HDMI)

 

 

root@192.168.1.19's password: 
 _  ___               _             _____ ____   ____ _____ ____  
| |/ / |__   __ _  __| | __ _ ___  | ____|  _ \ / ___| ____|___ \ 
| ' /| '_ \ / _` |/ _` |/ _` / __| |  _| | | | | |  _|  _|   __) |
| . \| | | | (_| | (_| | (_| \__ \ | |___| |_| | |_| | |___ / __/ 
|_|\_\_| |_|\__,_|\__,_|\__,_|___/ |_____|____/ \____|_____|_____|
                                                                  
Welcome to Armbian 23.04 Lunar with bleeding edge Linux 6.4.0-rc5-media

No end-user support: built from trunk

System load:   18%           	Up time:       3 min	
Memory usage:  2% of 7.50G  	IP:	       192.168.1.19
CPU temp:      34°C           	Usage of /:    51% of 3.4G   	
RX today:      n/a	  	

[ 29 security updates available, 34 updates total: apt upgrade ]
Last check: 2023-06-09 07:53

[ General system configuration (beta): armbian-config ]

Last login: Fri Jun  9 10:53:21 2023
root@khadas-edge2:~# neofetch 
                                 root@khadas-edge2 
                                 ----------------- 
      █ █ █ █ █ █ █ █ █ █ █      OS: Armbian (23.04) aarch64 
     ███████████████████████     Host: Khadas Edge2 
   ▄▄██                   ██▄▄   Kernel: 6.4.0-rc5-media 
   ▄▄██    ███████████    ██▄▄   Uptime: 3 mins 
   ▄▄██   ██         ██   ██▄▄   Packages: 549 (dpkg) 
   ▄▄██   ██         ██   ██▄▄   Shell: bash 5.2.15 
   ▄▄██   ██         ██   ██▄▄   Terminal: /dev/pts/0 
   ▄▄██   █████████████   ██▄▄   CPU: (8) 
   ▄▄██   ██         ██   ██▄▄   Memory: 182MiB / 7675MiB 
   ▄▄██   ██         ██   ██▄▄
   ▄▄██   ██         ██   ██▄▄                           
   ▄▄██                   ██▄▄                           
     ███████████████████████
      █ █ █ █ █ █ █ █ █ █ █

root@khadas-edge2:~# 

 

Link to comment
Share on other sites

Hey there, I know this is a little off topic, but I'm just wondering if you might be able to share sources/the dts you're using? Or are you using the same one from armbian 5.10? I'm trying to build a mainline kernel to run NixOS, and I'm putting a few things together from different kernel sources, but I thought it might be easier if you had something you wouldn't mind sharing. Thanks!

Link to comment
Share on other sites

1 час назад, REMYV сказал:

Ya, like which kernel source...

All patches are in my git.

 

1 час назад, REMYV сказал:

Do you know what might have gone wrong with the hdmi also?

corny there is no support for the driver

Link to comment
Share on other sites

Ver 20230713-edge kernel 6.4.3

 

Ver 20230714-edge kernel 6.5-rc1

 

 _  ___               _             _____ ____   ____ _____ ____  
| |/ / |__   __ _  __| | __ _ ___  | ____|  _ \ / ___| ____|___ \ 
| ' /| '_ \ / _` |/ _` |/ _` / __| |  _| | | | | |  _|  _|   __) |
| . \| | | | (_| | (_| | (_| \__ \ | |___| |_| | |_| | |___ / __/ 
|_|\_\_| |_|\__,_|\__,_|\__,_|___/ |_____|____/ \____|_____|_____|
                                                                  
Welcome to Armbian 23.06 Lunar with bleeding edge Linux 6.5.0-rc1-media

No end-user support: built from trunk

System load:   3%           	Up time:       4 min	
Memory usage:  2% of 7.51G  	IP:	       192.168.1.19
CPU temp:      34°C           	Usage of /:    25% of 7.2G   	
RX today:      4.1 KiB  	

[ 0 security updates available, 1 updates total: apt upgrade ]
Last check: 2023-07-13 14:08

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

user@khadas-edge2:~$ neofetch 
                                 user@khadas-edge2 
                                 ----------------- 
      █ █ █ █ █ █ █ █ █ █ █      OS: Armbian (23.06) aarch64 
     ███████████████████████     Host: Khadas Edge2 
   ▄▄██                   ██▄▄   Kernel: 6.5.0-rc1-media 
   ▄▄██    ███████████    ██▄▄   Uptime: 4 mins 
   ▄▄██   ██         ██   ██▄▄   Packages: 549 (dpkg) 
   ▄▄██   ██         ██   ██▄▄   Shell: bash 5.2.15 
   ▄▄██   ██         ██   ██▄▄   Terminal: /dev/pts/0 
   ▄▄██   █████████████   ██▄▄   CPU: (8) 
   ▄▄██   ██         ██   ██▄▄   Memory: 183MiB / 7691MiB 
   ▄▄██   ██         ██   ██▄▄
   ▄▄██   ██         ██   ██▄▄                           
   ▄▄██                   ██▄▄                           
     ███████████████████████
      █ █ █ █ █ █ █ █ █ █ █

user@khadas-edge2:~$

 

Link to comment
Share on other sites

3 часа назад, REMYV сказал:

I'm probably being really dumb but I can't seem to find in your git how you're building the 6.4/6.5 kernels.

 

git clone --depth=1 --branch=armbian-tv https://github.com/150balbes/build.git

cd build

./compile.sh

 

in the menu that opens, select the model and version of the kernel (edge)

Link to comment
Share on other sites

ver 20230726-edge kernel 6.5-rc3

 

user@192.168.1.15's password: 
 _  ___               _             _____ ____   ____ _____ ____  
| |/ / |__   __ _  __| | __ _ ___  | ____|  _ \ / ___| ____|___ \ 
| ' /| '_ \ / _` |/ _` |/ _` / __| |  _| | | | | |  _|  _|   __) |
| . \| | | | (_| | (_| | (_| \__ \ | |___| |_| | |_| | |___ / __/ 
|_|\_\_| |_|\__,_|\__,_|\__,_|___/ |_____|____/ \____|_____|_____|
                                                                  
Welcome to Armbian 23.06 Lunar with bleeding edge Linux 6.5.0-rc3-media

No end-user support: built from trunk

System load:   6%           	Up time:       6 min	
Memory usage:  2% of 7.50G  	IP:	       192.168.1.15
CPU temp:      37°C           	Usage of /:    53% of 3.4G   	
RX today:      14.3 KiB  	

[ 6 security updates available, 7 updates total: apt upgrade ]
Last check: 2023-07-26 13:16

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

user@khadas-edge2:~$ neofetch 
                                 user@khadas-edge2 
                                 ----------------- 
      █ █ █ █ █ █ █ █ █ █ █      OS: Armbian (23.06) aarch64 
     ███████████████████████     Host: Khadas Edge2 
   ▄▄██                   ██▄▄   Kernel: 6.5.0-rc3-media 
   ▄▄██    ███████████    ██▄▄   Uptime: 6 mins 
   ▄▄██   ██         ██   ██▄▄   Packages: 549 (dpkg) 
   ▄▄██   ██         ██   ██▄▄   Shell: bash 5.2.15 
   ▄▄██   ██         ██   ██▄▄   Terminal: /dev/pts/0 
   ▄▄██   █████████████   ██▄▄   CPU: (8) 
   ▄▄██   ██         ██   ██▄▄   Memory: 183MiB / 7675MiB 
   ▄▄██   ██         ██   ██▄▄
   ▄▄██   ██         ██   ██▄▄                           
   ▄▄██                   ██▄▄                           
     ███████████████████████
      █ █ █ █ █ █ █ █ █ █ █

user@khadas-edge2

 

Link to comment
Share on other sites

Ver 20230911-EDK2-EFI kernel legacy\current\edge (the startup works from an SD card).

 

On the edge version, HDMI does not work in the kernel itself, but HDMI is supported at the level of the selection menu in GRUB, this allows you to have several different versions of the kernel\system (for example, add a self-assembled EDGE kernel with its own configuration) and choose on the monitor screen which kernel\system to run not using the UART console.

Link to comment
Share on other sites

Version 20231026-current (pancsf)
Version 20231026-edge (panthor)

Added support for HDMI audio. After installing mesa with HW acceleration,  can use the system for full-screen video playback with sound, including 4k
I checked Firefox - it plays 1440p video to full screen without brakes. I tried 2160p - there is not enough Internet channel. All local 4k video files (4096x2160) - reproduces without problems.

Link to comment
Share on other sites

  • balbes150 changed the title to Khadas EDGE2 + kernel 6.x + panfrost

Ver 20240124-legacy (5.10).

Fixed wifi and bt.

Debian images from GNOME have been added.

In Debian (sid) and Ubuntu (lunar), can enable HW acceleration (to do this, need to perform several additional manual steps).

 

 

ssh: X11 forwarding request failed on channel 0
 _  ___               _             _____ ____   ____ _____ ____  
| |/ / |__   __ _  __| | __ _ ___  | ____|  _ \ / ___| ____|___ \ 
| ' /| '_ \ / _` |/ _` |/ _` / __| |  _| | | | | |  _|  _|   __) |
| . \| | | | (_| | (_| | (_| \__ \ | |___| |_| | |_| | |___ / __/ 
|_|\_\_| |_|\__,_|\__,_|\__,_|___/ |_____|____/ \____|_____|_____|
                                                                  
Welcome to Armbian 23.12 Trixie with Linux 5.10.110-media

No end-user support: built from trunk

System load:   18%           	Up time:       1 min	Local users:   2            	
Memory usage:  8% of 7.49G  	IP:	       192.168.1.44
CPU temp:      38°C           	Usage of /:    37% of 15G    	

Attention: Your SD card seems to be very slow. Please check performance using armbianmonitor -c

user@khadas-edge2:~$ neofetch 
                                 user@khadas-edge2 
                                 ----------------- 
      █ █ █ █ █ █ █ █ █ █ █      OS: Armbian (23.12) aarch64 
     ███████████████████████     Host: Khadas Edge2 
   ▄▄██                   ██▄▄   Kernel: 5.10.110-media 
   ▄▄██    ███████████    ██▄▄   Uptime: 1 min 
   ▄▄██   ██         ██   ██▄▄   Packages: 1524 (dpkg) 
   ▄▄██   ██         ██   ██▄▄   Shell: bash 5.2.21 
   ▄▄██   ██         ██   ██▄▄   Resolution: 1920x1080 
   ▄▄██   █████████████   ██▄▄   Terminal: /dev/pts/1 
   ▄▄██   ██         ██   ██▄▄   CPU: (8) @ 1.800GHz 
   ▄▄██   ██         ██   ██▄▄   Memory: 659MiB / 7672MiB 
   ▄▄██   ██         ██   ██▄▄
   ▄▄██                   ██▄▄                           
     ███████████████████████                             
      █ █ █ █ █ █ █ █ █ █ █

user@khadas-edge2:~$ glmark2-wayland 
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      Panfrost
    GL_RENDERER:    Mali-G610 (Panfrost)
    GL_VERSION:     3.3 (Compatibility Profile) Mesa 23.0.0-devel
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 1613 FrameTime: 0.620 ms
[build] use-vbo=true: FPS: 1960 FrameTime: 0.510 ms
[texture] texture-filter=nearest: FPS: 2031 FrameTime: 0.492 ms
[texture] texture-filter=linear: FPS: 2006 FrameTime: 0.499 ms
[texture] texture-filter=mipmap: FPS: 1999 FrameTime: 0.500 ms
[shading] shading=gouraud: FPS: 1650 FrameTime: 0.606 ms
[shading] shading=blinn-phong-inf: FPS: 960 FrameTime: 1.042 ms
[shading] shading=phong: FPS: 913 FrameTime: 1.096 ms
[shading] shading=cel: FPS: 1031 FrameTime: 0.971 ms
[bump] bump-render=high-poly: FPS: 908 FrameTime: 1.102 ms
[bump] bump-render=normals: FPS: 1388 FrameTime: 0.721 ms
[bump] bump-render=height: FPS: 1342 FrameTime: 0.745 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 948 FrameTime: 1.055 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 772 FrameTime: 1.296 ms
[pulsar] light=false:quads=5:texture=false: FPS: 1766 FrameTime: 0.566 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 338 FrameTime: 2.961 ms
[desktop] effect=shadow:windows=4: FPS: 1371 FrameTime: 0.730 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 292 FrameTime: 3.435 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 406 FrameTime: 2.468 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 455 FrameTime: 2.199 ms
[ideas] speed=duration: FPS: 1090 FrameTime: 0.918 ms
[jellyfish] <default>: FPS: 954 FrameTime: 1.049 ms
[terrain] <default>: FPS: 38 FrameTime: 26.651 ms
[shadow] <default>: FPS: 1023 FrameTime: 0.978 ms
[refract] <default>: FPS: 186 FrameTime: 5.381 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 1737 FrameTime: 0.576 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 1664 FrameTime: 0.601 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 1727 FrameTime: 0.579 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 1717 FrameTime: 0.583 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 1660 FrameTime: 0.602 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 1696 FrameTime: 0.590 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 1660 FrameTime: 0.603 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 1604 FrameTime: 0.624 ms
=======================================================
                                  glmark2 Score: 1238 
=======================================================

 

Link to comment
Share on other sites

Ver 20240201 current (6.2) and edge (6.8). Support for HW acceleration was immediately added to these images, additional manual installation of the package is no longer required. Added Debian Gnome and Ubuntu KDE images with wayland acceleration.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines