linux内核烧写erasing failed,TQIMX6UL开发板手动烧写具体方法

烧写

(1) 进入下载菜单

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烧写

按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烧写按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)内核烧写

按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 烧写

按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)文件系统烧写

按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) 启动测试

按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 @ 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
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供的源码资源涵盖了安卓应用、小程序、Python应用和Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值