mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Compare commits
44 Commits
v25.11.0-t
...
v25.08
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
147b9a23f0 | ||
|
|
662fe94bd5 | ||
|
|
275512e442 | ||
|
|
67b114f70a | ||
|
|
c5f47143f6 | ||
|
|
7bfe4f3f07 | ||
|
|
b5e8062e21 | ||
|
|
816858a69d | ||
|
|
24a4c93c3c | ||
|
|
f1371e9e2a | ||
|
|
9e97492a9b | ||
|
|
2697e0f231 | ||
|
|
306ac138d9 | ||
|
|
d35df51e5a | ||
|
|
74ae47d791 | ||
|
|
1db2cd75df | ||
|
|
1982cf5242 | ||
|
|
d24329cb4c | ||
|
|
ff520e01da | ||
|
|
9440e68303 | ||
|
|
f1c0aa97ff | ||
|
|
1419701367 | ||
|
|
bfc148eda8 | ||
|
|
71411feca7 | ||
|
|
b97f34a7cb | ||
|
|
b57e86e7f9 | ||
|
|
feacec009f | ||
|
|
b73200b4a7 | ||
|
|
14a7a84a49 | ||
|
|
c000dcea3d | ||
|
|
1ff6c95fde | ||
|
|
5499932050 | ||
|
|
c4ab30fd6c | ||
|
|
1b84e4eb1b | ||
|
|
3a94022776 | ||
|
|
de6c412384 | ||
|
|
7d8705c76e | ||
|
|
e315db1e74 | ||
|
|
f192713046 | ||
|
|
07a6e5e082 | ||
|
|
64028f6ba9 | ||
|
|
99a038d301 | ||
|
|
195b3c7d0d | ||
|
|
54a9ac7a59 |
2
.github/workflows/adjust-maintainers.yml
vendored
2
.github/workflows/adjust-maintainers.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
||||
steps:
|
||||
|
||||
- name: "Checkout build repo"
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
repository: armbian/build
|
||||
ref: main
|
||||
|
||||
2
.github/workflows/labels-from-yml.yml
vendored
2
.github/workflows/labels-from-yml.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Run Labeler
|
||||
uses: crazy-max/ghaction-github-labeler@v5
|
||||
|
||||
2
.github/workflows/merge-announce.yml
vendored
2
.github/workflows/merge-announce.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get repo
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- name: Send push to Discord
|
||||
|
||||
2
.github/workflows/pr-announce.yml
vendored
2
.github/workflows/pr-announce.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
||||
if: ${{ github.repository == 'armbian/build' && github.event.label.id == '6210849975' }}
|
||||
steps:
|
||||
- name: Get repo
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- name: Discord webhook
|
||||
|
||||
4
.github/workflows/pr-auto-labeler.yml
vendored
4
.github/workflows/pr-auto-labeler.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout the pull request
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Check for label using GH CLI
|
||||
id: check
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
# Checks out the repository to read files for matching with labeler config
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
# Applies labels based on the .github/labeler.yml config
|
||||
- uses: actions/labeler@v5
|
||||
|
||||
@@ -28,16 +28,16 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@4662f28b04a04c9b3c760178bc00690771ba6fe1 # v46.0.3
|
||||
uses: tj-actions/changed-files@f963b3f3562b00b6d2dd25efc390eb04e51ef6c6 # v46.0.3
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
repository: a13xp0p0v/kconfig-hardened-check
|
||||
path: kconfig-hardened-check
|
||||
|
||||
4
.github/workflows/pr-lint-scripts.yml
vendored
4
.github/workflows/pr-lint-scripts.yml
vendored
@@ -24,13 +24,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 2
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@4662f28b04a04c9b3c760178bc00690771ba6fe1 # v46.0.3
|
||||
uses: tj-actions/changed-files@f963b3f3562b00b6d2dd25efc390eb04e51ef6c6 # v46.0.3
|
||||
|
||||
- name: List all changed files
|
||||
run: |
|
||||
|
||||
2
.github/workflows/scorecard.yml
vendored
2
.github/workflows/scorecard.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: "Checkout code"
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
|
||||
2
.github/workflows/update-tools.yml
vendored
2
.github/workflows/update-tools.yml
vendored
@@ -63,7 +63,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Get current ${{ matrix.tool.PROJECT_NAME }} version
|
||||
id: get-version-current
|
||||
|
||||
@@ -115,7 +115,7 @@ runs:
|
||||
passphrase: ${{ inputs.armbian_pgp_password }}
|
||||
|
||||
- name: "Checkout Armbian os"
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
repository: armbian/os
|
||||
fetch-depth: 0
|
||||
@@ -123,7 +123,7 @@ runs:
|
||||
path: os
|
||||
|
||||
- name: "Checkout Armbian build framework"
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
repository: armbian/build
|
||||
ref: ${{ inputs.armbian_branch }}
|
||||
@@ -131,7 +131,7 @@ runs:
|
||||
path: build
|
||||
|
||||
- name: "Checkout customisations"
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
clean: false
|
||||
|
||||
@@ -13,6 +13,11 @@ BOOT_FDT_FILE="amlogic/meson-g12b-bananapi-cm4-cm4io.dtb"
|
||||
BOOTBRANCH_BOARD="tag:v2025.01"
|
||||
BOOTPATCHDIR="v2025.01"
|
||||
|
||||
# CPUFREQ (/etc/default/cpufrequtils)
|
||||
CPUMIN=1000000
|
||||
CPUMAX=2400000
|
||||
GOVERNOR=performance
|
||||
|
||||
function post_family_tweaks_bsp__bananapi_rtl_bt() {
|
||||
if [[ -d "$SRC/packages/bsp/bananapi/rtl_bt" ]]; then
|
||||
mkdir -p "${destination}"/lib/firmware/updates/rtl_bt
|
||||
|
||||
@@ -2,16 +2,15 @@
|
||||
BOARD_NAME="BananaPi BPI-F3"
|
||||
BOARDFAMILY="spacemit"
|
||||
BOARD_MAINTAINER="pyavitz"
|
||||
KERNEL_TARGET="current"
|
||||
KERNEL_TARGET="current,edge"
|
||||
BOOT_FDT_FILE="spacemit/k1-bananapi-f3.dtb"
|
||||
BOOTDELAY=1
|
||||
SRC_EXTLINUX="yes"
|
||||
SRC_CMDLINE="earlycon=sbi console=tty1 console=ttyS0,115200"
|
||||
SRC_CMDLINE="earlycon=sbi console=tty1 console=ttyS0,115200 loglevel=1"
|
||||
PACKAGE_LIST_BOARD="rfkill bluetooth bluez bluez-tools"
|
||||
|
||||
function post_config_uboot_target__extra_configs_for_bananapi_f3() {
|
||||
display_alert "u-boot for ${BOARD}" "u-boot: enabling extra configs" "info"
|
||||
|
||||
run_host_command_logged scripts/config --enable CONFIG_SD_BOOT
|
||||
run_host_command_logged scripts/config --enable CONFIG_EXT4_WRITE
|
||||
run_host_command_logged scripts/config --enable CONFIG_FS_BTRFS
|
||||
@@ -24,9 +23,7 @@ function post_family_tweaks_bsp__bananapi_f3_extras() {
|
||||
display_alert "$BOARD" "Installing boot firmware" "info"
|
||||
run_host_command_logged cp -fv $SRC/packages/blobs/riscv64/spacemit/esos.elf "${destination}"/lib/firmware
|
||||
fi
|
||||
|
||||
display_alert "$BOARD" "Force load wireless" "info"
|
||||
|
||||
run_host_command_logged mkdir -pv "${destination}"/etc/modules-load.d
|
||||
run_host_command_logged echo "8852bs" > "${destination}"/etc/modules-load.d/${BOARD}.conf
|
||||
}
|
||||
|
||||
@@ -13,6 +13,11 @@ BOOT_FDT_FILE="amlogic/meson-g12b-a311d-bananapi-m2s.dtb"
|
||||
BOOTBRANCH_BOARD="tag:v2025.01"
|
||||
BOOTPATCHDIR="v2025.01"
|
||||
|
||||
# CPUFREQ (/etc/default/cpufrequtils)
|
||||
CPUMIN=1000000
|
||||
CPUMAX=2400000
|
||||
GOVERNOR=performance
|
||||
|
||||
function post_family_tweaks_bsp__bananapi_rtl_bt() {
|
||||
if [[ -d "$SRC/packages/bsp/bananapi/rtl_bt" ]]; then
|
||||
mkdir -p "${destination}"/lib/firmware/updates/rtl_bt
|
||||
|
||||
@@ -11,7 +11,7 @@ HAS_VIDEO_OUTPUT="yes"
|
||||
SERIALCON="ttyS0,ttyGS0"
|
||||
KERNEL_TARGET="legacy,current,edge"
|
||||
KERNEL_TEST_TARGET="current"
|
||||
CRUSTCONFIG="orangepi_zero_defconfig"
|
||||
# CRUSTCONFIG="orangepi_zero_defconfig" # Crust is failing https://github.com/armbian/build/issues/8197
|
||||
|
||||
function orange_pi_zero_enable_xradio_workarounds() {
|
||||
/usr/bin/systemctl enable xradio_unload.service
|
||||
|
||||
@@ -7,21 +7,21 @@ declare -g KERNEL_TEST_TARGET="edge"
|
||||
declare -g EXTRAWIFI="no"
|
||||
declare -g BOOTCONFIG="none"
|
||||
declare -g IMAGE_PARTITION_TABLE="gpt"
|
||||
# Reserve for ABL Boot
|
||||
# declare -g BOOTIMG_CMDLINE_EXTRA="clk_ignore_unused pd_ignore_unused console=tty0 console=ttyMSM0,1500000n8 pcie_pme=nomsi panic=30 allow_mismatched_32bit_el0 mem_sleep_default=s2idle"
|
||||
# declare -g -a ABL_DTB_LIST=("qrb5165-rb5")
|
||||
|
||||
# Use the full firmware, complete linux-firmware plus Armbian's (for qcom/a650_sqe.fw)
|
||||
declare -g BOARD_FIRMWARE_INSTALL="-full"
|
||||
|
||||
declare -g SERIALCON="${SERIALCON:-tty1}"
|
||||
declare -g GRUB_CMDLINE_LINUX_DEFAULT="clk_ignore_unused pd_ignore_unused arm64.nopauth efi=noruntime console=ttyMSM0,115200n8 pcie_pme=nomsi"
|
||||
declare -g GRUB_CMDLINE_LINUX_DEFAULT="clk_ignore_unused pd_ignore_unused console=tty0 arm64.nopauth efi=noruntime console=ttyMSM0,1500000n8 pcie_pme=nomsi panic=30 allow_mismatched_32bit_el0 mem_sleep_default=s2idle"
|
||||
declare -g BOOT_FDT_FILE="qcom/qrb5165-rb5.dtb"
|
||||
declare -g UEFI_PART_ALIGN="4096"
|
||||
declare -g SECTOR_SIZE="4096"
|
||||
enable_extension "grub"
|
||||
enable_extension "grub-with-dtb" # important, puts the whole DTB handling in place.
|
||||
|
||||
function qcom-robotics-rb5_is_userspace_supported() {
|
||||
[[ "${RELEASE}" == "bookworm" ]] && return 0
|
||||
[[ "${RELEASE}" == "jammy" ]] && return 0
|
||||
[[ "${RELEASE}" == "noble" ]] && return 0
|
||||
[[ "${RELEASE}" == "trixie" ]] && return 0
|
||||
return 1
|
||||
@@ -37,11 +37,17 @@ function post_family_tweaks_bsp__qcom-robotics-rb5_add_services() {
|
||||
|
||||
display_alert "$BOARD" "Add services" "info"
|
||||
|
||||
# Bluetooth MAC addr setup service
|
||||
# USB Gadget Network service
|
||||
mkdir -p $destination/usr/local/bin/
|
||||
mkdir -p $destination/usr/lib/systemd/system/
|
||||
install -Dm655 $SRC/packages/bsp/generate-bt-mac-addr/bt-fixed-mac.sh $destination/usr/local/bin/
|
||||
install -Dm644 $SRC/packages/bsp/generate-bt-mac-addr/bt-fixed-mac.service $destination/usr/lib/systemd/system/
|
||||
mkdir -p $destination/etc/initramfs-tools/scripts/init-bottom/
|
||||
install -Dm655 $SRC/packages/bsp/usb-gadget-network/setup-usbgadget-network.sh $destination/usr/local/bin/
|
||||
install -Dm655 $SRC/packages/bsp/usb-gadget-network/remove-usbgadget-network.sh $destination/usr/local/bin/
|
||||
install -Dm644 $SRC/packages/bsp/usb-gadget-network/usbgadget-rndis.service $destination/usr/lib/systemd/system/
|
||||
install -Dm655 $SRC/packages/bsp/usb-gadget-network/usb-gadget-initramfs-hook $destination/etc/initramfs-tools/hooks/usb-gadget
|
||||
install -Dm655 $SRC/packages/bsp/usb-gadget-network/usb-gadget-initramfs-premount $destination/etc/initramfs-tools/scripts/init-premount/usb-gadget
|
||||
install -Dm655 $SRC/packages/bsp/usb-gadget-network/dropbear $destination/etc/initramfs-tools/scripts/init-premount/
|
||||
install -Dm655 $SRC/packages/bsp/usb-gadget-network/kill-dropbear $destination/etc/initramfs-tools/scripts/init-bottom/
|
||||
}
|
||||
|
||||
function post_family_tweaks__qcom-robotics-rb5_enable_services() {
|
||||
@@ -53,8 +59,8 @@ function post_family_tweaks__qcom-robotics-rb5_enable_services() {
|
||||
fi
|
||||
|
||||
display_alert "$BOARD" "Enable services" "info"
|
||||
chroot_sdcard systemctl enable usbgadget-rndis.service
|
||||
|
||||
chroot_sdcard systemctl enable bt-fixed-mac.service
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -66,33 +72,33 @@ function post_family_tweaks__qcom-robotics-rb5_extra_packages() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [[ "${RELEASE}" == "jammy" ]] || [[ "${RELEASE}" == "noble" ]]; then
|
||||
display_alert "Adding qcom-mainline PPA" "${BOARD}" "info"
|
||||
if [[ "${RELEASE}" == "noble" ]]; then
|
||||
do_with_retries 3 chroot_sdcard_apt_get_update
|
||||
do_with_retries 3 chroot_sdcard_apt_get_install software-properties-common
|
||||
fi
|
||||
|
||||
if [[ "${RELEASE}" == "noble" ]]; then
|
||||
display_alert "Adding qcom-mainline PPA For" "${BOARD}" "info"
|
||||
do_with_retries 3 chroot_sdcard add-apt-repository ppa:liujianfeng1994/qcom-mainline --yes --no-update
|
||||
fi
|
||||
|
||||
if [[ "${RELEASE}" == "noble" ]]; then
|
||||
display_alert "Adding Mesa PPA For Ubuntu " "${BOARD}" "info"
|
||||
do_with_retries 3 chroot_sdcard add-apt-repository ppa:oibaf/graphics-drivers --yes --no-update
|
||||
fi
|
||||
|
||||
# We need unudhcpd from armbian repo, so enable it
|
||||
mv "${SDCARD}"/etc/apt/sources.list.d/armbian.sources.disabled "${SDCARD}"/etc/apt/sources.list.d/armbian.sources
|
||||
do_with_retries 3 chroot_sdcard_apt_get_update
|
||||
do_with_retries 3 chroot_sdcard_apt_get_install vulkan-tools mesa-vulkan-drivers btop mtools zstd
|
||||
|
||||
if [[ "${RELEASE}" == "noble" ]]; then
|
||||
do_with_retries 3 chroot_sdcard_apt_get_install qbootctl
|
||||
fi
|
||||
display_alert "Installing ${BOARD} tweaks" "warn"
|
||||
do_with_retries 3 chroot_sdcard_apt_get_install vulkan-tools mesa-vulkan-drivers mtools zstd alsa-ucm-conf qbootctl qrtr-tools unudhcpd
|
||||
# disable armbian repo back
|
||||
mv "${SDCARD}"/etc/apt/sources.list.d/armbian.sources "${SDCARD}"/etc/apt/sources.list.d/armbian.sources.disabled
|
||||
|
||||
if [[ "${DESKTOP_ENVIRONMENT}" == "kde-plasma" ]]; then
|
||||
display_alert "Adding Extra KDE Package" "${BOARD}" "info"
|
||||
do_with_retries 3 chroot_sdcard_apt_get_install plasma-workspace plasma-desktop plasma-systemmonitor plasma-nm kde-standard kde-spectacle kinfocenter kscreen krfb kfind filelight \
|
||||
dolphin clinfo vulkan-tools wayland-utils
|
||||
dolphin clinfo wayland-utils
|
||||
fi
|
||||
|
||||
if [[ "${RELEASE}" == "noble" ]]; then
|
||||
chroot_sdcard systemctl enable qbootctl.service
|
||||
fi
|
||||
chroot_sdcard systemctl enable bt-fixed-mac.service
|
||||
|
||||
# No driver support for suspend
|
||||
chroot_sdcard systemctl mask suspend.target
|
||||
|
||||
@@ -6,7 +6,7 @@ BOOTCONFIG="radxa-cubie-a5e_defconfig"
|
||||
OVERLAY_PREFIX="sun55i-a527"
|
||||
#BOOT_LOGO="desktop"
|
||||
KERNEL_TARGET="edge"
|
||||
BOOT_FDT_FILE="dtb/allwinner/sun55i-a527-radxa-a5e.dtb"
|
||||
BOOT_FDT_FILE="sun55i-a527-radxa-a5e.dtb"
|
||||
IMAGE_PARTITION_TABLE="gpt"
|
||||
#IMAGE_PARTITION_TABLE="msdos"
|
||||
BOOTFS_TYPE="fat"
|
||||
|
||||
@@ -8,6 +8,7 @@ KERNEL_TARGET="vendor"
|
||||
FULL_DESKTOP="yes"
|
||||
BOOT_LOGO="desktop"
|
||||
BOOT_FDT_FILE="rockchip/rk3588s-radxa-cm5-rpi-cm4-io.dtb"
|
||||
BOOTPATCHDIR="legacy/u-boot-radxa-rk35xx/board_rock-5-cm-rpi-cm4-io"
|
||||
BOOT_SCENARIO="spl-blobs"
|
||||
BOOT_SUPPORT_SPI="yes"
|
||||
BOOT_SPI_RKSPI_LOADER="yes"
|
||||
|
||||
@@ -8,6 +8,7 @@ KERNEL_TARGET="vendor"
|
||||
FULL_DESKTOP="yes"
|
||||
BOOT_LOGO="desktop"
|
||||
BOOT_FDT_FILE="rockchip/rk3588s-radxa-cm5-io.dtb"
|
||||
BOOTPATCHDIR="legacy/u-boot-radxa-rk35xx/board_rock-5-cmio"
|
||||
BOOT_SCENARIO="spl-blobs"
|
||||
BOOT_SUPPORT_SPI="yes"
|
||||
BOOT_SPI_RKSPI_LOADER="yes"
|
||||
|
||||
@@ -42,7 +42,7 @@ foomatic-db-compressed-ppds
|
||||
gdebi
|
||||
ghostscript-x
|
||||
gir1.2-appindicator3-0.1
|
||||
gnome-bluetooth
|
||||
gnome-bluetooth-sendto
|
||||
gnome-disk-utility
|
||||
gnome-font-viewer
|
||||
gnome-power-manager
|
||||
|
||||
@@ -41,7 +41,7 @@ fonts-ubuntu-console
|
||||
foomatic-db-compressed-ppds
|
||||
gdebi
|
||||
ghostscript-x
|
||||
gnome-bluetooth
|
||||
gnome-bluetooth-sendto
|
||||
gnome-disk-utility
|
||||
gnome-font-viewer
|
||||
gnome-power-manager
|
||||
|
||||
@@ -59,7 +59,7 @@ mate-sensors-applet-common
|
||||
mate-session-manager
|
||||
mate-settings-daemon
|
||||
mate-settings-daemon-common
|
||||
mate-sntray-plugin
|
||||
#mate-sntray-plugin
|
||||
mate-system-monitor
|
||||
mate-system-monitor-common
|
||||
mate-terminal
|
||||
|
||||
@@ -901,6 +901,9 @@ CONFIG_UNISOC_WIFI_PS=y
|
||||
CONFIG_TTY_OVERY_SDIO=m
|
||||
CONFIG_USB_NET_RNDIS_WLAN=y
|
||||
# CONFIG_IEEE802154_DRIVERS is not set
|
||||
CONFIG_LTE=y
|
||||
# CONFIG_LTE_RM310 is not set
|
||||
CONFIG_LTE_EM05=m
|
||||
CONFIG_INPUT_LEDS=m
|
||||
CONFIG_INPUT_SPARSEKMAP=m
|
||||
CONFIG_INPUT_MOUSEDEV=y
|
||||
|
||||
1291
config/kernel/linux-spacemit-edge.config
Normal file
1291
config/kernel/linux-spacemit-edge.config
Normal file
File diff suppressed because it is too large
Load Diff
@@ -903,6 +903,7 @@ CONFIG_RTW88_8822BU=m
|
||||
CONFIG_RTW88_8822CS=m
|
||||
CONFIG_RTW88_8822CU=m
|
||||
CONFIG_RTW88_8723DS=m
|
||||
CONFIG_RTW88_8723CS=m
|
||||
CONFIG_RTW88_8723DU=m
|
||||
CONFIG_RTW88_8821CS=m
|
||||
CONFIG_RTW88_8821CU=m
|
||||
|
||||
@@ -883,6 +883,7 @@ CONFIG_RTW88_8822BU=m
|
||||
CONFIG_RTW88_8822CS=m
|
||||
CONFIG_RTW88_8822CU=m
|
||||
CONFIG_RTW88_8723DS=m
|
||||
CONFIG_RTW88_8723CS=m
|
||||
CONFIG_RTW88_8723DU=m
|
||||
CONFIG_RTW88_8821CS=m
|
||||
CONFIG_RTW88_8821CU=m
|
||||
|
||||
@@ -1,126 +1,57 @@
|
||||
# General Setup
|
||||
# CONFIG_LOCALVERSION_AUTO is not set
|
||||
CONFIG_SMP=y
|
||||
CONFIG_HYPERVISOR_GUEST=y
|
||||
CONFIG_PARAVIRT=y
|
||||
CONFIG_NUMA=y
|
||||
CONFIG_HZ_1000=y
|
||||
CONFIG_LOG_BUF_SHIFT=18
|
||||
CONFIG_PROC_FS=y
|
||||
CONFIG_SYSFS=y
|
||||
CONFIG_TMPFS=y
|
||||
CONFIG_DEVTMPFS=y
|
||||
CONFIG_DEVTMPFS_MOUNT=y
|
||||
CONFIG_CONNECTOR=y
|
||||
|
||||
# AWS Support
|
||||
CONFIG_XEN=y
|
||||
CONFIG_XEN_DOM0=y
|
||||
CONFIG_XEN_PVHVM=y
|
||||
CONFIG_XEN_BLKDEV_FRONTEND=y
|
||||
CONFIG_XEN_NETDEV_FRONTEND=y
|
||||
CONFIG_XEN_SCSI_FRONTEND=y
|
||||
CONFIG_XEN_FBDEV_FRONTEND=y
|
||||
CONFIG_XEN_WDT=y
|
||||
CONFIG_ENA_ETHERNET=y
|
||||
|
||||
# Azure Support
|
||||
CONFIG_HYPERV=y
|
||||
CONFIG_HYPERV_UTILS=y
|
||||
CONFIG_HYPERV_BALLOON=y
|
||||
CONFIG_HYPERV_STORAGE=y
|
||||
CONFIG_HYPERV_NET=y
|
||||
CONFIG_HYPERV_KEYBOARD=y
|
||||
CONFIG_HYPERV_MOUSE=y
|
||||
CONFIG_HYPERV_TSCPAGE=y
|
||||
CONFIG_HYPERV_VSOCKETS=y
|
||||
CONFIG_HYPERV_IOMMU=y
|
||||
|
||||
# Power Management and ACPI
|
||||
CONFIG_HIBERNATION=y
|
||||
CONFIG_ACPI_DOCK=y
|
||||
CONFIG_ACPI_BGRT=y
|
||||
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
|
||||
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
|
||||
CONFIG_ARM_SCPI_CPUFREQ=y
|
||||
|
||||
# EFI Support
|
||||
CONFIG_EFI=y
|
||||
CONFIG_EFI_STUB=y
|
||||
CONFIG_EFI_MIXED=y
|
||||
|
||||
# Kernel Features
|
||||
CONFIG_KEXEC=y
|
||||
CONFIG_SYSVIPC=y
|
||||
CONFIG_POSIX_MQUEUE=y
|
||||
CONFIG_NO_HZ=y
|
||||
CONFIG_HIGH_RES_TIMERS=y
|
||||
CONFIG_BPF_SYSCALL=y
|
||||
CONFIG_BPF_JIT=y
|
||||
CONFIG_PREEMPT_VOLUNTARY=y
|
||||
CONFIG_BSD_PROCESS_ACCT=y
|
||||
CONFIG_TASKSTATS=y
|
||||
CONFIG_TASK_DELAY_ACCT=y
|
||||
CONFIG_TASK_XACCT=y
|
||||
CONFIG_TASK_IO_ACCOUNTING=y
|
||||
|
||||
# Memory Management Options
|
||||
CONFIG_HUGETLBFS=y
|
||||
|
||||
# Namespaces and Control Groups
|
||||
CONFIG_IKCONFIG=y
|
||||
CONFIG_IKCONFIG_PROC=y
|
||||
CONFIG_LOG_BUF_SHIFT=18
|
||||
CONFIG_CGROUPS=y
|
||||
CONFIG_MEMCG=y
|
||||
CONFIG_BLK_CGROUP=y
|
||||
CONFIG_CPUSETS=y
|
||||
CONFIG_CGROUP_FREEZER=y
|
||||
CONFIG_CGROUP_SCHED=y
|
||||
CONFIG_CFS_BANDWIDTH=y
|
||||
CONFIG_RT_GROUP_SCHED=y
|
||||
CONFIG_CGROUP_PIDS=y
|
||||
|
||||
# Module Support
|
||||
CONFIG_CGROUP_FREEZER=y
|
||||
CONFIG_CGROUP_HUGETLB=y
|
||||
CONFIG_CPUSETS=y
|
||||
CONFIG_CGROUP_DEVICE=y
|
||||
CONFIG_CGROUP_CPUACCT=y
|
||||
CONFIG_CGROUP_BPF=y
|
||||
CONFIG_NAMESPACES=y
|
||||
CONFIG_USER_NS=y
|
||||
CONFIG_BLK_DEV_INITRD=y
|
||||
CONFIG_EXPERT=y
|
||||
CONFIG_KEXEC=y
|
||||
CONFIG_ARCH_THUNDER=y
|
||||
CONFIG_ARM64_VA_BITS_48=y
|
||||
CONFIG_NUMA=y
|
||||
CONFIG_HZ_1000=y
|
||||
CONFIG_XEN=y
|
||||
CONFIG_ARM64_PSEUDO_NMI=y
|
||||
CONFIG_HIBERNATION=y
|
||||
CONFIG_ACPI=y
|
||||
CONFIG_JUMP_LABEL=y
|
||||
CONFIG_MODULES=y
|
||||
CONFIG_MODULE_UNLOAD=y
|
||||
CONFIG_MODULE_FORCE_UNLOAD=y
|
||||
|
||||
# Virtualization
|
||||
CONFIG_VIRTIO_PCI=y
|
||||
CONFIG_VIRTIO_INPUT=y
|
||||
CONFIG_VIRTIO_BLK=y
|
||||
CONFIG_VIRTIO_NET=y
|
||||
CONFIG_VIRTIO_CONSOLE=y
|
||||
CONFIG_DRM_VIRTIO_GPU=y
|
||||
CONFIG_NET_9P=y
|
||||
CONFIG_NET_9P_VIRTIO=y
|
||||
CONFIG_SCSI_VIRTIO=y
|
||||
CONFIG_VIRTIO_BALLOON=y
|
||||
CONFIG_VIRTIO_SCSI=y
|
||||
CONFIG_VIRTIO_MMIO=y
|
||||
CONFIG_NET_FAILOVER=y
|
||||
|
||||
# File Systems
|
||||
CONFIG_EXT4_FS=y
|
||||
CONFIG_EXT4_FS_POSIX_ACL=y
|
||||
CONFIG_EXT4_FS_SECURITY=y
|
||||
CONFIG_QUOTA=y
|
||||
CONFIG_QUOTA_NETLINK_INTERFACE=y
|
||||
# CONFIG_PRINT_QUOTA_WARNING is not set
|
||||
CONFIG_QFMT_V2=y
|
||||
CONFIG_AUTOFS_FS=y
|
||||
CONFIG_ISO9660_FS=y
|
||||
CONFIG_JOLIET=y
|
||||
CONFIG_ZISOFS=y
|
||||
CONFIG_MSDOS_FS=y
|
||||
CONFIG_VFAT_FS=y
|
||||
CONFIG_PROC_KCORE=y
|
||||
CONFIG_TMPFS_POSIX_ACL=y
|
||||
CONFIG_NFS_FS=y
|
||||
CONFIG_NFS_V3_ACL=y
|
||||
CONFIG_NFS_V4=y
|
||||
CONFIG_ROOT_NFS=y
|
||||
CONFIG_9P_FS=y
|
||||
CONFIG_XFS_FS=y
|
||||
CONFIG_BTRFS_FS=y
|
||||
CONFIG_FUSE_FS=y
|
||||
|
||||
# Networking
|
||||
CONFIG_BLK_DEV_THROTTLING=y
|
||||
CONFIG_BINFMT_MISC=y
|
||||
CONFIG_ZSWAP=y
|
||||
CONFIG_ZSWAP_ZPOOL_DEFAULT_ZBUD=y
|
||||
# CONFIG_COMPAT_BRK is not set
|
||||
CONFIG_NET=y
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_UNIX=y
|
||||
CONFIG_XFRM_USER=y
|
||||
CONFIG_INET=y
|
||||
CONFIG_IP_MULTICAST=y
|
||||
CONFIG_IP_ADVANCED_ROUTER=y
|
||||
CONFIG_IP_MULTIPLE_TABLES=y
|
||||
@@ -133,7 +64,7 @@ CONFIG_IP_PNP_RARP=y
|
||||
CONFIG_IP_MROUTE=y
|
||||
CONFIG_IP_PIMSM_V1=y
|
||||
CONFIG_IP_PIMSM_V2=y
|
||||
CONFIG_SYN_COOKIES=y
|
||||
CONFIG_INET_ESP=m
|
||||
# CONFIG_INET_DIAG is not set
|
||||
CONFIG_TCP_CONG_ADVANCED=y
|
||||
# CONFIG_TCP_CONG_BIC is not set
|
||||
@@ -143,77 +74,114 @@ CONFIG_TCP_MD5SIG=y
|
||||
CONFIG_INET6_AH=y
|
||||
CONFIG_INET6_ESP=y
|
||||
CONFIG_NETLABEL=y
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_NETCONSOLE=y
|
||||
|
||||
# Ethernet Drivers
|
||||
CONFIG_E1000E=y
|
||||
|
||||
# Wireless Networking
|
||||
CONFIG_NETFILTER=y
|
||||
CONFIG_BRIDGE_NETFILTER=m
|
||||
CONFIG_NF_CONNTRACK=y
|
||||
CONFIG_NF_CONNTRACK_MARK=y
|
||||
CONFIG_NF_CONNTRACK_ZONES=y
|
||||
CONFIG_NF_CONNTRACK_EVENTS=y
|
||||
CONFIG_NF_CONNTRACK_LABELS=y
|
||||
CONFIG_NF_CONNTRACK_FTP=m
|
||||
CONFIG_NF_CONNTRACK_IRC=m
|
||||
CONFIG_NF_CONNTRACK_PPTP=m
|
||||
CONFIG_NF_CONNTRACK_TFTP=m
|
||||
CONFIG_NF_TABLES=y
|
||||
CONFIG_NF_TABLES_INET=y
|
||||
CONFIG_NF_TABLES_NETDEV=y
|
||||
CONFIG_NFT_NAT=m
|
||||
CONFIG_NFT_TUNNEL=m
|
||||
CONFIG_NFT_QUOTA=m
|
||||
CONFIG_NFT_REJECT=m
|
||||
CONFIG_NFT_COMPAT=m
|
||||
CONFIG_NFT_HASH=m
|
||||
CONFIG_NFT_XFRM=m
|
||||
CONFIG_NFT_SOCKET=m
|
||||
CONFIG_NFT_TPROXY=m
|
||||
CONFIG_NFT_SYNPROXY=m
|
||||
CONFIG_NFT_DUP_NETDEV=m
|
||||
CONFIG_NFT_FWD_NETDEV=m
|
||||
CONFIG_NFT_REJECT_NETDEV=m
|
||||
CONFIG_NETFILTER_XT_MARK=m
|
||||
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
|
||||
CONFIG_NETFILTER_XT_MATCH_BPF=m
|
||||
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
|
||||
CONFIG_NETFILTER_XT_MATCH_IPVS=m
|
||||
CONFIG_IP_VS=m
|
||||
CONFIG_IP_VS_PROTO_TCP=y
|
||||
CONFIG_IP_VS_PROTO_UDP=y
|
||||
CONFIG_IP_VS_RR=m
|
||||
CONFIG_IP_VS_NFCT=y
|
||||
CONFIG_IP_NF_IPTABLES=y
|
||||
CONFIG_IP_NF_FILTER=y
|
||||
CONFIG_IP_NF_NAT=m
|
||||
CONFIG_IP_NF_TARGET_MASQUERADE=m
|
||||
CONFIG_IP_NF_TARGET_NETMAP=m
|
||||
CONFIG_IP_NF_TARGET_REDIRECT=m
|
||||
CONFIG_IP_NF_RAW=m
|
||||
CONFIG_IP_NF_SECURITY=y
|
||||
CONFIG_BRIDGE=y
|
||||
CONFIG_BRIDGE_VLAN_FILTERING=y
|
||||
CONFIG_VLAN_8021Q=m
|
||||
CONFIG_NET_SCHED=y
|
||||
CONFIG_NET_CLS_CGROUP=m
|
||||
CONFIG_CGROUP_NET_PRIO=y
|
||||
CONFIG_CFG80211=y
|
||||
CONFIG_MAC80211=y
|
||||
CONFIG_MAC80211_LEDS=y
|
||||
CONFIG_RFKILL=y
|
||||
|
||||
# PCI Support
|
||||
CONFIG_NET_9P=y
|
||||
CONFIG_NET_9P_VIRTIO=y
|
||||
CONFIG_PCI=y
|
||||
CONFIG_PCIEPORTBUS=y
|
||||
CONFIG_HOTPLUG_PCI=y
|
||||
|
||||
# Block Devices
|
||||
CONFIG_BLK_DEV_INITRD=y
|
||||
CONFIG_PCI_HOST_GENERIC=y
|
||||
CONFIG_DEVTMPFS=y
|
||||
CONFIG_DEVTMPFS_MOUNT=y
|
||||
CONFIG_CONNECTOR=y
|
||||
CONFIG_ZRAM=m
|
||||
CONFIG_ZRAM_WRITEBACK=y
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_VIRTIO_BLK=y
|
||||
CONFIG_BLK_DEV_SD=y
|
||||
CONFIG_BLK_DEV_SR=y
|
||||
CONFIG_CHR_DEV_SG=y
|
||||
CONFIG_SCSI_CONSTANTS=y
|
||||
CONFIG_SCSI_SPI_ATTRS=y
|
||||
|
||||
# Storage Controllers
|
||||
CONFIG_XEN_SCSI_FRONTEND=y
|
||||
CONFIG_SCSI_VIRTIO=y
|
||||
CONFIG_ATA=y
|
||||
CONFIG_SATA_AHCI=y
|
||||
CONFIG_ATA_PIIX=y
|
||||
|
||||
# RAID and Volume Management
|
||||
CONFIG_MD=y
|
||||
CONFIG_BLK_DEV_MD=y
|
||||
CONFIG_BLK_DEV_DM=y
|
||||
CONFIG_DM_MIRROR=y
|
||||
CONFIG_DM_ZERO=y
|
||||
|
||||
# Input Devices
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_DUMMY=m
|
||||
CONFIG_WIREGUARD=m
|
||||
CONFIG_MACVLAN=m
|
||||
CONFIG_IPVLAN=m
|
||||
CONFIG_VXLAN=m
|
||||
CONFIG_NETCONSOLE=y
|
||||
CONFIG_VETH=m
|
||||
CONFIG_VIRTIO_NET=y
|
||||
CONFIG_NETKIT=y
|
||||
CONFIG_ENA_ETHERNET=y
|
||||
CONFIG_E1000E=y
|
||||
# CONFIG_WLAN is not set
|
||||
CONFIG_INPUT_EVDEV=y
|
||||
CONFIG_INPUT_MISC=y
|
||||
|
||||
# Watchdog
|
||||
CONFIG_WATCHDOG=y
|
||||
|
||||
# Real Time Clock
|
||||
CONFIG_RTC_CLASS=y
|
||||
|
||||
# Random Number Generator
|
||||
CONFIG_VIRTIO_CONSOLE=y
|
||||
CONFIG_HW_RANDOM=y
|
||||
|
||||
# NVRAM
|
||||
CONFIG_NVRAM=y
|
||||
|
||||
# HPET Timer
|
||||
CONFIG_HPET=y
|
||||
|
||||
# I2C Support
|
||||
CONFIG_HW_RANDOM_VIRTIO=y
|
||||
CONFIG_I2C_I801=y
|
||||
|
||||
# Security Options
|
||||
CONFIG_SECURITY=y
|
||||
CONFIG_SECURITY_NETWORK=y
|
||||
CONFIG_SECURITY_SELINUX=y
|
||||
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
|
||||
# CONFIG_SECURITY_SELINUX_DISABLE is not set
|
||||
|
||||
# Audit
|
||||
CONFIG_AUDIT=y
|
||||
|
||||
# Sound
|
||||
CONFIG_WATCHDOG=y
|
||||
CONFIG_XEN_WDT=y
|
||||
CONFIG_DRM=y
|
||||
CONFIG_DRM_VIRTIO_GPU=y
|
||||
CONFIG_DRM_SIMPLEDRM=y
|
||||
CONFIG_FB=y
|
||||
CONFIG_FB_EFI=y
|
||||
CONFIG_SOUND=y
|
||||
CONFIG_SND=y
|
||||
CONFIG_SND_HRTIMER=y
|
||||
@@ -221,13 +189,9 @@ CONFIG_SND_SEQUENCER=y
|
||||
CONFIG_SND_SEQ_DUMMY=y
|
||||
CONFIG_SND_HDA_INTEL=y
|
||||
CONFIG_SND_HDA_HWDEP=y
|
||||
|
||||
# HID Devices
|
||||
CONFIG_HIDRAW=y
|
||||
CONFIG_HID_PID=y
|
||||
CONFIG_USB_HIDDEV=y
|
||||
|
||||
# USB Support
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
|
||||
CONFIG_USB_MON=y
|
||||
@@ -236,52 +200,58 @@ CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_OHCI_HCD=y
|
||||
CONFIG_USB_UHCI_HCD=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
|
||||
# Filesystem Encoding
|
||||
CONFIG_RTC_CLASS=y
|
||||
CONFIG_UIO=y
|
||||
CONFIG_VIRTIO_PCI=y
|
||||
CONFIG_VIRTIO_BALLOON=y
|
||||
CONFIG_VIRTIO_INPUT=y
|
||||
CONFIG_VIRTIO_MMIO=y
|
||||
CONFIG_ARM_SMMU=y
|
||||
CONFIG_ARM_SMMU_V3=y
|
||||
CONFIG_EXT4_FS=y
|
||||
CONFIG_EXT4_FS_POSIX_ACL=y
|
||||
CONFIG_EXT4_FS_SECURITY=y
|
||||
CONFIG_XFS_FS=y
|
||||
CONFIG_BTRFS_FS=y
|
||||
CONFIG_BTRFS_FS_POSIX_ACL=y
|
||||
CONFIG_QUOTA=y
|
||||
CONFIG_QUOTA_NETLINK_INTERFACE=y
|
||||
CONFIG_QFMT_V2=y
|
||||
CONFIG_AUTOFS_FS=y
|
||||
CONFIG_FUSE_FS=y
|
||||
CONFIG_OVERLAY_FS=m
|
||||
CONFIG_ISO9660_FS=y
|
||||
CONFIG_JOLIET=y
|
||||
CONFIG_ZISOFS=y
|
||||
CONFIG_MSDOS_FS=y
|
||||
CONFIG_VFAT_FS=y
|
||||
CONFIG_PROC_KCORE=y
|
||||
CONFIG_TMPFS=y
|
||||
CONFIG_TMPFS_POSIX_ACL=y
|
||||
CONFIG_HUGETLBFS=y
|
||||
CONFIG_NFS_FS=y
|
||||
CONFIG_NFS_V3_ACL=y
|
||||
CONFIG_NFS_V4=y
|
||||
CONFIG_ROOT_NFS=y
|
||||
CONFIG_9P_FS=y
|
||||
CONFIG_NLS_DEFAULT="utf8"
|
||||
CONFIG_NLS_CODEPAGE_437=y
|
||||
CONFIG_NLS_ASCII=y
|
||||
CONFIG_NLS_ISO8859_1=y
|
||||
CONFIG_NLS_UTF8=y
|
||||
|
||||
# Miscellaneous
|
||||
CONFIG_BINFMT_MISC=y
|
||||
# CONFIG_COMPAT_BRK is not set
|
||||
CONFIG_JUMP_LABEL=y
|
||||
CONFIG_SYSVIPC=y
|
||||
CONFIG_POSIX_MQUEUE=y
|
||||
CONFIG_FB=y
|
||||
CONFIG_FRAMEBUFFER_CONSOLE=y
|
||||
CONFIG_FB_EFI=y
|
||||
CONFIG_FB_SIMPLE=y
|
||||
CONFIG_EFI_FRAMEBUFFER=y
|
||||
CONFIG_DRM=y
|
||||
CONFIG_DRM_SIMPLEDRM=y
|
||||
CONFIG_DRM_KMS_HELPER=y
|
||||
CONFIG_DRM_FBDEV_EMULATION=y
|
||||
CONFIG_DRM_FBDEV_OVERALLOC=100
|
||||
CONFIG_FONT_SUPPORT=y
|
||||
CONFIG_FONTS=y
|
||||
CONFIG_FONT_8x16=y
|
||||
CONFIG_FONT_8x8=y
|
||||
|
||||
# AArch64-specific options
|
||||
CONFIG_ARM64=y
|
||||
CONFIG_ARCH_AMPERE=y
|
||||
CONFIG_ARM64_VA_BITS_48=y
|
||||
CONFIG_ARM64_PSEUDO_NMI=y
|
||||
CONFIG_ARCH_THUNDER=y
|
||||
CONFIG_ARM64_CONTIGUOUSRegions=y
|
||||
CONFIG_ARM64_VHE=y
|
||||
CONFIG_ARM_SMMU=y
|
||||
CONFIG_ARM_SMMU_V3=y
|
||||
CONFIG_PCI_HOST_GENERIC=y
|
||||
CONFIG_ARM_GIC_V3=y
|
||||
CONFIG_ARM_GIC_V3_ITS=y
|
||||
CONFIG_HW_RANDOM_VIRTIO=y
|
||||
CONFIG_CRYPTO_SHA512=y
|
||||
CONFIG_CRYPTO_SHA3=y
|
||||
CONFIG_CRYPTO_AES_ARM64_CE=y
|
||||
CONFIG_CRYPTO_GCM=y
|
||||
CONFIG_PERSISTENT_KEYRINGS=y
|
||||
CONFIG_ENCRYPTED_KEYS=y
|
||||
CONFIG_KEY_DH_OPERATIONS=y
|
||||
CONFIG_SECURITY=y
|
||||
CONFIG_SECURITY_SELINUX=y
|
||||
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
|
||||
CONFIG_SECURITY_APPARMOR=y
|
||||
CONFIG_CRYPTO_CHACHA20POLY1305=y
|
||||
CONFIG_CRYPTO_AES_ARM64_CE=y
|
||||
CONFIG_CRYPTO_DEV_CAVIUM_ZIP=y
|
||||
CONFIG_FONTS=y
|
||||
CONFIG_FONT_8x8=y
|
||||
CONFIG_FONT_8x16=y
|
||||
CONFIG_DEBUG_INFO_DWARF5=y
|
||||
CONFIG_DEBUG_INFO_BTF=y
|
||||
CONFIG_FTRACE_SYSCALLS=y
|
||||
|
||||
@@ -11,17 +11,17 @@ declare -g ARCH="riscv64"
|
||||
declare -g LINUXFAMILY="spacemit"
|
||||
declare -g GOVERNOR="performance"
|
||||
|
||||
# Arm Trusted Firmware
|
||||
# OpenSBI
|
||||
declare -g ATF_USE_GCC="> 8.0"
|
||||
declare -g ATF_COMPILER="riscv64-linux-gnu-"
|
||||
declare -g ATFSOURCE="https://gitee.com/bianbu-linux/opensbi.git"
|
||||
declare -g ATFDIR="opensbi"
|
||||
declare -g ATFBRANCH="tag:k1-bl-v2.1-release"
|
||||
declare -g ATFBRANCH="tag:k1-bl-v2.2-release"
|
||||
declare -g ATF_TARGET_MAP="PLATFORM_DEFCONFIG=k1_defconfig PLATFORM=generic ;;build/platform/generic/firmware/fw_dynamic.itb"
|
||||
|
||||
# U-Boot
|
||||
declare -g BOOTSOURCE="https://gitee.com/bianbu-linux/uboot-2022.10.git"
|
||||
declare -g BOOTBRANCH="${BOOTBRANCH_BOARD:-"tag:k1-bl-v2.1-release"}"
|
||||
declare -g BOOTBRANCH="${BOOTBRANCH_BOARD:-"tag:k1-bl-v2.2-release"}"
|
||||
declare -g BOOTDIR='u-boot-spacemit'
|
||||
declare -g BOOTPATCHDIR="${BOOTPATCHDIR:-"legacy/u-boot-spacemit-k1"}"
|
||||
declare -g UBOOT_TARGET_MAP=";;bootinfo_emmc.bin FSBL.bin u-boot.itb fw_dynamic.itb"
|
||||
@@ -36,6 +36,13 @@ case "${BRANCH}" in
|
||||
declare -g KERNEL_MAJOR_MINOR="6.6"
|
||||
declare -g LINUXCONFIG="linux-${LINUXFAMILY}-current"
|
||||
;;
|
||||
edge)
|
||||
declare -g KERNELSOURCE="https://github.com/jmontleon/linux-bianbu.git"
|
||||
declare -g KERNELBRANCH="branch:linux-6.16.y"
|
||||
declare -g EXTRAWIFI="no" # WiFi drivers are already included in the kernel
|
||||
declare -g KERNEL_MAJOR_MINOR="6.16"
|
||||
declare -g LINUXCONFIG="linux-${LINUXFAMILY}-edge"
|
||||
;;
|
||||
esac
|
||||
|
||||
function custom_kernel_config__spacemit_k1_firmware() {
|
||||
|
||||
197
config/sources/git_sources.json
Normal file
197
config/sources/git_sources.json
Normal file
@@ -0,0 +1,197 @@
|
||||
[
|
||||
{
|
||||
"source": "https://github.com/armbian/firmware",
|
||||
"branch": "master",
|
||||
"sha1": "105fecaa7a6ab840ae65561d09e2113b69b01f6a"
|
||||
},
|
||||
{
|
||||
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
|
||||
"branch": "linux-6.12.y",
|
||||
"sha1": "8f5ff9784f3262e6e85c68d86f8b7931827f2983"
|
||||
},
|
||||
{
|
||||
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
|
||||
"branch": "linux-6.6.y",
|
||||
"sha1": "3a8ababb8b6a0ced2be230b60b6e3ddbd8d67014"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/AvaotaSBC/linux.git",
|
||||
"branch": "linux-5.15",
|
||||
"sha1": "a464bc4feaff7b102dac6362b44ac3303ec7cae1"
|
||||
},
|
||||
{
|
||||
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
|
||||
"branch": "linux-6.15.y",
|
||||
"sha1": "097aa9a71fd56cdc62c11bdf45a84f07acaa3604"
|
||||
},
|
||||
{
|
||||
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git",
|
||||
"branch": "main",
|
||||
"sha1": "8f1ce114de6cf9c20a47aca5ad487e8d272e4014"
|
||||
},
|
||||
{
|
||||
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
|
||||
"branch": "linux-6.16.y",
|
||||
"sha1": "038d61fd642278bab63ee8ef722c50d10ab01e8f"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/radxa/u-boot.git",
|
||||
"branch": "next-dev-v2024.10",
|
||||
"sha1": "45aa10f3ced32f45bb336fb38925f14ac924c98e"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/armbian/linux-rockchip.git",
|
||||
"branch": "rk-6.1-rkr5.1",
|
||||
"sha1": "0e6860fe85fb6a62eb5dca10301b4a112a727eb3"
|
||||
},
|
||||
{
|
||||
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
|
||||
"branch": "linux-6.14.y",
|
||||
"sha1": "b9d5d463c216763cec719c04536ea9e14512cad4"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/khadas/linux.git",
|
||||
"branch": "khadas-vims-5.15.y",
|
||||
"sha1": "ecc96366810970efcad959fc9985b7a16c691553"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/khadas/common_drivers",
|
||||
"branch": "khadas-vims-5.15.y",
|
||||
"sha1": "114d0807b60e63e994a54b9d37208d8cb0aeb1fb"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/jmontleon/linux-bianbu.git",
|
||||
"branch": "linux-6.6.y",
|
||||
"sha1": "4d95dd94cbc7262efe90d952409b91fb8e3b7dd0"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/chainsx/linux-filogic.git",
|
||||
"branch": "linux-6.12.35",
|
||||
"sha1": "94030e98b1dd9422c7baf282f4450fd2b8779eda"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/glneo/u-boot",
|
||||
"branch": "beagley-ai",
|
||||
"sha1": "8f1ad4f81e9a874d4cc0c0bb73191c117b1798ab"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/beagleboard/linux",
|
||||
"branch": "v6.6.58-ti-arm64-r21",
|
||||
"sha1": "21bec0f5dba230428e839c35c6b3bc743334caa0"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/SolidRun/u-boot.git",
|
||||
"branch": "v2018.01-solidrun-imx6",
|
||||
"sha1": "19858de9c94adb294dde90ac99d70526a2c42fd6"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/stvhay/u-boot.git",
|
||||
"branch": "rockchip-rk3588-unified",
|
||||
"sha1": "2f6e967dc901ae570f522d1b47309e7c34acf542"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/khadas/u-boot.git",
|
||||
"branch": "khadas-vims-v2019.01",
|
||||
"sha1": "9fd0716ccebacba974fc8fabeef0708e5ffd7db1"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/radxa/u-boot.git",
|
||||
"branch": "rk35xx-2024.01",
|
||||
"sha1": "31b85240876dc43492b0826a74b99c23fbf6ed9d"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/radxa/u-boot.git",
|
||||
"branch": "next-dev-v2024.03",
|
||||
"sha1": "22849bf1cf13c2f0a6f2741a51d4802793d2aecc"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/hardkernel/u-boot.git",
|
||||
"branch": "odroidc-v2011.03",
|
||||
"sha1": "b7b8dc21b64b9494618325c9b4d2fbae728aeed6"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/hardkernel/u-boot.git",
|
||||
"branch": "odroidxu4-v2017.05",
|
||||
"sha1": "42ac93dcfbbb8a08c2bdc02e19f96eb35a81891a"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/hardkernel/linux",
|
||||
"branch": "odroid-6.6.y",
|
||||
"sha1": "1b5323e6f3256b9b2024c75e0d86fc5f897d7dfe"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/orangepi-xunlong/u-boot-orangepi.git",
|
||||
"branch": "v2017.09-rk3588",
|
||||
"sha1": "485cc4eae304d5f0bf2ea1456d6276fcd80158d5"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/chainsx/phytium-linux-kernel",
|
||||
"branch": "linux-5.10",
|
||||
"sha1": "89f1409f9ce3d206348995ff7ac6fb624eb09c7b"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/chainsx/phytium-linux-kernel",
|
||||
"branch": "linux-6.6",
|
||||
"sha1": "46471440b5ea96f5caa7ad70ce457735070f9f8e"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/beagleboard/u-boot",
|
||||
"branch": "v2025.07-am6232-pocketbeagle2",
|
||||
"sha1": "6d5b4abc28f036a4a83ccb234f04d72eceafdc4e"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/beagleboard/linux",
|
||||
"branch": "v6.12.24-ti-arm64-r43",
|
||||
"sha1": "708e1e0be5126a696eaee37a2b027bc4d1f575c4"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/u-boot/u-boot.git",
|
||||
"branch": "master",
|
||||
"sha1": "83ce0b483c1680cb39565a9d91c6ef113a309c38"
|
||||
},
|
||||
{
|
||||
"source": "https://gitlab.collabora.com/mediatek/aiot/linux.git",
|
||||
"branch": "mediatek-next",
|
||||
"sha1": "1ce4346a32dfc0c7147f08e6b15e727b85095172"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/Kwiboo/u-boot-rockchip.git",
|
||||
"branch": "rk3xxx-2024.04",
|
||||
"sha1": "830cfcfdf54a1f08a3ca7fc17e69b4bc18cece50"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/raspberrypi/linux",
|
||||
"branch": "rpi-6.6.y",
|
||||
"sha1": "bba53a117a4a5c29da892962332ff1605990e17a"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/raspberrypi/linux",
|
||||
"branch": "rpi-6.12.y",
|
||||
"sha1": "11d5d0d30abe08fddc8a0e856d0e333ca6e22114"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/raspberrypi/linux",
|
||||
"branch": "rpi-6.16.y",
|
||||
"sha1": "caaa5160800e788b525866c0f474312d782f3b6a"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/jhovold/linux.git",
|
||||
"branch": "wip/sc8280xp-6.15",
|
||||
"sha1": "ababc24306a694b74995cffc4e9c51aa84b9af8a"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/starfive-tech/linux",
|
||||
"branch": "JH7110_VisionFive2_6.6.y_devel",
|
||||
"sha1": "37e783d70e94c91eda08d107cdb5e8f859bab13d"
|
||||
},
|
||||
{
|
||||
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
|
||||
"branch": "linux-6.1.y",
|
||||
"sha1": "3594f306da129190de25938b823f353ef7f9e322"
|
||||
},
|
||||
{
|
||||
"source": "https://github.com/SolidRun/u-boot",
|
||||
"branch": "v2018.01-solidrun-a38x",
|
||||
"sha1": "a8004c1f1112ca2f867badccce5a76f052034853"
|
||||
}
|
||||
]
|
||||
@@ -11,14 +11,15 @@ function custom_apt_repo__add_apa() {
|
||||
|
||||
function post_armbian_repo_customize_image__install_from_apa() {
|
||||
# do not install armbian recommends for minimal images
|
||||
[[ "${BUILD_MINIMAL,,}" =~ ^(true|yes)$ ]] && INSTALL_RECOMMENDS="no" || INSTALL_RECOMMENDS="yes"
|
||||
chroot_sdcard_apt_get --install-recommends=$INSTALL_RECOMMENDS install "armbian-common armbian-bsp"
|
||||
[[ "${BUILD_MINIMAL,,}" =~ ^(true|yes)$ ]] && INSTALL_RECOMMENDS="no-install-recommends" || INSTALL_RECOMMENDS="install-recommends"
|
||||
chroot_sdcard_apt_get install --$INSTALL_RECOMMENDS armbian-common armbian-bsp
|
||||
chroot_sdcard rm -f /etc/apt/sources.list.d/armbian-apa.list.inactive
|
||||
|
||||
# install desktop environmnent if requested
|
||||
# install desktop environment if requested
|
||||
case ${DESKTOP_ENVIRONMENT^^} in
|
||||
XFCE|KDE|GNOME)
|
||||
display_alert "installing ${DESKTOP_ENVIRONMENT^^} desktop environment" "${EXTENSION}: ${DESKTOP_ENVIRONMENT^^}" "info"
|
||||
chroot_sdcard_apt_get --install-recommends=yes "armbian-desktop-${DESKTOP_ENVIRONMENT,,}"
|
||||
chroot_sdcard_apt_get install --install-recommends=yes "armbian-desktop-${DESKTOP_ENVIRONMENT,,}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ function kernel_package_callback_linux_image() {
|
||||
Maintainer: ${MAINTAINER} <${MAINTAINERMAIL}>
|
||||
Section: kernel
|
||||
Priority: optional
|
||||
Provides: linux-image, linux-image-armbian, armbian-$BRANCH
|
||||
Provides: linux-image, linux-image-armbian, armbian-$BRANCH, wireguard-modules
|
||||
Description: Armbian Linux $BRANCH kernel image $kernel_version_family
|
||||
This package contains the Linux kernel, modules and corresponding other files.
|
||||
${artifact_version_reason:-"${kernel_version_family}"}
|
||||
|
||||
@@ -41,7 +41,7 @@ function umount_chroot() {
|
||||
umount "${target}"/dev/pts || true
|
||||
umount --recursive "${target}"/dev || true
|
||||
umount "${target}"/proc || true
|
||||
umount "${target}"/sys || true
|
||||
umount --recursive "${target}"/sys || true
|
||||
umount "${target}"/tmp || true
|
||||
umount "${target}"/var/tmp || true
|
||||
umount "${target}"/run/user/0 || true
|
||||
|
||||
@@ -49,7 +49,7 @@ function shellcheck_debian_control_scripts() {
|
||||
|
||||
function run_tool_shellcheck() {
|
||||
# Default version
|
||||
SHELLCHECK_VERSION=${SHELLCHECK_VERSION:-0.10.0} # https://github.com/koalaman/shellcheck/releases
|
||||
SHELLCHECK_VERSION=${SHELLCHECK_VERSION:-0.11.0} # https://github.com/koalaman/shellcheck/releases
|
||||
|
||||
declare non_cache_dir="/armbian-tools/shellcheck" # To deploy/reuse cached SHELLCHECK in a Docker image.
|
||||
|
||||
|
||||
@@ -266,7 +266,6 @@ function adaptative_prepare_host_dependencies() {
|
||||
|
||||
if [[ "${wanted_arch}" == "riscv64" || "${wanted_arch}" == "all" ]]; then
|
||||
host_dependencies+=("gcc-riscv64-linux-gnu") # crossbuild-essential-riscv64 is not even available "yet"
|
||||
host_dependencies+=("debian-archive-keyring")
|
||||
fi
|
||||
|
||||
if [[ "${wanted_arch}" == "loong64" ]]; then
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
# This file is a part of the Armbian Build Framework
|
||||
# https://github.com/armbian/build/
|
||||
|
||||
SHELLCHECK_VERSION=${SHELLCHECK_VERSION:-0.10.0} # https://github.com/koalaman/shellcheck/releases
|
||||
SHELLCHECK_VERSION=${SHELLCHECK_VERSION:-0.11.0} # https://github.com/koalaman/shellcheck/releases
|
||||
|
||||
SRC="$(
|
||||
cd "$(dirname "$0")/../.."
|
||||
|
||||
@@ -75,47 +75,3 @@ index 111111111111..222222222222 100644
|
||||
--
|
||||
Armbian
|
||||
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Yavitz <pyavitz@armbian.com>
|
||||
Date: Sun, 8 Sep 2024 05:55:13 -0400
|
||||
Subject: BananaPi CM4: improve SDIO WiFi speeds
|
||||
|
||||
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
|
||||
---
|
||||
arch/arm64/boot/dts/amlogic/meson-g12b-bananapi-cm4.dtsi | 9 +++++++--
|
||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-bananapi-cm4.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-bananapi-cm4.dtsi
|
||||
index 111111111111..222222222222 100644
|
||||
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-bananapi-cm4.dtsi
|
||||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-bananapi-cm4.dtsi
|
||||
@@ -303,8 +303,10 @@ &sd_emmc_a {
|
||||
#size-cells = <0>;
|
||||
|
||||
bus-width = <4>;
|
||||
+ cap-sd-highspeed;
|
||||
+ sd-uhs-sdr50;
|
||||
sd-uhs-sdr104;
|
||||
- max-frequency = <50000000>;
|
||||
+ max-frequency = <100000000>;
|
||||
|
||||
non-removable;
|
||||
disable-wp;
|
||||
@@ -312,10 +314,13 @@ &sd_emmc_a {
|
||||
/* WiFi firmware requires power in suspend */
|
||||
keep-power-in-suspend;
|
||||
|
||||
+ /* Removing quirk improves WiFi performance */
|
||||
+ /delete-property/ amlogic,dram-access-quirk;
|
||||
+
|
||||
mmc-pwrseq = <&sdio_pwrseq>;
|
||||
|
||||
vmmc-supply = <&vddao_3v3>;
|
||||
- vqmmc-supply = <&vddao_3v3>;
|
||||
+ vqmmc-supply = <&vddao_1v8>;
|
||||
|
||||
status = "okay";
|
||||
|
||||
--
|
||||
Armbian
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ dtbo-$(CONFIG_ARCH_MESON) += \
|
||||
meson-g12a-radxa-zero-uart-ee-c.dtbo \
|
||||
meson-g12b-bananapi-cm4-i2c2.dtbo \
|
||||
meson-g12b-bananapi-cm4-pwm-gpioh-5-fan.dtbo \
|
||||
meson-g12b-bananapi-cm4-wifi-freq-200mhz.dtbo \
|
||||
meson-g12b-bananapi-m2s-rtl8822cs.dtbo \
|
||||
meson-g12b-odroid-n2-spi.dtbo \
|
||||
meson-g12b-waveshare-cm4-io-base-usb.dtbo \
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "bananapi,bpi-cm4io", "bananapi,bpi-cm4", "amlogic,a311d", "amlogic,g12b";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
sdio-pwrseq {
|
||||
post-power-on-delay-ms = <200>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&sd_emmc_a>;
|
||||
__overlay__ {
|
||||
max-frequency = <200000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -75,47 +75,3 @@ index 111111111111..222222222222 100644
|
||||
--
|
||||
Armbian
|
||||
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Yavitz <pyavitz@armbian.com>
|
||||
Date: Sun, 8 Sep 2024 05:55:13 -0400
|
||||
Subject: BananaPi CM4: improve SDIO WiFi speeds
|
||||
|
||||
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
|
||||
---
|
||||
arch/arm64/boot/dts/amlogic/meson-g12b-bananapi-cm4.dtsi | 9 +++++++--
|
||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-bananapi-cm4.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-bananapi-cm4.dtsi
|
||||
index 111111111111..222222222222 100644
|
||||
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-bananapi-cm4.dtsi
|
||||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-bananapi-cm4.dtsi
|
||||
@@ -299,8 +299,10 @@ &sd_emmc_a {
|
||||
#size-cells = <0>;
|
||||
|
||||
bus-width = <4>;
|
||||
+ cap-sd-highspeed;
|
||||
+ sd-uhs-sdr50;
|
||||
sd-uhs-sdr104;
|
||||
- max-frequency = <50000000>;
|
||||
+ max-frequency = <100000000>;
|
||||
|
||||
non-removable;
|
||||
disable-wp;
|
||||
@@ -308,10 +310,13 @@ &sd_emmc_a {
|
||||
/* WiFi firmware requires power in suspend */
|
||||
keep-power-in-suspend;
|
||||
|
||||
+ /* Removing quirk improves WiFi performance */
|
||||
+ /delete-property/ amlogic,dram-access-quirk;
|
||||
+
|
||||
mmc-pwrseq = <&sdio_pwrseq>;
|
||||
|
||||
vmmc-supply = <&vddao_3v3>;
|
||||
- vqmmc-supply = <&vddao_3v3>;
|
||||
+ vqmmc-supply = <&vddao_1v8>;
|
||||
|
||||
status = "okay";
|
||||
|
||||
--
|
||||
Armbian
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ dtbo-$(CONFIG_ARCH_MESON) += \
|
||||
meson-g12a-radxa-zero-uart-ee-c.dtbo \
|
||||
meson-g12b-bananapi-cm4-i2c2.dtbo \
|
||||
meson-g12b-bananapi-cm4-pwm-gpioh-5-fan.dtbo \
|
||||
meson-g12b-bananapi-cm4-wifi-freq-200mhz.dtbo \
|
||||
meson-g12b-bananapi-m2s-rtl8822cs.dtbo \
|
||||
meson-g12b-odroid-n2-spi.dtbo \
|
||||
meson-g12b-waveshare-cm4-io-base-usb.dtbo \
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "bananapi,bpi-cm4io", "bananapi,bpi-cm4", "amlogic,a311d", "amlogic,g12b";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
sdio-pwrseq {
|
||||
post-power-on-delay-ms = <200>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&sd_emmc_a>;
|
||||
__overlay__ {
|
||||
max-frequency = <200000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
45
patch/kernel/archive/spacemit-6.16/0000.patching_config.yaml
Normal file
45
patch/kernel/archive/spacemit-6.16/0000.patching_config.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
config: # This is file 'patch/kernel/spacemit-legacy-6.1/0000.patching_config.yaml'
|
||||
|
||||
# PATCH NUMBERING INFO
|
||||
#
|
||||
# Patches should be ordered in such a way that general kernel patches are applied first, then SoC-related patches and at last board-specific patches
|
||||
#
|
||||
# Patch numbers in this folder are sorted by category:
|
||||
#
|
||||
# 000* for general patches
|
||||
# 0** for Bianbu-Linux-related patches
|
||||
# 1** for other SoC-related patches
|
||||
# 5** for board specific patches
|
||||
|
||||
# Just some info stuff; not used by the patching scripts
|
||||
name: spacemit-6.16
|
||||
kind: kernel
|
||||
type: vendor # or: edge
|
||||
branch: linux-6.16.y
|
||||
last-known-good-tag: v6.16
|
||||
maintainers:
|
||||
- { github: none, name: none, email: none, armbian-forum: none }
|
||||
|
||||
# .dts files in these directories will be copied as-is to the build tree; later ones overwrite earlier ones.
|
||||
# This is meant to provide a way to "add a board DTS" without having to null-patch them in.
|
||||
dts-directories:
|
||||
- { source: "dt", target: "arch/riscv/boot/dts/spacemit" }
|
||||
|
||||
# Every file in these directories will be copied as-is to the build tree; later ones overwrite earlier ones
|
||||
# This is meant as a way to have overlays, bare, in a directory, without having to null-patch them in.
|
||||
# @TODO need a solution to auto-Makefile the overlays as well
|
||||
overlay-directories:
|
||||
- { source: "overlay", target: "arch/riscv/boot/dts/spacemit/overlay" }
|
||||
|
||||
# The Makefile in each of these directories will be magically patched to include the dts files copied
|
||||
# or patched-in; overlay subdir will be included "-y" if it exists.
|
||||
# No more Makefile patching needed, yay!
|
||||
#auto-patch-dt-makefile:
|
||||
# - { directory: "arch/riscv/boot/dts/spacemit", config-var: "CONFIG_SOC_SPACEMIT_K1X" }
|
||||
|
||||
# Configuration for when applying patches to git / auto-rewriting patches (development cycle helpers)
|
||||
patches-to-git:
|
||||
do-not-commit-files:
|
||||
- "MAINTAINERS" # constant churn, drop them. sorry.
|
||||
do-not-commit-regexes: # Python-style regexes
|
||||
- "^arch/([a-zA-Z0-9]+)/boot/dts/([a-zA-Z0-9]+)/Makefile$" # ignore DT Makefile patches, we've an auto-patcher now
|
||||
@@ -0,0 +1,40 @@
|
||||
From d77e410afa4ee896a00335f268f37b59c6f44ea1 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Yavitz <pyavitz@gmail.com>
|
||||
Date: Sat, 17 Aug 2024 11:49:20 -0400
|
||||
Subject: [PATCH] rtl8852bs: Turn off DEBUG and remove RTW_WARN_LM
|
||||
|
||||
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
|
||||
---
|
||||
drivers/net/wireless/realtek/rtl8852bs/Makefile | 2 +-
|
||||
drivers/net/wireless/realtek/rtl8852bs/core/rtw_xmit.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/drivers/net/wireless/realtek/rtl8852bs/Makefile b/drivers/net/wireless/realtek/rtl8852bs/Makefile
|
||||
index 2af36254f..181d9320b 100644
|
||||
--- a/drivers/net/wireless/realtek/rtl8852bs/Makefile
|
||||
+++ b/drivers/net/wireless/realtek/rtl8852bs/Makefile
|
||||
@@ -138,7 +138,7 @@ EXTRA_CFLAGS += -DCONFIG_RTW_ANDROID=$(CONFIG_RTW_ANDROID)
|
||||
endif
|
||||
|
||||
########################## Debug ###########################
|
||||
-CONFIG_RTW_DEBUG = y
|
||||
+CONFIG_RTW_DEBUG = n
|
||||
# default log level is _DRV_INFO_ = 4,
|
||||
# please refer to "How_to_set_driver_debug_log_level.doc" to set the available level.
|
||||
CONFIG_RTW_LOG_LEVEL = 2
|
||||
diff --git a/drivers/net/wireless/realtek/rtl8852bs/core/rtw_xmit.c b/drivers/net/wireless/realtek/rtl8852bs/core/rtw_xmit.c
|
||||
index f50926762..5310587f4 100644
|
||||
--- a/drivers/net/wireless/realtek/rtl8852bs/core/rtw_xmit.c
|
||||
+++ b/drivers/net/wireless/realtek/rtl8852bs/core/rtw_xmit.c
|
||||
@@ -6677,7 +6677,7 @@ static void fill_txreq_list_skb(_adapter *padapter,
|
||||
|
||||
if (skb_total_frag_nr(head_skb) > NUM_PKT_LIST_PER_TXREQ - 2) {
|
||||
rtw_skb_linearize(head_skb);
|
||||
- RTW_WARN_LMT("skb total frag nr over %d\n", NUM_PKT_LIST_PER_TXREQ - 2);
|
||||
+ //RTW_WARN_LMT("skb total frag nr over %d\n", NUM_PKT_LIST_PER_TXREQ - 2);
|
||||
}
|
||||
|
||||
_fill_txreq_list_skb(padapter, txreq, pkt_list, head_skb, &req_sz, &offset);
|
||||
--
|
||||
2.39.2
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
From 4698d0e59f66da7282bd8c9e46e353d1ca64a92e Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Yavitz <pyavitz@gmail.com>
|
||||
Date: Thu, 9 Jan 2025 10:14:18 -0500
|
||||
Subject: [PATCH] Max freq limitation 1.8GHz
|
||||
|
||||
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
|
||||
---
|
||||
drivers/cpufreq/spacemit-cpufreq.c | 20 ++++----------------
|
||||
1 file changed, 4 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/drivers/cpufreq/spacemit-cpufreq.c b/drivers/cpufreq/spacemit-cpufreq.c
|
||||
index 745844e9d2b2..f784e8fe545b 100644
|
||||
--- a/drivers/cpufreq/spacemit-cpufreq.c
|
||||
+++ b/drivers/cpufreq/spacemit-cpufreq.c
|
||||
@@ -49,7 +49,7 @@ of_hotplug_cooling_register(struct cpufreq_policy *policy);
|
||||
#define FILTER_POINTS_0 (135)
|
||||
#define FILTER_POINTS_1 (142)
|
||||
|
||||
-#define K1_MAX_FREQ_LIMITATION (1600000)
|
||||
+#define K1_MAX_FREQ_LIMITATION (1800000)
|
||||
#define M1_MAX_FREQ_LIMITATION (1800000)
|
||||
|
||||
#endif
|
||||
@@ -427,18 +427,8 @@ int spacmeit_cpufreq_veritfy(struct cpufreq_policy_data *policy)
|
||||
if (!policy->freq_table)
|
||||
return -ENODEV;
|
||||
|
||||
- if ((wafer_prop << 16 | product_prop) == PRODUCT_ID_M1) {
|
||||
- /* M1 */
|
||||
- /* can update to 1.8G */
|
||||
- cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq,
|
||||
- policy->cpuinfo.max_freq);
|
||||
- } else {
|
||||
- /* K1 */
|
||||
- /* only 1.6G allowed max */
|
||||
- policy->max = policy->max > K1_MAX_FREQ_LIMITATION ? K1_MAX_FREQ_LIMITATION : policy->max;
|
||||
- cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq,
|
||||
- K1_MAX_FREQ_LIMITATION);
|
||||
- }
|
||||
+ cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq,
|
||||
+ policy->cpuinfo.max_freq);
|
||||
|
||||
cpufreq_for_each_valid_entry(pos, policy->freq_table) {
|
||||
freq = pos->frequency;
|
||||
@@ -470,9 +460,7 @@ void spacemit_cpufreq_ready(struct cpufreq_policy *policy)
|
||||
if ((wafer_prop << 16 | product_prop) == PRODUCT_ID_M1) {
|
||||
/* M1 */
|
||||
} else {
|
||||
- /* K1 or other */
|
||||
- remove_policy_boost_sysfs_file(policy);
|
||||
- remove_boost_sysfs_file();
|
||||
+ /* K1 */
|
||||
}
|
||||
}
|
||||
|
||||
--
|
||||
2.39.5
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
From 64346ab82c7ff0f4ad5ba7140d205e22f8278960 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Yavitz <pyavitz@gmail.com>
|
||||
Date: Fri, 8 Aug 2025 19:47:21 -0400
|
||||
Subject: [PATCH] Add spacemit k1x-spi support
|
||||
|
||||
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
|
||||
---
|
||||
drivers/spi/spidev.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
|
||||
index 6108959c28d9..b25aff873cc5 100644
|
||||
--- a/drivers/spi/spidev.c
|
||||
+++ b/drivers/spi/spidev.c
|
||||
@@ -717,6 +717,7 @@ static const struct spi_device_id spidev_spi_ids[] = {
|
||||
{ .name = /* semtech */ "sx1301" },
|
||||
{ .name = /* silabs */ "em3581" },
|
||||
{ .name = /* silabs */ "si3210" },
|
||||
+ { .name = /* spacemit */ "k1x-spi" },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(spi, spidev_spi_ids);
|
||||
@@ -749,6 +750,7 @@ static const struct of_device_id spidev_dt_ids[] = {
|
||||
{ .compatible = "semtech,sx1301", .data = &spidev_of_check },
|
||||
{ .compatible = "silabs,em3581", .data = &spidev_of_check },
|
||||
{ .compatible = "silabs,si3210", .data = &spidev_of_check },
|
||||
+ { .compatible = "spacemit,k1x-spi", .data = &spidev_of_check },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, spidev_dt_ids);
|
||||
--
|
||||
2.43.0
|
||||
|
||||
1175
patch/kernel/archive/spacemit-6.16/dt/k1-bananapi-f3.dts
Normal file
1175
patch/kernel/archive/spacemit-6.16/dt/k1-bananapi-f3.dts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -183,6 +183,16 @@
|
||||
vcc-pg-supply = <®_dldo1>;
|
||||
vcc-ph-supply = <®_dldo1>;
|
||||
vcc-pi-supply = <®_dldo1>;
|
||||
|
||||
/* PC0 required for spi0 */
|
||||
mmc2_pins: mmc2-pins {
|
||||
pins = "PC1", "PC5", "PC6",
|
||||
"PC8", "PC9", "PC10", "PC11",
|
||||
"PC13", "PC14", "PC15", "PC16";
|
||||
function = "mmc2";
|
||||
drive-strength = <30>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
&r_i2c {
|
||||
@@ -237,6 +247,18 @@
|
||||
};
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "disabled";
|
||||
pinctrl-0 = <&spi0_pins>, <&spi1_cs0_pin>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
spidev@1 {
|
||||
compatible = "rohm,dh2228fv";
|
||||
reg = <1>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&spi1 {
|
||||
status = "disabled";
|
||||
pinctrl-0 = <&spi1_pins>, <&spi1_cs1_pin>;
|
||||
|
||||
@@ -183,6 +183,16 @@
|
||||
vcc-pg-supply = <®_dldo1>;
|
||||
vcc-ph-supply = <®_dldo1>;
|
||||
vcc-pi-supply = <®_dldo1>;
|
||||
|
||||
/* PC0 required for spi0 */
|
||||
mmc2_pins: mmc2-pins {
|
||||
pins = "PC1", "PC5", "PC6",
|
||||
"PC8", "PC9", "PC10", "PC11",
|
||||
"PC13", "PC14", "PC15", "PC16";
|
||||
function = "mmc2";
|
||||
drive-strength = <30>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
&r_i2c {
|
||||
@@ -237,6 +247,18 @@
|
||||
};
|
||||
};
|
||||
|
||||
&spi0 {
|
||||
status = "disabled";
|
||||
pinctrl-0 = <&spi0_pins>, <&spi1_cs0_pin>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
spidev@1 {
|
||||
compatible = "rohm,dh2228fv";
|
||||
reg = <1>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&spi1 {
|
||||
status = "disabled";
|
||||
pinctrl-0 = <&spi1_pins>, <&spi1_cs1_pin>;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
board_rock-5-cmio
|
||||
@@ -1,20 +1,20 @@
|
||||
From 1caeec5d9b700d2408c44df4e4ce7ac2a90412ab Mon Sep 17 00:00:00 2001
|
||||
From d2c7ebb0defcaa2414a8936a547e9d8f99c95667 Mon Sep 17 00:00:00 2001
|
||||
From: Banana Pi -BPI <lionwang@sinovoip.com.cn>
|
||||
Date: Mon, 4 Nov 2024 09:59:05 -0500
|
||||
Date: Sat, 9 Aug 2025 06:38:16 -0400
|
||||
Subject: [PATCH] MBR support
|
||||
|
||||
Signed-off-by: Banana Pi -BPI <lionwang@sinovoip.com.cn>
|
||||
---
|
||||
board/spacemit/k1-x/k1x.c | 10 +++++++++-
|
||||
common/spl/spl_mmc.c | 22 ++++++++++++++++++++--
|
||||
configs/k1_defconfig | 1 +
|
||||
3 files changed, 30 insertions(+), 3 deletions(-)
|
||||
configs/k1_defconfig | 4 +++-
|
||||
3 files changed, 32 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/board/spacemit/k1-x/k1x.c b/board/spacemit/k1-x/k1x.c
|
||||
index f47d9475..460eea4f 100644
|
||||
index 8c5e6b49..b2fc28c8 100644
|
||||
--- a/board/spacemit/k1-x/k1x.c
|
||||
+++ b/board/spacemit/k1-x/k1x.c
|
||||
@@ -440,6 +440,7 @@ void _load_env_from_blk(struct blk_desc *dev_desc, const char *dev_name, int dev
|
||||
@@ -512,6 +512,7 @@ void _load_env_from_blk(struct blk_desc *dev_desc, const char *dev_name, int dev
|
||||
char cmd[128];
|
||||
struct disk_partition info;
|
||||
|
||||
@@ -22,7 +22,7 @@ index f47d9475..460eea4f 100644
|
||||
for (part = 1; part <= MAX_SEARCH_PARTITIONS; part++) {
|
||||
err = part_get_info(dev_desc, part, &info);
|
||||
if (err)
|
||||
@@ -449,8 +450,13 @@ void _load_env_from_blk(struct blk_desc *dev_desc, const char *dev_name, int dev
|
||||
@@ -521,8 +522,13 @@ void _load_env_from_blk(struct blk_desc *dev_desc, const char *dev_name, int dev
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,7 @@ index f47d9475..460eea4f 100644
|
||||
|
||||
env_set("bootfs_part", simple_itoa(part));
|
||||
env_set("bootfs_devname", dev_name);
|
||||
@@ -460,12 +466,14 @@ void _load_env_from_blk(struct blk_desc *dev_desc, const char *dev_name, int dev
|
||||
@@ -532,12 +538,14 @@ void _load_env_from_blk(struct blk_desc *dev_desc, const char *dev_name, int dev
|
||||
sprintf(cmd, "load %s %d:%d 0x%x env_%s.txt", dev_name,
|
||||
dev, part, CONFIG_SPL_LOAD_FIT_ADDRESS, CONFIG_SYS_CONFIG_NAME);
|
||||
pr_debug("cmd:%s\n", cmd);
|
||||
@@ -103,17 +103,20 @@ index acf2b278..581958bb 100644
|
||||
#endif
|
||||
}
|
||||
diff --git a/configs/k1_defconfig b/configs/k1_defconfig
|
||||
index b23d595b..197d54cb 100644
|
||||
index e1f5c080..f0f6b869 100644
|
||||
--- a/configs/k1_defconfig
|
||||
+++ b/configs/k1_defconfig
|
||||
@@ -23,6 +23,7 @@ CONFIG_ARCH_RV64I=y
|
||||
@@ -23,7 +23,9 @@ CONFIG_K1_X_BOARD_ASIC=y
|
||||
CONFIG_ARCH_RV64I=y
|
||||
CONFIG_RISCV_SMODE=y
|
||||
# CONFIG_SPL_SMP is not set
|
||||
CONFIG_LOCALVERSION="spacemit"
|
||||
-CONFIG_LOCALVERSION="spacemit"
|
||||
+CONFIG_LOCALVERSION=" Armbian"
|
||||
+CONFIG_LOCALVERSION_AUTO=n
|
||||
+CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_ENV_VARS_UBOOT_CONFIG=y
|
||||
CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
|
||||
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x1000000
|
||||
--
|
||||
2.39.5
|
||||
2.43.0
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
From 62546ea022aba5caab95f9875880671c58154f17 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Yavitz <pyavitz@gmail.com>
|
||||
Date: Sat, 9 Aug 2025 06:47:10 -0400
|
||||
Subject: [PATCH] Use default AUTOBOOT
|
||||
|
||||
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
|
||||
---
|
||||
configs/k1_defconfig | 6 ++----
|
||||
1 file changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/configs/k1_defconfig b/configs/k1_defconfig
|
||||
index f0f6b869..4f419bc1 100644
|
||||
--- a/configs/k1_defconfig
|
||||
+++ b/configs/k1_defconfig
|
||||
@@ -37,10 +37,6 @@ CONFIG_SPL_LOAD_FIT_ADDRESS=0x11000000
|
||||
CONFIG_LEGACY_IMAGE_FORMAT=y
|
||||
CONFIG_SUPPORT_RAW_INITRD=y
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
-CONFIG_BOOTDELAY=0
|
||||
-CONFIG_AUTOBOOT_KEYED=y
|
||||
-CONFIG_AUTOBOOT_STOP_STR="s"
|
||||
-CONFIG_USE_BOOTCOMMAND=y
|
||||
CONFIG_BOOTCOMMAND="bootm 0x11000000"
|
||||
CONFIG_LOGLEVEL=7
|
||||
CONFIG_SPL_LOGLEVEL=1
|
||||
@@ -113,6 +109,7 @@ CONFIG_CMD_PXE=y
|
||||
CONFIG_CMD_BMP=y
|
||||
CONFIG_CMD_TIME=y
|
||||
CONFIG_CMD_GETTIME=y
|
||||
+CONFIG_CMD_KASLRSEED=y
|
||||
CONFIG_CMD_TIMER=y
|
||||
CONFIG_CMD_SYSBOOT=y
|
||||
CONFIG_CMD_EXT4_WRITE=y
|
||||
@@ -234,6 +231,7 @@ CONFIG_SPL_SPACEMIT_POWER=y
|
||||
CONFIG_DM_PWM=y
|
||||
CONFIG_PWM_PXA=y
|
||||
CONFIG_RESET_SPACEMIT_K1X=y
|
||||
+CONFIG_DM_RNG=y
|
||||
# CONFIG_SCSI is not set
|
||||
# CONFIG_DM_SCSI is not set
|
||||
CONFIG_SYS_NS16550_IER=0x40
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
From e646c31222ba2175e7ded14507f852a1a2202e8e Mon Sep 17 00:00:00 2001
|
||||
From: Banana Pi -BPI <lionwang@sinovoip.com.cn>
|
||||
Date: Thu, 11 Jul 2024 07:37:18 -0400
|
||||
Subject: [PATCH] change AUTOBOOT_STOP_STR to Space KEY
|
||||
|
||||
Signed-off-by: Banana Pi -BPI <lionwang@sinovoip.com.cn>
|
||||
---
|
||||
configs/k1_defconfig | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configs/k1_defconfig b/configs/k1_defconfig
|
||||
index a3adf4b091..4ee8f69e47 100644
|
||||
--- a/configs/k1_defconfig
|
||||
+++ b/configs/k1_defconfig
|
||||
@@ -35,9 +35,12 @@ CONFIG_SPL_LOAD_FIT_ADDRESS=0x11000000
|
||||
CONFIG_LEGACY_IMAGE_FORMAT=y
|
||||
CONFIG_SUPPORT_RAW_INITRD=y
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
-CONFIG_BOOTDELAY=0
|
||||
+CONFIG_BOOTDELAY=2
|
||||
CONFIG_AUTOBOOT_KEYED=y
|
||||
-CONFIG_AUTOBOOT_STOP_STR="s"
|
||||
+CONFIG_AUTOBOOT_PROMPT="Autoboot in %d seconds, press <Space> to stop\n"
|
||||
+CONFIG_AUTOBOOT_DELAY_STR=""
|
||||
+CONFIG_AUTOBOOT_STOP_STR=" "
|
||||
+CONFIG_AUTOBOOT_KEYED_CTRLC=y
|
||||
CONFIG_USE_BOOTCOMMAND=y
|
||||
CONFIG_BOOTCOMMAND="bootm 0x11000000"
|
||||
CONFIG_LOGLEVEL=7
|
||||
--
|
||||
2.39.2
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
From 913408ef316997f97828cf050ade9f9d3f0e4733 Mon Sep 17 00:00:00 2001
|
||||
From a29d5bb1e7c83496b4cebadc735e3c6256a090ad Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Yavitz <pyavitz@gmail.com>
|
||||
Date: Sat, 15 Feb 2025 11:13:36 -0500
|
||||
Date: Mon, 11 Aug 2025 06:15:56 -0400
|
||||
Subject: [PATCH] Add syslinux and script support
|
||||
|
||||
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
|
||||
---
|
||||
board/spacemit/k1-x/k1-x.env | 280 ++++-------------------------------
|
||||
board/spacemit/k1-x/k1-x.env | 279 ++++-------------------------------
|
||||
board/spacemit/k1-x/k1x.c | 20 +--
|
||||
configs/k1_defconfig | 1 +
|
||||
include/configs/k1-x.h | 23 ++-
|
||||
4 files changed, 48 insertions(+), 276 deletions(-)
|
||||
include/configs/k1-x.h | 21 ++-
|
||||
4 files changed, 47 insertions(+), 274 deletions(-)
|
||||
|
||||
diff --git a/board/spacemit/k1-x/k1-x.env b/board/spacemit/k1-x/k1-x.env
|
||||
index f4dadc9a..8eb9c525 100644
|
||||
index f4dadc9a..67c5f1b7 100644
|
||||
--- a/board/spacemit/k1-x/k1-x.env
|
||||
+++ b/board/spacemit/k1-x/k1-x.env
|
||||
@@ -1,253 +1,27 @@
|
||||
@@ -1,253 +1,26 @@
|
||||
-// Common parameter
|
||||
-earlycon=sbi
|
||||
-init=/init
|
||||
@@ -291,16 +291,15 @@ index f4dadc9a..8eb9c525 100644
|
||||
+ fi;
|
||||
+
|
||||
+bootcmd=echo "Loading K1-X Environment ..."; \
|
||||
+ usb start; \
|
||||
+ echo ""; \
|
||||
+ echo "Running NVMe Scan ..."; \
|
||||
+ nvme scan; \
|
||||
+ run autoboot
|
||||
diff --git a/board/spacemit/k1-x/k1x.c b/board/spacemit/k1-x/k1x.c
|
||||
index 9210e121..f6c9a5c7 100644
|
||||
index b2fc28c8..4c788689 100644
|
||||
--- a/board/spacemit/k1-x/k1x.c
|
||||
+++ b/board/spacemit/k1-x/k1x.c
|
||||
@@ -458,8 +458,8 @@ void _load_env_from_blk(struct blk_desc *dev_desc, const char *dev_name, int dev
|
||||
@@ -530,8 +530,8 @@ void _load_env_from_blk(struct blk_desc *dev_desc, const char *dev_name, int dev
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -311,7 +310,7 @@ index 9210e121..f6c9a5c7 100644
|
||||
|
||||
/*load env.txt and import to uboot*/
|
||||
memset((void *)CONFIG_SPL_LOAD_FIT_ADDRESS, 0, CONFIG_ENV_SIZE);
|
||||
@@ -662,7 +662,7 @@ void setenv_boot_mode(void)
|
||||
@@ -734,7 +734,7 @@ void setenv_boot_mode(void)
|
||||
u32 boot_mode = get_boot_mode();
|
||||
switch (boot_mode) {
|
||||
case BOOT_MODE_NAND:
|
||||
@@ -320,7 +319,7 @@ index 9210e121..f6c9a5c7 100644
|
||||
break;
|
||||
case BOOT_MODE_NOR:
|
||||
char *blk_name;
|
||||
@@ -673,23 +673,23 @@ void setenv_boot_mode(void)
|
||||
@@ -745,23 +745,23 @@ void setenv_boot_mode(void)
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -352,16 +351,16 @@ index 9210e121..f6c9a5c7 100644
|
||||
}
|
||||
}
|
||||
diff --git a/configs/k1_defconfig b/configs/k1_defconfig
|
||||
index 18ac1e3a..fd33afde 100644
|
||||
index 4f419bc1..05337aaf 100644
|
||||
--- a/configs/k1_defconfig
|
||||
+++ b/configs/k1_defconfig
|
||||
@@ -294,3 +294,4 @@ CONFIG_PRINT_TIMESTAMP=y
|
||||
@@ -291,3 +291,4 @@ CONFIG_PRINT_TIMESTAMP=y
|
||||
# CONFIG_SPL_SHA256 is not set
|
||||
CONFIG_ZSTD=y
|
||||
# CONFIG_HEXDUMP is not set
|
||||
+CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
diff --git a/include/configs/k1-x.h b/include/configs/k1-x.h
|
||||
index 3e83e032..3cd5f491 100644
|
||||
index b15d2e0b..7d720797 100644
|
||||
--- a/include/configs/k1-x.h
|
||||
+++ b/include/configs/k1-x.h
|
||||
@@ -106,11 +106,6 @@
|
||||
@@ -376,7 +375,7 @@ index 3e83e032..3cd5f491 100644
|
||||
// for those has NOT been through test procedure(ATE)
|
||||
#define SVT_DRO_DEFAULT_VALUE (120)
|
||||
|
||||
@@ -164,6 +159,11 @@ struct boot_storage_op
|
||||
@@ -173,6 +168,11 @@ enum private_part_offset {
|
||||
#define BOOT_TARGET_DEVICES(func) \
|
||||
func(QEMU, qemu, na)
|
||||
|
||||
@@ -388,13 +387,10 @@ index 3e83e032..3cd5f491 100644
|
||||
#include <config_distro_bootcmd.h>
|
||||
|
||||
#define BOOTENV_DEV_QEMU(devtypeu, devtypel, instance) \
|
||||
@@ -189,16 +189,13 @@ struct boot_storage_op
|
||||
/*if env not use for spl, please define to board/spacemit/k1-x/k1-x.env */
|
||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||
"stdout_flash=serial,vidconsole\0" \
|
||||
- "kernel_comp_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
||||
- "kernel_comp_size=" __stringify(CONFIG_FASTBOOT_BUF_SIZE) "\0" \
|
||||
- "kernel_addr_r=" __stringify(CONFIG_FASTBOOT_BUF_ADDR) "\0" \
|
||||
@@ -201,14 +201,13 @@ enum private_part_offset {
|
||||
"kernel_comp_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
||||
"kernel_comp_size=" __stringify(CONFIG_FASTBOOT_BUF_SIZE) "\0" \
|
||||
"kernel_addr_r=" __stringify(CONFIG_FASTBOOT_BUF_ADDR) "\0" \
|
||||
- "ramdisk_addr=" __stringify(RAMDISK_LOAD_ADDR) "\0" \
|
||||
- "dtb_addr=" __stringify(DTB_LOAD_ADDR) "\0" \
|
||||
"scriptaddr=0x2c100000\0" \
|
||||
@@ -402,6 +398,7 @@ index 3e83e032..3cd5f491 100644
|
||||
- "splashimage=" __stringify(CONFIG_FASTBOOT_BUF_ADDR) "\0" \
|
||||
- "splashpos=m,m\0" \
|
||||
- "splashfile=bianbu.bmp\0" \
|
||||
- "led0_gpio=" __stringify(STATUS_LED_GPIO0) "\0" \
|
||||
+ "fdt_addr_r=" FDT_ADDR_R "\0" \
|
||||
+ "kernel_addr_r=" KERNEL_ADDR_R "\0" \
|
||||
+ "ramdisk_addr_r=" RAMDISK_ADDR_R "\0" \
|
||||
@@ -411,5 +408,5 @@ index 3e83e032..3cd5f491 100644
|
||||
|
||||
|
||||
--
|
||||
2.39.5
|
||||
2.43.0
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
From 7e959e5d84de8eee6b50b916d9dc3b7db8224747 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Yavitz <pyavitz@armbian.com>
|
||||
Date: Sat, 28 Dec 2024 07:41:18 -0500
|
||||
Subject: [PATCH] CONFIG_LOCALVERSION=" SpacemiT"
|
||||
|
||||
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
|
||||
---
|
||||
configs/k1_defconfig | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configs/k1_defconfig b/configs/k1_defconfig
|
||||
index 94af88ae..b53e5bef 100644
|
||||
--- a/configs/k1_defconfig
|
||||
+++ b/configs/k1_defconfig
|
||||
@@ -22,7 +22,8 @@ CONFIG_K1_X_BOARD_ASIC=y
|
||||
CONFIG_ARCH_RV64I=y
|
||||
CONFIG_RISCV_SMODE=y
|
||||
# CONFIG_SPL_SMP is not set
|
||||
-CONFIG_LOCALVERSION="spacemit"
|
||||
+CONFIG_LOCALVERSION=" SpacemiT"
|
||||
+CONFIG_LOCALVERSION_AUTO=n
|
||||
CONFIG_DISTRO_DEFAULTS=y
|
||||
CONFIG_ENV_VARS_UBOOT_CONFIG=y
|
||||
CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
|
||||
--
|
||||
2.39.5
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
# Always use a fixed version, this is important for correct hashing.
|
||||
# Dependabot will keep these versions up to date.
|
||||
|
||||
pip == 25.1.1 # pip is the package installer for Python
|
||||
pip == 25.2 # pip is the package installer for Python
|
||||
setuptools == 80.9.0 # for building Python packages
|
||||
pyelftools == 0.32 # for building U-Boot
|
||||
unidiff == 0.7.5 # for parsing unified diff
|
||||
GitPython == 3.1.44 # for manipulating git repos
|
||||
GitPython == 3.1.45 # for manipulating git repos
|
||||
unidecode == 1.4.0 # for converting strings to ascii
|
||||
coloredlogs == 15.0.1 # for colored logging
|
||||
PyYAML == 6.0.2 # for parsing/writing YAML
|
||||
oras == 0.2.37 # for OCI stuff in mapper-oci-update
|
||||
Jinja2 == 3.1.6 # for templating
|
||||
rich == 14.0.0 # for rich text formatting
|
||||
dtschema == 2025.6.1 # for checking dts files and dt bindings
|
||||
rich == 14.1.0 # for rich text formatting
|
||||
dtschema == 2025.8 # for checking dts files and dt bindings
|
||||
yamllint == 1.37.1 # for checking dts files and dt bindings
|
||||
|
||||
Reference in New Issue
Block a user