Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新 r8168 驱动后编译出错 #9480

Closed
mitsukileung opened this issue Jun 4, 2022 · 0 comments
Closed

更新 r8168 驱动后编译出错 #9480

mitsukileung opened this issue Jun 4, 2022 · 0 comments

Comments

@mitsukileung
Copy link

X86

mkdir -p /home/koyko/lede/dl
SHELL= flock /home/koyko/lede/tmp/.r8168-8.050.02.tar.xz.flock -c ' /home/koyko/lede/scripts/download.pl "/home/koyko/lede/dl" "r8168-8.050.02.tar.xz" "6f5e423c852112ab6a083faa82ab0948cd28e5815c667dc176ae00b5bbaa6168" "" || ( /home/koyko/lede/scripts/dl_github_archive.py --dl-dir="/home/koyko/lede/dl" --url="https://github.com/BROBIRD/openwrt-r8168.git" --version="e7995591e0cfb538542d5b60b11ddd41d95d2743" --subdir="r8168-8.050.02" --source="r8168-8.050.02.tar.xz" --hash="6f5e423c852112ab6a083faa82ab0948cd28e5815c667dc176ae00b5bbaa6168" || ( echo "Checking out files from the git repository..."; mkdir -p /home/koyko/lede/tmp/dl && cd /home/koyko/lede/tmp/dl && rm -rf r8168-8.050.02 && [ ! -d r8168-8.050.02 ] && git clone https://github.com/BROBIRD/openwrt-r8168.git r8168-8.050.02 && (cd r8168-8.050.02 && git checkout e7995591e0cfb538542d5b60b11ddd41d95d2743 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=cd r8168-8.050.02 && git log -1 --format='\''@%ct'\'' && rm -rf r8168-8.050.02/.git && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c r8168-8.050.02 | xz -zc -7e > /home/koyko/lede/tmp/dl/r8168-8.050.02.tar.xz && mv /home/koyko/lede/tmp/dl/r8168-8.050.02.tar.xz /home/koyko/lede/dl/ && rm -rf r8168-8.050.02; ); ) '
touch /home/koyko/lede/build_dir/target-x86_64_musl/linux-x86_64/r8168-8.050.02/.prepared_a2fdd066f5a5e7b7ea732c327fa22003_6664517399ebbbc92a37c5bb081b5c53_check
. /home/koyko/lede/include/shell.sh; xzcat /home/koyko/lede/dl/r8168-8.050.02.tar.xz | tar -C /home/koyko/lede/build_dir/target-x86_64_musl/linux-x86_64/r8168-8.050.02/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/koyko/lede/build_dir/target-x86_64_musl/linux-x86_64/r8168-8.050.02

Applying ./patches/001-r8168-add-LED-configuration-from-OF.patch using plaintext:
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/r8168_n.c
Hunk #2 succeeded at 24608 (offset 1125 lines).
Hunk #3 succeeded at 25186 (offset 1169 lines).

Applying ./patches/002-r8168-add-support-for-kernel-over-5.10.patch using plaintext:
patching file src/r8168_n.c
Hunk #2 succeeded at 544 (offset 16 lines).
Hunk #3 FAILED at 24156.
Hunk #4 FAILED at 24188.
2 out of 4 hunks FAILED -- saving rejects to file src/r8168_n.c.rej
Patch failed! Please fix ./patches/002-r8168-add-support-for-kernel-over-5.10.patch!
make[3]: *** [Makefile:61: /home/koyko/lede/build_dir/target-x86_64_musl/linux-x86_64/r8168-8.050.02/.prepared_a2fdd066f5a5e7b7ea732c327fa22003_6664517399ebbbc92a37c5bb081b5c53] Error 1
make[3]: Leaving directory '/home/koyko/lede/package/lean/r8168'
time: package/lean/r8168/compile#0.25#0.07#0.30
ERROR: package/lean/r8168 failed to build.
make[2]: *** [package/Makefile:116: package/lean/r8168/compile] Error 1
make[2]: Leaving directory '/home/koyko/lede'
make[1]: *** [package/Makefile:110: /home/koyko/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/koyko/lede'
make: *** [/home/koyko/lede/include/toplevel.mk:230:world] 错误 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant