kiddin9 / Kwrt

一分钟在线定制编译 X86/64, NanoPi R2S R4S R5S R6S, 斐讯 Phicomm N1 K2P, 树莓派 Raspberry Pi, 香橙派 Orange Pi, 红米AX6, 小米AX3600, 小米AX9000, 红米AX6S 小米AX3200, 红米AC2100, 华硕ASUS, 网件NETGEAR 等主流软硬路由
https://openwrt.ai
MIT License
7.82k stars 3.14k forks source link

bcm2711 action云编译报错 #1853

Closed laiyoi closed 3 months ago

laiyoi commented 3 months ago

在Apply patches这一步

Run cd openwrt
sh -c 'cat '\''devices/common/patches/LINUX_VERSION.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file Makefile
Hunk #2 succeeded at 135 (offset 3 lines).
sh -c 'cat '\''devices/common/patches/disable_flock.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file package/system/procd/files/procd.sh
sh -c 'cat '\''devices/common/patches/feeds.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file include/feeds.mk
sh -c 'cat '\''devices/common/patches/imagebuilder.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file target/imagebuilder/Makefile
patching file target/imagebuilder/files/Makefile
patch unexpectedly ends in middle of line
Hunk #3 succeeded at 225 with fuzz 1.
sh -c 'cat '\''devices/common/patches/iptables.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file package/network/utils/iptables/Makefile
patch unexpectedly ends in middle of line
Hunk #4 succeeded at [48](https://github.com/laiyoi/OpenWrt_ai/actions/runs/10633139241/job/29477540551#step:10:49)3 with fuzz 1.
sh -c 'cat '\''devices/common/patches/kernel-defaults.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file include/kernel-defaults.mk
sh -c 'cat '\''devices/common/patches/kernel_version.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file scripts/json_overview_image_info.py
patching file scripts/json_add_image_info.py
Hunk #1 succeeded at 61 (offset 6 lines).
sh -c 'cat '\''devices/common/patches/luci_mk.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file feeds/luci/luci.mk
Hunk #1 succeeded at 84 (offset 2 lines).
Hunk #2 succeeded at 220 (offset 13 lines).
Hunk #3 succeeded at 242 (offset 13 lines).
Hunk #4 succeeded at 366 (offset 11 lines).
sh -c 'cat '\''devices/common/patches/mt7922.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file package/kernel/mt76/Makefile
Hunk #1 succeeded at 267 with fuzz 1 (offset 5 lines).
Hunk #2 succeeded at 633 with fuzz 1 (offset 72 lines).
Hunk #3 FAILED at 602.
1 out of 3 hunks FAILED -- saving rejects to file package/kernel/mt76/Makefile.rej
sh -c 'cat '\''devices/common/patches/package.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file include/package.mk
Hunk #1 succeeded at 374 (offset 20 lines).
sh -c 'cat '\''devices/common/patches/rootfs.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file include/rootfs.mk
sh -c 'cat '\''devices/common/patches/rootfstargz.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file include/image.mk
Hunk #1 succeeded at 315 (offset 15 lines).
Hunk #2 succeeded at 429 with fuzz 2 (offset 24 lines).
Hunk #3 succeeded at 662 (offset 55 lines).
Hunk #4 succeeded at 700 (offset 55 lines).
Hunk #5 succeeded at 785 (offset 67 lines).
sh -c 'cat '\''devices/common/patches/seccomp.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file package/system/procd/files/procd.sh
Hunk #1 succeeded at 2[51](https://github.com/laiyoi/OpenWrt_ai/actions/runs/10633139241/job/29477540551#step:10:52) (offset -9 lines).
sh -c 'cat '\''devices/common/patches/targets.patch'\''  | patch -d '\''./'\'' -B --merge -p1 -E --forward'
patching file include/target.mk
Error: Process completed with exit code 123.

下面是.config 文件,复制并修改自https://github.com/SuLingGG/OpenWrt-Rpi/blob/main/config/general-packages.config


CONFIG_TARGET_bcm27xx=y
CONFIG_TARGET_bcm27xx_bcm2711=y
CONFIG_TARGET_bcm27xx_bcm2711_DEVICE_rpi-4=y

CONFIG_PACKAGE_luci-ssl=n # uhttpd服务
CONFIG_PACKAGE_luci-ssl-nginx=y # nginx

CONFIG_PACKAGE_kmod-rtl8821cu=m
CONFIG_PACKAGE_kmod-rtl88x2bu=m

CONFIG_PACKAGE_kmod-of-mdio=n

# Image Config
CONFIG_TARGET_KERNEL_PARTSIZE=50
CONFIG_TARGET_ROOTFS_PARTSIZE=10240
CONFIG_TARGET_ROOTFS_TARGZ=y
CONFIG_TARGET_ROOTFS_EXT4FS=y
CONFIG_TARGET_EXT4_JOURNAL=y
CONFIG_TARGET_ROOTFS_SQUASHFS=y

