3. Manjaro 手册

3.1. 支持设备列表

主控 板卡型号
RK3566 ROC-RK3566-PC/Station-M2
RK3568 ROC-RK3568-PC/Station-P2
RK3399 ROC-RK3399-PC-PLUS/Station-P1

3.2. 必要条件

  • 在 x86_64 机器上运行的 Manjaro

  • Manjaro-arm-tools

3.3. Manjaro-arm-tools

安装

$ sudo pacman -S manjaro-arm-tools manjaro-tools-base

或者使用 git 版本的工具

$ sudo pacman -Syy manjaro-arm-tools-git

3.4. 获取配置文件

配置文件主要是文本文件,其中包含在为 Manjaro-ARM 构建的映像上安装和配置的包和设置的列表。 它们允许我们设置主题、启动服务、添加任务栏小程序、默认设置等等。 它们源自 Manjaro 自己的配置文件,并进行了一些修改以在 ARM 板上工作。 它们安装在:

/usr/share/manjaro-arm-tools/profiles

用法:

$ sudo getarmprofiles -f

3.5. 编译镜像

Usage: buildarmimg [options]
    -d <device>        Device the image is for. [Default = rpi4. Options = am6-plus, clockworkpi-a06, edgev, generic, gsking-x, gt1-ultimate, gtking-pro, halium-9, jetson-nano, m5, nanopc-t4, nanopi-neo-plus2, oc2, oc4, ohc4, on2, on2-plus, pbpro, pbpro-bsp, pine64, pine64-lts, pinebook, pine-h64, pinenote, pinephone, pinephonepro, pinetab, quartz64-a, quartz64-b, quartz64-bsp, radxa-zero, radxa-zero2, roc-cc, rock3a, rock64, rockpi4b, rockpi4c, rockpro64, rpi3, rpi4, rpi4-cutiepi, soquartz-cm4, station-m2, stationp1, station-p2, vim1, vim2, vim3, vim3l]
    -e <edition>       Edition of the image. [Default = minimal. Options = budgie, cubocore, desq, gnome, i3, jade, kde-bigscreen, kde-plasma, lomiri, lxqt, mate, maui-shell, minimal, nemomobile, phosh, plasma-mobile, plasma-mobile-dev, server, sway, wayfire, xfce]
    -v <version>       Define the version the resulting image should be named. [Default is current YY.MM]
    -k <repo>          Add overlay repo [Options = kde-unstable, mobile].
    -i <package>       Install local package into image rootfs.
    -b <branch>        Set the branch used in the image. [Default = stable. Options = stable, testing or unstable]
    -m                 Create bmap. ('bmap-tools' need to be installed.)
    -n                 Force download of new rootfs.
    -s <hostname>      Use custom hostname
    -x                 Don't compress the image.
    -c                 Disable colors.
    -h                 This help

其中常用的选项为:

-d <device>:指定编译设备,Firefly目前支持的设备为 stationp1,station-m2, station-p2
-e <edition>:发行版,常用的发行版有 gnome, xfce, kde

下面以编译 gnome 系统为例,编译完成之后,固件在:/var/cache/manjaro-arm-tools/img/

3.5.1. ROC-3566-PC/Station-M2

sudo buildarmimg -d station-m2 -e gnome

3.5.2. ROC-3568-PC/Station-P2

sudo buildarmimg -d station-p2 -e gnome

3.5.3. ROC-3399-PC-PLUS/Station-P1

sudo buildarmimg -d stationp1 -e gnome

3.6. 官方每周镜像下载