11#! /bin/bash
2- # ========================================================================
2+ # ============================================================================
33#
44# This file is licensed under the terms of the GNU General Public
55# License version 2. This program is licensed "as is" without any
1313# Copyright (C) 2020- https://github.com/tuanqing/mknop
1414# Copyright (C) 2020- https://github.com/ophub/amlogic-s9xxx-openwrt
1515#
16- # ===== Install the basic packages of make openwrt for Ubuntu 20.04 ======
16+ # ======= Install the basic packages of make openwrt for Ubuntu 20.04 = ======
1717#
1818# sudo apt-get update -y
1919# sudo apt-get full-upgrade -y
2222# Command: sudo ./make -d
2323# Command optional parameters please refer to the source code repository
2424#
25- # ============================ Functions list ============================
25+ # ============================== Functions list == ============================
2626#
2727# error_msg : Output error message
2828# process_msg : Output process message
4242#
4343# loop_make : Loop to make OpenWrt files
4444#
45- # ==================== Set make environment variables ====================
45+ # ====================== Set make environment variables == ====================
4646#
4747# Related file storage path
4848make_path=" ${PWD} "
@@ -56,27 +56,34 @@ dtb_path="${amlogic_path}/amlogic-dtb"
5656kernel_path=" ${amlogic_path} /amlogic-kernel"
5757uboot_path=" ${amlogic_path} /amlogic-u-boot"
5858configfiles_path=" ${amlogic_path} /common-files"
59- op_release=" etc/flippy-openwrt-release" # Add custom openwrt firmware information
60- build_openwrt=(" a311d" " s922x" " s922x-n2" " s922x-reva" " s905x3" " s905x2" " s905l3a" " s905x2-km3" " s912" " s912-t95z" " s912-m8s" " s905d" " s905d-ki" " s905x" " s905w" " s905" )
61- #
62- # Dependency files repository, Download the armbian related files needed to make the OpenWrt system to the local directory.
59+ # Add custom openwrt firmware information
60+ op_release=" etc/flippy-openwrt-release"
61+ # Dependency files download repository
6362depends_repo=" https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/build-armbian"
64- #
65- # The install/update script repository
63+ # Install/Update script files download repository
6664script_repo=" https://github.com/ophub/luci-app-amlogic/tree/main/luci-app-amlogic/root/usr/sbin"
67- #
68- # Latest kernel download repository
65+ # Kernel files download repository
6966kernel_repo=" https://github.com/ophub/kernel/tree/main/pub"
7067version_branch=" stable"
7168build_kernel=(" 5.15.25" " 5.4.180" )
7269auto_kernel=" true"
73- #
74- # Set OpenWrt firmware size (BOOT_MB >= 256, ROOT_MB >= 512)
75- SKIP_MB=" 16"
70+ # Set supported SoC
71+ build_openwrt=(
72+ " s922x" " s922x-n2" " s922x-reva" " a311d"
73+ " s905x3"
74+ " s905x2" " s905x2-km3" " s905l3a"
75+ " s912" " s912-t95z" " s912-m8s"
76+ " s905d" " s905d-ki"
77+ " s905x"
78+ " s905w"
79+ " s905"
80+ )
81+ # Set OpenWrt firmware size (SKIP_MB >= 4, BOOT_MB >= 256, ROOT_MB >= 512)
82+ SKIP_MB=" 68"
7683BOOT_MB=" 256"
7784ROOT_MB=" 960"
7885#
79- # ========================================================================
86+ # ============================================================================
8087
8188error_msg () {
8289 echo -e " [\033[1;91m Error \033[0m] ${1} "
0 commit comments