当前位置:网站首页>D1 Nezha Development Board understands the basic startup and loading process
D1 Nezha Development Board understands the basic startup and loading process
2022-06-12 13:27:00 【Zhangshizheng】
Preface
Familiar with an embedded platform , You need to know how to start the platform , Such as Nand Flash、Nor Flash、SD Card, etc
Different ways to start , The firmware itself may be stored in different locations , Such as Nand Flash start-up , You need to install all the firmware , Such as boot0、uboot、kernel、rootfs etc. , Download to the specified location first , Or specified storage 【 Partition 】, Block the firmware storage , Used to store firmware with different functions
image SD card 、NandFlash etc. , Generally, direct code execution is not supported , So it's like Linux Such as system , It's all through bootloader, Start the system in advance , If initialized RAM(SDRAM、DDR SDRAM etc. ), Copy the code to RAM In the implementation of , therefore Nand Flash、SD The card is mainly used to store code and data ,RAM Used for system startup and operation , Execution of code
A great deal of CPU chip , Both support multi-level startup , All records on Nezha development board D1 CPU, be based on RISCV64 For my flat head brother C906 The core , It also supports multiple startup modes , Such as SD card 、Nand Flash etc.
uboot Is common boot Add loader, That is, it has the function of starting and loading , It has the function of firmware upgrade , however CPU Access to electricity , There should be an original startup process , This process is based on CPU Of ROM Starting mode , If you use Nand Flash guide , need boot Mode selection Nand Flash,CPU When powered on, it will take the initiative to Nand Flash A small part of the code in , copy to RAM To carry out , This is it. CPU ROM Of itself boot function , Hardware solidified , The user cannot wipe it out .
this 【 A little bit of code 】, You need to do a good job in the basic initialization of the system , Such as system clock configuration 、DEBUG Pin configuration 、RAM Initialization etc. , And have 【 Level 2 jump function 】, Jump to uboot etc. bootloader. let me put it another way ,CPU Of itself ROM The firmware , Direct loading is not supported Uboot, But need a bootstrap Type of boot Code , Through this bootstrap start-up uboot, Then continue to guide Linux Isooperating system , Then load the file system , Such a level by level jump and execution
All records on Nezha development board D1 CPU, It's using :
OpenSBI, Asboot0The way ,CPU After power on , The first run ROM Boot loader in , performOpenSBI, Then initialize the system , Then go to jump to run uboot Other firmwareOpenSBICount as Full ambition D1 CPU The logic program of , May be limited by the boot mode , ThisOpenSBIThe size of the firmware will be limited
Start process
D1 Nezha development board , Without inserting SD In the case of cards , The on-board... Will be started by default
Tina Linux, This startup can be done by viewing 【DEBUG】 Serial port startup information acquisitionThe basic boot mode is :
CPU ROM Cut to Nand Flash How to lead
- OpenSBI v0.6
- U-Boot 2018.05
- Linux version 5.4.61
- BusyBox v1.27.2
This is the standard Linux The system starts the process
OpenSBI

U-Boot

Linux kernel

BusyBox rootfs

Other thoughts
If you start RT-Thread Of rt-smart operating system , This is based on Nand Flash What will the startup loading process look like ?
I think it can be :
CPU ROM Cut to Nand Flash How to lead
- OpenSBI v0.6
- U-Boot
- rt-smart
- userapps
SD How to start the card , We will continue to study later
Summary
Preliminary contact D1 Nezha development board , Start to understand the boot mode of the system , Learn how to download firmware
Firmware download can use : Quanzhi
PhoenixSuitTools , at present USB The drive is connected , however Generated rt-smart img The mirroring tool does not recognize , So we need to continue our research


let me put it another way , Need to find a support burning boot0 Tools for , This
PhoenixSuitTools , It is estimated that only Linux That set of firmware burning , By default uboot How to load the boot .Later research Nand Flash【 Empty piece 】 burning 、rt-smart Image burning method
边栏推荐
- 1002: output the second integer
- Tensorrt, onnx to tensorrt in mmclas
- R language Visual facet chart, hypothesis test, multivariable grouping t-test, visual multivariable grouping faceting bar plot, adding significance level and jitter points
- 移动应用出海的“新大陆”
- Teach you how to create SSM project structure in idea
- Wechat web developer tools tutorial, web development issues
- 用PyTorch进行语义分割
- Script import CDN link prompt net:: err_ FILE_ NOT_ Found problem
- C language [23] classic interview questions [2]
- 5V升压到12.6V的锂电池充电IC芯片方案FS4062B
猜你喜欢

Further understanding of the network

Introduction to application design scheme of intelligent garbage can voice chip, wt588f02b-8s

Successful job hopping Ali, advanced learning

"New continent" of mobile application going to sea
![Mui login database improvement and Ajax asynchronous processing [mui+flask+mongodb+hbuilderx]](/img/11/ce929f1cfbdcf245db9ee53bfe7a84.png)
Mui login database improvement and Ajax asynchronous processing [mui+flask+mongodb+hbuilderx]

单向环形链表实现约瑟夫环
![Will the next star of PPT for workplace speech be you [perfect summary] at the moment](/img/11/ac67db2641f42ef3d09417b790feb8.png)
Will the next star of PPT for workplace speech be you [perfect summary] at the moment

Tensorrt, onnx to tensorrt in mmclas

Bitmap, bloom filter and hash sharding

章鱼网络进展月报 | 2022.5.1-5.31
随机推荐
leetcode 47. Permutations II full permutations II (medium)
创新实训(十一)开发过程中的一些bug汇总
Unittest framework
1004: character triangle
[embedded] serial communication and its case
创新实训(十)高级界面美化
D1 哪吒开发板 了解基本的启动加载流程
jsp跳转问题,不能显示数据库数据,并且不能跳转
Pre research of image scanning tool
移动应用出海的“新大陆”
The goods are full. You must take this knowledge
Application of list and Dict
Automatic Generation of Visual-Textual Presentation Layout
Informatics Olympiad all in one 1000: introductory test questions
Openstack network
import torch_geometric 加载一些常见数据集
成功定级腾讯T3-2,万字解析
2068: [example 2.6] chicken and rabbit in the same cage
What if the MySQL installation on the apple computer is completed and cannot be found
LeetCode滑动窗口刷题总结