![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
uboot
文章平均质量分 96
Hacker_Albert
If I am not for myself, who will be for me?
If I am only for myself, what am I?
If not now, when?
展开
-
Uboot pmic调试
记录uboot pmic 调试命令调试方法: pmic 设备挂载在i2c bus上,从设备地址为0x68。1.i2c 调试命令:i2c bus //查看系统有几个busi2c dev 4 //挂载i2c bus4i2c probe //查看当前bus上有多少slave device2.pmic 调试命令:pmic list //list pmic devicespmic...原创 2019-11-30 10:45:16 · 1252 阅读 · 0 评论 -
SPL ARMv8源代码分析
分析SPL armv8 源代码(以rk3399分析为例)1.SPL 链接脚本arch/arm/cpu/armv8/u-boot-spl.lds: 14 MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE, 15 LENGTH = IMAGE_MAX_SIZE } 16 MEMORY { .sdram : ORIGIN = CONFIG_...原创 2019-08-09 16:31:58 · 1057 阅读 · 0 评论 -
uboot lcd driver
了解uboot LCD driver.1.代码流程common/board_r.c:stdio_add_devices ->drv_video_init ->cfg_video_init ->video_hw_init (驱动工程师实现) ->video_logo() (显示logo)2.配置CONFIG_VIDEO=y...原创 2019-08-14 11:39:30 · 502 阅读 · 0 评论 -
u-boot pre-reloc
了解pre-reloc attribute1.Introduction The driver model provides two ways to pass the device information, platform data and device tree. In the platform data way, the pre-reloc DM scan checks if e...原创 2019-08-12 11:04:26 · 1086 阅读 · 0 评论 -
Uboot Bootstage
了解Uboot Bootstage1.Kconfig IntroductionCONFIG_BOOTSTAGEcommon/Kconfig:config BOOTSTAGE bool "Boot timing and reporting" help Enable recording of boot time while booting. To use i...原创 2019-09-02 15:56:50 · 1272 阅读 · 0 评论 -
uboot logging feature
了解uboot log1.Logging information1.1.Logging levels There are a number logging levels available, in increasing order of verbosity:LOGL_EMERG - Printed before U-Boot haltsLOGL_ALERT - Indic...原创 2019-09-02 17:51:04 · 419 阅读 · 0 评论 -
Uboot environment variable(一)
了解uboot 环境变量1.What Is This U-Boot Environment? A simple answer to that question would be “a collection of name=value pairs”.“name” refers to the name of the environment variable to which you wa...原创 2019-09-03 17:59:33 · 950 阅读 · 0 评论 -
Uboot environment variable(二)
分析代码,了解Uboot environment variable.1.重要结构体 env可以保存在不同的介质中,如下所示: 179 enum env_location { 180 ENVL_UNKNOWN, 181 ENVL_EEPROM, 182 ENVL_EXT4, 183 ENVL_FAT, 184 ENVL_FLA...原创 2019-09-03 18:48:32 · 733 阅读 · 0 评论 -
uboot mailbox
了解uboot mailbox1.Inter-Processor CommunicationThis SoC is a heterogeneous multi-core device, which requires software to efficiently manage and communicate between the cores. The following are the ...原创 2019-09-10 09:30:00 · 349 阅读 · 0 评论 -
SPL ARMv7源代码分析
了解u-boot spl代码流程.1.u-boot spl 来源 现在很多处理器都内置一个BOOT ROM,执行部分初始化,并可从各种外设和存储器中加载程序并执行,BOOT ROM中固化的程序被称为一级程序加载器,被它加载的程序就称为二级程序加载器(secondary program loader,即SPL)。其实u-boot本身就可以作为二级程序加载器,但不幸的是一般BOOT ROM之...原创 2019-06-06 18:56:58 · 637 阅读 · 0 评论 -
Uboot compile
了解uboot spl 编译流程一.Build U-Boot SPL The build process is integrated in the normal U-Boot build process, and a can be configured through CONFIG_SPL_BUILD option. spl的编译是编译uboot的一部分,和uboot.bin走的是两...原创 2019-06-04 18:35:58 · 838 阅读 · 0 评论 -
Uboot PWM Framework
了解uboot pwm framework1.Uboot PWM framework2.PWM backlight flow2.1. pwm duty and period setting 调试pwm主要两个参数,一个是period,一个是duty,函数set_pwm用于设置这两个参数,该函数从dtsi读取相关值,然后调用pwm_set_config进行设置。period_n...原创 2019-07-16 19:47:55 · 849 阅读 · 0 评论 -
Uboot sandbox
学习sandbox debug1.Sandbox The ‘sandbox’ architecture is designed to allow U-Boot to run under Linux on almost any hardware. To achieve this it builds U-Boot (so far as possible) as a normal C appl...原创 2019-05-31 16:26:13 · 2065 阅读 · 0 评论 -
Uboot Driver Model
了解Driver Model Project,摘录 UDM-design.txt1.U-Boot Driver Model Uboot引入驱动模型(driver model),这种驱动模型为驱动的定义和访问接口提供了统一的方法,提高了驱动之间的兼容性以及访问的标准型,Uboot驱动模型和linux kernel的设备驱动模型相类似,但是又有所区别。 建议查考文件./doc/drive...原创 2019-05-29 19:18:16 · 1829 阅读 · 0 评论 -
理解itop4412 u-boot.lds
了解u-boot.lds1.itop4412 u-boo.lds 如下所示:OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") #指定输出可执行文件是elf格式,32位ARM指令,小端OUTPUT_ARCH(arm) #指定输出可执行文件的平台为ARMENTRY(_start) ...原创 2019-06-07 19:35:16 · 208 阅读 · 0 评论 -
iTop4412 Booting Sequence
-了解Booting Sequence1.Introduction Exynos 4412 SCP has 64 KB ROM (iROM) and 256 KB SRAM (iRAM) as internal memory. The boot loader is comprises the first and the second boot loaders. The character...原创 2019-06-08 05:37:27 · 279 阅读 · 0 评论 -
RS232/UART
了解UART1.serial communication Serial communication is a communication method that uses one or two transmission lines to send and receive data, and that data is continuously sent and received one b...原创 2019-07-07 15:57:24 · 947 阅读 · 0 评论 -
qemu+eclipse+uboot调试
搭接环境调试uboot1.eclipse debug环境设置:注意:gdb debugger 使用的是全路径,否则会报错:Then an exception window pops up:Error with command: arm-linux-gnueabihf-gdb –versionCannot run program “arm-linux-gnueabihf-gdb”...原创 2019-06-27 11:15:55 · 817 阅读 · 1 评论 -
uboot device tree宏定义
了解 uboot device tree 宏定义(README.fdt-control)1.CONFIG_OF_CONTROL To enable this device tree feature, add CONFIG_OF_CONTROL to your board config file.2.CONFIG_DEFAULT_DEVICE_TREE To set the file...原创 2019-07-13 17:51:21 · 1444 阅读 · 0 评论 -
uboot GPIO Framework
了解uboot DM_GPIO1.DM_GPIO 架构图1.1.框架说明gpio core 功能(在gpio uclass中实现):主要是为上层提供接口从dts中获取GPIO属性从gpio uclass的设备链表中获取到相应的udevice设备,并使用其操作集gpio uclass链接属于该uclass的所有gpio udevice设备为gpio udevic...原创 2019-06-29 17:57:10 · 1896 阅读 · 0 评论 -
Bootloader启动流程
学习Bootloader.1.Bootloader Microprocessors can execute only code that exists in memory (either ROM or RAM), while operating systems normally reside in large-capacity devices such as hard disks, CD...原创 2019-05-24 15:52:52 · 841 阅读 · 0 评论