Ppogram u-boot, image to NAND use Host Server

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ppogram u-boot, image to NAND use Host Server

Jump to solution
1,065 Views
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!

Labels (1)
0 Kudos
1 Solution
807 Views
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.

View solution in original post

0 Kudos
3 Replies
807 Views
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 Kudos
808 Views
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 Kudos
807 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Eugene,

Thanks for sharing your solution with the Community!

Best regards!

/Carlos

0 Kudos