当前位置:网站首页>全志A13折腾备忘
全志A13折腾备忘
2022-06-27 12:03:00 【五块钱的方便面】
启动过程:
uboot-with-spl --> kernel --> os
其实主要是uboot-with-spl这一块,根据OLinuXino的说法,uboot分为两类,sunxi uboot;mainline uboot,分别是全志和uboot官网的2个版本。在文档里只说了支持的内存不同,sunxi uboot 适用于现代内存,主线支持三星和现代两种。
从OLinuXino的文档来看,直接编译Uboot就出一个uboot-with-spl可以了,但有的文档说是编译出2个文件来(spl uboot).
烧录到tf卡方法:
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8应该是A13 SOC片上的ROM启动过程会尝试读取tf卡的最开始部分扇区来获取启动设备,当然如果把uboot当成用户自定义程序也是可以的,SOC片上48k RAM应该也能干点事,只不过有DDR3,能跑Linux更好。

Uboot 通过下面命令配置一个boot.scr文件,用于配置加载内核和内核参数(script.bin)文件。
Now you have to create a new boot.cmd file with the following contain
setenv bootm_boot_mode sec
setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10
load mmc 0:1 0x43000000 script.bin || load mmc 0:1 0x43000000 boot/script.bin
load mmc 0:1 0x42000000 uImage || load mmc 0:1 0x42000000 boot/uImage
bootm 0x42000000
convert boot.cmd in boot.scr with the next command
# mkimage -C none -A arm -T script -d boot.cmd boot.scr
The result should be a new boot.scr file that you have to copy to the first SD card partitition(where uImage and script.bin file are located)实际内核只需要存在tf卡的第一个分区(FAT32)就可以了。有了内核,后续的就好办了。
先准备uboot部分吧,等周末看板子能打出来不,DDR3走线感觉未必能正常初始化得了,虽然uboot里面可以配置DRAM频率408M,但很难说。如果初始化DDR3过了,那以后做板子就好玩多了。
边栏推荐
- Time management understood after being urged to work at home
- Getting started with go web programming: validators
- ACL 2022 | 中科院提出TAMT:TAMT:通过下游任务无关掩码训练搜索可迁移的BERT子网络
- uni-app 使用escook/request-miniprogram插件发请求说明
- Hands on API development
- Interviewer: with the for loop, why do you need foreach?
- 2022ciscn central China Web
- 面试突击60:什么情况会导致 MySQL 索引失效?
- 聊聊 Go 语言与云原生技术
- Detailed configuration of log4j
猜你喜欢
随机推荐
消息队列的使用
号称史上最难618,淘宝数据盘点你做对了吗?
What's the matter with Amazon's evaluation dropping and failing to stay? How to deal with it?
The DBSCAN function of FPC package in R language performs density clustering analysis on data, and the plot function visualizes the clustering graph
Use of message queues
Uniapp drop-down layer selection box effect demo (sorting)
application. Configuration information of properties
log4j的详情配置
log4j.properties的配置详解
mysql学习1:安装mysql
Hands on API development
uni-app开发微信小程序动态渲染页面,动态改变页面组件模块顺序
In 2021, the global carbon graphite brush revenue is about US $2366million, and it is expected to reach US $2701.8 million in 2028
picocli-入门
私藏干货分享:关于企业架构中如何进行平台化
Research Report on the overall scale, major manufacturers, major regions, products and application segments of hydraulic torque in the global market in 2022
Research Report on the overall scale, major producers, major regions, products and application segments of swine vaccine in the global market in 2022
C # WPF realizes undo redo function
Thymeleaf的配置
MySQL learning 1: installing MySQL








