Manjaro ARM for Rock5B

Features

  • All features of Manjaro
  • Plenty of drivers enabled, including network cards, usb devices, even amd gpus

Building instruction

(probably only support manjaro)

  1. Install manjaro arm tool
    sudo pacman -S manjaro-arm-tools

  2. Build the kernel (or grab a prebuilt one)
    Kernel PKGBUILD repo: linux-vendor-RK3588-PKGBUILD

    git clone https://github.com/happyme531/linux-vendor-RK3588-PKGBUILD
    mv linux-vendor-RK3588-PKGBUILD linux
    MAKEFLAGS="<your make flags>" sudo buildarmpkg -p linux
    

    Note: On x86 machines the kernel build time is insane (~1.5hrs on high-end desktop cpu), please be patient. Building on an ARM machine is highly recommended if you have one.

  3. Build image

    sudo buildarmimg -d generic -e minimal -p btrfs -i <built-kernel-pkg>,<built-kernel-header-pkg>
    

    the image will be built in /var/cache/manjaro-arm-tools/img/

  4. Flash the image into an SD card using the tool you like (I recommend usbimager).

Prebuilt images

Coming soon

Current issues

  • Desktop environment not working
  • Serial console is hanging from time to time
  • GPU not working (apperantly)
  • Many features untested

Note

  • You need an u-boot in spi flash in order to boot this image. You can follow this guide to install it.
  • For some tf cards the u-boot is unable to boot automatically. This should be treated as a bug, but a current workaround to manually boot is executing these commands in the u-boot shell:
    mmc list
    run bootcmd
    
  • Don’t upgrade the “linux” package from the official manjaro arm repo!
    To do that add this to /etc/pacman.conf as soon as possible
    IgnorePkg = linux
    
  • Sometimes the boot partition is not mounted correctly. Manually mount it if you want to install new kernel.
3 Likes

Thank you for working on Manjaro Arm.

Does it compile successfully on latest gcc?
You can rename the kernel pkgname to something else to avoid user updating it by mistake.

The upstream kernel already supports rk3588. I have tested it myself on 2 of the rk3588 variant boards.
The current working IO :

  1. Emmc
  2. Sd card
  3. Uart
  4. Lan (onboard only)
  5. Pcie3 (recently tested)

I don’t see why there should be the need to work on bsp kernel but it’s good to see contributors contributing with bsp support.

1 Like