# u-boot **Repository Path**: ebaina_CN/u-boot ## Basic Information - **Project Name**: u-boot - **Description**: HiEulerPi uboot源码仓库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2024-01-07 - **Last Updated**: 2024-01-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # u-boot #### 介绍 HiEulerPi uboot源码仓库 #### 软件架构 采用u-boot + env的结构,主要的SD卡升级、SD卡启动等功能均以脚本的形式存放于env中。本文中如有不明之处参考uEnv.txt中的脚本。 1. SD卡结构 默认的SD卡分区结构如图所示。boot分区包含SD升级的固件,rootfs分区为从SD卡启动时的根目录,且boot为第一分区,rootfs为第二分区。 ```txt +----------------------------------+ | SD Card | | | | +------------+ +--------------+ | | | Boot | | Rootfs | | | | (FAT32) | | (EXT4) | | | | | | | | | +------------+ +--------------+ | | | +----------------------------------+ ``` 若需要修改SD卡结构则修改环境变量中的脚本即可。 2. 启动逻辑 - 在uboot上电初始化时若检测到update按键被按下则会设置环境变量`update=yes` - uboot启动后自动执行bootcmd脚本 - 判断如果`update=yes`则执行`updatecmd`脚本 - 如果`boot_media=emmc`则从mmc启动 - 如果`boot_media=sd`则从sd卡启动 #### 软件特性 1. 支持SD卡升级 2. 使用EXT4格式的boot分区进行升级时支持4G以上的文件 3. 支持SD卡启动 4. 支持在Linux系统中修改uboot环境变量 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)