随笔分类 -  u-boot

1
摘要:许多linux设备可能没有外置串口,这是就需要一个网络终端来在uboot下操作设备,如升级镜像等。 uboot下的网络终端为netconsole,代码drivers/net/netconsole.c。 netconsole的使用方法如下: 1 在uboot的配置头文件中加入netconsole支持, 阅读全文
posted @ 2018-08-25 18:56 yuxi_o 阅读(2881) 评论(0) 推荐(0) 编辑
摘要:uboot下通过tftp工具传输文件,tftp与ftp是完全不同的工具或协议。 1) 下载并安装程序 sudo apt-get install tftp-hpa tftpd-hpa tftp-hpa是客户端程序,tftpd-hpa是服务器端程序。 2) 建立tftp服务器目录 建立一个tftp客户端 阅读全文
posted @ 2017-04-29 23:07 yuxi_o 阅读(5247) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.wowotech.net/u-boot/fit_image_overview.html 1. 前言 Linux kernel在ARM架构中引入设备树device tree(全称是flattened device tree,后续将会以FDT代称)的时候[1],其实怀揣了一个 阅读全文
posted @ 2017-01-04 23:08 yuxi_o 阅读(1855) 评论(0) 推荐(0) 编辑
摘要:In AM335x the ROM code serves as the bootstrap loader, sometimes referred to as the Initial Program Loader (IPL)or the Primary Program Loader (PPL). T 阅读全文
posted @ 2016-10-02 18:10 yuxi_o 阅读(283) 评论(0) 推荐(0) 编辑
摘要:Linux HOWTO: Porting Linux to U-Boot based systems: U-Boot cannot save you from doing all the necessary modifications toconfigure the Linux device dri 阅读全文
posted @ 2016-09-10 09:20 yuxi_o 阅读(338) 评论(0) 推荐(0) 编辑
摘要:Memory Management: U-Boot runs in system state and uses physical addresses, i.e. theMMU is not used either for address mapping nor for memory protecti 阅读全文
posted @ 2016-09-10 09:14 yuxi_o 阅读(337) 评论(0) 推荐(0) 编辑
摘要:硬件采用nandflash,nandflash为8位数据宽度,没有dataflash和norflash。Nandflash空间分配为 bootstrap + u-boot + env + linux 。|| bootstrap | | u-boot | env | | linux ||___... 阅读全文
posted @ 2015-09-30 14:17 yuxi_o 阅读(1622) 评论(0) 推荐(0) 编辑
摘要:gd_t定义在include/asm-arm/global_data.h33 /* Keep it *SMALL* and remember to set CFG_GBL_DATA_SIZE > sizeof(gd_t)34 */36 typedef struct global_data {37 b... 阅读全文
posted @ 2015-09-27 21:12 yuxi_o 阅读(1369) 评论(0) 推荐(0) 编辑
摘要:u-boot中DM9000驱动分析1. CSRs和PHY reg读写。 1 static u16 2 phy_read(int reg) 3 { 4 u16 val; 5 6 /* Fill the phyxcer register into REG_0C */ 7 DM9... 阅读全文
posted @ 2015-09-22 22:33 yuxi_o 阅读(398) 评论(0) 推荐(0) 编辑
摘要:1. 网口硬件方案:AT91SAM9G10 + DM9000CEP;DM9000CEP为MAC+PHY解决方案,与MCU链接通过8位或16位数据总线。内部SRAM为16Kbyte。2. DM9000CEP硬件接口(略)。3. DM9000CEP寄存器。DM9000CEP包含两类寄存器:控制状态寄存器... 阅读全文
posted @ 2015-09-22 22:03 yuxi_o 阅读(710) 评论(0) 推荐(0) 编辑
摘要:CMD配置位于config_cmd_default.h configs/at91/sam9g10ek.h头文件位于include/command.h41 struct cmd_tbl_s {42 char *name; /* Command Name */43 int maxargs; /* max... 阅读全文
posted @ 2015-09-21 00:19 yuxi_o 阅读(406) 评论(0) 推荐(0) 编辑
摘要:setup.h通过宏定义实现了bootargs传递参数到内核,值得以后编程学习。include/asm-arm/setup.h14 * NOTE:15 * This file contains two ways to pass information from the boot16 * loader... 阅读全文
posted @ 2015-09-21 00:18 yuxi_o 阅读(626) 评论(0) 推荐(0) 编辑
摘要:通过搜素比对字符串保存env。所有的env都保存在一起,每个环境变量字段都以“\0\0”结束,最后一个命令字段以“\0\0\0”结束。每次uboot启动时,先读出环境变量。当设置新数据时,遍历整个env,确认是否有重复的,有重复的删除掉,并把新数据设置到环境变量最后。只有当运行saveenv时才把数... 阅读全文
posted @ 2015-09-21 00:16 yuxi_o 阅读(1690) 评论(0) 推荐(0) 编辑
摘要:帧缓冲区fb在内存中,要实现fb同步显示需要设定DMA操作。设定LCD的DMA操作,要在开始操作LCD之前。common/lcd.c中定义lcd_init() -->driver/video/atmel_lcdfb.c定义lcd_ctrl_init().lcd_ctrl_init()定义了DMA与m... 阅读全文
posted @ 2015-09-21 00:12 yuxi_o 阅读(854) 评论(0) 推荐(0) 编辑
摘要:位图或logo和开机显示画面,是两个完全不同的东西。logo显示uboot相关信息,如版本号等。开机画面是用户下载到固定位置后uboot加载的。1.开机画面在uboot中使用splash screen可以实现u-boot启动后,在LCD上显示自定义图片。#define CONFIG_SPLASH_S... 阅读全文
posted @ 2015-09-21 00:11 yuxi_o 阅读(1014) 评论(0) 推荐(0) 编辑
摘要:start ->start_armboot ->main_loop实际应用中问题:为什么从nandflash读出的MAC(写到物理phy上)与上层网口地址不同(上层网口采用env的mac)?从nandflash读出mac并写入phy后,才初始化网络设备即eth_initialize(),其读取env... 阅读全文
posted @ 2015-09-21 00:10 yuxi_o 阅读(583) 评论(0) 推荐(0) 编辑
摘要:uboot的debug定义在include/common.h中#ifdef DEBUG#define debug(fmt, args...) printf(fmt, ##args)#define debugX(level, fmt, args...) if(DEBUG>=level) printf(... 阅读全文
posted @ 2015-09-05 17:37 yuxi_o 阅读(998) 评论(0) 推荐(0) 编辑
摘要:Env在u-boot中通常有两种存在方式,在永久性存储介质中(flash、NVRAM等),在SDRAM中。可配置不适用env的永久存储方式,但不常用。U-boot在启动时会将存储在永久性存储介质中的env重新定位到RAM中,这样可以快速访问,同时可以通过saveenv将RAM保存到永久性存储介质中。... 阅读全文
posted @ 2015-09-04 18:45 yuxi_o 阅读(1606) 评论(0) 推荐(0) 编辑
摘要:Uboot源码分析 源码以u-boot-1.3.4为基准,主芯片采用at91sam9260,主要介绍uboot执行流程。 uboot官网:http://www.denx.de/wiki/U-Boot/WebHome。 一.工具 1. 主要采用vi查看源码,用到最多命令为grep。 grep –r – 阅读全文
posted @ 2015-08-20 16:06 yuxi_o 阅读(1371) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/ce123_zhouwei/article/details/7339134 开发板运行U-Boot,在终端下使用Ping命令是能Ping通PC机,但PC机Ping不同U-Boot。 在开发行U-Boo下的Ethernet 驱动时,只能在Target上去Pin 阅读全文
posted @ 2015-08-18 11:51 yuxi_o 阅读(2104) 评论(0) 推荐(0) 编辑

1
点击右上角即可分享
微信分享提示