U-Boot

How to boot Linux kernel from u-boot?

百般思念 提交于 2019-11-30 23:06:45
My Linux kernel image uImage is in my U-disk. And I want to boot it from U-Boot. Also the device tree file am335x-evm.dtb is in my U-disk. What I did is below: U-Boot# usb start (Re)start USB... USB0: scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found U-Boot# fatls usb 0:1 3821960 uimage kit3/ 4065280 modules.tar my_modules/ extra/ system volume information/ 375 uenv.txt 40474 am335x-evm.dtb 4 file(s), 4 dir(s) U-Boot# fatload usb 0:1 0xC0700000 uImage reading uImage 3821960 bytes read in 2375 ms (1.5 MiB/s) U-Boot# fatload usb 0:1

IMX6Q学习笔记——开发板的Linux系统更新和烧录

不羁的心 提交于 2019-11-30 13:00:42
IMX6Q学习笔记——开发板的Linux系统更新和烧录 记录自己在电鱼电子开发SAIL-IMX6Q全能板后,并且对系统和模块进行简单测试的过程之后对开发板的Linux系统进行更新和烧录的记录过程,算是进行一个分享和记录,同时也方便自己日后查阅。 首先准备好需要的硬件和软件。PC机(需要至少一路232串口和一路USB2.0 HOST)、串口线、USB转串口线、电源适配器、USB延长线。软件需要准备超级终端、mfgtools.rar、u-boot1.imx,u-boot2.imx,zlmage,sail-imxq.dtb,rootfs.tar.bz2。 使用PC机USB OTG连接SAIL-IMX6Q/DL的OTG接口。将12V直流电源连接到SAILIMX6Q/DL主板的电源接口。 设置USB烧写模式,码开关SW4拨到 1 0 。 从光盘\Linux\烧录映像目录下拷贝sail-imx6q.dtb到mfgtools\Profiles\Linux\OS Firmware\files\sail-imx6q文件夹中 从光盘\Linux\烧录映像目录下拷贝zImage到mfgtools\Profiles\Linux\OS Firmware\files\sail-imx6q文件夹中 从光盘\Linux\烧录映像目录下拷贝u-boot1.imx或u-boot2.imx到mfgtools

iTOP-4412开发板-Android-擦出用户配置信息

ぐ巨炮叔叔 提交于 2019-11-30 11:56:49
基于迅为iTOP-4412开发板 一.emmc 格式化语句含义 fdisk -c 0 分区命令的参数是“1”,代表是 TF 卡,参数是“0”,代表是 EMMC。 fatformat mmc 0:1 格式化 fat 文件系统,也就是默认最大的用户存储空间。 ext3format mmc 0:2 格式化 Android 镜像文件 ext3format mmc 0:3 格式化 Date 和 Cache 分区。 ext3format mmc 0:4 格式化临时文件保存区域。 二.清除配置信息 如果想清除配置信息的话我们只需要在开发板进入 uboot 模式,输入 ext3format mmc 0:3 和 ext3format mmc 0:4 这俩条命令,并在 cmd 工具里面输入 fastboot -w,fastboot reboot 俩条命令即可清除成功。 来源: https://my.oschina.net/u/3005926/blog/3110581

U-Boot hangs while loading kernel?

给你一囗甜甜゛ 提交于 2019-11-30 10:01:50
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 Bytes = 1.3 MB Load Address: a0008000 Entry Point: a0008000 Verifying Checksum ... OK Loading Kernel Image

How to add customised ATAG variable in U-Boot and Linux kernel?

99封情书 提交于 2019-11-30 00:48:15
I want to add customized atag variable in U-Boot and Linux kernel. How can i achieve this? Is there any procedure to add an ATAG variable in U-Boot and Linux ? Follow this procedure , To achieve this goal, there're 2 parts need to be modified. One is the U-Boot, and the other one is the Linux kernel. 1. U-Boot changes required : A. Make sure the CONFIG_CMDLINE_TAG/CONFIG_SETUP_MEMORY_TAGS/CONFIG_INITRD_TAG are defined in you project definition header file ( u-boot/include/configs/am335x_evm.h ), and we can add our own tag here, eg. CONFIG_CUSTOM_TAG. B. Add the structure definition you wanna

U-Boot中关于TEXT_BASE,代码重定位,链接地址相关说明

