|
发表于 2019-3-20 04:11
来自手机
|
显示全部楼层
copy一下https://www.right.com.cn/forum/thread-422113-1-13.html 这里有。 也可以下载150balbes源码,再打上yangxuan8282大神的补丁,自己编译。 简单粗爆的说下谁都可以做的步骤: 下载源码 git clone https://github.com/150balbes/Amlogic_s905-kernel.git cd Amlogic_s905-kernel 简单粗爆修改arch/arm64/boot/dts/amlogic/Makefile: nano arch/arm64/boot/dts/amlogic/Makefile 内容是加上一行: dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-phicomm-n1.dtb 简单粗爆新建meson-gxl-s905d-phicomm-n1.dts: nano 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>; }; }; 最后: make clean && make mrproper make localmodconfig make dtbs 完了以后就会在arch/arm64/boot/dts/amlogic下打到meson-gxl-s905d-phicomm-n1.dtb |
|