# Kmods
CONFIG_PACKAGE_kmod-rtl8187=y
CONFIG_PACKAGE_kmod-rtl8188eu=y
CONFIG_PACKAGE_kmod-rtl8192c-common=y
CONFIG_PACKAGE_kmod-rtl8192cu=y
CONFIG_PACKAGE_kmod-rtl8192du=y
CONFIG_PACKAGE_kmod-rtl8812au-ac=y
CONFIG_PACKAGE_kmod-rtl8821cu=y
CONFIG_PACKAGE_kmod-rtl88x2bu=y
CONFIG_PACKAGE_kmod-rtlwifi=y
CONFIG_PACKAGE_kmod-rtlwifi-usb=y
CONFIG_PACKAGE_kmod-usb-net-rtl8150=y
CONFIG_PACKAGE_kmod-usb-net-rtl8152=y

# Packages Options
CONFIG_ALL_NONSHARED=y

# Developer Options
CONFIG_IB=y
CONFIG_IB_STANDALONE=y
CONFIG_IMAGEOPT=y
CONFIG_MAKE_TOOLCHAIN=y
CONFIG_SDK=y
CONFIG_SIGNATURE_CHECK=n

# Extra Packages
CONFIG_PACKAGE_htop=y
CONFIG_PACKAGE_autocore-arm=y
CONFIG_PACKAGE_autocore-x86=y
CONFIG_PACKAGE_automount=y

# LuCI APP
CONFIG_PACKAGE_luci-app-adguardhome=y
CONFIG_PACKAGE_luci-app-adguardhome_INCLUDE_binary=n
CONFIG_PACKAGE_luci-app-argon-config=y
CONFIG_PACKAGE_luci-app-aria2=y
CONFIG_PACKAGE_luci-app-arpbind=y
CONFIG_PACKAGE_luci-app-cifs-mount=y
CONFIG_PACKAGE_luci-app-commands=y
CONFIG_PACKAGE_luci-app-cpulimit=y
CONFIG_PACKAGE_luci-app-ddns=y
CONFIG_PACKAGE_luci-app-diskman=y
CONFIG_PACKAGE_luci-app-diskman_INCLUDE_btrfs_progs=y
CONFIG_PACKAGE_luci-app-diskman_INCLUDE_lsblk=y
CONFIG_PACKAGE_luci-app-diskman_INCLUDE_mdadm=y
CONFIG_PACKAGE_luci-app-diskman_INCLUDE_kmod_md_raid456=y
CONFIG_PACKAGE_luci-app-diskman_INCLUDE_kmod_md_linear=y
CONFIG_PACKAGE_luci-app-eqos=y
CONFIG_PACKAGE_luci-app-filetransfer=y
CONFIG_PACKAGE_luci-app-fileassistant=y
CONFIG_PACKAGE_luci-app-frpc=y
CONFIG_PACKAGE_luci-app-gowebdav=y
CONFIG_PACKAGE_luci-app-guest-wifi=y
CONFIG_PACKAGE_luci-app-hd-idle=y
CONFIG_PACKAGE_luci-app-ipsec-server=y
CONFIG_PACKAGE_luci-app-ipsec-vpnd=n
CONFIG_PACKAGE_luci-app-n2n_v2=y
CONFIG_PACKAGE_luci-app-netdata=y
CONFIG_PACKAGE_luci-app-nfs=y
CONFIG_PACKAGE_luci-app-nlbwmon=n
CONFIG_PACKAGE_luci-app-nps=y
CONFIG_PACKAGE_luci-app-openclash=y
CONFIG_PACKAGE_luci-app-pptp-server=y
CONFIG_PACKAGE_luci-app-pushbot=y
CONFIG_PACKAGE_luci-app-samba=y
CONFIG_PACKAGE_luci-app-serverchan=y
CONFIG_PACKAGE_luci-app-smartdns=y
CONFIG_PACKAGE_luci-app-softethervpn=y
CONFIG_PACKAGE_luci-app-sqm=y
CONFIG_PACKAGE_luci-app-transmission=y
CONFIG_PACKAGE_luci-app-turboacc=y
CONFIG_PACKAGE_TURBOACC_INCLUDE_BBR_CCA=y
CONFIG_PACKAGE_TURBOACC_INCLUDE_DNSFORWARDER=y
CONFIG_PACKAGE_TURBOACC_INCLUDE_DNSPROXY=y
CONFIG_PACKAGE_TURBOACC_INCLUDE_OFFLOADING=y
CONFIG_PACKAGE_TURBOACC_INCLUDE_SHORTCUT_FE=n
CONFIG_PACKAGE_luci-app-ttyd=y
CONFIG_PACKAGE_luci-app-usb-printer=y
CONFIG_PACKAGE_luci-app-watchcat=y
CONFIG_PACKAGE_luci-app-webadmin=y
CONFIG_PACKAGE_luci-app-wifischedule=y
CONFIG_PACKAGE_luci-app-wireguard=y
CONFIG_PACKAGE_luci-app-wrtbwmon=y
CONFIG_PACKAGE_luci-app-zerotier=y
CONFIG_PACKAGE_luci-proto-modemmanager=y
CONFIG_PACKAGE_luci-proto-bonding=y
CONFIG_PACKAGE_luci-proto-openconnect=y
CONFIG_PACKAGE_luci-proto-relay=y
CONFIG_PACKAGE_luci-theme-argonv3=y
CONFIG_PACKAGE_luci-theme-material=y

