Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rebuild Armbian and Kernel

Actions
Support Amlogic, Rockchip and Allwinner boxes
Armbian_trixie_save_2025.10
Latest
Star (7.9K)

Tags

 (1)

Armbian

View Chinese description |查看中文说明

Armbian is a lightweight Linux system specially built for ARM chips based on Debian/Ubuntu. The Armbian system is lean, clean, and 100% compatible with and inherits the features and rich software ecosystem of the Debian/Ubuntu system. It can run securely and stably in TF/SD/USB and the device's eMMC. This project preserves the integrity of the official Armbian system and further expands its usage on devices such as TV boxes that are not officially supported. It adds some convenient operation commands. Now, you can replace the Android TV system on your TV box with the Armbian system, turning it into a powerful server.

This project relies on manycontributors to build the Armbian system forAmlogic,Rockchip, andAllwinner boxes, supports writing to eMMC for use, supports updating the kernel and other features. Detailed usage can be found in theArmbian User Documentation. The latest Armbian system can be downloaded fromReleases. Welcome toFork and personalize. If it's useful to you, you can clickStar in the upper right corner of the repository to show support.

Armbian System Description

SoCDeviceKernelArmbian
a311dKhadas-VIM3,WXY-OESAllamlogic_a311d.img
s922xBeelink-GT-King,Beelink-GT-King-Pro,Ugoos-AM6-Plus,ODROID-N2,X88-King,Ali-CT2000,WXY-OES-PlusAllamlogic_s922x.img
s905x3X96-Max+,HK1-Box,Vontar-X3,H96-Max-X3,Ugoos-X3,TX3(QZ),TX3(BZ),X96-Air,X96-Max+_A100,A95X-F3-Air,Tencent-Aurora-3Pro(s905x3-b),X96-Max+Q1,X96-Max+100W,X96-Max+_2101,Infinity-B32,Whale,X88-Pro-X3,X99-Max-Plus,Transpeed-X3-PlusAllamlogic_s905x3.img
s905x2X96Max-4G,X96Max-2G,MECOOL-KM3-4G,Tanix-Tx5-Max,A95X-F2,HG680-FJAllamlogic_s905x2.img
s912Tanix-TX8-Max,Tanix-TX9-Pro(3G),Tanix-TX9-Pro(2G),Tanix-TX92,Nexbox-A1,Nexbox-A95X-A2,A95X,H96-Pro-Plus,VORKE-Z6-Plus,Mecool-M8S-PRO-L,Vontar-X92,T95Z-Plus,Octopus-Planet,Phicomm-T1,TX3-Mini,OneCloudPro-V1.1_V1.2Allamlogic_s912.img
s905dMECOOL-KI-Pro,Phicomm-N1,SML-5442TWAllamlogic_s905d.img
s905xHG680P,B860H,TBee-Box,T95,TX9,XiaoMI-3S,X96Allamlogic_s905x.img
s905wX96-Mini,TX3-Mini,W95,X96W/FunTV,MXQ-Pro-4KAllamlogic_s905w.img
s905mbS65Allamlogic_s905mb.img
s905lUNT402A,M201-S,MiBox-4,MiBox-4C,MG101,E900V21C,IP108H-53u1m,Tencent-Aurora-1s,B860AV2.1,B860AV2.1U,HM201Allamlogic_s905l.img
s905l2MGV2000,MGV2000-K,MGV3000,Wojia-TV-IPBS9505,M301A,E900v21E,e900v21d,CM201-1,IP108H,MGV2000-CWAllamlogic_s905l2.img
s905l3CM211-1,CM311-1,HG680-LC,M401A,UNT400G1,UNT400G,UNT402A,ZXV10-BV310,M411A,ZXV10-B860AV3.2-M,ZXV10-B860AV2.1-U,E900V22D-2,CM201-1-6-YS,IP108H,M301AAllamlogic_s905l3.img
s905l3aE900V22C/D,CM311-1a-YST,M401A,M411A,UNT403A,UNT413A,ZTE-B863AV3.2-M,CM311-1a-CH,IP112H,B863AV3.1-M2Allamlogic_s905l3a.img
s905l3bCM201-1,CM211-1,CM311-1,E900V21D,E900V22D,E900V21E,E900V22E,M302A/M304A,Hisense-IP103H,TY1608,TY1608,MGV2000,B860AV-2.1M,UNT403A,RG020ET-CAAllamlogic_s905l3b.img
s905lbQ96-mini,BesTV-R3300L,SumaVision-Q7,MG101,s65,IPBS9505Allamlogic_s905lb.img
s905Beelink-Mini-MX-2G,Sunvell-T95M,MXQ-Pro+4K,SumaVision-Q5Allamlogic_s905.img
rk3588(s)Radxa-Rock5B,Radxa-Rock5C,Orange-Pi-5-Plus,Beelink-IPC-R,HLink-H88K,HLink-H88K-V3,NanoPC-T6,Smart-Am60,DC-A588,Orangepi-5Brk3588rockchip_boxname.img
rk3568FastRhino-R66S,FastRhino-R68S,Radxa-E25,NanoPi-R5S,NanoPi-R5C,HLink-H66K,HLink-H68K,HLink-H69K,Seewo-sv21,Mrkaio-m68s,Swan1-w28,Ruisen-box,DG-TN3568,Alark35-3500,MMBox-Anas3035,Wocyber-A3rk35xxrk35xx
6.x.y
rk3566Panther-X2,JP-TvBox,LCKFB-Taishan-Pi,WXY-OEC-turbo-4g,Station-M2rk35xx
6.x.y
rockchip_boxname.img
rk3528HLink-H28K,Radxa-E20C,H96-Max-M2rk35xxrockchip_boxname.img
rk3399EAIDK-610,King3399,TN3399,Kylin3399,ZCube1-Max,CRRC,SMART-AM40,SW799,ZYSJ,DG-3399,DLFR100,Emb3531,Leez-p710,tvi3315a,xiaobao,Fine3399,Firefly-RK3399,LX-R3S,Hugsun-x99,Tb-ls3399,Hisense-hs530r,Tpm312,ZK-rk39a,YSKJ,Fmx1-Pro,Sv-33a6x6.x.yrockchip_boxname.img
rk3328BeikeYun,Chainedbox-L1-Pro,Station-M1,Bqeel-MVR9,Renegade/FireflyAllrockchip_boxname.img
rk3318RX3318-Box6.x.yrockchip_boxname.img
h6Vplus,Tanix-TX6,TQC-A016.x.y
h6
allwinner_boxname.img

