u-boot NAND flashing in iMX6

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

u-boot NAND flashing in iMX6

Jump to solution
1,601 Views
rajendrabaniyav
Contributor I

Hi,

Currently I am using MFG tool to flash u-boot.bin, due to project requirement I am looking for method to flash uboot without using MFG tool. I have tried below methods, but to my surprise they are not working.

1. dd command : sudo dd if=u-boot.bin of=/dev/mtdblock0 or sudo dd if=u-boot.bin of=/dev/mtdblock0 bs=1K seek=1 skip=1

2. nandwrite -p /dev/mtd0 u-boot.bin

3. tftp + nand erase + nand write

My build environment is LTIB and target is iMX6 solo. I checked script file used by MFG tool, it is using kobs-ng. Is this mandatory?

Thanks

Rajendra

Labels (2)
0 Kudos
1 Solution
745 Views
igorpadykov
NXP Employee
NXP Employee

Hi Rajendra

yes for creating bootable NAND kobs-ng is mandatory.

In ltib one needs to select SABRE-AI board, as it supports NAND.

Best regards

igor

View solution in original post

0 Kudos
5 Replies
746 Views
igorpadykov
NXP Employee
NXP Employee

Hi Rajendra

yes for creating bootable NAND kobs-ng is mandatory.

In ltib one needs to select SABRE-AI board, as it supports NAND.

Best regards

igor

0 Kudos
746 Views
rajendrabaniyav
Contributor I

Hi Igor,

Thanks for confirmation. Just curious to know why we can't employ other mechanism like dd, etc.

regards

Rajendra

0 Kudos
746 Views
igorpadykov
NXP Employee
NXP Employee

Hi Rajendra

kobs-ng makes FCB automatically, otherwise one will have

to write it manually, sect.8.5.2.3 Firmware Configuration Block IMX6DQRM

Best regards

igor

0 Kudos
746 Views
igorpadykov
NXP Employee
NXP Employee

Hi Rajendra

I think you can use dd also, however one needs to reorder

data in necessary format, described in IMX6DQRM

Figure 17-3. FLASH Page Layout Options

Best regards

igor

0 Kudos
746 Views
rajendrabaniyav
Contributor I

Thanks for providing insights. It's helpful.

0 Kudos