# LuCI Language Packages

CONFIG_LUCI_LANG_zh=y

# Network Tools
CONFIG_PACKAGE_ariang=y
CONFIG_PACKAGE_bind-dig=y
CONFIG_PACKAGE_bind-host=y
CONFIG_PACKAGE_bind-client=y
CONFIG_PACKAGE_coremark=y
CONFIG_PACKAGE_ddns-scripts=y
CONFIG_PACKAGE_ddns-scripts_aliyun=y
CONFIG_PACKAGE_ddns-scripts_cloudflare.com-v4=y
CONFIG_PACKAGE_ddns-scripts_cnkuai_cn=y
CONFIG_PACKAGE_ddns-scripts_digitalocean.com-v2=y
CONFIG_PACKAGE_ddns-scripts_dnspod=y
CONFIG_PACKAGE_ddns-scripts_freedns_42_pl=y
CONFIG_PACKAGE_ddns-scripts_godaddy.com-v1=y
CONFIG_PACKAGE_ddns-scripts_no-ip_com=y
CONFIG_PACKAGE_ddns-scripts_nsupdate=y
CONFIG_PACKAGE_ddns-scripts_route53-v1=y
CONFIG_PACKAGE_iperf=y
CONFIG_PACKAGE_openssh-sftp-client=y
CONFIG_PACKAGE_openssh-sftp-server=y
CONFIG_PACKAGE_ppp-mod-pptp=y
CONFIG_PACKAGE_rsync=y
CONFIG_PACKAGE_rsyncd=y
CONFIG_PACKAGE_xl2tpd=y

# System Utilities
CONFIG_DOCKER_CGROUP_OPTIONS=y
CONFIG_DOCKER_NET_ENCRYPT=y
CONFIG_DOCKER_NET_MACVLAN=y
CONFIG_DOCKER_NET_OVERLAY=y
CONFIG_DOCKER_NET_TFTP=y
CONFIG_DOCKER_OPTIONAL_FEATURES=y
CONFIG_DOCKER_STO_BTRFS=y
CONFIG_DOCKER_STO_EXT4=y
CONFIG_LXC_BUSYBOX_OPTIONS=y
CONFIG_LXC_KERNEL_OPTIONS=y
CONFIG_LXC_NETWORKING=y
CONFIG_LXC_SECCOMP=y
CONFIG_PACKAGE_alpine-keys=y
CONFIG_PACKAGE_alpine-repositories=y
CONFIG_PACKAGE_apk=y
CONFIG_PACKAGE_cgroupfs-mount=y
CONFIG_PACKAGE_docker=m
CONFIG_PACKAGE_dockerd=m
CONFIG_PACKAGE_e2fsprogs=y
CONFIG_PACKAGE_f2fsck=y
CONFIG_PACKAGE_f2fs-tools=y
CONFIG_PACKAGE_fdisk=y
CONFIG_PACKAGE_fstrim=y
CONFIG_PACKAGE_gpioctl-sysfs=y
CONFIG_PACKAGE_gpiod-tools=y
CONFIG_PACKAGE_gzip=y
CONFIG_PACKAGE_i2c-tools=y
CONFIG_PACKAGE_irqbalance=y
CONFIG_PACKAGE_libcap=y
CONFIG_PACKAGE_libcap-bin=y
CONFIG_PACKAGE_lsblk=y
CONFIG_PACKAGE_lscpu=y
CONFIG_PACKAGE_lxc=m
CONFIG_PACKAGE_nano=y
CONFIG_PACKAGE_resize2fs=y
CONFIG_PACKAGE_screen=y
CONFIG_PACKAGE_sfdisk=y
CONFIG_PACKAGE_snmpd=y
CONFIG_PACKAGE_tmate=y
CONFIG_PACKAGE_tmux=y
CONFIG_PACKAGE_tree=y
CONFIG_PACKAGE_unzip=y
CONFIG_PACKAGE_usbutils=y
CONFIG_PACKAGE_vim-full=y
CONFIG_PACKAGE_whereis=y
CONFIG_PACKAGE_zsh=y