当前位置:网站首页>编译丨迅为STM32P157开发板编译U-Boot源码
编译丨迅为STM32P157开发板编译U-Boot源码
2022-06-30 15:48:00 【mucheni】
1 增设自己的平台
使用命令“cd u-boot-stm32mp-2020.01”,进入 uboot 目录,如下图所示:

使用以下命令
cp configs/stm32mp15_trusted_defconfig configs/stm32mp15_itop_trusted_defconfig
创建自己的的默认配置文件,如下图所示:

然后我们使用命令“cd arch/arm/dts/”进入设备树文件存放目录,可以看到 ST 官方开发板的设备树文
件,而我们的板子同样也是参照官方开发板来进行设计的,所以为了方便我们直接通过修改官方开发板的
设备树文件来适配我们自己的开发板。
使用以下命令,将官方的设备树文件进行复制并修改文件名,如下图所示
cp stm32mp15xx-dkx.dtsi stm32mp15xx-itop.dtsi
cp stm32mp157a-dk1.dts stm32mp157a-itop.dts
cp stm32mp157a-dk1-u-boot.dtsi stm32mp157a-itop-u-boot.dtsi

使用命令“vim stm32mp157a-itop.dts”进入 stm32mp157a-itop.dts 文件,将头文件中的
#include "stm32mp15xx-dkx.dtsi" 修改为
#include "stm32mp15xx-itop.dtsi" 修改完成如下图所示:

并 将 model 从 STMicroelectronics STM32MP157A-DK1 Discovery Board 修 改 为 STMicroelectronics
STM32MP157A-iTOP Discovery Board,修改完成如下图所示:

保存退出之后使用以下命令进入 stm32mp15xx-itop.dtsi 文件夹
vim stm32mp15xx-itop.dtsi
由于官方的 DK1 开发板内存默认为 512MB 而我们的内存为 1G,所以我们将 memory 属性值由
0xc0000000 0x20000000
修改为
0xc0000000 0x40000000
修改完成如下图所示:

保存退出之后,使用命令“vim stm32mp157a-itop-u-boot.dtsi”进入 stm32mp157a-itop-u-boot.dtsi 文件将
#include "stm32mp15-ddr3-1x4Gb-1066-binG.dtsi" 修改为
#include "stm32mp15-ddr3-2x4Gb-1066-binG.dtsi" 修改完成如下图所示:

保存退出之后,继续再设备树目录下使用命令“ vim Makefile”对编译配置文件进行修改,打开之后如下图所示:

使用查找命令查找“stm32mp157a-dk1.dtb”,然后在下方添加我们自己的设备树文件
stm32mp157a-itop.dtb \
添加完成之后如下图所示:

保存退出,至此我们自己的平台就增加完成了。
边栏推荐
猜你喜欢
![[Verilog basics] summary of some concepts about clock signals (clock setup/hold, clock tree, clock skew, clock latency, clock transition..)](/img/54/fd7541dae4aad7e4216bcaabbb146b.png)
[Verilog basics] summary of some concepts about clock signals (clock setup/hold, clock tree, clock skew, clock latency, clock transition..)

Mathematical modeling for war preparation 33- grey prediction model 2

更多龙蜥自研特性!生产可用的 Anolis OS 8.6 正式发布

15年做糊21款硬件,谷歌到底栽在哪儿?

BC1.2 PD协议

Hologres shared cluster helps Taobao subscribe to the extreme refined operation

Half year inventory of new consumption in 2022: the industry is cold, but these nine tracks still attract gold

Mathematical modeling for war preparation 35 time series prediction model

抖快B为啥做不好综艺

Data mining knowledge points sorting (final review version)
随机推荐
2020 Blue Bridge Cup group B - move bricks - (greedy sorting +01 backpack)
为了使远程工作不受影响,我写了一个内部的聊天室 | 社区征文
CGR 21 (D,E,F)
Mathematical modeling for war preparation 35 time series prediction model
Li Zexiang, a legendary Chinese professor, is making unicorns in batches
微信表情符号写入判决书,你发的OK、炸弹都可能成为“呈堂证供”
9: Chapter 3: e-commerce engineering analysis: 4: [general module]; (to be written...)
【活动报名】探秘元宇宙,就差你了!7月2号我在深圳现场等你!
云和恩墨中标天津滨海农村商业银行2022-2023年度Oracle维保项目
【Verilog基础】十进制负数的八进制、十六进制表示
Cesium-1.72 learning (add points, lines, cubes, etc.)
猎头5万挖我去VC
JS ES5也可以创建常量?
【微信小程序】小程序的宿主环境
The 25th anniversary of Hong Kong's return to China the Hong Kong Palace Museum officially opened as a new cultural landmark
利用PIL进行不失真的resize
Symantec electronic sprint technology innovation board: Tan Jian, the actual controller, is an American who plans to raise 620million yuan
ArcMap operation series: 80 plane to latitude and longitude 84
Bidding announcement: remote disaster recovery project of Shenzhen Finance Bureau database
Implementation of aut, a self-developed transport layer protocol for sound network -- dev for dev column