zedboard REV .D上移植Linaro所出现问题以及一些观点

2023-12-23 23:32

本文主要是介绍zedboard REV .D上移植Linaro所出现问题以及一些观点,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

首先,放上成功启动后串口打印信息,方便有需要者自己看一下是卡在哪一步。

 

U-Boot 2016.07 (Oct 22 2017 - 21:30:47 +0800)

Model: Zynq Zed Development Board

Board: Xilinx Zynq

DRAM:  ECC disabled 512 MiB

MMC:   sdhci@e0100000: 0

SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB

*** Warning - bad CRC, using default environment

 

In:    serial@e0001000

Out:   serial@e0001000

Err:   serial@e0001000

Model: Zynq Zed Development Board

Board: Xilinx Zynq

Net:   ZYNQ GEM: e000b000, phyaddr 0, interface rgmii-id

eth0: ethernet@e000b000

reading uEnv.txt

379 bytes read in 11 ms (33.2 KiB/s)

Importing environment from SD ...

Hit any key to stop autoboot:  0

Device: sdhci@e0100000

Manufacturer ID: 27

OEM: 5048

Name: SD04G

Tran Speed: 50000000

Rd Block Len: 512

SD version 3.0

High Capacity: Yes

Capacity: 3.7 GiB

Bus Width: 4-bit

Erase Group Size: 512 Bytes

reading uEnv.txt

379 bytes read in 10 ms (36.1 KiB/s)

Loaded environment from uEnv.txt

Importing environment from SD ...

Running uenvcmd ...

Copying Linux from SD to RAM...

reading uImage

4080360 bytes read in 357 ms (10.9 MiB/s)

reading devicetree.dtb

13393 bytes read in 19 ms (687.5 KiB/s)

reading uramdisk.image.gz

** Unable to read file uramdisk.image.gz **

## Booting kernel from Legacy Image at 03000000 ...

   Image Name:   Linux-4.9.0

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    4080296 Bytes = 3.9 MiB

   Load Address: 00008000

   Entry Point:  00008000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 02a00000

   Booting using the fdt blob at 0x2a00000

   Loading Kernel Image ... OK

   Loading Device Tree to 1eb0d000, end 1eb13450 ... OK

 

前面是Bin文件引导arm工作的一些过程,包括设备树和核镜像的加载,如果这之前都有问题,单独调boot.bin,然后再加入devicetree文件测试。

Starting kernel ...

 

Uncompressing Linux... done, booting the kernel.

Booting Linux on physical CPU 0x0

Linux version 4.9.0 (root@suyang-virtual-machine) (gcc version 4.9.2 (Sourcery CodeBench Lite 2015.05-17) ) #1 SMP PREEMPT Sun Oct 22 22:05:58 CST 2017

CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d

CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

OF: fdt:Machine model: Xilinx Zynq ZED

bootconsole [earlycon0] enabled

cma: Reserved 128 MiB at 0x16800000

Memory policy: Data cache writealloc

percpu: Embedded 13 pages/cpu @dfb91000 s23744 r8192 d21312 u53248

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048

Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstyle=ext4 rootwait

PID hash table entries: 2048 (order: 1, 8192 bytes)

Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)

Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)

Memory: 379732K/524288K available (5553K kernel code, 236K rwdata, 2120K rodata, 264K init, 154K bss, 13484K reserved, 131072K cma-reserved, 0K highmem)

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)

    vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)

    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)

    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)

    modules : 0xbf000000 - 0xbfe00000   (  14 MB)

      .text : 0xc0008000 - 0xc0574844   (5555 kB)

      .init : 0xc07b4000 - 0xc07f6000   ( 264 kB)

      .data : 0xc07f6000 - 0xc0831000   ( 236 kB)

       .bss : 0xc0831000 - 0xc0857a34   ( 155 kB)

Preemptible hierarchical RCU implementation.

        Build-time adjustment of leaf fanout to 32.

        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.

RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2

NR_IRQS:16 nr_irqs:16 16

efuse mapped to e0800000

slcr mapped to e0802000

L2C: platform modifies aux control register: 0x72360000 -> 0x72760000

L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000

L2C-310 erratum 769419 enabled

L2C-310 enabling early BRESP for Cortex-A9

L2C-310 full line of zeros enabled for Cortex-A9

L2C-310 ID prefetch enabled, offset 1 lines

L2C-310 dynamic clock gating enabled, standby mode enabled

L2C-310 cache controller enabled, 8 ways, 512 kB

L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001

zynq_clock_init: clkc starts at e0802100

Zynq clock init

sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns

clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025, max_idle_ns: 440795209040 ns

Switching to timer-based delay loop, resolution 3ns

clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns

timer #0 at e080a000, irq=17

Console: colour dummy device 80x30

Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333333)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)

Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)

CPU: Testing write buffer coherency: ok

CPU0: thread -1, cpu 0, socket 0, mpidr 80000000

Setting up static identity map for 0x82c0 - 0x8318

CPU1: thread -1, cpu 1, socket 0, mpidr 80000001

Brought up 2 CPUs

SMP: Total of 2 processors activated (1333.33 BogoMIPS).

