U-Boot

Detailed Operations For Standalone On Linux BSP of I.MX Processors

独自空忆成欢 提交于 2020-01-21 21:30:32
由 Wigros Sun 于 2019-4-24 创建的文档•最后由 Wigros Sun 于 2019-4-25 修改 版本 2 Host Environment: ubuntu 16.04 LTS Linux BSP For i.MX : version 4.9.88 The document has 5 main contents: 1. Compiling core-image-base in Yocto BSP --Copy u-boot source code to a new directory --Copy linux kernel source code to a new directory 2. Exporting 4.9.88 toolchain from Freescale Yocto BSP (1) Using MACHINE=imx7dsabresd to export the toolchain (2) Using MACHINE= imx6qsabresd to export the toolchain. Actually above 2 are the same toolchain after exporting. Here , only show any one of boards(not ARM64) can be used for

u-boot的命令实现(添加自定义命令)

丶灬走出姿态 提交于 2020-01-18 01:01:06
Uboot如何实现控制台命令?我们从几个方面进行分析 使用 常用的命令有help、bootm等等。有的命令有参数,有的命令没参数,有的参数可以有参数也可以没参数。 例如help命令: help //列出当前uboot所有支持的命令 help 命令 //查看指定命令的帮助 我们输入的命令help被接收后,uboot会寻找名为help的命令,并执行对应的函数,那么命令是如何被定义的?又是如何执行的?我们需要通过源码进行分析。 源码分析 我们以help命令为例进行分析。 1、命令的定义 先从文件结构上看,所有的命令源码都在uboot的common文件夹下,文件命名形式为cmd_*.c,*代表命令名字。 从代码上看,每个命令由一个cmd_tbl_t类型结构体描述。 struct cmd_tbl_s { char *name; /* 命令名 */ int maxargs; /* 命令最多可带参数 */ int repeatable; /* 命令是否可重复执行 */ /* 实现命令函数 */ int (*cmd)(struct cmd_tbl_s *, int, int, char *[]); char *usage; /* Usage message (short) */ #ifdef CFG_LONGHELP char *help; /* Help message (long) */

How to read/write special keys via U-boot prompt?

岁酱吖の 提交于 2020-01-15 11:12:29
问题 How to write mac address and other special keys via U-boot prompt? Is there a general purpose command for this? I know this can not be handled when the system is running as it deals with some security features. 回答1: It is somewhat depended on your hardware platform. My board uses keyman and keyunify commands. There can be found in U-boot help. Also the usage of these commands. For example: keyman argv: init seedNum <dtbAddr> read keyname addr <hex/str> write keyname size addr write keyname

U-Boot hangs while loading kernel?

老子叫甜甜 提交于 2020-01-10 14:59:10
问题 I am working on Freescale board imx50evk. I have built the uboot.bin and uImage using LTIB (linux target image builder). At the U-Boot prompt I enter the bootm addr command, and then it hangs after showing the message "Loading Kernel..." > MX50_RDP U-Boot > boot MMC read: dev # 0, block # 2048, count 6290 partition # 0 ... 6290 blocks read: OK ## Booting kernel from Legacy Image at 70800000 ... Image Name: Linux-2.6.35.8 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1323688

在线高清版4412开发板视频_免费_先学习下不定期更新

萝らか妹 提交于 2020-01-09 12:08:14
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 如果能点个赞就更好啦 iTOP4412开发板介绍https://www.bilibili.com/video/av74453392 iTOP4412开发板系统编程前言https://www.bilibili.com/video/av75754003 iTOP4412-fastboot烧写Androidhttps://www.bilibili.com/video/av76115803 iTOP4412-安装虚拟机软件https://www.bilibili.com/video/av75881580 iTOP4412-创建和配置虚拟机https://www.bilibili.com/video/av75881653 iTOP4412-获取并安装ubuntu操作系统https://www.bilibili.com/video/av75881774 iTOP-4412驱动教程一https://www.bilibili.com/video/av74131033 iTOP-4412驱动教程二https://www.bilibili.com/video/av74131033?p=2 iTOP-4412驱动教程三https://www.bilibili.com/video/av74131033?p=3 iTOP

