[meta-xilinx] microZed using meta-topic
Alan DuBoff
aland at softorchestra.com
Sun Mar 9 00:36:18 PST 2014
On Sat, March 1, 2014 2:19 am, Mike Looijmans wrote:
> There's no micro-zed in the meta-topic layer, but it should not be hard to
add it.
> Copy or create a microzed.conf in the conf/machine directory so you can say
"MACHINE=microzed".
Mike,
I'm getting back to this. I will be working to get the microZed going now...I
started to do the above, and then got distracted with some issues I see on the
microZed, most notably that the USB->serial seems to have issues on my rev.F01
The zedboard has a FTDI USB->serial, but the microZed has a Silicon Image.
I've seen this same problem on both board...
Now, for some good news...your zedboard images work on the microZed 020.
But I did get a kernel panic, see below...
I see some strange stuff in the syslog on the host machine, where the tty
drops and comes back online. Eventually the session seems to hang. I'm not
sure if I can ssh into it, I didn't check that...but the serial console is
locked.
> Create an FPGA design and put it in a repository somewhere. Use this as
"provider" for virtual/xilinx-sdk which is used to build the bootloader.
I'm not sure I understand what you mean here. I have the files for the
microZed and figure I need to add the files to your fpga. I wasn't sure what
chips are on there...I see the analog devices 7511, but not sure what is on
the microZed, I don't see that...the zynq get pretty warm on the 7Z020, it
doesn't have a heat sink on it.
There was also a cf_xcomm_zed directory that I need to look at. For zed you
have, and most have the SDK in them I think...
cf_ad9361_zed
cf_adv7511_zed
cf_imageon_zed
cf_xcomm_zed
I need to figure out what is needed for the 7Z010, maybe it is something as
simple as the QSPI is smaller, I don't know...or a different address for
something.
It is good to see your zedboard images boot on the 7Z020. The hang seems like
the Silicon Labs chipset...
--
Cheers,
Alan
Welcome to minicom 2.6.2
OPTIONS: I18n
Compiled on Feb 8 2013, 07:03:03.
Port /dev/ttyUSB0, 22:34:16
Press CTRL-A Z for help on special keys
3122472 bytes read in 302 ms (9.9 MiB/s)
reading devicetree.dtb
10650 bytes read in 16 ms (649.4 KiB/s)
Booting...
## Booting kernel from Legacy Image at 000079c0 ...
Image Name: Linux-3.12.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3122408 Bytes = 3 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 1fb5e000, end 1fb63999 ... OK
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 3.12.0 (aland at eagle.traditionaltoolworks.com) (gcc version 4.8.1
(GCC) ) #1 SMP PREEMPT Sat Feb 22 02:41:48 PST 2014
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Xilinx Zynq Platform, model: Xilinx Zynq ZED
cma: CMA: reserved 40 MiB at 1d000000
Memory policy: Data cache writealloc
PERCPU: Embedded 8 pages/cpu @c097e000 s8768 r8192 d15808 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw
rootfstype=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: 473028K/524288K available (3776K kernel code, 182K rwdata, 1324K
rodata, 156K init, 112K bss, 51260K reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0503348 (5101 kB)
.init : 0xc0504000 - 0xc052b240 ( 157 kB)
.data : 0xc052c000 - 0xc0559800 ( 182 kB)
.bss : 0xc055980c - 0xc05758a8 ( 113 kB)
Preemptible hierarchical RCU implementation.
Dump stacks of tasks blocking RCU-preempt GP.
NR_IRQS:16 nr_irqs:16 16
slcr mapped to e0802000
Zynq clock init
sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 1207ms timer #0
at e0804000, irq=43
Console: colour dummy device 80x30
Calibrating delay loop... 1319.93 BogoMIPS (lpj=659968)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc0393d68 - 0xc0393dc0
L310 cache controller enabled
l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x72360000, Cache size: 512 kB
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 4
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_gpio e000a000.gpio: gpio at 0xe000a000 mapped to 0xe080e000
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
bio: create slab <bio-0> at 0
SCSI subsystem initialized
xqspips e000d000.qspi: master is unqueued, this is deprecated
xqspips e000d000.qspi: at 0xE000D000 mapped to 0xE0810000, irq=51
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource ttc_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
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
fuse init (API version 7.22)
msgmni has been set to 1003
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
dma-pl330 f8003000.ps7-dma: Loaded driver for PL330 DMAC-2364208
dma-pl330 f8003000.ps7-dma: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4
Num_Events-16
e0001000.uart: ttyPS0 at MMIO 0xe0001000 (irq = 82, base_baud = 3124999) is a
xuartps
console [ttyPS0] enabled
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to e0816000
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
m25p80 spi32766.0: found s25fl129p1, expected s25fl256s1
m25p80 spi32766.0: s25fl129p1 (16384 Kbytes)
6 ofpart partitions found on MTD device spi32766.0
Creating 6 MTD partitions on "spi32766.0":
0x000000000000-0x000000010000 : "qspi-u-boot-spl"
0x000000010000-0x000000060000 : "qspi-u-boot-img"
0x000000060000-0x000000070000 : "qspi-u-boot-env"
0x000000070000-0x000000080000 : "qspi-device-tree"
0x000000080000-0x000000480000 : "qspi-linux"
0x000000480000-0x000002000000 : "qspi-rootfs"
mtd: partition "qspi-rootfs" extends beyond the end of device "spi32766.0" --
size truncated to 0xb80000
libphy: XEMACPS mii bus: probed
xemacps e000b000.eth: pdev->id -1, baseaddr 0xe000b000, irq 54
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
xusbps-dr e0002000.usb: Unable to init USB phy, missing?
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
xadcps f8007100.xadc: enabled: yes reference: internal
zynq_wdt f8005000.swdt: Xilinx Watchdog Timer at e081e000 with timeout 10s
zynq-edac f8006000.ps7-ddrc: ecc not enabled
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: no vqmmc regulator found
mmc0: no vmmc regulator found
mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA usbcore:
registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
top - 14:54:22 up 2 min, 1 user, load average: 0.14, 0.10, 0.05
Tasks: 50 total, 1 running, 49 sleeping, 0 stopped, 0 zombie Cpu(s):
0.0%us, 0.2%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem:
514144k total, 25880k used, 488264k free, 3916k buffers Swap:
0k total, 0k used, 0k free, 10616k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 772 root
20 0 2208 1024 860 R 0 0.2 0:00.04 top
1 root 20 0 1692 572 520 S 0 0.1 0:00.66 init
2 root 20 0 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root
20 0 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0 4 root 20
0 0 0 0 S 0 0.0 0:00.00 kworker/0:0 5 root 0 -20
0 0 0 S 0 0.0 0:00.00 kworker/0:0H 6 root 20 0 0
0 0 S 0 0.0 0:00.04 kworker/u4:0 7 root RT 0 0 0
0 S 0 0.0 0:00.00 migration/0 8 root 20 0 0 0 0 S
0 0.0 0:00.02 rcu_preempt 9 root 20 0 0 0 0 S 0
0.0 0:00.00 rcu_bh
10 root 20 0 0 0 0 S 0 0.0 0:00.00 rcu_sched 11 root
RT 0 0 0 0 S 0 0.0 0:00.00 migration/1 12 root
20 0 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1 13 root 20
0 0 0 0 S 0 0.0 0:00.00 kworker/1:0 14 root 0 -20
0 0 0 S 0 0.0 0:00.00 kworker/1:0H 15 root 0 -20 0
0 0 S 0 0.0 0:00.00 khelper 16 root 20 0 0 0 0 S
0 0.0 0:00.00 kdevtmpfs
root at zedboard:/www/pages#
root at zedboard:/www/pages# ls
dav index.html
root at zedboard:/www/pages# cd /
root at zedboard:/# ls
bin dev home lost+found mnt run sys usr www
boot etc lib media proc sbin tmp var
root at zedboard:/# python -V
Python 2.7.3
root at zedboard:/# which python
/usr/bin/python
root at zedboard:/# /usr/bin/python
python python2 python2.7
python-config python2-config python2.7-config
root at zedboard:/# df -kha
Filesystem Size Used Avail Use% Mounted on
rootfs 15G 106M 14G 1% /
/dev/root 15G 106M 14G 1% /
devtmpfs 231M 0 231M 0% /dev
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
debugfs 0 0 0 - /sys/kernel/debug
tmpfs 252M 160K 251M 1% /run
tmpfs 252M 60K 251M 1% /var/volatile
devpts 0 0 0 - /dev/pts
root at zedboard:/# Internal error: Oops - undefined instruction: 0 [#1] PREEMPT
SMP ARM
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.12.0 #1
task: c0536b10 ti: c052c000 task.ti: c052c000
PC is at psaux_mouse+0x18/0x24
LR is at call_timer_fn.isra.29+0x20/0x80
pc : [<c0550214>] lr : [<c0028584>] psr: 60000113
sp : c052de60 ip : 00455000 fp : 00200200
r10: 00000000 r9 : c055ab94 r8 : c0550018
r7 : c0550018 r6 : c052c020 r5 : c052c000 r4 : 00000101
r3 : c052de60 r2 : c052de80 r1 : 00000000 r0 : 00000000
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel Control:
18c5387d Table: 1c59804a DAC: 00000015
Process swapper/0 (pid: 0, stack limit = 0xc052c240)
Stack: (0xc052de60 to 0xc052e000)
de60: c0550018 00000000 c055a380 c052de80 00000000 c0550018 c052e0c0 c0028768
de80: c052de80 c052de80 00000004 00000041 c052e088 c052c000 0000000a 3fad1f7c
dea0: 00200000 00005e90 00000101 c00221f4 c05346a0 dcc06780 c0542838 00000004
dec0: 00000001 00000000 c0552354 60000193 c0529eb8 00000000 c052df54 c0552354
dee0: c0552354 c0570a38 00000000 c0022374 c052c038 c00225ec 0000001d c000e408
df00: f8f00100 c052df20 c05347d4 c00084a0 c02b0a6c 60000013 ffffffff c0011580
df20: c052df68 0000004b 7c2f334b 0000004b 7c200342 0000004b 00000000 c097f090
df40: c0552354 c0552354 c0570a38 00000000 0000000f c052df68 c00563f4 c02b0a6c
df60: 60000013 ffffffff 7c2f334b 0000004b 00000000 c097f090 c052c000 c097f090
df80: 00000000 00000000 c0552354 c0570a38 00000000 c02b0bd4 c052c000 c052c000
dfa0: ffffffff c05225dc c097b840 413fc090 00000000 c000e6a8 0007a6a2 c004ff68
dfc0: c0398398 c0504980 ffffffff ffffffff c05044e4 00000000 00000000 c05225dc
dfe0: 18c5387d c05343c0 c05225d8 c0537b98 0000406a 00008070 00000000 00000000
[<c0028584>] (call_timer_fn.isra.29+0x20/0x80) from [<c0028768>]
(run_timer_softirq+0x184/0x1b4)
[<c0028768>] (run_timer_softirq+0x184/0x1b4) from [<c00221f4>]
(__do_softirq+0xec/0x1d4)
[<c00221f4>] (__do_softirq+0xec/0x1d4) from [<c0022374>]
(do_softirq+0x48/0x54)
[<c0022374>] (do_softirq+0x48/0x54) from [<c00225ec>] (irq_exit+0x84/0xdc)
[<c00225ec>] (irq_exit+0x84/0xdc) from [<c000e408>] (handle_IRQ+0x6c/0x90)
[<c000e408>] (handle_IRQ+0x6c/0x90) from [<c00084a0>]
(gic_handle_irq+0x3c/0x60)
[<c00084a0>] (gic_handle_irq+0x3c/0x60) from [<c0011580>]
(__irq_svc+0x40/0x70)
Exception stack(0xc052df20 to 0xc052df68)
df20: c052df68 0000004b 7c2f334b 0000004b 7c200342 0000004b 00000000 c097f090
df40: c0552354 c0552354 c0570a38 00000000 0000000f c052df68 c00563f4 c02b0a6c
df60: 60000013 ffffffff
[<c0011580>] (__irq_svc+0x40/0x70) from [<c02b0a6c>]
(cpuidle_enter_state+0x50/0xd8)
[<c02b0a6c>] (cpuidle_enter_state+0x50/0xd8) from [<c02b0bd4>]
(cpuidle_idle_call+0xe0/0x144)
[<c02b0bd4>] (cpuidle_idle_call+0xe0/0x144) from [<c000e6a8>]
(arch_cpu_idle+0x8/0x38)
[<c000e6a8>] (arch_cpu_idle+0x8/0x38) from [<c004ff68>]
(cpu_startup_entry+0xbc/0x120)
[<c004ff68>] (cpu_startup_entry+0xbc/0x120) from [<c0504980>]
(start_kernel+0x27c/0x2c0)
Code: c03c25d8 c05480a4 c0551168 00000000 (dcd04e00)
---[ end trace c19c1eb6dca9559f ]---
Kernel panic - not syncing: Fatal exception in interrupt
More information about the meta-xilinx
mailing list