This is my second attempt for Debian ARM64. Before armhf started working with HAT, I built it once with custom device tree but didn’t test throughout. This time I build on fresh cloned repository, everything as is from GitHub, I’m seeing different behaviors than the official armhf image:
My bad WiFi started after a while, I didn’t do anything particular, but still no audio. ARM64 seems playing video smoother than armhf though, armhf version is very choppy and GPU video decoding doesn’t work in Vivaldi (I guess it didn’t work in Chromium either but I already removed it can’t be sure)
No wonder Chromium plays YouTube so much better under ARM64, I checked chrome://gpu, hardware acceleration is enabled, after tweaked chrome://flags a little, the video looks even better now. If the audio works I’ll migrate to ARM64 in a heart beat.
Under armhf, neither Chromium nor Vivaldi (they are the same under the hood) could use hardware acceleration. I don’t think the users could live with this in the long term.
Compared the files related to es8316 on ARM64 and armhf back and forth, folder by folder, didn’t find anything suspicious. When playing video or music on ARM64, pulseaudio even show the playback level on “rockchip,es8316-codec Analog Stereo”, but nothing came out from the 3.5mm jack.
I see the dtbs of ARM64 build are in /boot, which in /sys under armhf build. I don’t remember if it was built like this or after some updates/upgrades.
aplay -l outputs are identical from both sides.
speaker-tests runs the same on both side but only armhf made the noise.
I don’t know. I compiled arm64, and armhf was downloaded originally. I ran apt-get upgrade linux-4.4-lastest on both side though.
On both side, apt list linux-4.4-lastest shows the same: apt list linux-4.4-lastest
Listing… Done
linux-4.4-lastest/unknown,now 4.4.154-73 all [installed]
I copied rockpi-4b-linux.dtb from armhf side to arm64 side, I got audio, and GPU accelerated video is still working!
Decompiled the 2 dtbs, compared them side by side, there are some suspicious differences, but nothing explicitly says “audio”. If I have time, I will flip them one at a time could find it out, but I have more stuff to do so I’ll move on to the next page.
Debian arm64 that is it, latest Chromium, smooth YouTube with audio.
I have my Debian ARM64 image ready (1.2GB after compression), it’s too big for github (they have 25MB size limit), would you provide some space for sharing? Thanks
SUMMARY: Debian-ARM64 for RockPi4
This is a Debian ARM64 build using the source code from Radxa (the manufacturer)'s repository (https://github.com/radxa/rockchip-bsp), with extra customized features and tunings.
“Open Folder as Root” context menu in File Manager
Known Issues:
The libmraa from Radxa apt repository is not compatible with Debian ARM64, the upgrade should be set on hold: sudo apt-mark hold libmraa-rockpi4(This is fixed on Mar 31, no longer need to put the upgrade on hold)
The root partition of the image is 3.0GB, you may need to increase the partition on your microSD card/eMMC