没有合适的资源?快使用搜索试试~ 我知道了~
首页U-Boot for Freescale i.MX6X
资源详情
资源评论
资源推荐
1 Freescale Semiconductor
U-Boot for Freescale i.MX6X
U-Boot has been ported to the and i.MX6X boards This document describes how to load, run and build U-Boot
images on the board(s).
1 Overview
The U-Boot utility is a multi-platform, open-source, universal boot-loader with comprehensive support for loading
and managing boot images, such as the Linux kernel. It supports the following features:
• Network download: TFTP, BOOTP, DHCP, NFS
• Serial download: s-record, binary (via Kermit)
• Flash management: copy, erase, protect, cramfs, jffs2
• Flash Types: CFI NOR-Flash, NAND-Flash, SPI Flash
• Memory utilities: copy, dump. crc, check, mtest
• Boot from disk: raw block, ext2, fat, reiserfs
• Interactive shell: choice of simple or "busybox" shell with many scripting features
For more information on U-Boot, refer to http://www.denx.de/wiki/U-Boot/WebHome.
2 Board Dip Switches Setup
Be sure to follow the switch settings required for the board in order to have U-Boot up and running properly.
2.1 i.MX6X Switch Settings
2.1.1 i.MX6 Quad/Dual ARM2 board dip switch settings
Table 2.1.1.1: Dip Switch Setup for SD Slot1 Normal Boot
Table 2.1.1.2: Dip Switch Setup for SD bit width
Table 2.1.1.3: Dip Switch Setup for MMC Slot1 Normal Boot
Switch 1 2 3 4 5 6 7 8
SW1 OFF OFF OFF OFF OFF OFF ON OFF
SW2 OFF OFF OFF OFF OFF OFF OFF OFF
SW3 OFF OFF OFF OFF OFF OFF OFF OFF
SW4 OFF OFF OFF OFF OFF OFF OFF OFF
SW2 6
1-bit OFF
4-bit ON
Switch 1 2 3 4 5 6 7 8
SW1 OFF OFF OFF OFF OFF ON ON OFF
SW2 OFF OFF OFF OFF OFF OFF OFF OFF
SW3 OFF OFF OFF OFF OFF OFF OFF OFF
SW4 OFF OFF OFF OFF OFF OFF OFF OFF
2 Freescale Semiconductor
Table 2.1.1.4: Dip Switch Setup for MMC bus width
Table 2.1.1.5: Dip Switch Setup for ESDHC Slot Selection
Table 2.1.1.6: Dip Switch Setup for SD/MMC normal boot and fast boot
Table 2.1.1.7: Dip Switch Setup for SPI NOR Boot
Table 2.1.1.8: Dip Switch Setup for One-Nand Boot
Table 2.1.1.9: Dip Switch Setup for SATA Boot
SW2 6 7 8
1-bit OFF OFF OFF
4-bit ON OFF OFF
8-bit OFF ON OFF
4-bit DDR ON OFF ON
8-bit DDR ON ON OFF
SW2 4 5
Slot 1 OFF OFF
Slot 2 ON OFF
Slot 3 OFF ON
Slot 4 ON ON
SW1 5
Regular OFF
Fast ON
Switch 1 2 3 4 5 6 7 8
SW1 OFF OFF OFF OFF ON ON OFF OFF
SW2 OFF OFF OFF OFF OFF OFF OFF OFF
SW3 OFF OFF OFF OFF OFF OFF OFF OFF
SW4 OFF OFF OFF ON ON OFF OFF OFF
Switch 1 2 3 4 5 6 7 8
SW1 OFF OFF OFF ON OFF OFF OFF OFF
SW2 OFF OFF OFF OFF OFF OFF OFF OFF
SW3 OFF OFF OFF OFF OFF OFF OFF OFF
SW4 OFF OFF OFF OFF OFF OFF OFF OFF
Switch 1 2 3 4 5 6 7 8
SW1 OFF OFF OFF OFF OFF ON OFF OFF
SW2 OFF OFF OFF OFF OFF OFF OFF OFF
SW3 OFF OFF OFF OFF OFF OFF OFF OFF
SW4 OFF OFF OFF OFF OFF OFF OFF OFF
3 Freescale Semiconductor
2.1.2 i.MX6 Sabresd Switch Settings
Table 2.1.2.1: Dip Switch Setup for SD Slot1 Normal Boot
Table 2.1.2.2: Dip Switch Setup for SD bit width
Table 2.1.2.3: Dip Switch Setup for MMC Slot1 Normal Boot
Table 2.1.2.4: Dip Switch Setup for MMC bus width
3 Image Install Instructions
3.1 Programming U-Boot into MMC
The following steps describe how to program U-Boot into an MMC/SD card using U-Boot:
1. Insert a MMC/SD card into the slot and follow the instructions in Section 2 “Board Dip Switches Setup” to
setup the board in bootstrap mode.
2. Use ATK to download the U-Boot binary with MMC boot to address 0.
3.2 Starting U-Boot from MMC
If U-Boot is already programmed into the MMC/SD card, follow the instructions in Section 2 “Board Dip Switches
Setup” to setup the board in internal MMC boot mode. The U-Boot prompt should come up from the HyperTerminal
after reset.
3.3 Starting U-Boot from MMC fastboot
eMMC 4.3 and 4.4 card support fastboot. To boot from fastboot, please follow below steps:
1. Make sure the slot can support fastboot.
Please check spec for this information. On most of our boards, Slot3 support eMMC fastboot.
2. Program u-boot image to eMMC boot partition.
Normal boot from SD first and program u-boot image to boot partition.
e.g
• Insert normal SD card to slot1 and eMMC 4.3/4.4 card to slot3.
• Normal boot from SD slot1.
Switch 1 2 3 4 5 6 7 8 9 0
SW6 OFF OFF OFF OFF OFF OFF OFF OFF ON OFF
SW6 3
1-bit OFF
4-bit ON
Switch 1 2 3 4 5 6 7 8 9 10
S1 OFF OFF OFF OFF OFF OFF OFF ON ON OFF
S1 3 4
1-bit OFF OFF
4-bit ON OFF
8-bit OFF ON
4 Freescale Semiconductor
• Write u-boot.bin to eMMC card boot partition.
e.g
> mmc dev 0
mmc0 is current device
> mmc read ${loadaddr} 0 0x200
MMC read: dev # 0, block # 0,count 512 ...
512 blocks read: OK
> mmc dev 1 1
mmc1(part 1) is current device
> mmc write ${loadaddr} 0 0x200
MMC read: dev # 1, block # 0,count 512 ...
512 blocks write: OK
3. Get eMMC bus width.
Get boot bit bus mode. Use command “mmcinfo <dev>“ to get bus width.
> mmcinfo 1
Device: FSL_ESDHC
Manufacturer ID: 3
OEM: 5344
Name: SD04G
Tran Speed: 25000000
Rd Block Len: 512
SD version 2.0
High Capacity: Yes
Capacity: 3965190144
Bus Width: 4-bit
4. Set eMMC fast boot dip and boot bits.
• Set eMMC fast boot dip.
• Set bus width to the bus width we got from step 3.
5. Reset board for booting.
3.4 Programming U-Boot to SATA device
The following steps describe how to program U-Boot to a SATA device.
1. Booting from MMC first.
2. Read u-boot.bin from mmc.
mmc dev 0
mmc read ${loadaddr} 0 0x200
3. Write to SATA device.
sata write ${loadaddr} 0 0x200
4. Set SATA boot dip setting.
5. Reset board and check output from terminal.
3.5 Programming the U-Boot into SPI-NOR Flash
1. Boot board with nand boot or mmc boot first.
2. Upload u-boot.bin to tftp root directory.
3. Load U-Boot Image to ram.
U-Boot> setenv serverip 10.193.100.158
U-Boot> setenv ethaddr 00:04:9F:00:EA:D7
U-Boot> setenv ipaddr 10.193.102.93
U-Boot> tftpboot ${loadaddr} u-boot.bin
4. Program u-boot.bin to spi-nor with address 0.
Initial SPI-NOR:
U-Boot> sf probe 1
剩余17页未读,继续阅读
justdoit_mqr
- 粉丝: 0
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- ExcelVBA中的Range和Cells用法说明.pdf
- 基于单片机的电梯控制模型设计.doc
- 主成分分析和因子分析.pptx
- 共享笔记服务系统论文.doc
- 基于数据治理体系的数据中台实践分享.pptx
- 变压器的铭牌和额定值.pptx
- 计算机网络课程设计报告--用winsock设计Ping应用程序.doc
- 高电压技术课件:第03章 液体和固体介质的电气特性.pdf
- Oracle商务智能精华介绍.pptx
- 基于单片机的输液滴速控制系统设计文档.doc
- dw考试题 5套.pdf
- 学生档案管理系统详细设计说明书.doc
- 操作系统PPT课件.pptx
- 智慧路边停车管理系统方案.pptx
- 【企业内控系列】企业内部控制之人力资源管理控制(17页).doc
- 温度传感器分类与特点.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0