skyeye模拟u-boot在s3c2410上运行

…衆ロ難τιáo~ 提交于 2020-01-06 00:51:24
前面成功的移植了u-boot(其实只能是说是编译成功,还谈不上是真正的移植,(*^__ ^*) ),下面开始在skyeye中来运行u-boot 在编译u-boot时,所作的修改如下 #ifdef CONFIG_AMD_LV400 #define PHYS_FLASH_SIZE 0x00080000 /* 512KB */ #define CFG_MAX_FLASH_SECT (11) /* max number of sectors on one chip */ #define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x070000) /* addr of environment */ #endif 改为: #ifdef CONFIG_AMD_LV400 #define PHYS_FLASH_SIZE 0x01000000 /* 16MB */ #define CFG_MAX_FLASH_SECT (128) /* max number of sectors on one chip */ #define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x020000) /* addr of environment */ #endif 根据上面的做作的修改,同时在参考http://blog.chinaunix.net/u1/56374

Build U-Boot SPL for custom board

谁都会走 提交于 2020-01-05 05:01:08
问题 I have built a custom board with a iMX6 Processor. Unfortunately i have not stripped out the Bootloader Config pins. They are still unconnected BGA-Balls. I do have access to UART1-3, JTAG and SD-Card interface and also to the BOOT0 and BOOT1 pins. No i would like to start a U-Boot. Therefore i have ported or added my own board to the configs. I can build U-Boot successfull (not tested on the board yet). Then i thought, i could download u-boot into the internal RAM of the i.MX6. unfortunately

In u-boot, kernel_entry points to which function?

主宰稳场 提交于 2020-01-02 08:56:49
问题 This is the function from u-boot: static void boot_jump_linux(bootm_headers_t *images, int flag) { #ifdef CONFIG_ARM64 void (*kernel_entry)(void *fdt_addr); int fake = (flag & BOOTM_STATE_OS_FAKE_GO); kernel_entry = (void (*)(void *fdt_addr))images->ep; debug("## Transferring control to Linux (at address %lx)...\n", (ulong) kernel_entry); bootstage_mark(BOOTSTAGE_ID_RUN_OS); announce_and_cleanup(fake); if (!fake) kernel_entry(images->ft_addr); #else unsigned long machid = gd->bd->bi_arch

Reading multiple bytes using I2C in U-Boot

ぃ、小莉子 提交于 2020-01-02 06:55:11
问题 I am having a problem with the I2C driver for a Freescale p1022tw board. There is a command on U-Boot's console to read from an I2C device: i2c md chip address[.0, .1, .2] [# of objects] When I read 4 bytes from a device with id 0x60, at address 0x0, I get: tw=>i2c md 60 0 4 0000: 45 45 45 45 EEEE These values that it returned are wrong. I can get the right values if I read one byte at the time: tw=>i2c md 60 0 1 0000: 45 E tw=>i2c md 60 1 1 0001: 45 E tw=>i2c md 60 2 1 0002: 46 F tw=>i2c md

2020年冲击嵌入式不选单核,4412开发平台高手速成最新技术学习

冷暖自知 提交于 2019-12-27 15:08:33
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 入门只需要468元 部分视频观看地址: iTOP4412开发板介绍 https://www.bilibili.com/video/av74453392 iTOP4412开发板系统编程前言 https://www.bilibili.com/video/av75754003 iTOP4412-fastboot烧写Android https://www.bilibili.com/video/av76115803 iTOP4412-安装虚拟机软件 https://www.bilibili.com/video/av75881580 iTOP4412-创建和配置虚拟机 https://www.bilibili.com/video/av75881653 iTOP4412-获取并安装ubuntu操作系统 https://www.bilibili.com/video/av75881774 iTOP-4412驱动教程一 https://www.bilibili.com/video/av74131033 iTOP-4412驱动教程二 https://www.bilibili.com/video/av74131033?p=2 iTOP-4412驱动教程三 https://www.bilibili.com/video