|
本帖最后由 wilywx 于 2019-8-11 17:44 编辑
自己尝试编辑最新5.2.X的dtb,
失败了,
会导致启动不了.
不会弄,最后用回了 20190710 - Armbian 5.91 - Ubuntu 18 桌面版
Armbian_5.91_Aml-s905_Ubuntu_bionic_default_5.1.15_desktop_20190710.img
https://yadi.sk/d/pHxaRAs-tZiei/5.91_20190710/s905_s905x_s912
并加上论坛高手 loine 提供的dtb文件
https://www.right.com.cn/forum/thread-876213-1-1.html
这也是比较新的版本(7月10号的),内核是5.1.15,用起来感觉不错,没遇到什么问题。
- # 恩山高手"一个大草包"提供的编译dtb方法,我没成功,有人成功了.
- # https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=430481
- # 可以下载150balbes源码,再打上yangxuan8282大神的补丁,自己编译。
- # 简单粗爆的说下谁都可以做的步骤:
- # A. 下载源码
- mkdir -p build_n1_dtb;cd build_n1_dtb;git clone https://github.com/150balbes/Amlogic_s905-kernel.git;cd Amlogic_s905-kernel;
- # 测试编译环境是否正常,缺少什么包自行安装.
- make defconfig
- # apt-get install -y gcc flex bison;
- # B. 修改arch/arm64/boot/dts/amlogic/Makefile
- vi arch/arm64/boot/dts/amlogic/Makefile
- # 内容是加上一行:
- dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-phicomm-n1.dtb
- # C. 新建meson-gxl-s905d-phicomm-n1.dts
- vi arch/arm64/boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts
- # 内容如下:
- // SPDX-License-Identifier: (GPL-2.0 OR MIT)
- /*
- * Copyright (c) 2018 He Yangxuan
- */
- /dts-v1/;
- #include "meson-gxl-s905d-p230.dts"
- / {
- compatible = "phicomm,n1", "amlogic,s905d", "amlogic,meson-gxl";
- model = "Phicomm N1";
- aliases {
- serial1 = &uart_A;
- };
- cvbs-connector {
- status = "disabled";
- };
- };
- &cvbs_vdac_port {
- status = "disabled";
- };
- &external_phy {
- /* Realtek RTL8211F (0x001cc916) */
- eee-broken-1000t;
- };
- /* This is connected to the Bluetooth module: */
- &uart_A {
- status = "okay";
- pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
- pinctrl-names = "default";
- bluetooth {
- compatible = "brcm,bcm43438-bt";
- shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
- };
- };
- # D. 编译
- make clean && make mrproper
- make localmodconfig
- make dtbs
- # 完了以后就会在arch/arm64/boot/dts/amlogic下打到meson-gxl-s905d-phicomm-n1.dtb
复制代码 |
|