From 7c88d0016953a428f1ef924edd801baa353ac69f Mon Sep 17 00:00:00 2001 From: cuu Date: Thu, 13 Jan 2022 20:00:32 +0800 Subject: [PATCH] update a06 patch --- Code/patch/armbian_build_a06/patch/README | 4 +++ .../patch/armbian_mirror.patch | 16 ++++++++++++ .../patch/config-example.conf | 25 +++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 Code/patch/armbian_build_a06/patch/armbian_mirror.patch create mode 100644 Code/patch/armbian_build_a06/patch/config-example.conf diff --git a/Code/patch/armbian_build_a06/patch/README b/Code/patch/armbian_build_a06/patch/README index 4eceb37..4b4dce1 100644 --- a/Code/patch/armbian_build_a06/patch/README +++ b/Code/patch/armbian_build_a06/patch/README @@ -7,9 +7,13 @@ cd build git reset --hard 43d179914ae9e1ebb5d72315d9f9f68f5fb3e330 git apply ~/DevTerm/Code/patch/armbian_build_a06/patch/armbian.patch +git apply ~/DevTerm/Code/patch/armbian_build_a06/patch/armbian_mirror.patch + cp ~/DevTerm/Code/patch/armbian_build_a06/patch/kernel*.patch userpatches/kernel/rockchip64-current/ cp ~/DevTerm/Code/patch/armbian_build_a06/patch/uboot*.patch userpatches/u-boot/u-boot-rockchip64-mainline/ +cp ~/DevTerm/Code/patch/armbian_build_a06/patch/config-example.conf userpatches/ + #Then exec ./compile.sh under armbian build cd ~/build && ./compile.sh diff --git a/Code/patch/armbian_build_a06/patch/armbian_mirror.patch b/Code/patch/armbian_build_a06/patch/armbian_mirror.patch new file mode 100644 index 0000000..a62d576 --- /dev/null +++ b/Code/patch/armbian_build_a06/patch/armbian_mirror.patch @@ -0,0 +1,16 @@ +diff --git a/lib/configuration.sh b/lib/configuration.sh +index 6f62e8e4d..f23b05237 100644 +--- a/lib/configuration.sh ++++ b/lib/configuration.sh +@@ -82,6 +82,11 @@ case $MAINLINE_MIRROR in + MAINLINE_KERNEL_SOURCE='https://mirrors.bfsu.edu.cn/git/linux-stable.git' + MAINLINE_FIRMWARE_SOURCE='https://mirrors.bfsu.edu.cn/git/linux-firmware.git' + ;; ++ cuu) ++ MAINLINE_KERNEL_SOURCE='https://github.com/cuu/linux-5.10.60.git' ++ MAINLINE_FIRMWARE_SOURCE='git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git' ++ ;; ++ + *) + MAINLINE_KERNEL_SOURCE='git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git' + MAINLINE_FIRMWARE_SOURCE='git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git' diff --git a/Code/patch/armbian_build_a06/patch/config-example.conf b/Code/patch/armbian_build_a06/patch/config-example.conf new file mode 100644 index 0000000..662f65d --- /dev/null +++ b/Code/patch/armbian_build_a06/patch/config-example.conf @@ -0,0 +1,25 @@ +# Read build script documentation https://docs.armbian.com/Developer-Guide_Build-Options/ +# for detailed explanation of these options and for additional options not listed here + +KERNEL_ONLY="" # leave empty to select each time, set to "yes" or "no" to skip dialog prompt +KERNEL_CONFIGURE="" # leave empty to select each time, set to "yes" or "no" to skip dialog prompt +CLEAN_LEVEL="make,debs,oldcache" # comma-separated list of clean targets: "make" = make clean for selected kernel and u-boot, + # "debs" = delete packages in "./output/debs" for current branch and family, + # "alldebs" = delete all packages in "./output/debs", "images" = delete "./output/images", + # "cache" = delete "./output/cache", "sources" = delete "./sources" + # "oldcache" = remove old cached rootfs except for the newest 8 files + +REPOSITORY_INSTALL="" # comma-separated list of core modules which will be installed from repository + # "u-boot", "kernel", "bsp", "armbian-config", "armbian-firmware" + # leave empty to build from sources or use local cache + +DEST_LANG="en_US.UTF-8" # sl_SI.UTF-8, en_US.UTF-8 + +# advanced +EXTERNAL_NEW="prebuilt" # compile and install or install prebuilt additional packages +INSTALL_HEADERS="" # install kernel headers package +LIB_TAG="master" # change to "branchname" to use any branch currently available. +USE_TORRENT="yes" # use torrent network for faster toolchain and cache download +DOWNLOAD_MIRROR="" # set to "china" to use mirrors.tuna.tsinghua.edu.cn +CARD_DEVICE="" # device name /dev/sdx of your SD card to burn directly to the card when done +MAINLINE_MIRROR="cuu"