Tip

At present, thes905 box can only be used inTF/SD/USB. Other models of boxes support writing toEMMC for use. For more information, please refer to theSupported Device List Description. You can refer to the method in Section 12.15 of the instruction document toadd new supported devices. Please read theArmbian User Documentation before use. It provides solutions to common issues.

Installation and Upgrade Instructions for Armbian

Choose the Armbian system that corresponds to your box model, and refer to the corresponding instructions for different devices.

  • Install Armbian to EMMC

  1. ForRockchip platform, please refer to theChapter 8 in the instruction document.

  2. ForAmlogic andAllwinner platforms, use tools such asRufus orbalenaEtcher to write the system to a USB stick, then insert the USB stick with the written system into the box. Log in to the Armbian system (default user: root, default password: 1234) → Enter the command:

armbian-install
OptionalDefaultOptionsDescription
-mnoyes/noUse mainline u-boot
-ayesyes/noUseampart partition adjustment tool
-lnoyes/noShow a list of all devices

Example:armbian-install -m yes -a no

  • Update Armbian Kernel

Log in to the Armbian system → Enter the command:

# Run as root user (sudo -i)# If no parameter is specified, it will be updated to the latest version.armbian-update
OptionalDefaultOptionsDescription
-rophub/kernel<owner>/<repo>Set the repository to download the kernel from github.com
-uAutomationstable/flippy/dev/beta/rk3588/rk35xx/h6Set thetags suffix of the kernel in use
-kLatest versionKernel versionSet thekernel version
-byesyes/noAutomatically back up the current system's kernel when updating the kernel
-mnoyes/noUse mainline u-boot
-sNoneNone/DiskName[SOS] Restore the system kernel in eMMC/NVMe/sdX and other disks
-hNoneNoneView help

Example:armbian-update -k 5.15.50 -u dev

When specifying the kernel version number through the-k parameter, you can accurately specify a specific version number, for example:armbian-update -k 5.15.50, or you can specify the kernel series vaguely, for example:armbian-update -k 5.15. When vaguely specified, the latest version of the specified series will be automatically used.

