mfgtool 无法启动kernel

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

mfgtool 无法启动kernel

ソリューションへジャンプ
1,595件の閲覧回数
gjfme
Contributor II

hi all:

    在使用mfgtool 时,jumping to os image后,mfgtool一直显示no device connected。 串口log 停留在

Starting kernel ....。请问这是哪里的问题?

   chip: imx6ull ,  bsp: linux-imx-rel_imx_4.1.15_2.0.0_ga

U-Boot 2016.03-svn2 (Apr 27 2021 - 19:19:03 +0800)

CPU:   Freescale i.MX6ULL rev1.1 528 MHz (running at 396 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 53C
Reset cause: POR
Board: MX6ULL 14x14 EVK
I2C:   ready
DRAM:  1 GiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc1(part 0) is current device
Net:   Boot from USB for mfgtools
Use default environment for                              mfgtools
Run bootcmd_mfg: run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};
Hit any key to stop autoboot:  0
Kernel image @ 0x80800000 [ 0x000000 - 0x4e9ad8 ]
## Loading init Ramdisk from Legacy Image at 83800000 ...
   Image Name:   fsl-image-mfgtool-initramfs-imx6
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8591032 Bytes = 8.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 8300bccc

Starting kernel ...

 

0 件の賞賛
返信
1 解決策
1,573件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

I would suggest you better to use the yocto to build the mfgtool firmware.

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,585件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

What is the different between your board and the i.MX6ULL EVK? is the DDR changed? if yes, you need to modify the parameter in u-boot.

 

FYI.

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-6-7-DDR-Stress-Test-Tool/ta-p/11082...

 

Then re-build the mfgtool firmware.

https://community.nxp.com/t5/i-MX-Processors/Build-mfgtool-firmware-uboot/m-p/820176

 

 

0 件の賞賛
返信
1,580件の閲覧回数
gjfme
Contributor II

hi jimmy:

     我更新了uboot 中DDR参数, 现在mfgtool 在send partition shell 时失败。此时的串口log 如下:

我查到这个空指针是在 drivers/usb/gadget/function/fsl_updater.c  437行。但是不知道为什么会这样,该怎么做?  

    还有就是,我是独立编译的uboot 及linux kernel, kernel 中使用的是imx_v7_mfg_defconfig。然后替换的 mfgtool 中firmware 的 uboot.imx,  zImage 和dtb, 没有使用yocto ,所以没有替换initramfs。

Unable to handle kernel NULL pointer dereference at virtual address 00000008

pgd = 80004000

[00000008] *pgd=00000000

Internal error: Oops: 5 [#1] PREEMPT SMP ARM

Modules linked in:

CPU: 0 PID: 63 Comm: file-storage Not tainted 4.1.15-2.1.0+ #1

Hardware name: Freescale i.MX6 Ultralite (Device Tree)

task: a83197c0 ti: a8408000 task.ti: a8408000

PC is at fsg_main_thread+0x19d0/0x21f8

LR is at fsg_main_thread+0x19d0/0x21f8

pc : [<80459490>]    lr : [<80459490>]    psr: 20000113

sp : a8409ee8  ip : a83197c0  fp : a82f0d34

r10: a82f0d00  r9 : a8408000  r8 : 80a5b548

r7 : a8409f28  r6 : 80a5b530  r5 : 00000000  r4 : a83bad00

r3 : 80a5b568  r2 : 00000001  r1 : 00000000  r0 : 80a5b548

Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel

Control: 10c53c7d  Table: 8000406a  DAC: 00000015

Process file-storage (pid: 63, stack limit = 0xa8408210)

Stack: (0xa8409ee8 to 0xa840a000)

9ee0:                   00000001 808dd84c 00000000 00000000 00002800 00000000

9f00: 809c86c0 43425355 ab733800 a83197c0 53425355 c085d000 a8409f54 806f5184

9f20: 00055302 806f19f0 00000000 a83197c0 8005c450 a8409f34 a8409f34 a83afc00

9f40: a82f0d00 00000000 a83afc00 a82f0d00 80457ac0 00000000 00000000 00000000

9f60: 00000000 8004557c 554355c3 00000000 809c3800 a82f0d00 00000000 00000000

9f80: a8409f80 a8409f80 00000000 00000000 a8409f90 a8409f90 a8409fac a83afc00

9fa0: 800454a0 00000000 00000000 8000f468 00000000 00000000 00000000 00000000

9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 75eb55c3 55d355c3

[<80459490>] (fsg_main_thread) from [<8004557c>] (kthread+0xdc/0xf4)

[<8004557c>] (kthread) from [<8000f468>] (ret_from_fork+0x14/0x2c)

Code: e5b35038 e1550003 03a05000 eb0a687d (e5953008)

g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage

0 件の賞賛
返信
1,574件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

I would suggest you better to use the yocto to build the mfgtool firmware.

0 件の賞賛
返信