How to change nand partition for iMX6ULL

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

How to change nand partition for iMX6ULL

Jump to solution
3,401 Views
guochgz
Contributor III

Dear all.

        the original nand partition is as follows.

pastedImage_1.png

      becare the uboot partition is too large ,Now I need to change partition like this:

      pastedImage_2.png

      There is my changes:

      pastedImage_3.png

pastedImage_4.png

      after this modifications, using mfg-tools, we can succeccfully upgrade. 

      but after load u-boots, it failed at :

      

NAND read: device 0 offset 0x300000, size 0x800000

NAND read from offset 300000 failed -74

 0 bytes read: ERROR

 

NAND read: device 0 offset 0x1300000, size 0x100000

NAND read from offset 1300000 failed -74

 0 bytes read: ERROR

Kernel image @ 0x80800000 [ 0x000000 - 0x639b68 ]

## Flattened Device Tree blob at 83000000

   Booting using the fdt blob at 0x83000000

   Using Device Tree in place at 83000000, end 8300be76

fdt_find_or_add_subnode: memory: FDT_ERR_BADSTRUCTURE

ERROR: arch-specific fdt fixup failed

 - must RESET the board to recover.

      

    Is there anyone can help me? 

Labels (1)
0 Kudos
Reply
1 Solution
2,897 Views
guochgz
Contributor III

As present, the uboot version used by mfg-tools(L4.1.15_2.0.0-ga_mfg-tools) is imx_v2016.03_4.1.15_2.0.0_ga, I make some changes like this:

pastedImage_1.png

then replace the u-boot-imx6ull14x14evk_nand.imx both in files and firmware dirs.

but there is a strange issue, that this uboot has only successfully booted once, the rest stops at the "Starting kernel ..." 

pls refer to the attachment for log.

View solution in original post

0 Kudos
Reply
8 Replies
2,896 Views
igorpadykov
NXP Employee
NXP Employee

Hi 国承 张 

one can try with kernel command line described in

sect.4.6.2 NAND flash memory map attached Linux Guide.

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

0 Kudos
Reply
2,897 Views
guochgz
Contributor III

hello, igor,

pastedImage_1.png

      This part has been modified, please refer to the figure above

0 Kudos
Reply
2,897 Views
igorpadykov
NXP Employee
NXP Employee

had you tried to use this kernel command line for usual nand boot, not for mfg tool ?

Best regards
igor

0 Kudos
Reply
2,897 Views
guochgz
Contributor III

Do you mean to modify CONFIG_CMDLINE of kernel .config, and recompile the kernel? 

pastedImage_1.png

Or is there another way to change this in the uboot? I find that bootargs has defined this parameter.

pastedImage_2.png

0 Kudos
Reply
2,897 Views
igorpadykov
NXP Employee
NXP Employee

could you try nxp uboot and linux from

linux-imx - i.MX Linux kernel 

uboot-imx - i.MX U-Boot 

Best regards
igor

0 Kudos
Reply
2,898 Views
guochgz
Contributor III

As present, the uboot version used by mfg-tools(L4.1.15_2.0.0-ga_mfg-tools) is imx_v2016.03_4.1.15_2.0.0_ga, I make some changes like this:

pastedImage_1.png

then replace the u-boot-imx6ull14x14evk_nand.imx both in files and firmware dirs.

but there is a strange issue, that this uboot has only successfully booted once, the rest stops at the "Starting kernel ..." 

pls refer to the attachment for log.

0 Kudos
Reply
2,897 Views
ida_jiang
Contributor III

Hi guochgz ,

       I'm using the imx6ull to burn image to the nand. And I want to do some test with old version. Can you help me to get the L4.1.15_ga's demo for inx6ull. I have been looking for it for a long time, but I can't find it.

       Looking forward your reply. Thanks!

Best Regards!

Ida

0 Kudos
Reply
2,897 Views
guochgz
Contributor III

these files can be found on the nxp's official website. 

0 Kudos
Reply