当前位置:网站首页>Compile u-boot source code for stm32p157 development board
Compile u-boot source code for stm32p157 development board
2022-06-30 17:04:00 【mucheni】
1 Add your own platform
Use command “cd u-boot-stm32mp-2020.01”, Get into uboot Catalog , As shown in the figure below :
Use the following command
cp configs/stm32mp15_trusted_defconfig configs/stm32mp15_itop_trusted_defconfig
Create your own default configuration file , As shown in the figure below :
Then we use the command “cd arch/arm/dts/” Enter the device tree file storage directory , You can see ST Device tree of official development board
Pieces of , Our board is also designed with reference to the official development board , So for our convenience, we directly modify the official development board
Device tree file to fit our own development board .
Use the following command , Copy the official device tree file and modify the file name , As shown in the figure below
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
Use command “vim stm32mp157a-itop.dts” Get into stm32mp157a-itop.dts file , Put... In the header file
#include "stm32mp15xx-dkx.dtsi" It is amended as follows
#include "stm32mp15xx-itop.dtsi" The modification is completed as shown in the figure below :
and take model from STMicroelectronics STM32MP157A-DK1 Discovery Board repair Change by STMicroelectronics
STM32MP157A-iTOP Discovery Board, The modification is completed as shown in the figure below :
After saving and exiting, use the following command to enter stm32mp15xx-itop.dtsi Folder
vim stm32mp15xx-itop.dtsi
As a result of official DK1 The default memory of the development board is 512MB And our memory is 1G, So we're going to memory Property values are set by
0xc0000000 0x20000000
It is amended as follows
0xc0000000 0x40000000
The modification is completed as shown in the figure below :
After saving and exiting , Use command “vim stm32mp157a-itop-u-boot.dtsi” Get into stm32mp157a-itop-u-boot.dtsi The file will be
#include "stm32mp15-ddr3-1x4Gb-1066-binG.dtsi" It is amended as follows
#include "stm32mp15-ddr3-2x4Gb-1066-binG.dtsi" The modification is completed as shown in the figure below :
After saving and exiting , Continue to use the command under the device tree “ vim Makefile” Modify the compilation configuration file , After opening, as shown in the figure below :
Use the find command to find “stm32mp157a-dk1.dtb”, Then add our own device tree file below
stm32mp157a-itop.dtb \
After adding, it is shown in the figure below :
Save and exit , So far, our own platform has been added .
边栏推荐
- “推广+搞笑剧情”,如何碰撞出爆款的火花?
- 山西化工园区智能化管控平台建设时间表
- Observation cloud reached in-depth cooperation with tdengine to optimize enterprise cloud experience
- Design of piece counter based on 51 single chip microcomputer
- jspreadsheet/CE JExcel数据字段比给的字段(columns)多会导致空白列的问题解决方案
- 您工厂的MES再不升级,就要被淘汰啦
- Mathematical modeling for war preparation 34-bp neural network prediction 2
- HMS Core音频编辑服务3D音频技术,助力打造沉浸式听觉盛宴
- On July 2, I invited you to TD Hero online conference
- Etcd教程 — 第九章 Etcd之实现分布式锁
猜你喜欢
Etcd教程 — 第九章 Etcd之实现分布式锁
《网络是怎么样连接的》读书笔记 - 汇总篇
[Verilog basics] summary of some concepts about clock signals (clock setup/hold, clock tree, clock skew, clock latency, clock transition..)
腾讯二面:@Bean 与 @Component 用在同一个类上,会怎么样?
Niuke.com: minimum cost of climbing stairs
【JVM】类加载相关面试题——类加载过程、双亲委派模型
居家办公浅谈远程协助快速提效心得 | 社区征文
On July 2, I invited you to TD Hero online conference
dart:字符串replace相关的方法
Research on helmet wearing detection algorithm
随机推荐
addmodule_ allmerge_ ams_ im
2022蓝桥杯国赛B组-费用报销-(线性dp|状态dp)
观测云与 TDengine 达成深度合作,优化企业上云体验
数据库系统概论习题册
坚果云-在新电脑上同步移动硬盘的文件
CGR 21 (D,E,F)
阿里云盘分享压缩包
POJ Project Summer
TCP Socket与TCP 连接
Halcon knowledge: regional topics [07]
华为帐号多端协同,打造美好互联生活
Data mining knowledge points sorting (final review version)
Go micro tutorial - Chapter 1 getting started
Several cross end development artifacts
巩固入门-C#基础变量和常量
IndexSearch
Home office discussion on the experience of remote assistance to quickly improve efficiency | community essay solicitation
Installing jupyter notebook under Anaconda
RT thread heap size setting
Parler du télétravail