本帖最后由 ぉ沙皮狗的忧伤 于 2019-11-28 18:48 编辑
//com3口打印调试信息
Connecting to COM3...
Connected.
//uboot版本,及时间戳
U-Boot 2018.01 (Oct 09 2019 - 23:39:31 -0400)
//机器型号
Model: Zynq mz7x Development Board
//开发商及系列号
Board: Xilinx Zynq
Silicon: v3.1
DRAM: ECC disabled 1 GiB
MMC: sdhci_transfer_data: Error detected in status(0x208000)!
//sdio接口设备,一个是SD卡,一个是EMMC
sdhci@e0100000: 0 (SD), sdhci@e0101000: 1 (eMMC)
//n25q128是nor flash芯片大小是16M
SF: Detected n25q128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
In: serial@e0001000
Out: serial@e0001000
Err: serial@e0001000
Net: ZYNQ GEM: e000b000, phyaddr 0, interface rgmii-id
eth0: ethernet@e000b000
Hit any key to stop autoboot: 0
SDCARD Boot Mode
[INFO] Scanning mmc 0...
switch to partitions #0, OK
mmc0 is current device
** Unable to read file uEnv.txt **//从MMC卡读取uEnv.txt
[INFO] Trying to boot from mmc 0
reading uImage//从MMC卡读取uImage
3975256 bytes read in 259 ms (14.6 MiB/s)
reading devicetree.dtb//从MMC卡读取devicetree.dtb
10238 bytes read in 18 ms (554.7 KiB/s)
reading system.bit.bin//从MMC卡读取system.bit.bin
4045671 bytes read in 250 ms (15.4 MiB/s)
//这是system.bit.bin文件名字,用户ID vivado版本2017.4
design filename = "LED_wrapper;UserID=0XFFFFFFFF;Version=2017.4"
part number = "7z020clg400"
date = "2019/11/23"
time = "08:50:19"
bytes in bitstream = 4045564
zynq_align_dma_buffer: Align buffer at 10006b to fff80(swap 1)
** Unable to read file uramdisk.image.gz **
//console=ttySAC0,115200 : 指定内核启动的调试信息通过什么设备打印出来
//root=/dev/mmcblk0p2 :指定内核挂载根文件系统的方式---mmcblk0p2(SD卡的第二个分区)
//rootfstype=ext4文件系统的格式console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait hdmi
## Booting kernel from Legacy Image at 02080000 ... //从02080000引导内核
Image Name: Linux-4.14.0-xilinx. //内核名字
Image Type: ARM Linux Kernel Image. //类型
Data Size: 3975192 Bytes = 3.8 MiB //大小
Load Address: 00008000 //加载地址,因为nor_flash是SPI接口的,并不能直接从nor_flash启动,需要将他加载到内存里面
Entry Point: 00008000 //入口地址
Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000 //设备树所在的位置
Booting using the fdt blob at 0x2000000
Loading Kernel Image ... OK
Loading Device Tree to 1fffa000, end 1ffff7fd ... OK
Starting kernel ...
运行到这里,说明你前面的FSBL,uboot都没问题,如果在启动时下面出了问题,就要去查找了
Booting Linux on physical CPU 0x0//内核版本,gcc编译器版本
Linux version 4.14.0-xilinx (osrc@osrc) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11-rc1))
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d //ARMv7架构
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: Zynq MZ7X Development Board //机器型号
Memory policy: Data cache writealloc
reserve 256MB@0x30000000 forPL //DDR后256M留给FPGA存储数据使用
cma: Reserved 16 MiB at 0x2f000000
random: fast init done
percpu: Embedded 16 pages/cpu @ee9c7000 s34764 r8192 d22580 u65536
Built 1 zonelists, mobility grouping on. Total pages: 195072
Kernel command line: console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait hdmi
PID hash table entries: 4096 (order: 2, 16384 byte