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

相关文章

mybatis和mybatis-plus设置值为null不起作用问题及解决

《mybatis和mybatis-plus设置值为null不起作用问题及解决》Mybatis-Plus的FieldStrategy主要用于控制新增、更新和查询时对空值的处理策略,通过配置不同的策略类型... 目录MyBATis-plusFieldStrategy作用FieldStrategy类型每种策略的作

linux下多个硬盘划分到同一挂载点问题

《linux下多个硬盘划分到同一挂载点问题》在Linux系统中,将多个硬盘划分到同一挂载点需要通过逻辑卷管理(LVM)来实现,首先,需要将物理存储设备(如硬盘分区)创建为物理卷,然后,将这些物理卷组成... 目录linux下多个硬盘划分到同一挂载点需要明确的几个概念硬盘插上默认的是非lvm总结Linux下多

Python Jupyter Notebook导包报错问题及解决

《PythonJupyterNotebook导包报错问题及解决》在conda环境中安装包后,JupyterNotebook导入时出现ImportError,可能是由于包版本不对应或版本太高,解决方... 目录问题解决方法重新安装Jupyter NoteBook 更改Kernel总结问题在conda上安装了

pip install jupyterlab失败的原因问题及探索

《pipinstalljupyterlab失败的原因问题及探索》在学习Yolo模型时,尝试安装JupyterLab但遇到错误,错误提示缺少Rust和Cargo编译环境,因为pywinpty包需要它... 目录背景问题解决方案总结背景最近在学习Yolo模型,然后其中要下载jupyter(有点LSVmu像一个

解决jupyterLab打开后出现Config option `template_path`not recognized by `ExporterCollapsibleHeadings`问题

《解决jupyterLab打开后出现Configoption`template_path`notrecognizedby`ExporterCollapsibleHeadings`问题》在Ju... 目录jupyterLab打开后出现“templandroidate_path”相关问题这是 tensorflo

如何解决Pycharm编辑内容时有光标的问题

《如何解决Pycharm编辑内容时有光标的问题》文章介绍了如何在PyCharm中配置VimEmulator插件,包括检查插件是否已安装、下载插件以及安装IdeaVim插件的步骤... 目录Pycharm编辑内容时有光标1.如果Vim Emulator前面有对勾2.www.chinasem.cn如果tools工

最长公共子序列问题的深度分析与Java实现方式

《最长公共子序列问题的深度分析与Java实现方式》本文详细介绍了最长公共子序列(LCS)问题,包括其概念、暴力解法、动态规划解法,并提供了Java代码实现,暴力解法虽然简单,但在大数据处理中效率较低,... 目录最长公共子序列问题概述问题理解与示例分析暴力解法思路与示例代码动态规划解法DP 表的构建与意义动

Java多线程父线程向子线程传值问题及解决

《Java多线程父线程向子线程传值问题及解决》文章总结了5种解决父子之间数据传递困扰的解决方案,包括ThreadLocal+TaskDecorator、UserUtils、CustomTaskDeco... 目录1 背景2 ThreadLocal+TaskDecorator3 RequestContextH

关于Spring @Bean 相同加载顺序不同结果不同的问题记录

《关于Spring@Bean相同加载顺序不同结果不同的问题记录》本文主要探讨了在Spring5.1.3.RELEASE版本下,当有两个全注解类定义相同类型的Bean时,由于加载顺序不同,最终生成的... 目录问题说明测试输出1测试输出2@Bean注解的BeanDefiChina编程nition加入时机总结问题说明

关于最长递增子序列问题概述

《关于最长递增子序列问题概述》本文详细介绍了最长递增子序列问题的定义及两种优化解法:贪心+二分查找和动态规划+状态压缩,贪心+二分查找时间复杂度为O(nlogn),通过维护一个有序的“尾巴”数组来高效... 一、最长递增子序列问题概述1. 问题定义给定一个整数序列,例如 nums = [10, 9, 2