有这好东西,容易调试板卡启动不了的时候是镜像的问题还是电路等了,打印信息如下
petalinux-boot --qemu --image zImage --dtb system.dtb 命令格式
[root@localhost linux]# petalinux-boot --qemu --image zImage --dtb system.dtb
INFO: The image provided is a zImage
WARNING: The QEMU subnet settings is 192.168.10.1/255.255.255.0. It is different from the one configured in PetaLinux /
WARNING: To enable the network of the QEMU MicroBlaze system. Please change the Network settings of PetaLinux and rebuild it or manually configure the network when the QEMU MicroBlaze system is boot
WARNING: Do you want to contine? (y/n)
y
INFO: TCP PORT is free
INFO: Starting arm QEMU
INFO: qemu-system-arm -L /opt/pkg/petalinux-v2014.4-final/etc/qemu -M arm-generic-fdt -smp 2 -machine linux=on --serial /dev/null --serial mon:stdio --nographic -kernel /tmp/tmp.zqNgnPGPmh -gdb tcp::9000 -dtb system.dtb
Booting Linux on physical CPU 0x0
Linux version 3.17.0-xilinx ([email protected]) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-23) ) #12 SMP PREEMPT Tue Nov 15 01:41:17 PST 2016
CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine model: christine
cma: Reserved 128 MiB at 38000000
Memory policy: Data cache writealloc
PERCPU: Embedded 8 pages/cpu @7779c000 s8704 r8192 d15872 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: console=ttyPS0,115200 earlyprintk
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 896512K/1048576K available (4325K kernel code, 227K rwdata, 1428K rodata, 5360K init, 195K bss, 152064K reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xffe00000 (2048 kB)
vmalloc : 0x80800000 - 0xff000000 (2024 MB)
lowmem : 0x40000000 - 0x80000000 (1024 MB)
pkmap : 0x3fe00000 - 0x40000000 ( 2 MB)
modules : 0x3f000000 - 0x3fe00000 ( 14 MB)
.text : 0x40008000 - 0x405a67ec (5754 kB)
.init : 0x405a7000 - 0x40ae3200 (5361 kB)
.data : 0x40ae4000 - 0x40b1cde0 ( 228 kB)
.bss : 0x40b1cde0 - 0x40b4db4c ( 196 kB)
Preemptible hierarchical RCU implementation.
Dump stacks of tasks blocking RCU-preempt GP.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
L2C: platform modifies aux control register: 0x00000000 -> 0x02000000
L2C: DT/platform modifies aux control register: 0x00000000 -> 0x02000000
L2C-310 errata 588369 769419 enabled
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 cache controller enabled, 8 ways, 64 kB
L2C-310: CACHE_ID 0x00000000, AUX_CTRL 0x00000000
slcr mapped to 80804000
zynq_clock_init: clkc starts at 80804100
Zynq clock init
sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 1207951633ns
timer #0 at 80806000, irq=43
Console: colour dummy device 80x30
Calibrating delay loop... 2642.73 BogoMIPS (lpj=13213696)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x4165b8 - 0x416610
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated.
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 0
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
zynq_get_revision: no devcfg node found
hw-breakpoint: debug architecture 0x0 unsupported.
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
PTP clock support registered
EDAC MC: Ver: 3.0.0
Switched to clocksource ttc_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
futex hash table entries: 512 (order: 3, 32768 bytes)
jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
msgmni has been set to 2007
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-2364208
dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
xilinx-dma 40400000.dma: include-sg value is 0x0.
xilinx-dma 40400000.dma: include-sg value is 0x0.
xilinx-dma 40400000.dma: xilinx_dma_chan_probe chan->has_sg is 0.
xilinx-dma 40400000.dma: dma_read.offset:0x80880000, value:0x10000.
xilinx-dma 40400000.dma: dma_write.offset:0x80880000, value:0x10004.
xilinx-dma 40400000.dma: dma_read.offset:0x80880000, value:0x10000.
xilinx-dma 40400000.dma: xilinx_dma_chan_probe chan->has_sg is 0.
xilinx-dma 40400000.dma: dma_read.offset:0x80880000, value:0x10000.
xilinx-dma 40400000.dma: dma_write.offset:0x80880000, value:0x10004.
xilinx-dma 40400000.dma: dma_read.offset:0x80880000, value:0x10000.
xilinx-dma 40400000.dma: Probing xilinx axi dma engine...Successful
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 82, base_baud = 992063) is a xuartps
console [ttyPS0] enabled
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
m25p80 spi32766.0: s25fl129p1 (32768 Kbytes)
4 ofpart partitions found on MTD device spi32766.0
Creating 4 MTD partitions on "spi32766.0":
0x000000000000-0x000000500000 : "boot"
0x000000500000-0x000000520000 : "bootenv"
0x000000520000-0x000000fa0000 : "kernel"
0x000000fa0000-0x000001000000 : "spare"
libphy: Fixed MDIO Bus: probed
e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
e1000e: Copyright(c) 1999 - 2014 Intel Corporation.
libphy: XEMACPS mii bus: probed
xemacps e000b000.ethernet: invalid address, use assigned
xemacps e000b000.ethernet: MAC updated 26:83:b7:74:6a:04
xemacps e000b000.ethernet: pdev->id -1, baseaddr 0xe000b000, irq 54
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
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
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
zynq_pm_ioremap: no compatible node found for 'xlnx,zynq-ddrc-1.0'
zynq_pm_late_init: Unable to map DDRC IO memory.
zynq_pm_remap_ocm: no compatible node found for 'xlnx,zynq-ocmc-1.0'
zynq_pm_suspend_init: Unable to map OCM.
Registering SWP/SWPB emulation handler
platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
/opt/pkg/petalinux-v2014.4-final/components/linux-kernel/xlnx-3.17/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Freeing unused kernel memory: 5360K (405a7000 - 40ae3000)
INIT: version 2.88 booting
Creating /dev/flash/* device nodes
random: dd urandom read with 105 bits of entropy available
random: nonblocking pool is initialized
starting Busybox inet Daemon: inetd... done.
update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
Removing any system startup links for run-postinsts ...
/etc/rcS.d/S99run-postinsts
INIT: Entering runlevel: 5
Configuring network interfaces... xemacps e000b000.ethernet: eth0: no PHY found
xemacps e000b000.ethernet: XEMACPS mii bus mii_probe fail.
ifconfig: SIOCSIFFLAGS: No such device or address
Starting portmap daemon...
ps: configmac coming......
Config MAC address.
not match mask.
ps: autoIP......
AutoIP.
AUTOIP: 169.254.103.198.
ps: install myip.ko......
<1>Hello module world.
ps: install mydma.ko......
<1>Hello module world.
ps: install xdma.ko......
ps: dmamonitor start......
ps: vxi11 start......
christine petalinux system has been started.
/etc/init.d/rc: line 56: /etc/rc5.d/S99psinit~: Permission denied
Error config led.
: Bad file descriptor
mount: mounting /dev/mmcblk0p1 on /mnt/usb failed: No such file or directory
Starting tcf-agent: OK
Built with PetaLinux v2014.4 (Yocto 1.7) christine /dev/ttyPS0
christine login: root
Password:
login[860]: root login on 'ttyPS0'
root@christine:~#