When updating the kernel, the currently used kernel will be automatically backed up and stored in the/ddbr/backup directory. The backup keeps the three most recent versions of the kernel. If the newly installed kernel is unstable, you can easily restore the backup kernel at any time. If the kernel update fails and the system cannot boot, you can restore the system kernel usingarmbian-update -s. For more details, see theHelp Document.

  • Replace Armbian sources

Log in to the Armbian system → Enter the command:

armbian-apt

Choosing the appropriate software source for your country or region can improve software download speeds. For more details, see theHelp Document.

  • Install Common Software

Log in to the Armbian system → Enter the command:

armbian-software

The commandarmbian-software -u can update the local software center list. Based on the demand feedback from users inIssue, we gradually integrate commonly usedsoftware to achieve one-click installation/update/uninstallation and other shortcut operations. This includesdocker images,desktop software,application services, etc. For more details, see theinstructions.

  • Modify Armbian Configuration

Log in to the Armbian system → Enter the command:

armbian-config
  • Create swap for Armbian

If you feel that the current box's memory is insufficient when using applications that consume a lot of memory, such asdocker, you can create aswap virtual memory partition, virtually using a certain capacity of disk space as memory. The unit of the input parameter of the following command isGB, the default is1.

Log in to the Armbian system → Enter the command:

armbian-swap 1
  • Control LED Display

Log in to the Armbian system → Enter the command:

armbian-openvfd

Debug according to theLED Screen Display Control Instructions.

  • Backup/Restore EMMC Original System

Supports backing up/restoring theEMMC partition of the box inTF/SD/USB. Before installing the Armbian system in a brand new box, it is recommended that you back up the Android TV system that comes with the current box so that it can be used in the future to restore the TV system and other situations.

Please boot the Armbian system fromTF/SD/USB → Enter the command:

armbian-ddbr

Enterb according to the prompt to back up the system, and enterr to restore the system.

Important

In addition, the Android system can also be flashed into eMMC using the method of flashing via a cable. The download image of the Android system can be found inTools.

  • Compile the Kernel in Armbian

For the usage of compiling the kernel in Armbian, please refer to theCompile Kernel instruction document. Log in to the Armbian system → Enter the command:

armbian-kernel -uarmbian-kernel -k 6.6.12
  • More Usage Instructions

To update all service scripts in the local system to the latest version, you can log in to the Armbian system → Enter the command:

armbian-sync

In the use of Armbian, some common problems that may be encountered can be found indocuments

Local Packaging

  1. Clone the repository to localgit clone --depth 1 https://github.com/ophub/amlogic-s9xxx-armbian.git

  2. Install the necessary software packages (scripts have only been tested under x86_64 Ubuntu-20.04/22.04)

sudo apt-get update -ysudo apt-get full-upgrade -y# For Ubuntu-22.04sudo apt-get install -y$(cat compile-kernel/tools/script/ubuntu2204-build-armbian-depends)
  1. Enter the~/amlogic-s9xxx-armbian root directory, create abuild/output/images folder in the root directory, and upload the Armbian image file (such asArmbian_21.11.0-trunk_Odroidn2_current_5.15.50.img) to~/amlogic-s9xxx-armbian/build/output/images directory. Please keep the release version number (such as21.11.0) and the kernel version number (such as5.15.50) in the original Armbian image file name. It will be used as the name of the Armbian system after restructuring.

  2. Enter the~/amlogic-s9xxx-armbian root directory, and then run thesudo ./rebuild -b s905x3 -k 6.6.12 command to generate the Armbian image file for the specified board. The generated file is saved in thebuild/output/images directory.

  • Local Packaging Parameter Description

