
Hi
we are currently trying to get an out-of-tree board based on 2013.01 back in sync with current master and observing a strange behavior which we think is located in the CFI flash system. If we load an image via tftp, copy it to flash and then try to run the image via bootm we see an error while decomressing:
zmx25> tftpboot 0x81000000 zmx25-gfx.lzo.img; Using FEC device TFTP from server 192.168.1.60; our IP address is 192.168.1.107 Filename 'zmx25-gfx.lzo.img'. Load address: 0x81000000 Loading: ################################################################# ################################################################# ######################################### 2.8 MiB/s done Bytes transferred = 2508249 (2645d9 hex) zmx25> erase 0xA0080000 +${filesize}; .................... done Erased 20 sectors zmx25> cp.b 0x81000000 0xA0080000 ${filesize}; Copy to Flash... done zmx25> bootm 0xA0080000; ## Booting kernel from Legacy Image at a0080000 ... Image Name: zmx25-gfx ifs Image Type: ARM QNX Kernel Image (lzo compressed) Data Size: 2508185 Bytes = 2.4 MiB Load Address: 80000000 Entry Point: 80000000 Verifying Checksum ... OK Uncompressing Kernel Image ... LZO: uncompress or overwrite error -5 - must RESET board to recover resetting ...
After the board is up and running again everything is fine when directly booting the image:
zmx25> bootm 0xa0080000 ## Booting kernel from Legacy Image at a0080000 ... Image Name: zmx25-gfx ifs Image Type: ARM QNX Kernel Image (lzo compressed) Data Size: 2508185 Bytes = 2.4 MiB Load Address: 80000000 Entry Point: 80000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK ## Starting application at 0x80001cc0 ...
Doing an iminfo after the copy from RAM to flash (following the TFTP step) also fixes the problem. Or hides it. We tried with and without caches which didn't show any difference.
zmx25> flinfo
Bank # 1: CFI conformant flash (16 x 16) Size: 32 MB in 256 Sectors AMD Standard command set, Manufacturer ID: 0x1C, Device ID: 0x227E2201 Erase timeout: 8192 ms, write timeout: 1 ms Buffer write timeout: 1 ms, buffer size: 64 bytes
zmx25> bdinfo arch_number = 0x00000C29 boot_params = 0x80000100 DRAM bank = 0x00000000 -> start = 0x80000000 -> size = 0x03C00000 eth0name = FEC ethaddr = 66:15:00:87:02:00 current eth = FEC ip_addr = 192.168.1.107 baudrate = 115200 bps TLB addr = 0x83BF0000 relocaddr = 0x83B6F000 reloc off = 0xE3B6F000 irq_sp = 0x83756F38 sp start = 0x83756F28 FB base = 0x00000000
Any ideas?
Matthias