Доброго времени суток!
Как заставить uboot прочитать данные из qspi и положить их в память?
uboot> echo $kernel_size
0x500000
uboot> echo $kernel_load_address
0x2080000
uboot> sf read ${kernel_load_address} 0x100000 ${kernel_size}
device 0 offset 0x100000, size 0x500000
SF: 5242880 bytes @ 0x100000 Read: OK
uboot> md 0x100000
00100000: 56190527 d50db8f5 eca89356 a8043200 '..V....V....2..
00100010: 00800000 00800000 bc6ff6bc 00020205 ..........o.....
00100020: 756e694c 2e332d78 302e3931 6c69782d Linux-3.19.0-xil
00100030: 00786e69 00000000 00000000 00000000 inx.............
00100040: e1a00000 e1a00000 e1a00000 e1a00000 ................
00100050: e1a00000 e1a00000 e1a00000 e1a00000 ................
00100060: ea000003 016f2818 00000000 003204a8 .....(o.......2.
00100070: 04030201 e10f9000 eb000d10 e1a07001 .............p..
00100080: e1a08002 e10f2000 e3120003 1a000001 ..... ..........
00100090: e3a00017 ef123456 e10f0000 e220001a ....V4........ .
001000a0: e310001f e3c0001f e38000d3 1a000004 ................
001000b0: e3800c01 e28fe00c e16ff000 e12ef30e ..........o.....
001000c0: e160006e e121f000 e16ff009 00000000 n.`...!...o.....
001000d0: 00000000 00000000 00000000 00000000 ................
001000e0: e1a0400f e204433e e2844902 e1a0000f .@..>C...I......
001000f0: e1500004 359f01ac 3080000f 31540000 ..P....5...0..T1
uboot> md $kernel_load_address
02080000: c6bc9c30 bac9f302 60c0fa54 f0748b81 0.......T..`..t.
02080010: f4fd039b 7de27eca eacfd1f3 f7dde95d .....~.}....]...
02080020: efdf4b6d 9497a64b 542fd2c4 6e5e9f80 mK..K...../T..^n
02080030: f629e766 bbecc92d a9816881 f7e67f6a f.).-....h..j...
02080040: a7972816 b90a1a8b 1bc6853d 6dc6fa26 .(......=...&..m
02080050: 7c44dd18 de7d4233 2dd8e16c 4f5df67a ..D|3B}.l..-z.]O
02080060: ef133af4 8d3e7279 da9f37c1 3116ace7 .:..yr>..7.....1
02080070: 5fa55300 d7147a1e cc36a711 37339e21 .S._.z....6.!.37
02080080: e136c9d5 4aeca727 d3275637 c649756d ..6.'..J7V'.muI.
02080090: 9ce7ba10 847034e6 803d5d5e 705e0435 .....4p.^]=.5.^p
020800a0: 4d6a056f 3e6debed 64fd31be 95bd2a75 o.jM..m>.1.du*..
020800b0: c5a39fae 7724b99c 672ccfa1 424c2e71 ......$w..,gq.LB
020800c0: c681bbc4 100f4649 c069542d ba626cc0 ....IF..-Ti..lb.
020800d0: a676d6e8 a4b6d49f d1a63a75 0c069f6f ..v.....u:..o...
020800e0: be072696 acfa4a97 fa2acfa6 8e1f3174 .&...J....*.t1..
020800f0: 01f31c3b 7cc489f2 eb66b430 e92da4c0 ;......|0.f...-.