U-Boot

CH340G U-BOOT阶段乱码

匿名 (未验证) 提交于 2019-12-03 00:22:01
硬件:MT7628 系统:OpenWrt 15.05 串口:CH340G 在硬件重启后进入到U-BOOT阶段串口输出的全部都是乱码,但是进入到内核后串口输出有全部正常了。 在github上看见其他开发者也遇到同样的问题, https://github.com/pepe2k/u-boot_mod/issues/21 CH340这款芯片的波特率有一点点小小偏差,解决方法 方法1、修改u-boot源码 文章来源: CH340G U-BOOT阶段乱码

JZ2440 u-boot-2016.11、linux-4.17和busybox-1.28.4移植笔记

匿名 (未验证) 提交于 2019-12-02 21:59:42
2018年5月份开始在JZ2440上陆续移植了u-boot-2016.11、u-boot-spl-2016.11、 linux-4.17和busybox-1.28.4,其中linux-4.17和busybox-1.28.4是当时官方最新的 版本,以此作为学习linux两年来的总结。 遗憾的是,当时在移植过程中没有做每个阶段的笔记,只想尽快的完成。导致现 在都已经忘的七七八八了,几乎连编译烧录都不记得怎么操作了。移植完成后,由于 工作忙也一直没有把代码提交到github。刚好最近入手了一部新的笔记本,于是打算 把资料重新整理下。 所幸的是,git的提交日志里记录了详细的移植过程。可以通过参考提交记录了 解如何从零开始移植一个完整的Linux系统。 相对于JZ2440开发板自带的u-boot-1.1.6、linux-2.6.22.6、fs_qtopia,我自 己移植的u-boot-2016.11主要增加了独立的SPL引导u-boot,dts设备树的支持,增 加了spl和dtb的分区,我也尝试重新移植过u-boot-1.1.6,发现JZ2440开发板自带的 u-boot-1.1.6搞复杂了,修改了很多没必要的东西,看起来十分费解。如果有读者需 要的可以留言,我会提交到github。 对于linux-4.17主要是在JZ2440上增加了设备树的支持,基本外设驱动都通过设 备树来配置。

embedded linux ARM booting address

一笑奈何 提交于 2019-12-02 04:36:51
I follow some document to boot embedded Linux on ARM board (ex: Freescale Vybrid tower) via sdcard. in the document there are steps to build uImage and write u-boot into sdcard as below: sudo dd if=u-boot.imx of=/dev/sdX bs=512 seek=2 mkimage -A arm64 -O linux -T kernel -C none -a 0x81000000 -e 0x81000000 -n “Linux” -d Image uImage What I would like to know is from which datasheet/UM/RM or any document they get the number: bs=512 seek=2, -a 0x81000000 (Load address), -e 0x81000000 (Entry point) Please also explain what Load address/entry point address mean? sawdust What I would like to know is

U-boot在S3C2440上的移植详解(四)---支持DM9000EP网卡

依然范特西╮ 提交于 2019-12-01 23:36:10
在这一篇中,我们首先让开发板对CS8900或者DM9000X网卡的支持,然后再分析实现u-boot怎样来引导Linux内核启动。因为测试u-boot引导内核我们要用到网络下载功能。 7)u-boot对CS8900或者DM9000X网卡的支持。 u-boot-2009.08版本已经对CS8900和DM9000X网卡有比较完善的代码支持(代码在drivers/net/目录下),而且在S3C24XX系列中默认对CS8900网卡进行配置使用。只是在个别地方要根据开发板的具体网卡片选进行设置,就可以对S3C24XX系列中CS8900网卡的支持使用。代码如下: 现在修改对我们开发板上DM9000X网卡的支持。 首先,我们看看drivers/net/目录下有关DM9000的代码,发现dm9000x.h中对CONFIG_DRIVER_DM9000宏的依赖,dm9000x.c中对CONFIG_DM9000_BASE宏、DM9000_IO宏、DM9000_DATA等宏的依赖,所以我们修改代码如下: #gedit include/configs/my2440.h #define CONFIG_BOOTDELAY 3 /*#define CONFIG_BOOTARGS "root=ramfs devfs=mount console=ttySA0,9600" */ #define CONFIG

U-boot在S3C2440上的移植详解(一) --- NOR FLASH 启动u-boot

喜你入骨 提交于 2019-12-01 23:35:37
一、移植环境 主 机:VMWare--Fedora 9 开发板:Mini2440--64MB Nand, Kernel:2.6.30.4 编译器: arm-linux-gcc-4.3.2.tgz u-boot: u-boot-2009.08.tar.bz2 二、移植步骤 1 . 了解u-boot主要的目录结构和启动流程,如下图。 u-boot 的 stage1 代码通常放在cpu/xxxx/ start.S 文件中,他用汇编语言写成; u-boot 的 stage2代码通常放在lib_xxxx/board.c 文件中,他用C语言写成。 各个部分的流程图如下: 2. 建立自己的开发板项目并测试编译。 目前u-boot对很多CPU直接支持,可以查看board目录的一些子目录,如:board/samsung/目录下就是对三星一些ARM处理器的支持,有smdk2400、smdk2410和smdk6400,但没有2440,所以我们就在这里建立自己的开发板项目。 1)因2440和2410的资源差不多,主频和外设有点差别,所以我们就在board/samsung/下建立自己开发板的项目,取名叫my2440 #tar -jxvf u-boot-2009.08.tar.bz2 //解压源码 #cd u-boot-2009.08/board/samsung/ //进入目录 #mkdir my2440 /