ParameterMeaningDescription
-bBoardSpecifies the device code(s) to build. For example,-b s905x3 builds the device with code s905x3. Multiple device codes can be connected using underscores, such as-b s905x3_s905d. Special values:all builds all devices;top50 builds the top 50 devices in the device list;rest50 builds from the 51st device to the end. The full list of device codes can be found in theBOARD entries ofmodel_database.conf. Default:all
-rKernelRepoSpecify the<owner>/<repo> of the github.com kernel repository. Default value:ophub/kernel
-ukernelUsageSet thetags suffix of the kernel used, such asstable,flippy,dev,beta. Default value:stable
-kKernelSpecifykernel name, such as-k 6.6.12. Connect multiple kernels with_, such as-k 6.6.12_5.15.50. The kernel version freely specified by the-k parameter is only valid for kernels usingstable/flippy/dev/beta. Other kernel series such asrk3588 /rk35xx /h6 can only use specific kernels.
-aAutoKernelSet whether to automatically adopt the latest version of the same series of kernels. When it istrue, it will automatically look for whether there is a newer version of the same series in the kernel library in the kernel specified in-k, such as 6.6.12. If there is a latest version after 6.6.12, it will be automatically changed to the latest version. When set tofalse, it will compile the specified version of the kernel. Default value:true
-tRootfsTypeSet the file system type of the system's ROOTFS partition, the options areext4 orbtrfs type. For example:-t btrfs. Default value:ext4
-sSizeSet the size of the system's image partitions. When setting only the ROOTFS partition size, you can specify a single value, for example:-s 2560. When setting both BOOTFS and ROOTFS partition sizes, use / to connect the two values, for example:-s 512/2560. The default value is512/2560
-nBuilderNameSet the Armbian system builder signature. Do not include spaces when setting the signature. Default value:None
  • sudo ./rebuild: Use the default configuration to package all models of TV boxes.
  • sudo ./rebuild -b s905x3 -k 6.6.12: Recommended. Use the default configuration to package related kernels.
  • sudo ./rebuild -b s905x3 -k 6.1.y : Package the relevant kernels using the default configuration; the kernel utilizes the latest version of the 6.1.y series.
  • sudo ./rebuild -b s905x3_s905d -k 6.6.12_5.15.50: Use the default configuration, package multiple kernels at the same time. Use_ to connect multiple kernel parameters.
  • sudo ./rebuild -b s905x3 -k 6.6.12 -s 2560: Use the default configuration, specify a kernel, a model for packaging, the system size is set to 2560MiB.
  • sudo ./rebuild -b s905x3_s905d Use the default configuration, package all kernels for multiple models of TV boxes, use_ to connect multiple models.
  • sudo ./rebuild -k 6.6.12_5.15.50: Use the default configuration, specify multiple kernels, and package all models of TV boxes, the kernel package uses_ for connection.
  • sudo ./rebuild -k 6.6.12_5.15.50 -a true: Use the default configuration, specify multiple kernels, and package all models of TV boxes, the kernel package uses_ for connection. Automatically upgrade to the latest kernel of the same series.
  • sudo ./rebuild -t btrfs -s 2560 -k 6.6.12: Use the default configuration, set the file system to btrfs format, the partition size is 2560MiB, and specify the kernel as 6.6.12, package for all models of TV boxes.

Use GitHub Actions for Compilation

  1. The configuration of the Workflows file can be found in the.github/workflows/ files.

  2. Fresh Build: On theActions page, selectBuild Armbian server image to start the build using thebuild-armbian-server-image.yml workflow. You can choose from the Ubuntu series such asjammy, or the Debian series such asbullseye, etc. Click theRun workflow button to begin the build.

  3. Rebuild: If there are already compiledArmbian_.*-trunk_.*.img.gz files inReleases, and you just want to make another box of different boards, you can skip compiling the Armbian source files and directly usebuild-armbian-using-releases-files.yml for secondary build.

  4. Use other Armbian systems, such as theodroidn2 system provided by the Armbian official system download websitearmbian.tnahosting.net, and only introduce the script of this repository in the process control filebuild-armbian-using-official-image.yml to restructure Armbian. The code is as follows:

-name:Build Armbianuses:ophub/amlogic-s9xxx-armbian@mainwith:build_target:armbianarmbian_path:build/output/images/*.imgarmbian_board:s905d_s905x3_s922x_s905xarmbian_kernel:6.1.y_5.15.y
  • GitHub Actions Input Parameter Description

The related parameters correspond to thelocal packaging command, please refer to the above description.

ParameterDefaultDescription
armbian_pathNoneSet the path of the original Armbian file, support the file path in the current workflow such asbuild/output/images/*.img, and also support the network download address such as:https://dl.armbian.com/*/Armbian_*.img.xz
armbian_boardallSet theboard of the package box, refer to-b
kernel_repoophub/kernelSpecify<owner>/<repo> of the github.com kernel repository, refer to-r
kernel_usagestableSet thetags suffix of the used kernel. Refer to-u
armbian_kernel6.1.y_5.15.ySet theversion of the kernel, refer to-k
auto_kerneltrueSet whether to automatically adopt the latest version of the same series kernel, refer to-a
armbian_fstypeext4Set the file system type of the system's ROOTFS partition, refer to-t
armbian_size512/2560Set the size of the system BOOTFS and ROOTFS partitions, function reference-s
builder_nameNoneSet the Armbian system builder signature, refer to-n
  • GitHub Actions Output Variable Description