元气小坏坏 提交于 2019-11-29 21:56:59
都知道U-BOOT分为两个阶段,第一阶段是(~/cpu/arm920t/start.S中)在FLASH上运行(一般情况下),完成对硬件的初始化,包括看门狗,中断缓存等,并且负责把代码搬移到SDRAM中(在搬移的时候检查自身代码是否在SDRAM中),然后完成C程序运行所需要环境的建立,包括堆栈的初始化等,最后执行一句跳转指令: ldr pc, _start_armboot _start_armboot: .word start_armboot, 进入到/lib_arm/board.c中的函数void start_armboot (void),从此就进入了第二阶段。这是在很多资料上都有讲述的,所以勿需多言了。 现在对于第一阶段有几个问题,以前我一直是没有搞明白的,既然在FLASH中的代码是把自己拷贝到SDRAM中,那么在S3C2410的内存地址空间,就有两份的启动代码,第一份就是在FLASH中,第二份就是在SDRAM中。根据链接脚本文件(~/board/smdk2410/u-boot.lds) OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") /*OUTPUT_FORMAT("elf32-arm", "elf32-arm", "elf32-arm")*/ OUTPUT_ARCH(arm)

raspberry 3B+ 编译u-boot

孤人 提交于 2019-11-29 18:32:08
参考博客 https://blog.csdn.net/maowendi/article/details/85611812 https://blog.csdn.net/hengwei0412/article/details/81173482 PC 环境: ubuntu 18.04 虚拟机 1. 下载最新u-boot 源码 cd /tmp/ wget http://ftp.denx.de/pub/u-boot/u-boot-2019.07-rc4.tar.bz2 tar -xjvf u-boot-2019.07-rc4.tar.bz2 2. 安装交叉编译工具链 # ubuntu 18.04下的安装 sudo apt-get install gcc-aarch64-linux-gnu #查看版本 aarch64-linux-gnu-gcc --version 3. 运行raspberry的编译配置 #导出环境变量 export ARCH=arm export CROSS_COMPILE=aarch64-linux-gnu- 4. 编译 #安装解析配置文件需要的工具 sudo apt-get install bison sudo apt-get install flex # 生成.config文件 cd u-boot-2019.07-rc4 make rpi_3_defconfig V=1

玩转智能路由器-WRTnode开发板[U-boot使用]

。_饼干妹妹 提交于 2019-11-29 16:35:21
WRTnode的U-boot使用方法 注:由于uboot里对gpio1和gpio2的特殊定义,因此我们在使用WRTnode核心板时不要碰触这两个针脚。 点击下载 uboot.bin 特点:支持网页刷新固件及uboot;支持U盘启动;波特率是115200。 工具:WRTnode,一根电源线;一根连接WRTnode的网线,一根短接线(如杜邦线)(刷新固件或uboot时用到);U盘(从U盘启动内核时用到); 注:如果是U盘启动我们的电源线要用三头usb线,这样可以提供一个接U盘的口。 操作过程: 从flash启动kernel 在没有插存有内核镜像的U盘并且没有将gpio1或gpio2接地的情况下,给WRTnode上电,WRTnode会选择从flash启动内核。 从U盘启动kernel WRTnode U-Boot U盘启动的优先级大于从flash启动,WRTnode U-Boot检测是否有U盘(或是SD卡),再检测U盘是否有uimage,如果有则从U盘启动,如果没有则从flash启动。 启动过程流程图 WRTnode U-Boot支持网页刷新固件及uboot 在WRTnode上电之前,先用网线连接好WRTnode的LAN口与PC网口,用一根短接线将gpio1或者是gpio2接地(参照[ 针脚定义 ])。 打开网络连接,手动设置一个192.168.1.x网段的ip地址。给WRTnode上电

How to boot bare board binary from U-Boot?

佐手、 提交于 2019-11-29 16:32:43
How can we boot independent bare board binary(not standalone binary which runs using U-Boot environment and not linux kernel) from U-Boot. My requirement is to reinitialize the board and drivers using my binary... I can replace the U-Boot in the boot medium(here NOR Flash) with my binary but my requirement is to not removing the U-boot from NOR flash and I should load my binary from LAN network using "tftp" command. Thanks and Regards, Veerendranath How to boot bare board binary from U-Boot? Use U-Boot's go command to execute any kind of standalone program. How can we boot independent bare

Win10 环境下 SD 卡烧录 U-boot 时出现 can not write image

拟墨画扇 提交于 2019-11-29 14:46:21
尝试了几种解决办法,换电脑,换读卡器都不行,最后放弃使用这个软件进行烧录。改用在 Linux 下使用命令行进行烧录。 解决方法: 1:我是在电脑中装的虚拟机,所以不能使用笔记本电脑自带的 SD 卡读卡器,因为虚拟机不识别这种借口,USB 口比较好识别,把 SD 卡插入读卡器。 2:打开命令行,切换到管理员模式 3:将 uboot_sd_fusing 文件夹赋值到 Windows 和 Linux 虚拟机的共用文件夹下,并进入此文件夹目录 文件夹下载链接: 链接: https://pan.baidu.com/s/1fEvTcv1rI-iF7zyhDb2JZg 提取码:m96t 4:执行 ./nand_fusing.sh /dev/sdb 命令进行烧录 来源: 51CTO 作者: YPB39155 链接: https://blog.51cto.com/ypb39155/2323495