AnsweredAssumed Answered

i.MX6ULL EVK internal flash read errors.

Question asked by Rico Wang on Feb 2, 2020
Latest reply on Feb 9, 2020 by Rico Wang

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...........@.

Outcomes