i.MX6ULL EVK internal flash read errors.

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

i.MX6ULL EVK internal flash read errors.

872 Views
rico_wang
Contributor I

The EVK I am working on shows it has 32M Quad SPI flash. I am trying to boot from SD card and use its u-boot to program it. For all the test around the flash, I encountered no any error, but when the content I write to flash is read back, I always get wrong content. Please see the self-explain log below.

U-Boot 2016.03-imx_v2016.03_4.1.15_2.0.0_ga+g0ec2a01 (Nov 05 2016 - 01:13:31 -0500)

CPU: Freescale i.MX6ULL rev1.0 528 MHz (running at 396 MHz)
CPU: Commercial temperature grade (0C to 95C) at 45C
Reset cause: POR
Board: MX6ULL 14x14 EVK
I2C: ready
DRAM: 512 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Display: TFT43AB (480x272)
Video: 480x272x24
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc1 is current device
Net: FEC1
Normal Boot
Hit any key to stop autoboot: 0
=>
=>
=> setenv serverip 192.168.0.3;setenv ipaddr 192.168.0.123;
=> tftp 0x80800000 openwrt-layerscape-armv7-imx6ull_evk-squashfs-firmware.bin
Using FEC1 device
TFTP from server 192.168.0.3; our IP address is 192.168.0.123
Filename 'openwrt-layerscape-armv7-imx6ull_evk-squashfs-firmware.bin'.
Load address: 0x80800000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#############################
3.5 MiB/s
done
Bytes transferred = 9961476 (980004 hex)
=> sf probe
SF: Detected N25Q256 with page size 256 Bytes, erase size 64 KiB, total 32 MiB
=> sf write 0x80800000 0x00 0x980004
device 0 offset 0x0, size 0x980004
SF: 9961476 bytes @ 0x0 Written: OK
=> md 0x808E0000
808e0000: edfe0dd0 da690000 38000000 7c620000 ......i....8..b|
808e0010: 28000000 11000000 10000000 00000000 ...(............
808e0020: 5e070000 44620000 00000000 00000000 ...^..bD........
808e0030: 00000000 00000000 01000000 00000000 ................
808e0040: 03000000 04000000 00000000 01000000 ................
808e0050: 03000000 04000000 0f000000 01000000 ................
808e0060: 03000000 2b000000 1b000000 65657246 .......+....Free
808e0070: 6c616373 2e692065 2036584d 746c6c55 scale i.MX6 Ullt
808e0080: 694c6172 31206574 34317834 4b564520 raLite 14x14 EVK
808e0090: 616f4220 00006472 03000000 22000000 Board........."
808e00a0: 21000000 2c6c7366 36786d69 2d6c6c75 ...!fsl,imx6ull-
808e00b0: 31783431 76652d34 7366006b 6d692c6c 14x14-evk.fsl,im
808e00c0: 6c753678 0000006c 01000000 736f6863 x6ull.......chos
808e00d0: 00006e65 03000000 39000000 2c000000 en.........9...,
808e00e0: 636f732f 7069612f 75622d73 32304073 /soc/aips-bus@02
808e00f0: 30303030 732f3030 2d616270 40737562 000000/spba-bus@
=> md 0x80900000
80900000: 56190527 a47ed10e c3ba355e d82f2500 '..V..~.^5...%/.
80900010: 00008080 00008080 773bbee6 00020205 ..........;w....
80900020: 204d5241 6e65704f 20747257 756e694c ARM OpenWrt Linu
80900030: 2e342d78 312e3431 00003736 00000000 x-4.14.167......
80900040: e1a00000 e1a00000 e1a00000 e1a00000 ................
80900050: e1a00000 e1a00000 e1a00000 e1a00000 ................
80900060: ea000003 016f2818 00000000 00252fd8 .....(o....../%.
80900070: 04030201 e10f9000 eb000dc8 e1a07001 .............p..
80900080: e1a08002 e10f2000 e3120003 1a000001 ..... ..........
80900090: e3a00017 ef123456 e10f0000 e220001a ....V4........ .
809000a0: e310001f e3c0001f e38000d3 1a000004 ................
809000b0: e3800c01 e28fe00c e16ff000 e12ef30e ..........o.....
809000c0: e160006e e121f000 e16ff009 00000000 n.`...!...o.....
809000d0: 00000000 00000000 00000000 00000000 ................
809000e0: e1a0400f e204433e e2844902 e1a0000f .@..>C...I......
809000f0: e1500004 359f01b0 3080000f 31540000 ..P....5...0..T1
=> sf read 0x80800000 0x00 0x980004
device 0 offset 0x0, size 0x980004
SF: 9961476 bytes @ 0x0 Read: OK
=> md 0x808E0000
808e0000: 00000000 00000000 00000000 00000000 ................
808e0010: 00000000 00000000 00000000 00000000 ................
808e0020: 00000000 00000000 00000000 00000000 ................
808e0030: 00000000 00000000 00000000 00000000 ................
808e0040: 00000000 00000000 00000000 00000000 ................
808e0050: 00000000 00000000 00000000 00000000 ................
808e0060: 00000000 00000000 00000000 00000000 ................
808e0070: 00000000 00000000 00000000 00000000 ................
808e0080: 00000000 00000000 00000000 00000000 ................
808e0090: 00000000 00000000 00000000 00000000 ................
808e00a0: 00000000 00000000 00000000 00000000 ................
808e00b0: 00000000 00000000 00000000 00000000 ................
808e00c0: 00000000 00000000 00000000 00000000 ................
808e00d0: 00000000 00000000 00000000 00000000 ................
808e00e0: 00000000 00000000 00000000 00000000 ................
808e00f0: 00000000 00000000 00000000 00000000 ................
=> md 0x80900000
80900000: 00090004 a014500c 0018301e 00020100 .....P...0......
80900010: 00008080 00008000 00309a40 00020000 ........@.0.....
80900020: 00490200 0265500d 20700250 25680904 ..I..Pe.P.p ..h%
80900030: 26140960 01201411 00003402 00000000 `..&.. ..4......
80900040: 20200000 60a00000 60000000 20a00000 .. ...`...`...
80900050: a0000000 c1200000 a0a00000 00000000 ...... .........
80900060: ea000001 00600010 00000000 00252bc0 ......`......+%.
80900070: 00010201 60099000 83000908 61a06000 .......`.....`.a
80900080: c1a08002 01002000 a2000001 1a000001 ..... ..........
80900090: c1a00007 2b000016 21000000 6020001a .......+...!.. `
809000a0: a300001f 81800008 42000012 00000000 ...........B....
809000b0: 21000800 828c6004 c00e0000 a028520e ...!.`.......R(.
809000c0: c1200004 2021f000 e062c009 00000000 .. ...! ..b.....
809000d0: 00000000 00000000 00000000 00000000 ................
809000e0: c120400f 8200421a a2000002 a0000007 .@ ..B..........
809000f0: c1500000 01990090 00000002 10400000 ..P...........@.

Labels (1)
0 Kudos
3 Replies

758 Views
igorpadykov
NXP Employee
NXP Employee

Hi Rico

one can check uboot #define CONFIG_FSL_QSPI in

mx6ullevk.h\configs\include - uboot-imx - i.MX U-Boot 

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

0 Kudos

758 Views
rico_wang
Contributor I

igorpadykov‌, thanks for your in time reply.

Unfortunately, I could not test that yet, the reason might share with a root cause of this post. Here is my status:

The EVK comes with a SD card storage which boots OK, its uboot and Linux both run - just it doesn't write the QSPI flash correctly in its uboot. 

I was able to run a kernel built with ramfs build from OpenWRT inside the board - tftp kernel(with ramfs) and dtb, therefore I could flash Uboot into its QSPI flash - I read it out and compared to make sure the write was successful. However, when I jumped the DIP to boot from QSPI, nothing happens, nothing I could see from the console. I followed the exact steps of building the Uboot as it says in the NXP documents.

Through OpenWRT ramfs build, I could upload then entire OpenWRT image into the flash. Booting from the SD card, I could read out the kernel/dtb and boot the kernel. The kernel crashes when it starts to load the rootfs(in the flash, as squash fs), the call stack shows the error happens in the QSPI flash driver when the kernel was preparing the MTD partition. 

I could boot the ramfs build but requesting it use the same flash partition as the root fs, it complains the partition contains no valid squash fs, which is wrong. Because when it later boots using its ram file system, I could mount the partition and see all the files.

To summary the issue, 

1. I could not boot from QSPI at all, burning a 99.9% right u-boot.

2. I could not boot the system using a squash fs as root fs inside its QSPI flash.

3. However, I could write to the flash correctly when Linux boots from SD card(iMX Linux) or RAM(OpenWrt build).

Logs attached:

U-Boot 2016.03-imx_v2016.03_4.1.15_2.0.0_ga+g0ec2a01 (Nov 05 2016 - 01:13:31 -0500)

CPU: Freescale i.MX6ULL rev1.0 528 MHz (running at 396 MHz)
CPU: Commercial temperature grade (0C to 95C) at 45C
Reset cause: POR
Board: MX6ULL 14x14 EVK
I2C: ready
DRAM: 512 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Display: TFT43AB (480x272)
Video: 480x272x24
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc1 is current device
Net: FEC1
Normal Boot
Hit any key to stop autoboot: 0
=> setenv bootargs root=/dev/mtdblock4 console=ttymxc0,115200n8
=> sf probe;sf read 0x80800000 0x100000 0x400000; tftp 0x83000000 layout1.dtb; bootm 0x80800000 - 0x83000000
SF: Detected N25Q256 with page size 256 Bytes, erase size 64 KiB, total 32 MiB
device 0 offset 0x100000, size 0x400000
SF: 4194304 bytes @ 0x100000 Read: OK
Using FEC1 device
TFTP from server 192.168.0.3; our IP address is 192.168.0.123
Filename 'layout1.dtb'.
Load address: 0x83000000
Loading: ##
1.5 MiB/s
done
Bytes transferred = 27500 (6b6c hex)
## Booting kernel from Legacy Image at 80800000 ...
Image Name: ARM OpenWrt Linux-4.14.167
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2532992 Bytes = 2.4 MiB
Load Address: 80800000
Entry Point: 80800000
Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Loading Kernel Image ... OK
Using Device Tree in place at 83000000, end 83009b6b

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.167 (rico@rico-VirtualBox) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r10916-3d1c84d)) #0 SMP Sat Feb 1 17:52:03 2020
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Freescale i.MX6 UlltraLite 14x14 EVK Board
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat 80935980, node_mem_map 9fbfa000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 131072 pages, LIFO batch:31
[ 0.000000] random: get_random_bytes called from start_kernel+0x88/0x3d0 with crng_init=0
[ 0.000000] percpu: Embedded 14 pages/cpu s26764 r8192 d22388 u57344
[ 0.000000] pcpu-alloc: s26764 r8192 d22388 u57344 alloc=14*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: root=/dev/mtdblock4 console=ttymxc0,115200n8
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 510980K/524288K available (5597K kernel code, 216K rwdata, 1464K rodata, 1024K init, 218K bss, 13308K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xa0800000 - 0xff800000 (1520 MB)
[ 0.000000] lowmem : 0x80000000 - 0xa0000000 ( 512 MB)
[ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB)
[ 0.000000] .text : 0x80008000 - 0x80677448 (6590 kB)
[ 0.000000] .init : 0x80800000 - 0x80900000 (1024 kB)
[ 0.000000] .data : 0x80900000 - 0x80936000 ( 216 kB)
[ 0.000000] .bss : 0x80936000 - 0x8096c9d8 ( 219 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] Switching to timer-based delay loop, resolution 41ns
[ 0.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000056] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.002184] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.002230] pid_max: default: 32768 minimum: 301
[ 0.002508] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002543] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.003594] CPU: Testing write buffer coherency: ok
[ 0.004168] /cpus/cpu@0 missing clock-frequency property
[ 0.004211] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.005023] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.005337] Hierarchical SRCU implementation.
[ 0.006516] smp: Bringing up secondary CPUs ...
[ 0.006550] smp: Brought up 1 node, 1 CPU
[ 0.006572] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.006590] CPU: All CPU(s) started in SVC mode.
[ 0.019146] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.019653] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.019706] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.019892] pinctrl core: initialized pinctrl subsystem
[ 0.024013] NET: Registered protocol family 16
[ 0.024587] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.039112] vdd3p0: supplied by regulator-dummy
[ 0.040316] cpu: supplied by regulator-dummy
[ 0.041677] vddsoc: supplied by regulator-dummy
[ 0.060482] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.129379] mxs-dma 1804000.dma-apbh: initialized
[ 0.132024] SCSI subsystem initialized
[ 0.143356] libata version 3.00 loaded.
[ 0.143991] usbcore: registered new interface driver usbfs
[ 0.144137] usbcore: registered new interface driver hub
[ 0.144327] usbcore: registered new device driver usb
[ 0.146047] i2c i2c-1: IMX I2C adapter registered
[ 0.146094] i2c i2c-1: can't use DMA, using PIO instead.
[ 0.146424] pps_core: LinuxPPS API ver. 1 registered
[ 0.146445] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.146512] PTP clock support registered
[ 0.147157] Advanced Linux Sound Architecture Driver Initialized.
[ 0.156174] clocksource: Switched to clocksource mxc_timer1
[ 0.158529] NET: Registered protocol family 2
[ 0.159697] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.159812] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.159972] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.160153] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.160213] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.160562] NET: Registered protocol family 1
[ 0.160644] PCI: CLS 0 bytes, default 64
[ 0.171184] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 0.190161] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.207166] io scheduler noop registered
[ 0.207204] io scheduler deadline registered (default)
[ 0.219629] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.221450] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 18, base_baud = 5000000) is a IMX
[ 0.226664] imx-sdma 20ec000.sdma: loaded firmware 3.3
[ 0.779003] console [ttymxc0] enabled
[ 0.784414] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 58, base_baud = 5000000) is a IMX
[ 0.805063] loop: module loaded
[ 1.301128] fsl-quadspi 21e0000.qspi: n25q256a (32768 Kbytes)
[ 1.307167] 6 fixed-partitions partitions found on MTD device 21e0000.qspi
[ 1.314075] Creating 6 MTD partitions on "21e0000.qspi":
[ 1.319480] 0x000000000000-0x0000000c0000 : "u-boot"
[ 1.326260] 0x0000000c0000-0x0000000e0000 : "u-boot-env"
[ 1.333096] 0x0000000e0000-0x000000100000 : "dbt"
[ 1.339435] 0x000000100000-0x000000500000 : "kernel"
[ 1.345918] 0x000000500000-0x000000800000 : "rootfs"
[ 1.352520] mtd: device 4 (rootfs) set to be root filesystem
[ 2.328259] Unhandled fault: external abort on non-linefetch (0x1008) at 0xa0e00000
[ 2.335951] pgd = 80004000
[ 2.338685] [a0e00000] *pgd=9f654811, *pte=60500653, *ppte=60500453
[ 2.345009] Internal error: : 1008 [#1] SMP ARM
[ 2.349563] Modules linked in:
[ 2.352660] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.167 #0
[ 2.358774] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[ 2.364981] task: 9f44c000 task.stack: 9f450000
[ 2.369548] PC is at memcpy+0x48/0x330
[ 2.373330] LR is at fsl_qspi_read+0x104/0x10c
[ 2.377801] pc : [<8065ad08>] lr : [<80441bd8>] psr: 80000053
[ 2.384092] sp : 9f451ac4 ip : 00000000 fp : 9f451b04
[ 2.389342] r10: 9f451bcc r9 : 00400000 r8 : 00000000
[ 2.394593] r7 : 00000000 r6 : 00500000 r5 : 00000030 r4 : 9f61e040
[ 2.401147] r3 : 00000000 r2 : ffffffb0 r1 : a0e00000 r0 : 9f451bd0
[ 2.407701] Flags: Nzcv IRQs on FIQs off Mode SVC_32 ISA ARM Segment none
[ 2.414952] Control: 10c5387d Table: 8000406a DAC: 00000051
[ 2.420722] Process swapper/0 (pid: 1, stack limit = 0x9f450210)
[ 2.426755] Stack: (0x9f451ac4 to 0x9f452000)
[ 2.431150] 1ac0: 00000030 00500000 00000000 00000000 9f451bd0 9f61e040 80441bd8
[ 2.439365] 1ae0: 00000000 00000030 00500000 00000000 9f61e040 9f451bd0 9f451b44 9f451b08
[ 2.447579] 1b00: 8043f1a8 80441ae0 00000030 9f451bd0 00000000 80791da8 9f451b3c 9f59b400
[ 2.455791] 1b20: 00000000 00000000 00000000 00000030 00000000 80967f9c 9f451b7c 9f451b48
[ 2.464005] 1b40: 8042f0e8 8043f130 00000030 9f451bcc 9f451bd0 80167f74 9f451bb4 00300000
[ 2.472218] 1b60: 00000000 9f59b400 8091d470 9f451c2c 9f451bb4 9f451b80 8042ba38 8042f0a4
[ 2.480431] 1b80: 00000030 9f451bcc 9f451bd0 809383c0 60000053 00000000 9f59b400 00000000
[ 2.488644] 1ba0: 9f451c2c 9f451c74 9f451c24 9f451bb8 80432c60 8042b9d4 00000030 9f451bcc
[ 2.496856] 1bc0: 9f451bd0 00300000 00000000 00000000 9f451c24 80853328 807904f8 9f451c5c
[ 2.505069] 1be0: 9f774280 8091d2b0 00000000 9f61e040 9f451c14 9f451c00 801688e4 801684c0
[ 2.513282] 1c00: 807904f8 80967f9c 9f59b400 00000000 8091d470 8091d4b8 9f451c5c 9f451c28
[ 2.521495] 1c20: 80432f00 80432c2c 80936030 9f774280 9f451c54 80967f9c 9f59b400 00000000
[ 2.529708] 1c40: 8091d470 8091d4b8 8091d468 80967f9c 9f451ca4 9f451c60 80430490 80432ee8
[ 2.537921] 1c60: 9f774280 00000000 807904f0 00000004 00000000 9f59b680 00100000 9f59b400
[ 2.546135] 1c80: 9f4c1760 00000005 8091d470 00500000 00000000 9f61e040 9f451ce4 9f451ca8
[ 2.554348] 1ca0: 80430b00 804303c4 00500000 00000000 8091d468 00000006 807907d8 00000006
[ 2.562562] 1cc0: 8091d4d8 ffffffea 8091d468 80967f9c 00000000 9f61e040 9f451d4c 9f451ce8
[ 2.570774] 1ce0: 804309d8 80430a0c 00000000 00000000 00000000 80759564 807a53b4 807909b8
[ 2.578988] 1d00: 00000000 00000000 8069dd8c 00000000 00000000 9f4c16c0 00000006 8091d4d8
[ 2.587200] 1d20: 00000000 9f61e040 00000000 9f54dc10 9f61e040 9fbf7cec 00000000 00000000
[ 2.595413] 1d40: 9f451d64 9f451d50 8042cd7c 80430608 9f61e040 9f61e040 9f451dcc 9f451d68
[ 2.603626] 1d60: 804425dc 8042cd20 00000000 9f54bf40 9f61e040 9f578840 807acdec 00000000
[ 2.611839] 1d80: 8079c3e8 9f54dc00 3f4fd3f5 80441ad4 80441db0 80441be0 00000000 00010080
[ 2.620051] 1da0: 00000000 9f54dc10 fffffffe 8091d834 fffffdfb 8091d834 00000000 00000000
[ 2.628265] 1dc0: 9f451dec 9f451dd0 803df67c 804421f8 9f54dc10 80966bd8 80966bdc 00000000
[ 2.636478] 1de0: 9f451e1c 9f451df0 803ddec8 803df628 00000000 9f54dc10 8091d834 9f54dc44
[ 2.644692] 1e00: 00000000 8082a0cc 80852430 8084483c 9f451e3c 9f451e20 803de0e8 803ddd84
[ 2.652905] 1e20: 00000000 8091d834 803de060 00000000 9f451e64 9f451e40 803dc308 803de06c
[ 2.661119] 1e40: 9f405f58 9f54a534 9f405f6c 8091d834 9f69e780 8091b8e8 9f451e74 9f451e68
[ 2.669334] 1e60: 803dd934 803dc2c0 9f451e9c 9f451e78 803dd3e4 803dd91c 80792adc 9f451e88
[ 2.677549] 1e80: 8091d834 00000000 ffffe000 80844834 9f451eb4 9f451ea0 803de838 803dd300
[ 2.685762] 1ea0: 80903c08 00000000 9f451ec4 9f451eb8 803df5cc 803de794 9f451ed4 9f451ec8
[ 2.693976] 1ec0: 8082a0e8 803df590 9f451f4c 9f451ed8 80101a90 8082a0d8 9f451f4c 9f451ee8
[ 2.702190] 1ee0: 80145a3c 80800600 9f451ee8 8075d834 8075d814 8075d860 8076682c 00000000
[ 2.710405] 1f00: 8075d7ec 00000006 00000006 80789530 807e5530 9fffcbdc 9fffcbd4 9fffcbdc
[ 2.718618] 1f20: 00000000 119678d6 00000007 80936000 80936000 80844834 80800608 80852430
[ 2.726831] 1f40: 9f451f94 9f451f50 80800eb0 801019d4 00000006 00000006 00000000 80800608
[ 2.735044] 1f60: 807e5530 0000008a 806708bc 00000000 806708bc 00000000 00000000 00000000
[ 2.743258] 1f80: 00000000 00000000 9f451fac 9f451f98 806708cc 80800d7c 00000000 806708bc
[ 2.751470] 1fa0: 00000000 9f451fb0 80107b48 806708c8 00000000 00000000 00000000 00000000
[ 2.759682] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2.767893] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[ 2.776088] Backtrace:
[ 2.778589] [<80441ad4>] (fsl_qspi_read) from [<8043f1a8>] (spi_nor_read+0x84/0x10c)
[ 2.786371] r9:9f451bd0 r8:9f61e040 r7:00000000 r6:00500000 r5:00000030 r4:00000000
[ 2.794156] [<8043f124>] (spi_nor_read) from [<8042f0e8>] (part_read+0x50/0x88)
[ 2.801504] r10:80967f9c r9:00000000 r8:00000030 r7:00000000 r6:00000000 r5:00000000
[ 2.809355] r4:9f59b400
[ 2.811928] [<8042f098>] (part_read) from [<8042ba38>] (mtd_read+0x70/0xac)
[ 2.818924] r8:9f451c2c r7:8091d470 r6:9f59b400 r5:00000000 r4:00300000
[ 2.825665] [<8042b9c8>] (mtd_read) from [<80432c60>] (mtd_get_squashfs_len+0x40/0xfc)
[ 2.833617] r9:9f451c74 r8:9f451c2c r6:00000000 r5:9f59b400 r4:00000000
[ 2.840358] [<80432c20>] (mtd_get_squashfs_len) from [<80432f00>] (mtdsplit_parse_squashfs+0x24/0x170)
[ 2.849700] r8:8091d4b8 r7:8091d470 r6:00000000 r5:9f59b400 r4:80967f9c
[ 2.856443] [<80432edc>] (mtdsplit_parse_squashfs) from [<80430490>] (mtd_partition_split.constprop.6+0xd8/0x188)
[ 2.866741] r10:80967f9c r9:8091d468 r8:8091d4b8 r7:8091d470 r6:00000000 r5:9f59b400
[ 2.874591] r4:80967f9c
[ 2.877165] [<804303b8>] (mtd_partition_split.constprop.6) from [<80430b00>] (add_mtd_partitions+0x100/0x168)
[ 2.887114] r10:9f61e040 r9:00000000 r8:00500000 r7:8091d470 r6:00000005 r5:9f4c1760
[ 2.894966] r4:9f59b400
[ 2.897540] [<80430a00>] (add_mtd_partitions) from [<804309d8>] (parse_mtd_partitions+0x3dc/0x404)
[ 2.906534] r10:9f61e040 r9:00000000 r8:80967f9c r7:8091d468 r6:ffffffea r5:8091d4d8
[ 2.914384] r4:00000006
[ 2.916959] [<804305fc>] (parse_mtd_partitions) from [<8042cd7c>] (mtd_device_parse_register+0x68/0x164)
[ 2.926476] r10:00000000 r9:00000000 r8:9fbf7cec r7:9f61e040 r6:9f54dc10 r5:00000000
[ 2.934328] r4:9f61e040
[ 2.936901] [<8042cd14>] (mtd_device_parse_register) from [<804425dc>] (fsl_qspi_probe+0x3f0/0x4dc)
[ 2.945971] r5:9f61e040 r4:9f61e040
[ 2.949585] [<804421ec>] (fsl_qspi_probe) from [<803df67c>] (platform_drv_probe+0x60/0xb4)
[ 2.957888] r10:00000000 r9:00000000 r8:8091d834 r7:fffffdfb r6:8091d834 r5:fffffffe
[ 2.965739] r4:9f54dc10
[ 2.968315] [<803df61c>] (platform_drv_probe) from [<803ddec8>] (driver_probe_device+0x150/0x2e8)
[ 2.977221] r7:00000000 r6:80966bdc r5:80966bd8 r4:9f54dc10
[ 2.982921] [<803ddd78>] (driver_probe_device) from [<803de0e8>] (__driver_attach+0x88/0xac)
[ 2.991395] r10:8084483c r9:80852430 r8:8082a0cc r7:00000000 r6:9f54dc44 r5:8091d834
[ 2.999251] r4:9f54dc10 r3:00000000
[ 3.002869] [<803de060>] (__driver_attach) from [<803dc308>] (bus_for_each_dev+0x54/0xa8)
[ 3.011078] r7:00000000 r6:803de060 r5:8091d834 r4:00000000
[ 3.016778] [<803dc2b4>] (bus_for_each_dev) from [<803dd934>] (driver_attach+0x24/0x28)
[ 3.024809] r6:8091b8e8 r5:9f69e780 r4:8091d834
[ 3.029466] [<803dd910>] (driver_attach) from [<803dd3e4>] (bus_add_driver+0xf0/0x208)
[ 3.037425] [<803dd2f4>] (bus_add_driver) from [<803de838>] (driver_register+0xb0/0xec)
[ 3.045461] r7:80844834 r6:ffffe000 r5:00000000 r4:8091d834
[ 3.051159] [<803de788>] (driver_register) from [<803df5cc>] (__platform_driver_register+0x48/0x50)
[ 3.060230] r5:00000000 r4:80903c08
[ 3.063848] [<803df584>] (__platform_driver_register) from [<8082a0e8>] (fsl_qspi_driver_init+0x1c/0x20)
[ 3.073373] [<8082a0cc>] (fsl_qspi_driver_init) from [<80101a90>] (do_one_initcall+0xc8/0x18c)
[ 3.082030] [<801019c8>] (do_one_initcall) from [<80800eb0>] (kernel_init_freeable+0x140/0x1d4)
[ 3.090767] r9:80852430 r8:80800608 r7:80844834 r6:80936000 r5:80936000 r4:00000007
[ 3.098554] [<80800d70>] (kernel_init_freeable) from [<806708cc>] (kernel_init+0x10/0x11c)
[ 3.106855] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:806708bc
[ 3.114705] r4:00000000
[ 3.117280] [<806708bc>] (kernel_init) from [<80107b48>] (ret_from_fork+0x14/0x2c)
[ 3.124878] r5:806708bc r4:00000000
[ 3.128491] Code: ba000002 f5d1f03c f5d1f05c f5d1f07c (e8b151f8)
[ 3.134627] ---[ end trace 72d60ed8d5929b1e ]---
[ 3.139272] Kernel panic - not syncing: Fatal exception
[ 3.144537] Rebooting in 1 seconds..
[ 5.149311] Reboot failed -- System halted

0 Kudos

758 Views
rico_wang
Contributor I

Following the "i.MX Linux® User's Guide" page 33, accessing the flash from the mapped address: 0x60000000, I got exact read back - wrong read back.

=> tftp 0x60000000 openwrt-layerscape-armv7-imx6ull_evk-squashfs-firmware.bin
Using FEC1 device
TFTP from server 192.168.0.3; our IP address is 192.168.0.123
Filename 'openwrt-layerscape-armv7-imx6ull_evk-squashfs-firmware.bin'.
Load address: 0x60000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#############################
3.1 MiB/s
done
Bytes transferred = 9961476 (980004 hex)
=md 0x600E0000
600e0000: 00000000 00000000 00000000 00000000 ................
600e0010: 00000000 00000000 00000000 00000000 ................
600e0020: 00000000 00000000 00000000 00000000 ................
600e0030: 00000000 00000000 00000000 00000000 ................
600e0040: 00000000 00000000 00000000 00000000 ................
600e0050: 00000000 00000000 00000000 00000000 ................
600e0060: 00000000 00000000 00000000 00000000 ................
600e0070: 00000000 00000000 00000000 00000000 ................
600e0080: 00000000 00000000 00000000 00000000 ................
600e0090: 00000000 00000000 00000000 00000000 ................
600e00a0: 00000000 00000000 00000000 00000000 ................
600e00b0: 00000000 00000000 00000000 00000000 ................
600e00c0: 00000000 00000000 00000000 00000000 ................
600e00d0: 00000000 00000000 00000000 00000000 ................
600e00e0: 00000000 00000000 00000000 00000000 ................
600e00f0: 00000000 00000000 00000000 00000000 ................
=> md 0x60100000
60100000: 00090004 a014500c 0018301e 00020100 .....P...0......
60100010: 00008080 00008000 00309a40 00020000 ........@.0.....
60100020: 00490200 0265500d 20700250 25680904 ..I..Pe.P.p ..h%
60100030: 26140960 01201411 00003402 00000000 `..&.. ..4......
60100040: 20200000 60a00000 60000000 20a00000 .. ...`...`...
60100050: a0000000 c1200000 a0a00000 00000000 ...... .........
60100060: ea000001 00600010 00000000 00252bc0 ......`......+%.
60100070: 00010201 60099000 83000908 61a06000 .......`.....`.a
60100080: c1a08002 01002000 a2000001 1a000001 ..... ..........
60100090: c1a00007 2b000016 21000000 6020001a .......+...!.. `
601000a0: a300001f 81800008 42000012 00000000 ...........B....
601000b0: 21000800 828c6004 c00e0000 a028520e ...!.`.......R(.
601000c0: c1200004 2021f000 e062c009 00000000 .. ...! ..b.....
601000d0: 00000000 00000000 00000000 00000000 ................
601000e0: c120400f 8200421a a2000002 a0000007 .@ ..B..........
601000f0: c1500000 01990090 00000002 10400000 ..P...........@.
=>

0 Kudos