To upload toReleases, you need to setWorkflow read/write permissions for repository. For details, see theusage instructions.

ParameterDefaultDescription
${{ env.PACKAGED_OUTPUTPATH }}outArmbian system files output path
${{ env.PACKAGED_OUTPUTDATE }}04.13.1058Packaging date (month.day.hourminute)
${{ env.PACKAGED_STATUS }}successPackaging status: success / failure

Build Armbian Docker image

The method for creating theDocker image of the Armbian system can refer to thearmbian_docker build script.

Default Information for Armbian System

System NameDefault UsernameDefault PasswordSSH PortIP Address
Armbian.OSroot123422Obtain IP from router
Armbian.Dockerroot123422Use host machine’s IP

Compiling Kernel using GitHub Actions

For the method of compiling the kernel, refer tocompile-kernel

-name:Compile the kerneluses:ophub/amlogic-s9xxx-armbian@mainwith:build_target:kernelkernel_version:6.1.y_5.15.ykernel_auto:truekernel_sign:-yourname

Armbian Contributors

First of all, thanks to150balbes for the outstanding contributions and the solid foundation laid for using Armbian in Amlogic TV boxes. TheArmbian system compiled here directly uses the latest source code from the official in real-time. The development ideas of the program come from tutorials from authors such asebkso. Thank you all for your dedication and sharing, allowing us to use the Armbian system in more boxes.

Theu-boot,kernel and other resources used in this system are mainly copied from theunifreq/openwrt_packit project, and some files are provided by users inPull andIssues of projects such asamlogic-s9xxx-openwrt,amlogic-s9xxx-armbian,luci-app-amlogic,u-boot andkernel. To thank these pioneers and sharers, from now on (this source code repository was created on2021-09-19), I have recorded it uniformly inCONTRIBUTORS.md. Thanks again to everyone for giving the box a new life and meaning.

Other Distributions

  • Theamlogic-s9xxx-openwrt project provides theOpenWrt system used in the box, which is also applicable to devices that support Armbian.
  • unifreq has madeOpenWrt system for more boxes such as Amlogic, Rockchip, and Allwinner, which is a benchmark in the box circle and recommended to use.
  • Scirese tested the production, installation, and use ofArch Linux ARM /Manjaro system in Android TV boxes, for details refer to the relevant instructions in his repository.
  • 7Ji has published some articles on reverse engineering and development on the Amlogic platform in his blog, such as installing the ArchLinux ARM system in the way of ArchLinux, an introduction to the boot mechanism of the Amlogic platform, etc. In hisampart project, a partition tool is provided that can read and edit the Amlogic eMMC partition table and DTB internal partition, and can utilize 100% of eMMC space. Theamlogic-s9xxx-archlinuxarm project provides the production and use method ofArch Linux ARM system. In theYAopenvfD project, another openvfd daemon is provided.
  • 13584452567 is the pioneer for theRockchip series of devices in this repository, having expanded support for numerousRockchip devices likeEAIDK-610,King3399,TN3399,Kylin3399,ZCube1-Max,tvi3315a,xiaobao and more, thanks to his sharing. Additionally, he remains the maintainer of specializedkernels forAllwinner devices likeTQC-A01. Having provided a wealth of tech support and solutions withinDiscussions andIssues sections, he's made significant contributions to the development of the box circle.
  • cooip-jm shares many Armbian, lxc, docker, AdGuard, etc. usage methods in hiswiki, recommended learning.

Links

License

The amlogic-s9xxx-armbian © OPHUB is licensed underGPL-2.0

Rebuild Armbian and Kernel is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Support Amlogic, Rockchip and Allwinner boxes
Armbian_trixie_save_2025.10
Latest

Tags

 (1)

Rebuild Armbian and Kernel is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.


[8]ページ先頭

©2009-2025 Movatter.jp