cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
419 Views
Registered: ‎10-02-2018

m25p80 spi0.0: SPI transfer timed out

Hi,

I'm using zcu102 run petalinux 2017.4.

I can program flash boot.bin, image.ub, rootfs and boot from flash over QSPI successful. But once booted, there is error occur. How to slove this problem? Thanks and Brgs. Here my log:

[ 27.408050] m25p80 spi0.0: SPI transfer timed out
[ 27.414302] m25p80 spi0.0: error -110 reading 5
[ 27.420397] error -110 reading SR
[ 27.425285] jffs2: error: (1827) jffs2_get_inode_nodes: can not read 40 bytes from 0x009e0e88, error code: -110.
[ 27.437103] jffs2: error: (1827) jffs2_do_read_inode_internal: cannot read nodes for ino 937, returned error is -110
[ 27.449277] jffs2: Returned error for crccheck of ino #937. Expect badness...
[ 27.680061] m25p80 spi0.0: SPI transfer timed out
[ 27.686486] m25p80 spi0.0: error -110 reading 5
[ 27.692736] error -110 reading SR
[ 27.697733] jffs2: error: (1827) jffs2_get_inode_nodes: can not read 40 bytes from 0x00157228, error code: -110.
[ 27.709655] jffs2: error: (1827) jffs2_do_read_inode_internal: cannot read nodes for ino 42, returned error is -110
[ 27.721902] jffs2: Returned error for crccheck of ino #42. Expect badness...
[ 28.014717] m25p80 spi0.0: SPI transfer timed out
[ 28.021215] m25p80 spi0.0: error -110 reading 5
[ 28.027536] error -110 reading SR

and here is other log:

root@xilinx-zcu102-2017_4:~#
root@xilinx-zcu102-2017_4:~#
root@xilinx-zcu102-2017_4:~#
root@xilinx-zcu102-2017_4:~# [ 25.964061] m25p80 spi0.0: SPI transfer timed out
[ 25.970340] m25p80 spi0.0: error -110 reading 5
[ 25.976403] error -110 reading SR
[ 25.981263] jffs2: error: (1828) jffs2_get_inode_nodes: can not read 40 bytes from 0x005dc538, error code: -110.
[ 25.993102] jffs2: error: (1828) jffs2_do_read_inode_internal: cannot read nodes for ino 535, returned error is -110
[ 26.005341] jffs2: Returned error for crccheck of ino #535. Expect badness...
[ 73.480799] jffs2: Checked all inodes but still 0x5c bytes of unchecked space?
[ 73.489743] jffs2: No space for garbage collection. Aborting GC thread

0 Kudos
2 Replies
Highlighted
Moderator
Moderator
377 Views
Registered: ‎06-27-2017

Re: m25p80 spi0.0: SPI transfer timed out

Hi @sonminh ,

COuld you please refer below answer records,

https://www.xilinx.com/support/answers/71114.html

https://www.xilinx.com/support/answers/72349.html --> for checking erase block size.

If you are trying to design a single flash configuration on our evaluation boards, you might need a flash system with 4kb erase block size but evalution boards have two flashes which need minimum 8kb erase block size

Please refer AR72349 attached document for steps to mount on a signle flash configuration HW design.

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos
Highlighted
Adventurer
Adventurer
367 Views
Registered: ‎10-02-2018

Re: m25p80 spi0.0: SPI transfer timed out

Hi @gudishak ,

Thanks for your help.

Follow https://www.xilinx.com/support/answers/71114.html,(Work-around for PetaLinux 2017.x:)

I can boot successfull with rootfs.jffs2 from flash without kernel panic. But error flash occur. Here are log:

