How to change nand partition for iMX6ULL

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to change nand partition for iMX6ULL

ソリューションへジャンプ
3,400件の閲覧回数
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? 

ラベル(1)
0 件の賞賛
返信
1 解決策
2,896件の閲覧回数
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 件の賞賛
返信
8 返答(返信)
2,895件の閲覧回数
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 件の賞賛
返信
2,896件の閲覧回数
guochgz
Contributor III

hello, igor,

pastedImage_1.png

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

0 件の賞賛
返信
2,896件の閲覧回数
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 件の賞賛
返信
2,896件の閲覧回数
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 件の賞賛
返信
2,896件の閲覧回数
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 件の賞賛
返信
2,897件の閲覧回数
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 件の賞賛
返信
2,896件の閲覧回数
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 件の賞賛
返信
2,896件の閲覧回数
guochgz
Contributor III

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

0 件の賞賛
返信