HowTo NAND boot for 8MMINID4-EVK?

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

HowTo NAND boot for 8MMINID4-EVK?

1,343 Views
pavel_
Contributor II

Hello,

I'm looking for instruction on how to make 8MMINID4-EVK boot from NAND.

1. We have received Micron MT29F64G08CBABBWP NAND chip and the Linux has recognized it:

[    1.262362] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x64
[    1.268728] nand: Micron MT29F64G08CBABBWP
[    1.272835] nand: 8192 MiB, MLC, erase size: 2048 KiB, page size: 8192, OOB size: 744
[    1.281027] gpmi-nand 33002000.gpmi-nand: enable the asynchronous EDO mode 5
[    1.288702] Bad block table found at page 1048320, version 0x01
[    1.294926] Bad block table found at page 1048064, version 0x01
[    1.301012] nand_read_bbt: bad block at 0x00000b400000
[    1.306162] nand_read_bbt: bad block at 0x00000b600000
[    1.312410] gpmi-nand 33002000.gpmi-nand: driver registered.

2. I have added

UBOOT_CONFIG = "nand" to the local.conf for imx8mmddr4evk

3. I have compiled

imx-boot-imx8mmddr4evk-nand.bin-flash_ddr4_evk

4. I have flashed that file:

flash_erase /dev/mtd0 0 0

dd if=imx-boot-imx8mmddr4evk-nand.bin-flash_ddr4_evk of=/dev/mtdblock0 bs=1K seek=1

or

nandwrite -p --start=0x400 /dev/mtd0 imx-boot-imx8mmddr4evk-nand.bin-flash_ddr4_evk

5. I have set the boot config dip shitches: 0110000000 / 1000111100

And no boot.

0 Kudos
Reply
3 Replies

1,131 Views
igorpadykov
NXP Employee
NXP Employee

Hi Pauli

one can try to write image with kobs-ng

kobs-ng -x -v --chip_0_device_path=/dev/mtd0 imx-boot-imx8mmevk-nand.bin

or using uuu tool GitHub - NXPmicro/mfgtools: Freescale/NXP I.MX Chip image deploy tools. 

uuu samples can be found in Linux Binary Demo Files - i.MX 8MMini EVK

Recommended to use latest L4.19.35 and follow Linux 4.19.35_1.1.0 Documentation

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,131 Views
pavel_
Contributor II

Still no boot.

1.

I have found, that the boot config is different for DDR4 EVK in The linux users guide at p. 23: and booklet/prints on EVK

for i.MX 8M Mini DDR4 EVK:

01000001

00011110

and booklet + prints states:

0110000000

1000111100

Whom to trust?

(I have tried both with same results = not booting)

2. Giving correct mtdparts to the kernel makes kernel to panic.

mtdparts=gpmi-nand:64m(nandboot),16m(nandfit),32m(nandkernel),16m(nanddtb),8m(nandtee),-(nandrootfs)

[    3.426292] ubi: refuse attaching mtd5 - MLC NAND is not supported
[    3.432652] UBI error: cannot attach mtd5
[    3.440185] snvs_rtc 30370000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:01 UTC (1)
[    3.467847] ALSA device list:
[    3.470947]   #0: wm8524-audio
[    3.476833] VFS: Cannot open root device "ubi0:nandrootfs" or unknown-block(0,0): error -19
[    3.485269] Please append a correct "root=" boot option; here are the available partitions:
[    3.493801] 1f00           65536 mtdblock0
[    3.493815]  (driver?)
[    3.500489] 1f01           16384 mtdblock1
[    3.500498]  (driver?)
[    3.507152] 1f02           32768 mtdblock2
[    3.507161]  (driver?)
[    3.513788] 1f03           16384 mtdblock3
[    3.513796]  (driver?)
[    3.520447] 1f04            8192 mtdblock4
[    3.520456]  (driver?)
[    3.527137] 1f05         8249344 mtdblock5

The question: how to boot from NAND?

0 Kudos
Reply

911 Views
igorpadykov
NXP Employee
NXP Employee

for "boot config" it is necessary to check nand datasheet and make boot settings

described in Table 6-14. NAND boot eFUSE descriptions

i.MX 8M Mini Applications Processor Reference Manual

 

>The question: how to boot from NAND?

 

program image using uuu tool with script example_kernel_nand.uuu

found in Demo Images on link

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

 

0 Kudos
Reply