UBOOT调试

作者: ifpga_admin 分类: Zynq Serials 发布时间: 2018-11-03 03:35

I2C: ready
Memory: ECC disabled
DRAM: 1 GiB
MMC: zynq_sdhci: 0
SF: Detected S25FL128S_64K with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning – bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: Gem.e000b000
Hit any key to stop autoboot: 0
Copying Linux from QSPI flash to RAM…
SF: Detected S25FL128S_64K with page size 256 Bytes, erase size 64 KiB, total 16 MiB
SF: 4194304 bytes @ 0x100000 Read: OK
SF: 131072 bytes @ 0x500000 Read: OK
Copying ramdisk…
SF: 7208960 bytes @ 0x520000 Read: OK
Wrong Image Format for bootm command
ERROR: can’t get kernel image!

 

ifpga.top-uboot> sf read 0x3000000 0x100000 0x400000
SF: 4194304 bytes @ 0x100000 Read: OK
ifpga.top-uboot> md 0x3000000
03000000: 00000000 00000000 00000000 00000000 …………….
03000010: 00000000 00000000 00000000 00000000 …………….
03000020: 00000000 00000000 00000000 00000000 …………….
03000030: 00000000 00000000 00000000 00000000 …………….
03000040: 00000000 00000000 00000000 00000000 …………….
03000050: 00000000 00000000 00000000 00000000 …………….
03000060: 00000000 00000000 00000000 00000000 …………….
03000070: 00000000 00000000 00000000 00000000 …………….
03000080: 00000000 00000000 00000000 00000000 …………….
03000090: 00000000 00000000 00000000 00000000 …………….
030000a0: 00000000 00000000 00000000 00000000 …………….
030000b0: 00000000 00000000 00000000 00000000 …………….
030000c0: 00000000 00000000 00000000 00000000 …………….
030000d0: 00000000 00000000 00000000 00000000 …………….
030000e0: 00000000 00000000 00000000 00000000 …………….
030000f0: 00000000 00000000 00000000 00000000 …………….
ifpga.top-uboot> md 0x3000000 10
03000000: 00000000 00000000 00000000 00000000 …………….
03000010: 00000000 00000000 00000000 00000000 …………….
03000020: 00000000 00000000 00000000 00000000 …………….
03000030: 00000000 00000000 00000000 00000000 …………….
ifpga.top-uboot>

ERROR: can’t get kernel image
因为读取内核的指令没有执行,bootm指定的启动地址处没有内核数据,这样都不出错 才怪

 

 

“qspiboot=echo Copying Linux from QSPI flash to RAM… && ” \
“sf probe 0 0 0 && ” \
“sf read 0x2800000 0x100000 ${kernel_size} && ” \
“sf read 0x2700000 0x500000 ${devicetree_size} && ” \
“echo Copying ramdisk… && ” \
“sf read 0x2000000 0x520000 ${ramdisk_size} && ” \
“bootm 0x2800000 0x2000000 0x2700000\0” \

 

ifpga.top-uboot> md 0x2800000
02800000: 00000000 00000000 00000000 00000000 …………….
02800010: 00000000 00000000 00000000 00000000 …………….
02800020: 00000000 00000000 00000000 00000000 …………….
02800030: 00000000 00000000 00000000 00000000 …………….
02800040: 00000000 00000000 00000000 00000000 …………….
02800050: 00000000 00000000 00000000 00000000 …………….
02800060: 00000000 00000000 00000000 00000000 …………….
02800070: 00000000 00000000 00000000 00000000 …………….
02800080: 00000000 00000000 00000000 00000000 …………….
02800090: 00000000 00000000 00000000 00000000 …………….
028000a0: 00000000 00000000 00000000 00000000 …………….
028000b0: 00000000 00000000 00000000 00000000 …………….
028000c0: 00000000 00000000 00000000 00000000 …………….
028000d0: 00000000 00000000 00000000 00000000 …………….
028000e0: 00000000 00000000 00000000 00000000 …………….
028000f0: 00000000 00000000 00000000 00000000 …………….

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

发表评论

电子邮件地址不会被公开。 必填项已用*标注