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

使用原厂开源的kernel没有wifi #2

Open
sesame-foxes opened this issue Jan 31, 2022 · 12 comments
Open

使用原厂开源的kernel没有wifi #2

sesame-foxes opened this issue Jan 31, 2022 · 12 comments

Comments

@sesame-foxes
Copy link

作者你好,我使用小米开源的原厂kernel编译完成后导入手机,手机没有wifi功能。根据wiki需要下载高通的驱动后打包,由于网络问题高通的驱动下载缓慢切相对较大,请问有你是如何解决wifi问题的。

@SINOPW
Copy link

SINOPW commented May 15, 2022

你好,请问最后问题解决了吗,有没有编译出支持docker的miui内核呀

@sesame-foxes
Copy link
Author

你好,请问最后问题解决了吗,有没有编译出支持docker的miui内核呀

后面我用了第三方的系统编译的,没用官方的

@sesame-foxes
Copy link
Author

你好,请问最后问题解决了吗,有没有编译出支持docker的miui内核呀

后面我用了第三方的系统编译的,没用官方的

可以简单说说吗?机型,内核,编译工具

https://zhuanlan.zhihu.com/p/467521410

@sesame-foxes
Copy link
Author

你好,请问最后问题解决了吗,有没有编译出支持docker的miui内核呀

后面我用了第三方的系统编译的,没用官方的

可以简单说说吗?机型,内核,编译工具

https://zhuanlan.zhihu.com/p/467521410

你好,我按照该教程以及小米内核编译的教程,编译这个内核, https://github.com/crdroidandroid/android_kernel_xiaomi_lavender 去执行make lavender_stock-defconfig这个命令,报错

HOSTCC  scripts/basic/fixdep
make[1]: *** 没有规则可制作目标“lavender_stock-defconfig”。 停止。
Makefile:552: recipe for target 'lavender_stock-defconfig' failed
make: *** [lavender_stock-defconfig] Error 2

查看 arch/arm64/configs/目录下,确有 lavender_stock-defconfig该文件
使用的环境变量为:

export ARCH=arm64
export SUBARCH=arm64
export CROSS_COMPILE=${PWD}/toolchain/bin/aarch64-linux-android-
# toolchain 是 https://github.com/djb77/aarch64-linux-android-4.9.git

希望可以指点一下

目前更换了这个工具编译,https://github.com/kdrag0n/proton-clang 多跑了一段,单依然没有成功 输入

make O=out\
  CROSS_COMPILE=aarch64-linux-gnu-\
  CC=clang\
  AR=llvm-ar\
  NM=llvm-nm\
  OBJCOPY=llvm-objcopy\
  OBJDUMP=llvm-objdump\
  STRIP=llvm-strip\
  -j$(nproc --all)

会有很多很多命令选项,例如:

scripts/kconfig/conf  --silentoldconfig Kconfig
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && MSM_QDSP6_APRV2_GLINK)
warning: (WCD934X_CODEC) selects PINCTRL_WCD which has unmet direct dependencies (PINCTRL && (ARCH_QCOM || COMPILE_TEST) && WCD934X_CODEC)
*
* Restart config...
*
*
* General setup
*
Cross-compiler tool prefix (CROSS_COMPILE) []
Compile also drivers which will not load (COMPILE_TEST) [N/y/?] n
Local version - append to kernel release (LOCALVERSION) [-Nexus-EAS-v10.2-CAF] -Nexus-EAS-v10.2-CAF
Automatically append version information to the version string (LOCALVERSION_AUTO) [Y/n/?] y
Kernel compression mode
> 1. Gzip (KERNEL_GZIP) (NEW)
  2. Bzip2 (KERNEL_BZIP2) (NEW)
  3. LZMA (KERNEL_LZMA) (NEW)
  4. XZ (KERNEL_XZ) (NEW)
  5. LZO (KERNEL_LZO) (NEW)
  6. LZ4 (KERNEL_LZ4) (NEW)
choice[1-6?]:

全部默认回车以后(有很多,五十个以上)

CHK     include/config/kernel.release
  UPD     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  CC      scripts/mod/empty.o
fatal error: error in backend: Only small, tiny and large code models are allowed on AArch64
clang-13: error: clang frontend command failed with exit code 70 (use -v to see invocation)
Proton clang version 13.0.0 (https://github.com/llvm/llvm-project b4fd512c36ca344a3ff69350219e8b0a67e9472a)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/asd/toolchains/proton-clang/bin
clang-13: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-13: note: diagnostic msg: /tmp/empty-8f31c5.c
clang-13: note: diagnostic msg: /tmp/empty-8f31c5.sh
clang-13: note: diagnostic msg:

********************
scripts/Makefile.build:320: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 70
scripts/Makefile.build:629: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** 正在等待未完成的任务....
Makefile:566: recipe for target 'scripts' failed
make: *** [scripts] Error 2

https://ivonblog.com/posts/how-to-compile-custom-android-kernel/
https://ivonblog.com/posts/run-docker-natively-on-android/
你可以参考一下这个,我编译的时间太久远了,已经记不大清了

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

3 participants
@SINOPW @sesame-foxes and others