How to install Manjaro ARM on emmc properly? Orange Pi 5 Plus doesn't boot

Your wifi card is listed so no problem there. Your card should be supported by the kernel but is not included as there is module for 8852ae and ce but nor for your be.

So you have to build out of tree from the AUR like @spikerguy said. Luckily there is one source.

Thanks. Do you mean these packages from AUR:
https://aur.archlinux.org/packages/8852be-dkms-git
https://aur.archlinux.org/packages/rtw89bt-dkms-git

Read something about the 8852be-dkms-git was meant for Radxa 5B not for Orange Pi 5 Plus - but I could be wrong.

I am green on AUR packages. How to install it on Manjaro-Opi5-Plus-KDE?

The last time I tried to install AUR package was more than 2 years ago and was not successful.

You can activate AUR in the software installer in preferences. I’m on gnome and cannot say in KDE exactly.

Same in KDE Plasma. Activated/Enabled “AUR” repo.

Install base-devel git using:
pamac install base-devel git

Then proceed to install 8852be-dkms-git using pamac GUI.

Preparing...
Checking 8852be-dkms-git dependencies...
Resolving dependencies...
Checking inter-conflicts...
Cloning 8852be-dkms-git build files...
Generating 8852be-dkms-git information...
Download of dkms (3.0.12-1) started
Download of dkms (3.0.12-1) finished
Download of bc (1.07.1-4) started
Download of bc (1.07.1-4) finished
Checking keyring...
Checking integrity...
Loading packages files...
Checking file conflicts...
Checking available disk space...
Installing bc (1.07.1-4)...
Installing dkms (3.0.12-1)...
Running post-transaction hooks...
Arming ConditionNeedsUpdate...
Updating the info directory file...

Building 8852be-dkms-git...
==> Making package: 8852be-dkms-git 1.15.10.0.5.0.3-1 (Fri 14 Jun 2024 12:51:43 PM +08)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning 8852be-dkms git repo...
Cloning into bare repository '/var/tmp/pamac-build-jfl/8852be-dkms-git/8852be-dkms'...
  -> Found dkms.conf
==> Validating source files with sha256sums...
    8852be-dkms ... Skipped
    dkms.conf ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of 8852be-dkms git repo...
Cloning into '8852be-dkms'...
done.
==> Starting prepare()...
cat: debian/patches/series: No such file or directory
==> Starting pkgver()...
==> Updated version: 8852be-dkms-git 1.15.10.0.5.0.4-1
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "8852be-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: 8852be-dkms-git 1.15.10.0.5.0.4-1 (Fri 14 Jun 2024 12:52:42 PM +08)
==> Cleaning up...

Checking keyring...
Checking integrity...
Loading packages files...
Checking file conflicts...
Checking available disk space...
Installing 8852be-dkms-git (1.15.10.0.5.0.4-1)...
Running post-transaction hooks...
Arming ConditionNeedsUpdate...
Install DKMS modules
==> dkms install --no-depmod 8852be/1.15.10.0.5.0.4 -k 6.9.3-3-MANJARO-ARM
Error! Bad return status for module build on kernel: 6.9.3-3-MANJARO-ARM (aarch64)
Consult /var/lib/dkms/8852be/1.15.10.0.5.0.4/build/make.log for more information.
==> WARNING: `dkms install --no-depmod 8852be/1.15.10.0.5.0.4 -k 6.9.3-3-MANJARO-ARM' exited 10
Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k 6.9.3-3-MANJARO-ARM -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: '6.9.3-3-MANJARO-ARM'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
==> WARNING: architecture 'aarch64' not supported, skipping hook
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: No module containing the symbol 'drm_privacy_screen_register' found in: 'drivers/platform'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-linux.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
Transaction successfully finished.

Process was successful.

Will reboot and check whether wifi is detected. Thanks for the help.

Edit: After Reboot, wifi still NOT detected.
Is there a command to activate the 8852be-dkms-git?

Maybe is just bad luck. Aur is not a 100% reliable source as is not checked by Manjaro and depends on the uploader skillness. In addition to this usually there is little information about ( the driver is not for arm64 or pci bus?)

You can force with - modprobe 8852be -

I would like to see these outputs:

  • dmesg |grep -i error
  • dmesg |grep -i fail
  • dmesg |grep -i 8852

I would try building this: GitHub - HRex39/rtl8852be: Realtek Linux WLAN Driver for RTL8852BE . You have enough information to do it properly.

@JFL

Early I mentioned installation was successful but on inspection of the detailed output, it has error:

==> dkms install --no-depmod 8852be/1.15.10.0.5.0.4 -k 6.9.3-3-MANJARO-ARM
Error! Bad return status for module build on kernel: 6.9.3-3-MANJARO-ARM (aarch64)
Consult /var/lib/dkms/8852be/1.15.10.0.5.0.4/build/make.log for more information.
==> WARNING: `dkms install --no-depmod 8852be/1.15.10.0.5.0.4 -k 6.9.3-3-MANJARO-ARM' exited 10
Updating linux initcpios...

