当前位置:网站首页>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 .
边栏推荐
- Data security compliance has brought new problems to the risk control team
- 9: Chapter 3: e-commerce engineering analysis: 4: [general module]; (to be written...)
- 居家办公浅谈远程协助快速提效心得 | 社区征文
- Niuke.com: minimum cost of climbing stairs
- 【微信小程序】常用组件基本使用(view/scroll-view/swiper、text/rich-text、button/image)
- [wechat applet] basic use of common components (view/scroll-view/wiper, text/rich-text, button/image)
- Multi terminal collaboration of Huawei accounts to create a better internet life
- The 25th anniversary of Hong Kong's return to China the Hong Kong Palace Museum officially opened as a new cultural landmark
- 名单揭晓 | 2021年度中国杰出知识产权服务团队
- RT-Thread 堆區大小設置
猜你喜欢

RT-Thread 堆区大小设置
![[BJDCTF2020]The mystery of ip|[CISCN2019 华东南赛区]Web11|SSTI注入](/img/c2/d6760826b81589781574aebff61f9a.png)
[BJDCTF2020]The mystery of ip|[CISCN2019 华东南赛区]Web11|SSTI注入

Restartprocessifvisible process

List announced - outstanding intellectual property service team in China in 2021

山西化工园区智能化管控平台建设时间表

nodejs学习笔记二

声网自研传输层协议 AUT 的落地实践丨Dev for Dev 专栏

Mathematical modeling for war preparation 35 time series prediction model

HMS Core音频编辑服务3D音频技术,助力打造沉浸式听觉盛宴

TCP socket and TCP connection
随机推荐
IO stream_ recursion
名单揭晓 | 2021年度中国杰出知识产权服务团队
Bc1.2 PD protocol
Substrate 跨链技术源码级探索: XCVM的概览
药品管理系统加数据库,一夜做完,加报告
[machine learning] K-means clustering analysis
互联网研发效能实践之去哪儿网(Qunar)核心领域DevOps落地实践
深度学习——(2)几种常见的损失函数
坚果云-在新电脑上同步移动硬盘的文件
2022蓝桥杯国赛B组-2022-(01背包求方案数)
【机器学习】K-means聚类分析
simpleITK读取nii遇到ITK only supports orthonormal direction cosines的错误
restartProcessIfVisible的流程
【OpenCV 例程200篇】215. 基于多段线绘制近似椭圆
BC1.2 PD协议
[Verilog quick start of Niuke online question series] ~ bit splitting and operation
Installing jupyter notebook under Anaconda
IndexSearch
Go micro tutorial - Chapter 1 getting started
List announced - outstanding intellectual property service team in China in 2021