当前位置:网站首页>Embedded -arm (bare board development) -1
Embedded -arm (bare board development) -1
2022-07-05 17:04:00 【Orange peel does not stop school】
One 、 Introduction to development board hardware
cpu, s5p6818
8 Nuclear processor 1.4GHz
Memory ,DDRAM 1GB EMMC,8GB
Two 、 Erase your own uboot Program
mmc erase 0 0x1000
( At this time, it is basically what we call brick making , We need to infuse his soul )
3、 ... and 、 adopt TF Card boot development board
1、 Use IROM_Fusing_ToolV2.0 take ubootpak.bin Burn in TF In the card
2.、 adopt TF Card boot development board
( Every time you start up, you should pass s5p6818 take TF In the card ubootpak.bin Send to memory , Then you can't leave TF Stuck. , We need to TF Put the contents of the card into the self-contained EMMC in , After that s5p6818 Will be EMMC Medium ubootpak.bin Send to memory , however TF The contents of the card cannot be directly sent EMMC Inside , So the next step is to use the network )
Four 、 adopt tftp The agreement will pc On board ubootpak.bin Download to the memory of the development board
tftp , Simplified version of ftp agreement
1) install tftp Of server Program
Networking : sudo apt-get install tftpd-hpa
2) To configure tftp server
sudo vi /etc/default/tftpd-hpa
Check it out. #tftp server The home directory
TFTP_DIRECTORY="/var/lib/tftpboot"
3) If the configuration file is modified
To make the new configuration effective restart tftp server
sudo /etc/init.d/tftpd-hpa restart perhaps sudo service tftpd-hpa restart
4) Prepare necessary documents
sudo chmod 777 tftpboot/ -R Change permissions , Otherwise, you may not be able to copy files into it
Copy operation :cp /mnt/hgfs/xxxxxx/ubootpak.bin var/lib/tftpboot/
“xxxxxx” It's in your virtual machine Ubuntu The shared folder path between the system and your local computer
How to set up a shared folder : Operate as shown in the figure


5、 ... and 、 Ensure that the development board can ping Through the server
Pure system mode :
1) Make sure the development board and ubuntu The pure system is in the same network segment
vmware+ ubuntu Pattern :
1) Make sure the development board and ubuntu In the same network segment
ubuntu:192.168.1.8
Development board :192.168.1.6
( Set your own in the serial port software ip, For harmony ubuntu phase ping Tong )
setenv ipaddr 192.168.1.6
setenv serverip 192.168.1.8
saveenv
2) Set to bridge mode
3) Set the network card for bridging
verification : Execute the following command
ping 192.168.1.8
If appear “host 192.168.1.8 is alive" It means that it has been successful ,
Due to system problems , The first time is usually unsuccessful , Do it again , There has been no problem .
6、 ... and 、 The... In the memory of the development board ubootpak.bin Burn writing emmc
Execute in serial port software :
tftp 0x48000000 ubootpak.bin
0x48000000 The corresponding memory address ( Refers to the physical address )
Be careful : If ping Through the server , also /tftpboot There is ubootpak.bin File download process has been T T Suggest , take tftp server restart sudo /etc/init.d/tftpd-hpa restart
update_mmc 2 2ndboot 0x48000000 0x200 53bb0
The meaning of each parameter :
2, The second device that does not lose power
2ndboot,emmc Partition name of
48000000, Source data address
0x200, towards 2ndboot Number of bytes offset when the partition is written
53bb0, Number of bytes to write ( Download before the serial port software observes you uboot You can get )
7、 ... and 、 Run a program to verify
Put one in your shared folder led.bin file , copy to /tftpboot Next :
cp /mnt/hgfs/xxxxx/led.bin /tftpboot/
Execute... On the development board
tftp 48000000 led.bin
go 48000000
Observe LED Is it flashing
The next article will teach you how to write such a program
边栏推荐
- Binary tree related OJ problems
- Benji Banas membership pass holders' second quarter reward activities update list
- American chips are no longer proud, and Chinese chips have successfully won the first place in emerging fields
- 采用药丸屏的iPhone14或引发中国消费者的热烈抢购
- ECU introduction
- [61dctf]fm
- 【 brosser le titre 】 chemise culturelle de l'usine d'oies
- 为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
- Do sqlserver have any requirements for database performance when doing CDC
- Browser rendering principle and rearrangement and redrawing
猜你喜欢

Machine learning compilation lesson 2: tensor program abstraction

Binary tree related OJ problems

WSL2.0安装

养不起真猫,就用代码吸猫 -Unity 粒子实现画猫咪

Copy mode DMA

Detailed explanation of use scenarios and functions of polar coordinate sector diagram

高数 | 旋转体体积计算方法汇总、二重积分计算旋转体体积

Jarvis OJ webshell analysis

Browser rendering principle and rearrangement and redrawing

【Web攻防】WAF检测技术图谱
随机推荐
启牛商学院股票开户安全吗?靠谱吗?
美国芯片傲不起来了,中国芯片成功在新兴领域夺得第一名
Google Earth engine (GEE) -- a brief introduction to kernel kernel functions and gray level co-occurrence matrix
【剑指 Offer】63. 股票的最大利润
Global Data Center released DC brain system, enabling intelligent operation and management through science and technology
【刷题篇】有效的数独
Etcd build a highly available etcd cluster
If you can't afford a real cat, you can use code to suck cats -unity particles to draw cats
麻烦问下,DMS中使用Redis语法是以云数据库Redis社区版的命令为参考的嘛
【剑指 Offer】66. 构建乘积数组
easyNmon使用汇总
【微信小程序】一文读懂小程序的生命周期和路由跳转
Little knowledge about C language (array and string)
composer安装报错:No composer.lock file present.
【性能测试】jmeter+Grafana+influxdb部署实战
【729. 我的日程安排錶 I】
Iphone14 with pill screen may trigger a rush for Chinese consumers
What is ROM
二叉树相关OJ题
[Jianzhi offer] 63 Maximum profit of stock