So it might NOT have been successful.

Edit:

[jfl@jfl-opi5plus ~]$ dmesg | grep -i error
[   12.848827] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[jfl@jfl-opi5plus ~]$ dmesg | grep -i fail
[    0.349843] watchdog: Delayed init of the lockup detector failed: -19
[    1.306815] pci 0000:00:00.0: BAR 1 [mem size 0x40000000]: failed to assign
[    3.336913] energy_model: Accessing cpu4 policy failed
[    3.341701] energy_model: Accessing cpu6 policy failed
[   12.848827] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   12.848854] cfg80211: failed to load regulatory.db
[   20.962156] platform fc000000.usb: deferred probe pending: dwc3: failed to initialize core
[jfl@jfl-opi5plus ~]$ dmesg | grep -i 8852
[jfl@jfl-opi5plus ~]$

Edit 1: Tried to install GitHub - HRex39/rtl8852be: Realtek Linux WLAN Driver for RTL8852BE
But encounter errors.

[jfl@jfl-opi5plus ~]$ git clone https://github.com/HRex39/rtl8852be.git -b dev
Cloning into 'rtl8852be'...
remote: Enumerating objects: 1070, done.
remote: Counting objects: 100% (157/157), done.
remote: Compressing objects: 100% (95/95), done.
remote: Total 1070 (delta 73), reused 133 (delta 53), pack-reused 913
Receiving objects: 100% (1070/1070), 4.56 MiB | 635.00 KiB/s, done.
Resolving deltas: 100% (250/250), done.


[jfl@jfl-opi5plus ~]$ cd rtl8852be

