![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
u-boot
小菜刀_
这个作者很懒,什么都没留下…
展开
-
u-boot-2019.10 启动流程分析
平台:ls2k coreu-boot 中的README 有整个启动流程的说明arch/mips/cpu/u-boot.lds 中指定了入口为 _startarch/mips/cpu/start.S ENTRY(_start) 开始 /* U-Boot entry point */ b reset mtc0 zero, CP0_COUNT # clear cp0 count for most accurate boot timing#if defined(CONFIG_MIPS原创 2021-02-02 20:29:21 · 504 阅读 · 0 评论 -
交叉编译龙芯平台的uboot 和 kernel
u-boot 2013 export ARCH=mips export CROSS_COMPILE=mips64el-linux- 如果想指定编译目录: export BUILD_DIR=/tmp/build 或 make -O=/tmp/build make ls2k_pai_config makeu-boot 2019 (gcc-9.1 mips64el) export ARCH=mips export CROSS_COMPILE=mips64el-linux- c原创 2020-12-09 10:36:30 · 911 阅读 · 0 评论 -
u-boot-2019 u-boot 命令分析
代码分析看u-boot源码我们知道,在u-boot中的每一个命令都是通过U_BOOT_CMD或U_BOOT_CMD_COMPLETE来定义的。下面来分析分析他们的具体实现逻辑。U_BOOT_CMD 是一个宏定义,代码在 include/command.h中。#define U_BOOT_CMD(_name, _maxargs, _rep, _cmd, _usage, _help) \ U_BOOT_CMD_COMPLETE(_name, _maxargs, _rep, _cmd, _usage,原创 2020-12-03 16:42:12 · 283 阅读 · 0 评论 -
u-boot-2019 引导菜单分析
configs/ls2k_core.h 中定义了默认的菜单项及其他默认变量#define CONFIG_EXTRA_ENV_SETTINGS \ CONSOLE_STDOUT_SETTINGS \ "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ "rd_start=0x86000000\0" \ "rd_siz原创 2020-12-03 16:40:43 · 544 阅读 · 0 评论 -
u-boot-2019 修改内核引导参数
$ make menuconfig[*] Enable boot arguments (console=ttyS0,115200 root=ubi0:rootfs ubi.mtd=root,2048 mtdparts=" CONFIG_MTDPARTS_DEFAULT " noinitrd init=/linuxrc rootfstype=ubifs rw video=ls1xfb:ls1xfb:1920x1080-16@60)原创 2020-11-27 09:32:00 · 230 阅读 · 0 评论 -
u-boot-2019 修改nand分区大小
$ make menuconfig //修改Default MTD partition scheme 里面的内容Command line interface > Filesystem commands and support > [*] MTD partition support原创 2020-11-27 09:26:27 · 747 阅读 · 0 评论