Ppogram u-boot, image to NAND use Host Server

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Ppogram u-boot, image to NAND use Host Server

跳至解决方案
1,948 次查看
eugenevolkov
Contributor IV

Hi. I would like to load u-boot and image to NAND use NFS.

Is there a document that describes how to do it!

I use yocto relise 3.10.53 for my custom board (not sabreeAI)

I have u-boot, dtb, zimage, rootfs, and i can load board from NFS.

How do I load it all in NAND flash.

I can't use MFG_Tool, because it is a long way to go, because I need to make specific u-boot, image.  And not the fact that this process will be successful,

as the full instructions allow to pass this way simply does not.

What is written, but it does not work!

标签 (1)
0 项奖励
回复
1 解答
1,690 次查看
eugenevolkov
Contributor IV

Hi.

Maybe someone will be useful

# kobs-ng init -x -v /boot/u-boot.imx

# flash_erase /dev/mtd1 0 0

# nandwrite -p /dev/mtd1 -p /boot/zImage

# flash_erase /dev/mtd2 0 0

# nandwrite -p /dev/mtd1 -p /boot/imx6dl-sabreauto.dtb

# flash_erase /dev/mtd3 0 0

# ubiformat /dev/mtd3

# ubiattach /dev/ubi_ctrl -m 3

# ubimkvol /dev/ubi0 -Nrootfs -m

# mkdir -p /mnt/mtd3

# mount -t ubifs ubi0:rootfs /mnt/mtd3

# tar -C /mnt/mtd3 -jxvf /boot/core-image-minimal.tar.bz2

The whole process was successfully.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,690 次查看
eugenevolkov
Contributor IV

I got to download u- boot, use kobs-ng utility

kobs-ng init -x -v /boot/u-boot.imx

This is what I found on the forum.

But how do I load DTB file, and zimage file use kobs-ng?

I ask the experts Freescale to respond

0 项奖励
回复
1,691 次查看
eugenevolkov
Contributor IV

Hi.

Maybe someone will be useful

# kobs-ng init -x -v /boot/u-boot.imx

# flash_erase /dev/mtd1 0 0

# nandwrite -p /dev/mtd1 -p /boot/zImage

# flash_erase /dev/mtd2 0 0

# nandwrite -p /dev/mtd1 -p /boot/imx6dl-sabreauto.dtb

# flash_erase /dev/mtd3 0 0

# ubiformat /dev/mtd3

# ubiattach /dev/ubi_ctrl -m 3

# ubimkvol /dev/ubi0 -Nrootfs -m

# mkdir -p /mnt/mtd3

# mount -t ubifs ubi0:rootfs /mnt/mtd3

# tar -C /mnt/mtd3 -jxvf /boot/core-image-minimal.tar.bz2

The whole process was successfully.

0 项奖励
回复
1,690 次查看
CarlosCasillas
NXP Employee
NXP Employee

Hi Eugene,

Thanks for sharing your solution with the Community!

Best regards!

/Carlos

0 项奖励
回复