[jfl@jfl-opi5plus rtl8852be]$ make -j8
#rm -f .symvers.8852be
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/6.9.3-3-MANJARO-ARM/build M=/home/jfl/rtl8852be  modules
make[1]: Entering directory '/usr/lib/modules/6.9.3-3-MANJARO-ARM/build'
/usr/lib/modules/6.9.3-3-MANJARO-ARM/build/Makefile:759: arch/aarch64/Makefile: No such file or directory
make[2]: *** No rule to make target 'arch/aarch64/Makefile'.  Stop.
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.9.3-3-MANJARO-ARM/build'
make: *** [Makefile:637: modules] Error 2
[jfl@jfl-opi5plus

We both have not read the readme properly. You should try this one.

Looks like for kernel-6.10 or newer.

This code will build on any kernel 6.10 and newer as long as the distro has not modified any of the kernel APIs. IF YOU RUN UBUNTU, YOU CAN BE ASSURED THAT THE APIs HAVE CHANGED. NO, I WILL NOT MODIFY THE SOURCE FOR YOU. YOU ARE ON YOUR OWN!!!

This is really confusing. The kernel 6.10 seems that was not there when the code was updated. A user says has builded it with 6.9 kernel and works.
Anyway is 8852ae and works for be, so the manjaro module can be good. Could the pci bus be broken?
Moreover, regulatory.db is not working and yor router can refuse to connect making this effort useless.

With kernel-5.10.110/160 wifi works well.

And with Joshua Riek 6.1.43 kernels it sometimes work (with low speed and at times able to stream 1080p/60 youtube but most could not). Most of the time it does connect for whatever reason(s). The system says WIFI is available but just cannot connect – timeout.

So suspect it is RTL8852BE-CG driver for bsp-kernel-6.1 and may be also with mainline kernel for now.

With pci bus broken I meant in the kernel, not physically.

Maybe you want to give a try to ED2K to see yor wifi-pci card working.

GitHub - edk2-porting/edk2-rk3588: EDK2 UEFI firmware for Rockchip RK3588 platforms

It says PCIe2.1 working and the wifi should work.

Thanks. The edk2-porting/edk2-rk3588 looks a bit complicated to get it to work. Is it Debian/Ubuntu or is it Arch Linux? There are a lot of good info there. Will read up.

So taking an easier way on distro that have used before. Installed the latest Armbian-Noble-Gnome-6.10-rc3 just to see whether:

  1. WIFI (RTL8852BE-CG) is detected, available and works

Initial test result:

  1. WiFi (RTL8852BE-CG) is detected and system indicate it is available but it somehow could not connect/time out. The time out message is repeated may times.
[  332.876403] wlP2p33s0: authenticate with 34:e8:94:75:06:73 (local address=a8:43:a4:4d:b2:3d)
[  332.876412] wlP2p33s0: send auth to 34:e8:94:75:06:73 (try 1/3)
[  332.906816] wlP2p33s0: send auth to 34:e8:94:75:06:73 (try 2/3)
[  332.937138] wlP2p33s0: send auth to 34:e8:94:75:06:73 (try 3/3)
[  332.969495] wlP2p33s0: authentication with 34:e8:94:75:06:73 timed out

Bluetooth is available and my old bluetooth mouse sort of work (but not very responsive compared to a cabled mouse).

The edk2 firmware is easy to use. You have to write It to a sd card and the sbc boots from there. Write a Linux live distro to USB and the firmware will load the kernel and the Desktop. Ubuntu is not a good distro for rockchip but fedora and opensuse can do well. You can try then and see if wifi works.

In case wifi works you can use this firmware with Manjaro but that is another history. Maybe you must change uboot or wait for a better Manjaro firmware.

Just checking do you know whether Fedora (mainline kernel) support hdmi audio and vpu hw acceleration?

This sound interesting, being able to boot up from USB drive with edk2 firmware on SD card. Another option to try.

Currently do have a working Manjaro-Opi5Plus-KDE with kernel-6.1.43-joshua-panthor-git which support GPU and VPU hw acceleration.

With edk2 you won’t have Linux hardware drivers, instead you Will have another ones like efifb for the GPU. Of course nothing for VPU.

The idea is to check if you have a working wifi without any problem. If you are sure you have a fully working wifi then you can avoid this trial but reading your posts seems that you haven’t.

With this firmware you can also run Linux with DTB and kernel drivers but i don’t know if there’s any diference with uboot. Manjaro can run this way and is the fastest one for rockchip.

On mainline kernel (Armbian 6.10-rc3) or bsp-kernel-6.1.43-joshua-panthor-git I don’t have a stable WiFi connection yet. It is touch and go (most of the time not connected and even when connected, connection speed is NOT up to par compared to bsp-kernel-5.10.160). When WiFi is available on kernel 6.1.43 it is usable for streaming Youtube up to 1080p/60 usually. Just that it doesn’t get connected successfully all the time.

On bsp-kernel-5.10.160 WiFi is working well or as expected so far.

Flased edk2 firmware on a 1GB SD Card and tried to boot using edk2 firmaware but it will NOT recognize the non-uefi image that I have on NVMe SSD or example Armbian-Noble-Gnome-6.10-rc3 on SD Card inserted into USB-Hub with SD Card reader/writer.

I suppose the edk2 firmware only boot uefi images?

Based on what have been posted in the net, mainline kernel for RK3588 is not ready for prime-time Desktop usage yet. Many basic functions are not ready yet but it has come a long way, for example now that Panthor (GPU hw acceleration) is available for mainline kernel.

For example Manjaro-Opi5Plus-KDE-6.9.3-3 image, have NO access to USB 3.0 Ports yet but can access NVMe SSD. But in general stable and usable depending on your needs.

The WiFi issue I am facing might be unique to Orange Pi 5 Plus using the so called official WiFi module from Xulong Software RTL8852BE-CG. Other Orange Pi 5 Plus users using another WiFi module does not seem to have the WiFi connection or WiFi stability issue.

What did happen with the live USB?

Haven’t have a chance to try yet. Any OS distro to recommend to try that have development for RK3588?

After reading the RK3588 Mainline Status
mainline-status.md · main · hardware-enablement / Rockchip RK3588 upstream enablement efforts / Notes for Rockchip 3588 · GitLab and Fedora on Rock 5B not sure whether it will have a better outcome than Manjaro-Opi5Plus-KDE-6.9.3-3 or Armbian-Noble-Gnome-6.10-rc3.

On Armbian-Noble-Gnome-6.10-rc3 on USB 3.0 ports are working but no HDMo Audio/Headphone Audio output and Chromium with vpu hw acceleration (support up to 1080p but no audio). WiFi is recognize but will not connect successfully.

For WiFi (RTL8852BE-CG) currently as far as I can tell, Armbian did a patch (from Xulong Software) to their kernel 6.1.43-vendor-rk3588, this might be the best chance of getting WiFi on kernel-6.1.43.

good news for 3588.
https://lore.kernel.org/lkml/20240615015734.1612108-1-detlev.casanova@collabora.com/

1 Like

Hi @SickOS,

Update on edk2 firmware on SD Card and Fedora_Rawhide_KDE on USB. Current kernel is 6.10-rc4 after first update/upgrade.

Managed to boot up.

WiFI is recognized but will NOT Connect, similar to Armbian-Noble-Gnome-6.10-rc4.

[  245.217951] wlP2p1s0: send auth to 34:e8:94:75:06:72 (try 1/3)
[  245.233169] wlP2p1s0: send auth to 34:e8:94:75:06:72 (try 2/3)
[  245.248634] wlP2p1s0: send auth to 34:e8:94:75:06:72 (try 3/3)
[  245.263885] wlP2p1s0: authentication with 34:e8:94:75:06:72 timed out
[  256.986822] wlP2p1s0: authenticate with 34:e8:94:75:06:72 (local address=66:cd:

NO GPU Hardware Acceleration. Whereas on Manjaro-Opi5Plus-6.9.3-3 and Armbian-Noble-Gnome-6.10-rc4 GPU Hardware Acceleration is available.

jfl@fedora:~$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa (0xffffffff)
    Device: llvmpipe (LLVM 18.1.6, 128 bits) (0xffffffff)
    Version: 24.1.2
    Accelerated: no
    Video memory: 15661MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2

Not ready for desktop usage.