找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5513|回复: 27

[N1盒子] 求教 怎么编译 N1的 dtb

[复制链接]
发表于 2019-3-19 21:56 | 显示全部楼层 |阅读模式
本帖最后由 slwl135 于 2019-4-5 15:33 编辑

armbian 5.77 虽然包含了 dtb 但是负载还是很高
所以想自己编译dtb

已经下载源码
git clone https://github.com/150balbes/Amlogic_s905-kernel.git
cd Amlogic_s905-kernel


接下去用什么命令编译DTB
有懂得大佬教一下吗  以后就能自己动手编译了 随便哪个内核都不怕

最终教程
https://www.right.com.cn/forum/thread-430481-1-1.html  
11楼回复里  需要在N1里编译
N1先安装armbian 随便哪一个
git clone https://github.com/150balbes/Amlogic_s905-kernel.git
cd Amlogic_s905-kernel

再手动修改文件
make clean && make mrproper
make localmodconfig
make dtbs









我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-3-19 22:07 | 显示全部楼层
本帖最后由 network007 于 2019-3-19 22:08 编辑

cp config-4.18.7-aml-s9xxx .config
make prepare
make scripts
仓库内有说明把 主要是修改配置文件 最好自己去系统学学 我也不是很懂我当时也用的别人修改的config
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-19 22:13 | 显示全部楼层
其实,只要把5.77里n1的dtb反编译,然后照着论坛里的方法改下,再重新编译就好了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-19 22:27 | 显示全部楼层
是很多选项啊 和编译OP 一样 选项特别多
貌似当时我没用上面这方法 反正命令有些不一样
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-3-19 22:35 | 显示全部楼层
yomkk 发表于 2019-3-19 22:13
其实,只要把5.77里n1的dtb反编译,然后照着论坛里的方法改下,再重新编译就好了。

怎么反编译  具体步骤能指点下吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-19 22:57 | 显示全部楼层
slwl135 发表于 2019-3-19 22:35
怎么反编译  具体步骤能指点下吗

先安装dtc  
  1. apt-get install device-tree-compiler
复制代码

然后反编译dtb为dts
  1. dtc -I dtb -O dts -o n1.dts n1.dtb
复制代码

修改后重新编译
  1. dtc -I dts -O dtb -o n1_out.dtb n1.dts
复制代码

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-3-19 23:04 | 显示全部楼层
yomkk 发表于 2019-3-19 22:57
先安装dtc  

然后反编译dtb为dts

搞定 谢谢了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-19 23:10 | 显示全部楼层
slwl135 发表于 2019-3-19 22:19
论坛有个教程git clone https://github.com/150balbes/Amlogic_s905-kernel.git
cd Amlogic ...

论坛那编译教程在哪哦 麻烦给个链接!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-3-19 23:14 | 显示全部楼层
network007 发表于 2019-3-19 23:10
论坛那编译教程在哪哦 麻烦给个链接!

https://www.right.com.cn/forum/thread-430481-1-1.html
11楼回复

要是成功的话 教教我
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-19 23:20 | 显示全部楼层
slwl135 发表于 2019-3-19 23:14
https://www.right.com.cn/forum/thread-430481-1-1.html
11楼回复

好的我先收藏 白天折腾了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-19 23:25 来自手机 | 显示全部楼层
收藏备用钥匙
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-19 23:32 来自手机 | 显示全部楼层
收藏了备用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 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
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-20 15:03 来自手机 | 显示全部楼层
大哥,编译成功了的话求普及方法!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-20 19:08 | 显示全部楼层
本帖最后由 network007 于 2019-3-20 19:12 编辑

代码没问题 你如果编译有错 就把make clean && make mrproper多执行几次
如果还是不行就先make config下 然后再make clean && make mrproper

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 09:05

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表