1765
- 收藏
- 点赞
- 分享
- 举报
TQIMX6UL开发板手动烧写
如果无法从nand启动,在sd卡烧写前要先制作sd启动卡,具体方法可以参考在Linux平台下和Windows平台下制作SD启动卡,如果nand可以启动可以直接从nand启动。
光盘的烧写镜像在:TQIMX6UL_COREB_CD/出厂烧录镜像合集/Linux 镜像/tqimx6ul_v1.0;烧写镜像的名称可以在uboot 中设置的。如未设置将使用以下默认名称。embedsky.com
镜像内容
默认镜像名称
Bootloader镜像
u-boot.imx
内核镜像
zImage
Dtb镜像
tq-imx6ul.dtb
文件系镜像
rootfs.ubifs
1. 准备一张tf卡,将第一个分区格式化成fat格式。
2. 将烧写的镜像复制tf卡里的第一个分区里(vfat格式)。
$ ls /media/qingleqq/DF15-3F7C/
$ cp u-boot.imx zImage tq-imx6ul.dtb rootfs.ubifs /media/qingleqq/DF15-3F7C/.
$ ls /media/qingleqq/DF15-3F7C/
$ ls /media/qingleqq/DF15-3F7C/*
tq-imx6ul.dtb rootfs.ubifs u-boot.imx zImage
复制代码
/media/qingleqq/DF15-3F7C/为笔者sd卡挂载目录,只作参考,以实际为准。
烧写
(1) 进入下载菜单embedsky.com
1. 如不能从nand 启动,将拔码打到sd 卡启动。插上已经做好的tf 启动卡。否则拔码打到 nand 启动。
2. 接上串口,上电;在以下倒数完成之前按任意键。
......
Normal Boot
Hit any key to stop autoboot: 1 #这里是1 秒
......
复制代码
按任意键中断自动启动,进入命令行菜单
Out: serial
Err: serial
Net: FEC0
Normal Boot
Hit any key to stop autoboot: 0
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
[1] Download u-boot.bin to Nand Flash
[2] Download Logo image(logo.bin) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[4] Download Device tree blob(*.dtb)
[5] Download UBIFS image (root.ubifs) to Nand Flash
[6] Download YAFFS image (root.yaffs2) to Nand Flash
[7] Download Program to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[n] Enter TFTP download mode menu
[r] Restart u-boot
[t] Test kernel Image (zImage)
[q] Return console
[x] read uboot to sdcard
Please press a key to continue :
复制代码
接下来是烧写对应的镜像。镜像的烧写顺序可随意,要烧写什么镜像也可以安实际需要来决定。
(2)u-boot烧写embedsky.com
按1烧写uboot 镜像:
[q] Return console
[x] read uboot to sdcard
Please press a key to continue :1
reading u-boot.imx
613376 bytes read in 66 ms (8.9 MiB/s)
nand erase.part u-boot;
NAND erase.part: device 0 offset 0x0, size 0x400000
Erasing at 0x3e0000 -- 100% complete.
OK
filesize = 95c00
nand write.e 807ffc00 0x100000 96000
NAND write: device 0 offset 0x100000, size 0x96000
614400 bytes written: OK
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
复制代码
(3)Logo烧写embedsky.com
按2烧写logo文件,注意logo为8位色深的bmp图片,分辨率与屏分辨率一样。
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
[1] Download u-boot.bin to Nand Flash
[2] Download Logo image(logo.bin) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[4] Download Device tree blob(*.dtb)
....
[q] Return console
[x] read uboot to sdcard
Please press a key to continue :2
reading logo.bmp
385076 bytes read in 49 ms (7.5 MiB/s)
NAND erase.part: device 0 offset 0x600000, size 0x400000
Erasing at 0x9e0000 -- 100% complete.
OK
NAND write: device 0 offset 0x600000, size 0x5e034
385076 bytes written: OK
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
[1] Download u-boot.bin to Nand Flash
复制代码
(4)内核烧写embedsky.com
按3烧写内核
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
[1] Download u-boot.bin to Nand Flash
[2] Download Logo image(logo.bin) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[4] Download Device tree blob(*.dtb)
......
[x] read uboot to sdcard
Please press a key to continue :3
reading zImage
6049496 bytes read in 310 ms (18.6 MiB/s)
NAND erase.part: device 0 offset 0xa00000, size 0xa00000
Erasing at 0x13e0000 -- 100% complete.
OK
NAND write: device 0 offset 0xa00000, size 0x5c4ed8
6049496 bytes written: OK
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
复制代码
(5) dtb 烧写embedsky.com
按4烧写dtb文件
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
[1] Download u-boot.bin to Nand Flash
[2] Download Logo image(logo.bin) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[4] Download Device tree blob(*.dtb)
......
[x] read uboot to sdcard
Please press a key to continue :4
NAND erase.part: device 0 offset 0x1400000, size 0x200000
Erasing at 0x15e0000 -- 100% complete.
OK
reading tq-imx6ul.dtb
36834 bytes read in 20 ms (1.8 MiB/s)
NAND write: device 0 offset 0x1400000, size 0x8fe2
36834 bytes written: OK
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
复制代码
(6)文件系统烧写embedsky.com
按5烧写ubi文件系统,当前只支持ubi文件系统。
[t] Test kernel Image (zImage)
[q] Return console
[x] read uboot to sdcard
Please press a key to continue :5
reading rootfs.ubifs
35680256 bytes read in 1747 ms (19.5 MiB/s)
NAND erase.part: device 0 offset 0x1600000, size 0xea00000
Erasing at 0xffe0000 -- 100% complete.
OK
ubi0: attaching mtd1
ubi0: scanning is finished
ubi0: empty MTD device detected
ubi0: attached mtd1 (name "mtd=5", size 234 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 1872, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number:
0
ubi0: available PEBs: 1828, total reserved PEBs: 44, PEBs reserved for bad PEB
handling: 40
No size specified -> Using max size (232112128)
Creating dynamic volume rootfs of size 232112128
35680256 bytes written to volume rootfs
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
复制代码
到此各部分的烧写已经完成。
(7) 启动测试embedsky.com
按8启动系统,测试是否烧写成功:
[7] Download Program to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[n] Enter TFTP download mode menu
[r] Restart u-boot
[t] Test kernel Image (zImage)
[q] Return console
[x] read uboot to sdcard
Please press a key to continue :8
use nandboot
NAND read: device 0 offset 0xa00000, size 0xa00000
10485760 bytes read: OK
NAND read: device 0 offset 0x1400000, size 0x200000
2097152 bytes read: OK
Kernel image [url=home.php?mod=space&uid=72445]@[/url] 0x80800000 [ 0x000000 - 0x5c4ed8 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300bfe1
Modify /soc/aips-bus@02000000/bee@02044000:status disabled
ft_system_setup for mx6
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 4.1.15-gcb8ab66-dirty (qingleqq@z-work) (gcc version 5.2.0 (GCC) )
#262 SMP PREEMPT Fri Jan 6 13:33:47 CST 2017
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Freescale i.MX6 UltraLite 14x14 EVK Board
Reserved memory: failed to allocate memory for node 'linux,cma'
Memory policy: Data cache writealloc
.....
复制代码
光盘的烧写镜像在:TQIMX6UL_COREB_CD/出厂烧录镜像合集/Linux 镜像/tqimx6ul_v1.0;烧写镜像的名称可以在uboot 中设置的。如未设置将使用以下默认名称。embedsky.com
镜像内容
默认镜像名称
Bootloader镜像
u-boot.imx
内核镜像
zImage
Dtb镜像
tq-imx6ul.dtb
文件系镜像
rootfs.ubifs
1. 准备一张tf卡,将第一个分区格式化成fat格式。
2. 将烧写的镜像复制tf卡里的第一个分区里(vfat格式)。
$ ls /media/qingleqq/DF15-3F7C/
$ cp u-boot.imx zImage tq-imx6ul.dtb rootfs.ubifs /media/qingleqq/DF15-3F7C/.
$ ls /media/qingleqq/DF15-3F7C/
$ ls /media/qingleqq/DF15-3F7C/*
tq-imx6ul.dtb rootfs.ubifs u-boot.imx zImage
复制代码
/media/qingleqq/DF15-3F7C/为笔者sd卡挂载目录,只作参考,以实际为准。
烧写
(1) 进入下载菜单embedsky.com
1. 如不能从nand 启动,将拔码打到sd 卡启动。插上已经做好的tf 启动卡。否则拔码打到 nand 启动。
2. 接上串口,上电;在以下倒数完成之前按任意键。
......
Normal Boot
Hit any key to stop autoboot: 1 #这里是1 秒
......
复制代码
按任意键中断自动启动,进入命令行菜单
Out: serial
Err: serial
Net: FEC0
Normal Boot
Hit any key to stop autoboot: 0
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
[1] Download u-boot.bin to Nand Flash
[2] Download Logo image(logo.bin) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[4] Download Device tree blob(*.dtb)
[5] Download UBIFS image (root.ubifs) to Nand Flash
[6] Download YAFFS image (root.yaffs2) to Nand Flash
[7] Download Program to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[n] Enter TFTP download mode menu
[r] Restart u-boot
[t] Test kernel Image (zImage)
[q] Return console
[x] read uboot to sdcard
Please press a key to continue :
复制代码
接下来是烧写对应的镜像。镜像的烧写顺序可随意,要烧写什么镜像也可以安实际需要来决定。
(2)u-boot烧写embedsky.com
按1烧写uboot 镜像:
[q] Return console
[x] read uboot to sdcard
Please press a key to continue :1
reading u-boot.imx
613376 bytes read in 66 ms (8.9 MiB/s)
nand erase.part u-boot;
NAND erase.part: device 0 offset 0x0, size 0x400000
Erasing at 0x3e0000 -- 100% complete.
OK
filesize = 95c00
nand write.e 807ffc00 0x100000 96000
NAND write: device 0 offset 0x100000, size 0x96000
614400 bytes written: OK
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
复制代码
(3)Logo烧写embedsky.com
按2烧写logo文件,注意logo为8位色深的bmp图片,分辨率与屏分辨率一样。
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
[1] Download u-boot.bin to Nand Flash
[2] Download Logo image(logo.bin) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[4] Download Device tree blob(*.dtb)
....
[q] Return console
[x] read uboot to sdcard
Please press a key to continue :2
reading logo.bmp
385076 bytes read in 49 ms (7.5 MiB/s)
NAND erase.part: device 0 offset 0x600000, size 0x400000
Erasing at 0x9e0000 -- 100% complete.
OK
NAND write: device 0 offset 0x600000, size 0x5e034
385076 bytes written: OK
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
[1] Download u-boot.bin to Nand Flash
复制代码
(4)内核烧写embedsky.com
按3烧写内核
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
[1] Download u-boot.bin to Nand Flash
[2] Download Logo image(logo.bin) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[4] Download Device tree blob(*.dtb)
......
[x] read uboot to sdcard
Please press a key to continue :3
reading zImage
6049496 bytes read in 310 ms (18.6 MiB/s)
NAND erase.part: device 0 offset 0xa00000, size 0xa00000
Erasing at 0x13e0000 -- 100% complete.
OK
NAND write: device 0 offset 0xa00000, size 0x5c4ed8
6049496 bytes written: OK
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
复制代码
(5) dtb 烧写embedsky.com
按4烧写dtb文件
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
[1] Download u-boot.bin to Nand Flash
[2] Download Logo image(logo.bin) to Nand Flash
[3] Download Linux Kernel (zImage.bin) to Nand Flash
[4] Download Device tree blob(*.dtb)
......
[x] read uboot to sdcard
Please press a key to continue :4
NAND erase.part: device 0 offset 0x1400000, size 0x200000
Erasing at 0x15e0000 -- 100% complete.
OK
reading tq-imx6ul.dtb
36834 bytes read in 20 ms (1.8 MiB/s)
NAND write: device 0 offset 0x1400000, size 0x8fe2
36834 bytes written: OK
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
复制代码
(6)文件系统烧写embedsky.com
按5烧写ubi文件系统,当前只支持ubi文件系统。
[t] Test kernel Image (zImage)
[q] Return console
[x] read uboot to sdcard
Please press a key to continue :5
reading rootfs.ubifs
35680256 bytes read in 1747 ms (19.5 MiB/s)
NAND erase.part: device 0 offset 0x1600000, size 0xea00000
Erasing at 0xffe0000 -- 100% complete.
OK
ubi0: attaching mtd1
ubi0: scanning is finished
ubi0: empty MTD device detected
ubi0: attached mtd1 (name "mtd=5", size 234 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 1872, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number:
0
ubi0: available PEBs: 1828, total reserved PEBs: 44, PEBs reserved for bad PEB
handling: 40
No size specified -> Using max size (232112128)
Creating dynamic volume rootfs of size 232112128
35680256 bytes written to volume rootfs
##### TQ-IMX6UL U-boot MENU #####
[SDCARD MODE]
###################################
复制代码
到此各部分的烧写已经完成。
(7) 启动测试embedsky.com
按8启动系统,测试是否烧写成功:
[7] Download Program to SDRAM and Run it
[8] Boot the system
[9] Format the Nand Flash
[0] Set the boot parameters
[n] Enter TFTP download mode menu
[r] Restart u-boot
[t] Test kernel Image (zImage)
[q] Return console
[x] read uboot to sdcard
Please press a key to continue :8
use nandboot
NAND read: device 0 offset 0xa00000, size 0xa00000
10485760 bytes read: OK
NAND read: device 0 offset 0x1400000, size 0x200000
2097152 bytes read: OK
Kernel image [url=home.php?mod=space&uid=72445]@[/url] 0x80800000 [ 0x000000 - 0x5c4ed8 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300bfe1
Modify /soc/aips-bus@02000000/bee@02044000:status disabled
ft_system_setup for mx6
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 4.1.15-gcb8ab66-dirty (qingleqq@z-work) (gcc version 5.2.0 (GCC) )
#262 SMP PREEMPT Fri Jan 6 13:33:47 CST 2017
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Freescale i.MX6 UltraLite 14x14 EVK Board
Reserved memory: failed to allocate memory for node 'linux,cma'
Memory policy: Data cache writealloc
.....
复制代码
我来回答
回答0个
时间排序
认可量排序
暂无数据
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2018-07-10 10:50:58
-
2015-11-30 17:43:59
-
2019-03-11 11:41:39
-
2018-07-11 14:37:00
-
2023-04-06 14:25:08
-
2015-12-11 16:51:11
-
2023-02-27 14:55:56
-
2018-07-30 14:39:01
-
2023-11-18 13:55:34
-
2018-07-09 09:14:22
-
2023-01-31 09:00:06
-
2023-10-25 11:43:34
-
2019-11-20 13:36:02
-
2017-06-02 11:27:14
-
2019-07-23 11:49:50
-
2018-12-20 11:12:45
-
132018-08-01 13:58:39
-
142014-02-25 20:10:38
-
22023-03-20 11:56:48
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认