[ 12.151999] jffs2: Empty flash at 0x00bb5fb8 ends at 0x00bb6000
[ 12.158695] jffs2: Empty flash at 0x00bb7fb8 ends at 0x00bb8000
[ 12.165384] jffs2: Empty flash at 0x00bb9fb8 ends at 0x00bba000
[ 12.172073] jffs2: Empty flash at 0x00bbbfb8 ends at 0x00bbc000
[ 12.178757] jffs2: Empty flash at 0x00bbdfb8 ends at 0x00bbe000
[ 12.185848] jffs2: Empty flash at 0x00bc1fb8 ends at 0x00bc2000
[ 12.192671] jffs2: Empty flash at 0x00bc3fdc ends at 0x00bc4000
[ 12.199386] jffs2: Empty flash at 0x00bc5ffc ends at 0x00bc6000
[ 12.206080] jffs2: Empty flash at 0x00bc7ffc ends at 0x00bc8000
[ 12.212770] jffs2: Empty flash at 0x00bc9f7c ends at 0x00bca000
[ 12.219455] jffs2: Empty flash at 0x00bcbf98 ends at 0x00bcc000
[ 12.226133] jffs2: Empty flash at 0x00bcdffc ends at 0x00bce000
[ 12.232826] jffs2: Empty flash at 0x00bcfffc ends at 0x00bd0000
[ 12.239512] jffs2: Empty flash at 0x00bd1ffc ends at 0x00bd2000
[ 12.246196] jffs2: Empty flash at 0x00bd3ffc ends at 0x00bd4000
[ 12.252877] jffs2: Empty flash at 0x00bd5ffc ends at 0x00bd6000
[ 12.259569] jffs2: Empty flash at 0x00bd7bfc ends at 0x00bd8000
[ 12.265964] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00bd8000: 0x32a1 instead
[ 12.276003] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00bd8004: 0x1283 instead
[ 12.286034] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00bd8008: 0x1282 instead
[ 12.296067] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00bd800c: 0x1c25 instead
[ 12.306101] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00bd8010: 0x0001 instead
[ 12.316139] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00bd8014: 0x0680 instead
[ 12.326173] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00bd8018: 0x00a0 instead
[ 12.336215] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00bd801c: 0x03f3 instead
[ 12.346254] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00bd8020: 0xfb80 instead
[ 12.356290] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00bd8024: 0x03e2 instead
[ 12.366321] jffs2: Further such events for this erase block will not be printed
[ 12.377844] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00d47228: 0xff85 instead
[ 12.387991] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00d4722c: 0xff44 instead
[ 12.398135] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00d47230: 0xff1d instead
[ 12.408283] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00d47234: 0xfff6 instead
[ 12.418430] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00d47238: 0xff05 instead
[ 12.428576] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00d4723c: 0xffa4 instead
[ 12.438715] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00d47240: 0xff00 instead
[ 12.448865] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00d47244: 0xff00 instead
[ 12.459002] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00d47248: 0xff6b instead
[ 12.469135] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00d4724c: 0xff11 instead
[ 12.479272] jffs2: Further such events for this erase block will not be printed
[ 12.491924] jffs2: notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 12.511034] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 12.518158] devtmpfs: mounted
[ 12.522121] Freeing unused kernel memory: 512K (ffffffc000c50000 - ffffffc000cd0000)
INIT: version 2.88 booting
[ 13.483731] jffs2: Node totlen on flash (0xff00ff44) != totlen from node ref (0x00000044)
Starting udev
[ 15.688680] udevd[1801]: starting version 3.2
[ 15.896573] udevd[1802]: starting eudev-3.2
[ 16.647938] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 16.648205] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 16.672474] jffs2: Node totlen on flash (0xff00ff44) != totlen from node ref (0x00000044)
Starting internet superserver: inetd.
INIT: Entering runlevel: 5
Configuring network interfaces... [ 16.829052] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
done.
Starting Dropbear SSH server: dropbear.
Starting syslogd/klogd: done
rootfs = jffs2_3
Starting swupdate ...
[ 17.868403] macb ff0e0000.ethernet eth0: link up (1000/Full)
[ 17.875492] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Starting tcf-agent: OK

root@xilinx-zcu102-2017_4:~# Swupdate v2017.1.0

Licensed under GPLv2. See source distribution for detailed copyright notices.

Mongoose web server v. 3.8 with pid 2212 started on port(s) 8080 with web root [/www]
Searching for custom LUA handlers :[string "require ("swupdate_handlers")"]:1: module 'swupdate_handlers' not found:
no field package.preload['swupdate_handlers']
no file '/usr/share/lua/5.3/swupdate_handlers.lua'
no file '/usr/share/lua/5.3/swupdate_handlers/init.lua'
no file '/usr/lib/lua/5.3/swupdate_handlers.lua'
no file '/usr/lib/lua/5.3/swupdate_handlers/init.lua'
no file './swupdate_handlers.lua'
no file './swupdate_handlers/init.lua'
no file '/usr/lib/lua/5.3/swupdate_handlers.so'
no file '/usr/lib/lua/5.3/loadall.so'
no file './swupdate_handlers.so'
Custom handlers not found, no error, skipping...

Registered handlers:
flash
raw
rawfile
lua
shellscript
preinstall
postinstall
uboot
Main loop Daemon

root@xilinx-zcu102-2017_4:~#
root@xilinx-zcu102-2017_4:~#

 

0 Kudos