CPU: All CPU(s) started in SVC mode.

devtmpfs: initialized

VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns

pinctrl core: initialized pinctrl subsystem

NET: Registered protocol family 16

DMA: preallocated 256 KiB pool for atomic coherent allocations

cpuidle: using governor ladder

hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.

hw-breakpoint: maximum watchpoint size is 4 bytes.

zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xe0840000

zynq-pinctrl 700.pinctrl: zynq pinctrl initialized

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

media: Linux media interface: v0.10

Linux video capture interface: v2.00

pps_core: LinuxPPS API ver. 1 registered

pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>

PTP clock support registered

EDAC MC: Ver: 3.0.0

Advanced Linux Sound Architecture Driver Initialized.

clocksource: Switched to clocksource arm_global_timer

NET: Registered protocol family 2

TCP established hash table entries: 4096 (order: 2, 16384 bytes)

TCP bind hash table entries: 4096 (order: 3, 32768 bytes)

TCP: Hash tables configured (established 4096 bind 4096)

UDP hash table entries: 256 (order: 1, 8192 bytes)

UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)

NET: Registered protocol family 1

hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available

futex hash table entries: 512 (order: 3, 32768 bytes)

workingset: timestamp_bits=30 max_order=17 bucket_order=0

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330

dma-pl330 f8003000.dmac:        DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16

xilinx-vdma 43000000.axivdma: missing xlnx,flush-fsync property

xilinx-vdma 43000000.axivdma: missing xlnx,addrwidth property

xilinx-vdma 43000000.axivdma: Xilinx AXI VDMA Engine Driver Probed!!

e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 25, base_baud = 3125000) is a xuartps

▒console [ttyPS0] enabled

console [ttyPS0] enabled

bootconsole [earlycon0] disabled

bootconsole [earlycon0] disabled

xdevcfg f8007000.devcfg: ioremap 0xf8007000 to e081e000

[drm] Initialized

brd: module loaded

loop: module loaded

m25p80 spi32766.0: found s25fl256s1, expected n25q128a11

m25p80 spi32766.0: s25fl256s1 (32768 Kbytes)

5 ofpart partitions found on MTD device spi32766.0

Creating 5 MTD partitions on "spi32766.0":

0x000000000000-0x000000500000 : "boot"

0x000000500000-0x000000520000 : "bootenv"

0x000000520000-0x000000540000 : "config"

0x000000540000-0x000000fc0000 : "image"

0x000000fc0000-0x000002000000 : "spare"

MACsec IEEE 802.1AE

libphy: Fixed MDIO Bus: probed

libphy: mdio_driver_register: xgmiitorgmii

tun: Universal TUN/TAP device driver, 1.6

tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>

libphy: MACB_mii_bus: probed

macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 27 (00:0a:35:00:01:22)

Marvell 88E1510 e000b000.etherne:00: attached PHY driver [Marvell 88E1510] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1)

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

usbcore: registered new interface driver usb-storage

usbcore: registered new interface driver usbserial

usbcore: registered new interface driver usbserial_generic

usbserial: USB Serial support registered for generic

usbcore: registered new interface driver ftdi_sio

usbserial: USB Serial support registered for FTDI USB Serial Device

e0002000.usb supply vbus not found, using dummy regulator

ULPI transceiver vendor/product ID 0x0451/0x1507

Found TI TUSB1210 ULPI transceiver.

ULPI integrity check: passed.

ci_hdrc ci_hdrc.0: EHCI Host Controller

ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1

ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

mousedev: PS/2 mouse device common for all mice

i2c /dev entries driver

usbcore: registered new interface driver uvcvideo

USB Video Class driver (1.1.1)

gspca_main: v2.14.0 registered

cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at e088a000 with timeout 10s

Xilinx Zynq CpuIdle Driver started

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

sdhci-pltfm: SDHCI platform and OF driver helper

mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using DMA

ledtrig-cpu: registered to indicate activity on CPUs

hidraw: raw HID events driver (C) Jiri Kosina

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

NET: Registered protocol family 17

Registering SWP/SWPB emulation handler

mmc0: new high speed SDHC card at address 0007

mmcblk0: mmc0:0007 SD04G 3.71 GiB

 mmcblk0: p1 p2

Console: switching to colour frame buffer device 128x48

axi-hdmi 70e00000.axi_hdmi: fb0:  frame buffer device

[drm] Initialized axi_hdmi_drm 1.0.0 20120930 on minor 0

asoc-simple-card adv7511_hdmi_snd: hdmi-hifi.0 <-> 75c00000.axi-spdif-tx mapping ok

asoc-simple-card zed_sound: adau-hifi <-> 77600000.axi-i2s mapping ok

hctosys: unable to open rtc device (rtc0)

ALSA device list:

  #0: HDMI monitor

  #1: ZED ADAU1761

random: fast init done

EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities

EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities

EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)

VFS: Mounted root (ext4 filesystem) on device 179:2.

devtmpfs: mounted

Freeing unused kernel memory: 264K (c07b4000 - c07f6000)

This architecture does not have kernel memory protection.