imx6q 修改开机LOGO指南

邮差的信 提交于 2019-12-01 22:48:37
imx6q 修改开机LOGO指南 在电鱼电子从事多年,对imx6q这款产品有点经验可谈,特此分享与大家共同探讨,下面是我用SAIL-imx6q修改开机LOGO的做法: 1 修改u-boot中的LOGO 1 更换logo 替换 u-boot-imx/2015.04-r0/git/tools/logos/目录下的freescale.bmp,注意这里要替换的图片一定是256色的位图,如果是24位色的图片转换可能会出错,造成图片显示不正常。 我们也可以,直接把自己需要显示的文件不命名为freescale.bmp,那就需要自己修改u-boot-imx/2015.04-r0/git/tools/Makefile文件,将LOGO_BMP=后面的路径设置为自己的图片的名称。 编译的时候,bmp_logo会将我们指定的图片转换为数组文件,保存在/u-boot-imx/2015.04-r0/git/mx6qsabresd_config/include/目录下的bmp_logo.h、bmp_logo_data.h中 2 将图片居中显示 修改 u-boot-imx/2015.04-r0/git/drivers/video/cfb_console.c 在函数static void *video_logo(void)中修改 splash_get_pos(&video_logo_xpos, &video

Why is kernel boot too late?

拈花ヽ惹草 提交于 2019-12-01 12:06:27
问题 I have zynq-microzed board and my log messages are following... [Mon Jun 09 19:28:38.231 2014] SF: Detected S25FL129P_64K/S25FL128S_64K with page size 64 KiB, total 16 MiB [Mon Jun 09 19:28:38.446 2014] SF: 1245184 bytes @ 0x520000 Read: OK [Mon Jun 09 19:28:38.446 2014] ## Loading kernel from FIT Image at 01000000 ... [Mon Jun 09 19:28:38.446 2014] Using 'conf@1' configuration [Mon Jun 09 19:28:38.446 2014] Trying 'kernel@1' kernel subimage [Mon Jun 09 19:28:38.446 2014] Description:

Yocto

淺唱寂寞╮ 提交于 2019-12-01 07:52:25
https://www.yoctoproject.org Yocto offical web System envn. Git 1.8.3.1 or greater tar 1.27 or greater Python 3.4.0 or greater. sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \ xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \ xterm The first demo. download poky-sumo-19.0.3.tar.bz2 from web and extract it. The default machine is x86. The first thing is to init the env. by run below script source oe-init-build-env command to build: bitbake core

u-boot中添加mtdparts支持以及Linux的分区设置

六眼飞鱼酱① 提交于 2019-12-01 07:51:54
原文地址:https://www.cnblogs.com/pengdonglin137/p/4646269.html 阅读目录(Content) 简介 u-boot中支持mtdparts命令 Kernel中设置分区 回到顶部(go to top) 简介 作者:彭东林 邮箱: pengdonglin137@163.com u-boot版本:u-boot-2015.04 Linux版本:Linux-3.14 硬件平台:tq2440, 内存:64M NandFlash: 256MB 下面我们分两部分,u-boot和kernel,首先介绍u-boot中是如何支持mtdparts的,然后简单分析Linux内核设置分区的两种方式: 方式一 在平台代码中写死,然后在初始化NandFlash的时候设置。 方式二 在u-boot中设置,这个比较灵活,u-boot将分区信息(形如:mtdparts=xxx)添加到bootargs中,kernel在启动的时候会解析mtdparts。 回到顶部(go to top) u-boot中支持mtdparts命令 转载自: http://w3sun.blog.163.com/blog/static/1859535342012058369333/ 分区方法 1)MTD层的分区 2)通过U-boot传递给内核的命令行中的mtdparts=... 3

Why using a uImage instead of a zImage

杀马特。学长 韩版系。学妹 提交于 2019-12-01 06:54:23
I'am trying to learn the difference between a zImage and a uImage. In my understanding uImage is got by running mkimage on the Image and as a result it adds a U-Boot wrapper (i don't know what it contains exactly) that contains a header plus the load address and entry point and maybe "extra informations" that i don't know. In the other hand the zImage is the compressed Image , it doesn't contain the load address and entry point(what i think, correct me if i'am wrong) but also U-Boot can load it using bootz . In this case why using a uImage instead of a zImage ? I'am curious to learn what are