init: hwclock main process (865) terminated with status 1

init: ureadahead main process (866) terminated with status 5

 

Last login: Thu Jan  1 00:00:09 UTC 1970 on tty1

 

Login timed out after 60 seconds.

 

Last login: Thu Jan  1 00:01:34 UTC 1970 on tty1

linaro

root

cat: /var/lib/update-notifier/fsck-at-reboot: No such file or directory

run-parts: /etc/update-motd.d/98-fsck-at-reboot exited with return code 1

Welcome to Linaro 12.11 (GNU/Linux 4.9.0 armv7l)

 * Documentation:  https://wiki.linaro.org/

至此,系统启动完成。

说一下其中的一些问题,

1,如果卡在init: ureadahead main process (***) terminated with status 5 这类地方进不了系统,首先得明确你的引导boot.bin文件基本没有什么问题,是在linux内核启动过程中卡住,这个时候建议重新生成一下文件目录。

2,前面启动过程中有直接卡在某处,然后图形输出为两只linux企鹅,个人认为可能是Image镜像文件不匹配之类,建议重新生成。

具体操作指南:(感谢众多大神经验分享)

1.https://wiki.analog.com/resources/tools-software/linux-drivers/platforms/zynq#dokuwiki__top

2.http://www.openhw.org/module/forum/thread-597214-1-1.html

3.http://svenand.blogdrives.com/archive/199.html#.W2vKNa6Wa01

4.Zedboard的guide文档。

 

 

这篇关于zedboard REV .D上移植Linaro所出现问题以及一些观点的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/529838

相关文章

java实现延迟/超时/定时问题

《java实现延迟/超时/定时问题》:本文主要介绍java实现延迟/超时/定时问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录Java实现延迟/超时/定时java 每间隔5秒执行一次,一共执行5次然后结束scheduleAtFixedRate 和 schedu

如何解决mmcv无法安装或安装之后报错问题

《如何解决mmcv无法安装或安装之后报错问题》:本文主要介绍如何解决mmcv无法安装或安装之后报错问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录mmcv无法安装或安装之后报错问题1.当我们运行YOwww.chinasem.cnLO时遇到2.找到下图所示这里3.

浅谈配置MMCV环境,解决报错,版本不匹配问题

《浅谈配置MMCV环境,解决报错,版本不匹配问题》:本文主要介绍浅谈配置MMCV环境,解决报错,版本不匹配问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录配置MMCV环境,解决报错,版本不匹配错误示例正确示例总结配置MMCV环境,解决报错,版本不匹配在col

Vue3使用router,params传参为空问题

《Vue3使用router,params传参为空问题》:本文主要介绍Vue3使用router,params传参为空问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐... 目录vue3使用China编程router,params传参为空1.使用query方式传参2.使用 Histo

SpringBoot首笔交易慢问题排查与优化方案

《SpringBoot首笔交易慢问题排查与优化方案》在我们的微服务项目中,遇到这样的问题:应用启动后,第一笔交易响应耗时高达4、5秒,而后续请求均能在毫秒级完成,这不仅触发监控告警,也极大影响了用户体... 目录问题背景排查步骤1. 日志分析2. 性能工具定位优化方案:提前预热各种资源1. Flowable

springboot循环依赖问题案例代码及解决办法

《springboot循环依赖问题案例代码及解决办法》在SpringBoot中,如果两个或多个Bean之间存在循环依赖(即BeanA依赖BeanB,而BeanB又依赖BeanA),会导致Spring的... 目录1. 什么是循环依赖?2. 循环依赖的场景案例3. 解决循环依赖的常见方法方法 1:使用 @La

SpringBoot启动报错的11个高频问题排查与解决终极指南

《SpringBoot启动报错的11个高频问题排查与解决终极指南》这篇文章主要为大家详细介绍了SpringBoot启动报错的11个高频问题的排查与解决,文中的示例代码讲解详细,感兴趣的小伙伴可以了解一... 目录1. 依赖冲突:NoSuchMethodError 的终极解法2. Bean注入失败:No qu

MySQL新增字段后Java实体未更新的潜在问题与解决方案

《MySQL新增字段后Java实体未更新的潜在问题与解决方案》在Java+MySQL的开发中,我们通常使用ORM框架来映射数据库表与Java对象,但有时候,数据库表结构变更(如新增字段)后,开发人员可... 目录引言1. 问题背景:数据库与 Java 实体不同步1.1 常见场景1.2 示例代码2. 不同操作

如何解决mysql出现Incorrect string value for column ‘表项‘ at row 1错误问题

《如何解决mysql出现Incorrectstringvalueforcolumn‘表项‘atrow1错误问题》:本文主要介绍如何解决mysql出现Incorrectstringv... 目录mysql出现Incorrect string value for column ‘表项‘ at row 1错误报错

如何解决Spring MVC中响应乱码问题

《如何解决SpringMVC中响应乱码问题》:本文主要介绍如何解决SpringMVC中响应乱码问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录Spring MVC最新响应中乱码解决方式以前的解决办法这是比较通用的一种方法总结Spring MVC最新响应中乱码解