cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
7,059 Views
Registered: ‎03-04-2015

xillinux-1.3 not booting

Hello,

 

I am trying to run xillinux-1.3 on a custom board centered around xc7z045fbg676-1 SOC. I have disabled all the GPIOs and OLED in the constraints file and also the corresponding pins and ports in the design files. The problem is simple the design synthesizes and I am able to generate bitstream without any errors. On switching on the board it successfully mounts the rootfile system and then internal errors occur. (Internal error: Oops: 5 [#1] PREEMPT SMP ARM).

 

I am changing a few parameters in my processor configuration and hence I have to regenerate BOOT.bin and update the bitfile in the boot folder. However the boot folder in the SD card image is only 16MB and my design is crossing that so I manually partitioned my SD card and copied the boot files and root file system using rsync with -a --progress as flags. The FPGA is getting configured but the kernel panic is happening.

 

One more important observation is that if I disable every IP except xillyvga, from the block design and all the HDL Source codes, the processor is booting, VGA is working fine and I am able to use the commandline interface on a monitor (which suggests my design is working fine). Startx is not working however and the errors propping up are more or less as listed below. Any advice will be very much useful. 

 

MMC:   zynq_sdhci: 0
SF: Unsupported manufacturer 00
*** Warning - spi_flash_probe() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0
Device: zynq_sdhci
Manufacturer ID: 3
OEM: 5344
Name: SU08G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.4 GiB
Bus Width: 4-bit
Booting Xillinux...
reading xillydemo.bit
13321509 bytes read in 950 ms (13.4 MiB/s)
  design filename = "xillydemo;UserID=0XFFFFFFFF;Version=2015.2"
  part number = "7z045fbg676"
  date = "2015/09/18"
  time = "19:23:31"
  bytes in bitstream = 13321404
zynq_load: Align buffer at 100069 to 100080(swap 1)
reading uImage
3499448 bytes read in 259 ms (12.9 MiB/s)
reading devicetree.dtb
8109 bytes read in 16 ms (494.1 KiB/s)
## Booting kernel from Legacy Image at 03000000 ...
   Image Name:   Linux-3.12.0-xillinux-1.3
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3499384 Bytes = 3.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 1fb4e000, end 1fb52fac ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.12.0-xillinux-1.3 (eli@ocho.localdomain) (gcc ver                                                                                        sion 4.5.1 (Sourcery G++ Lite 2010.09-62) ) #1 SMP PREEMPT Thu Mar 13 18:39:32 I                                                                                        ST 2014
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructio                                                                                        n cache
[    0.000000] Machine: Xilinx Zynq Platform, model: Xilinx Zynq
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 7 pages/cpu @c0af8000 s7936 r8192 d12544 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                                                                                        es: 130048
[    0.000000] Kernel command line: console=ttyPS0,115200n8 consoleblank=0 root=                                                                                        /dev/mmcblk0p2 rw rootwait earlyprintk
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] allocated 1048576 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memor                                                                                        y cgroups
[    0.000000] Memory: 511536K/524288K available (4631K kernel code, 296K rwdata                                                                                        , 1744K rodata, 199K init, 200K bss, 12752K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0641e24   (6376 kB)
[    0.000000]       .init : 0xc0642000 - 0xc0673f00   ( 200 kB)
[    0.000000]       .data : 0xc0674000 - 0xc06be3c0   ( 297 kB)
[    0.000000]        .bss : 0xc06be3cc - 0xc06f065c   ( 201 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Dump stacks of tasks blocking RCU-preempt GP.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] ps7-slcr mapped to e0802000
[    0.000000] Zynq clock init
[    0.000000] sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 12                                                                                        07ms
[    0.000000] ps7-ttc #0 at e0804000, irq=43
[    0.000000] Console: colour dummy device 80x30
[    0.008718] Calibrating delay loop... 1325.46 BogoMIPS (lpj=6627328)
[    0.045250] pid_max: default: 32768 minimum: 301
[    0.047536] Mount-cache hash table entries: 512
[    0.054614] Initializing cgroup subsys memory
[    0.056347] Initializing cgroup subsys devices
[    0.060641] Initializing cgroup subsys freezer
[    0.065102] Initializing cgroup subsys blkio
[    0.069452] Initializing cgroup subsys perf_event
[    0.074300] CPU: Testing write buffer coherency: ok
[    0.079590] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.084806] Setting up static identity map for 0xc045ffb0 - 0xc0460008
[    0.091534] L310 cache controller enabled
[    0.095367] l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x72360000, Cache siz                                                                                        e: 512 kB
[    0.156581] CPU1: Booted secondary processor
[    0.245239] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.245368] Brought up 2 CPUs
[    0.252870] SMP: Total of 2 processors activated.
[    0.257626] CPU: All CPU(s) started in SVC mode.
[    0.262934] devtmpfs: initialized
[    0.268243] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9                                                                                         rev 4
[    0.274528] regulator-dummy: no parameters
[    0.278104] NET: Registered protocol family 16
[    0.283689] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.294343] zynq_gpio e000a000.ps7-gpio: gpio at 0xe000a000 mapped to 0xe0850                                                                                        000
[    0.301070] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint                                                                                         registers.
[    0.304241] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.310250] zynq_ocm f800c000.ps7-ocmc: ZYNQ OCM pool: 256 KiB @ 0xe0880000
[    0.347943] bio: create slab <bio-0> at 0
[    0.349547] vgaarb: loaded
[    0.350358] SCSI subsystem initialized
[    0.353805] usbcore: registered new interface driver usbfs
[    0.359758] usbcore: registered new interface driver hub
[    0.364127] usbcore: registered new device driver usb
[    0.370412] media: Linux media interface: v0.10
[    0.373675] Linux video capture interface: v2.00
[    0.378744] pps_core: LinuxPPS API ver. 1 registered
[    0.383149] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giome                                                                                        tti <giometti@linux.it>
[    0.392439] PTP clock support registered
[    0.396586] EDAC MC: Ver: 3.0.0
[    0.400715] Advanced Linux Sound Architecture Driver Initialized.
[    0.406834] Switched to clocksource ttc_clocksource
[    0.430096] NET: Registered protocol family 2
[    0.430907] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.436160] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.443330] TCP: Hash tables configured (established 4096 bind 4096)
[    0.449007] TCP: reno registered
[    0.452140] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.458057] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.464601] NET: Registered protocol family 1
[    0.469172] RPC: Registered named UNIX socket transport module.
[    0.474572] RPC: Registered udp transport module.
[    0.479365] RPC: Registered tcp transport module.
[    0.484046] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.491069] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counter                                                                                        s available
[    0.502239] VFS: Disk quotas dquot_6.5.2
[    0.502681] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.509870] NFS: Registering the id_resolver key type
[    0.514220] Key type id_resolver registered
[    0.518386] Key type id_legacy registered
[    0.522422] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.529703] msgmni has been set to 999
[    0.534182] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2                                                                                        49)
[    0.540707] io scheduler noop registered
[    0.544578] io scheduler deadline registered
[    0.548928] io scheduler cfq registered (default)
[    1.587930] Console: switching to colour frame buffer device 128x48
[    1.618896] e0001000.serial: ttyPS0 at[    1.622546] console [ttyPS0] enabled                                                                                        , bootconsole disabled
[    1.622546] console [ttyPS0] enabled, bootconsole disabled
[    1.629034] xdevcfg f8007000.ps7-dev-cfg: ioremap 0xf8007000 to e0864000
[    1.653051] brd: module loaded
[    1.662285] loop: module loaded
[    1.680920] xqspips e000d000.ps7-qspi: master is unqueued, this is deprecated
[    1.688957] m25p80 spi0.0: found mr25h256, expected n25q128
[    1.694468] m25p80 spi0.0: mr25h256 (32 Kbytes)
[    1.699039] 5 ofpart partitions found on MTD device spi0.0
[    1.704440] Creating 5 MTD partitions on "spi0.0":
[    1.709582] 0x000000000000-0x000000100000 : "qspi-fsbl-uboot"
[    1.715241] mtd: partition "qspi-fsbl-uboot" extends beyond the end of device                                                                                         "spi0.0" -- size truncated to 0x8000
[    1.727443] 0x000000100000-0x000000600000 : "qspi-linux"
[    1.732678] mtd: partition "qspi-linux" is out of reach -- disabled
[    1.740383] 0x000000600000-0x000000620000 : "qspi-device-tree"
[    1.746133] mtd: partition "qspi-device-tree" is out of reach -- disabled
[    1.754299] 0x000000620000-0x000000c00000 : "qspi-rootfs"
[    1.759663] mtd: partition "qspi-rootfs" is out of reach -- disabled
[    1.767422] 0x000000c00000-0x000001000000 : "qspi-bitstream"
[    1.772989] mtd: partition "qspi-bitstream" is out of reach -- disabled
[    1.781062] xqspips e000d000.ps7-qspi: at 0xE000D000 mapped to 0xE0866000, ir                                                                                        q=51
[    1.791329] libphy: Fixed MDIO Bus: probed
[    1.797909] libphy: XEMACPS mii bus: probed
[    1.802296] mdio_bus e000b000: cannot get PHY at address 0
[    1.807918] xemacps e000b000.ps7-ethernet: pdev->id -1, baseaddr 0xe000b000,                                                                                         irq 54
[    1.816120] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.822793] ehci-pci: EHCI PCI platform driver
[    1.827769] ULPI transceiver vendor/product ID 0x0424/0x0007
[    1.833336] Found SMSC USB3320 ULPI transceiver.
[    1.837981] ULPI integrity check: passed.
[    1.842276] xusbps-ehci xusbps-ehci.0: Xilinx PS USB EHCI Host Controller
[    1.849132] xusbps-ehci xusbps-ehci.0: new USB bus registered, assigned bus n                                                                                        umber 1
[    1.886900] xusbps-ehci xusbps-ehci.0: irq 53, io mem 0x00000000
[    1.906862] xusbps-ehci xusbps-ehci.0: USB 2.0 started, EHCI 1.00
[    1.914106] hub 1-0:1.0: USB hub found
[    1.917847] hub 1-0:1.0: 1 port detected
[    1.922511] usbcore: registered new interface driver usb-storage
[    1.929515] mousedev: PS/2 mouse device common for all mice
[    1.935671] i2c /dev entries driver
[    1.940113] IR NEC protocol handler initialized
[    1.944574] IR RC5(x) protocol handler initialized
[    1.949385] IR RC6 protocol handler initialized
[    1.953845] IR JVC protocol handler initialized
[    1.958417] IR Sony protocol handler initialized
[    1.962969] IR RC5 (streamzap) protocol handler initialized
[    1.968591] IR SANYO protocol handler initialized
[    1.973218] IR MCE Keyboard/mouse protocol handler initialized
[    1.980148] xadcps f8007100.ps7-xadc: enabled:       yes     reference:     e                                                                                        xternal
[    1.987318] zynq-edac f8006000.ps7-ddrc: ecc not enabled
[    1.992903] sdhci: Secure Digital Host Controller Interface driver
[    1.999023] sdhci: Copyright(c) Pierre Ossman
[    2.003336] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.009234] mmc0: no vqmmc regulator found
[    2.013252] mmc0: no vmmc regulator found
[    2.056900] mmc0: SDHCI controller on e0100000.ps7-sdio [e0100000.ps7-sdio] u                                                                                        sing ADMA
[    2.072567] usbcore: registered new interface driver usbhid
[    2.078097] usbhid: USB HID core driver
[    2.086022] pmodoled-gpio-spi [zed_oled] SPI Probing
[    2.120509] mmc0: new high speed SDHC card at address e624
[    2.126463] mmcblk0: mmc0:e624 SU08G 7.40 GiB
[    2.132619]  mmcblk0: p1 p2
[    2.283081] no UART detected at 0x1
[    2.288186] TCP: cubic registered
[    2.291467] NET: Registered protocol family 15
[    2.295983] Key type dns_resolver registered
[    2.300573] Registering SWP/SWPB emulation handler
[    2.306379] registered taskstats version 1
[    2.311005] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.321567] ALSA device list:
[    2.324461]   No soundcards found.
[    2.334469] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incomp                                                                                        atibilities
[    2.343501] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incomp                                                                                        atibilities
[    2.555545] EXT4-fs (mmcblk0p2): recovery complete
[    2.562273] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. O                                                                                        pts: (null)
[    2.570401] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.577553] devtmpfs: mounted
[    2.580742] Freeing unused kernel memory: 196K (c0642000 - c0673000)
[    7.420898] xemacps e000b000.ps7-ethernet: eth0: no PHY found
[    7.428510] Unable to handle kernel NULL pointer dereference at virtual addre                                                                                        ss 00000260
[    7.433321] xemacps e000b000.ps7-ethernet: XEMACPS mii bus mii_probe fail.
[    7.443404] pgd = c0004000
[    7.446076] [00000260] *pgd=00000000
[    7.449652] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    7.454942] Modules linked in: ipv6 xillybus_of(C+) xillybus_core(C) xillybus                                                                                        _lite_of uio_pdrv_genirq uio ppdev lp parport
[    7.465965] CPU: 0 PID: 789 Comm: upstart-udev-br Tainted: G         C   3.12                                                                                        .0-xillinux-1.3 #1
[    7.474646] task: df75c940 ti: debde000 task.ti: debde000
[    7.480047] PC is at mem_cgroup_zoneinfo+0x4/0x14
[    7.484710] LR is at mem_cgroup_page_lruvec+0x54/0x80
[    7.489742] pc : [<c00ba140>]    lr : [<c00bd36c>]    psr: 200f0193
[    7.489742] sp : debdfda8  ip : 00000000  fp : c06bd740
[    7.501207] r10: 00000000  r9 : de7dc0bc  r8 : 00000004
[    7.506405] r7 : 600f0113  r6 : c067cfe8  r5 : c0ae33c0  r4 : c06bd740
[    7.512911] r3 : 00000000  r2 : 00000000  r1 : 00000098  r0 : 00000000
[    7.519436] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment use                                                                                        r
[    7.526625] Control: 18c5387d  Table: 1e46804a  DAC: 00000015
[    7.532357] Process upstart-udev-br (pid: 789, stack limit = 0xdebde240)
[    7.539048] Stack: (0xdebdfda8 to 0xdebe0000)
[    7.543398] fda0:                   c0ae33c0 c06bd740 c06bd740 c0092844 00000                                                                                        00e 00000000
[    7.551545] fdc0: c070d354 c070e4d4 00000000 de7dc0e0 0000007d 0000000e c070a                                                                                        ca0 0000000e
[    7.559710] fde0: deb5f040 de7dc0e0 debdfee8 c00b2bb8 00000000 de411808 deb6a                                                                                        540 00000001
[    7.567857] fe00: deb6a574 00000001 df600cc0 c00a9480 00000000 c0108b6c deb6a                                                                                        540 00000001
[    7.576023] fe20: 00000000 00000000 ffffffff df5f82c0 00000000 000000a7 00000                                                                                        400 de7dc000
[    7.584188] fe40: 00000001 df75c940 deb6a540 deb6a540 00000000 c00fff9c deb6a                                                                                        540 00000000
[    7.592354] fe60: deb6a540 00000000 df75cc80 c001e93c df75c940 deb6a540 df75c                                                                                        c80 c0023070
[    7.600501] fe80: 0000000b 00000000 df600cc0 0000000b debde000 deb5f544 00000                                                                                        000 deb5f040
[    7.608666] fea0: df600cc0 c0023644 00002710 00106001 debdfefc debde000 deb5f                                                                                        544 c002e034
[    7.616813] fec0: 00000000 debdffb0 00000000 00000000 debde000 00000000 debde                                                                                        000 00000000
[    7.624979] fee0: 00000000 c0010140 debde000 00000005 00000005 00000dbc debdf                                                                                        fb0 0000000b
[    7.633144] ff00: 00000000 00030001 00000dbc debdfd9c 00000000 00000000 beb73                                                                                        b30 00000000
[    7.641291] ff20: 00000000 00000000 00000001 00000000 00000000 00000000 debdf                                                                                        e38 debdfe3c
[    7.649457] ff40: debdfe40 debdfe44 debdfe48 debdfe4c 00000003 00000000 beb73                                                                                        bb0 00000000
[    7.657622] ff60: beb73bb0 beb73b30 00000007 c00d4b04 00000000 00000107 c000d                                                                                        ce4 beb73b00
[    7.665769] ff80: 00000008 debdffb0 000f0010 00000000 beb73bb0 00000000 00000                                                                                        001 c0010738
[    7.673935] ffa0: b6f40100 000f0010 ffffffff c000dba0 00000006 beb73b00 00000                                                                                        001 b6f98278
[    7.682100] ffc0: beb73b00 b6f550a8 beb73b30 beb73bb0 beb73c30 b6f98ce8 00000                                                                                        001 00000000
[    7.690247] ffe0: 00000000 beb73af8 b6f43ec9 b6f40100 000f0010 ffffffff 00000                                                                                        000 00000000
[    7.698431] [<c00ba140>] (mem_cgroup_zoneinfo+0x4/0x14) from [<c00bd36c>] (me                                                                                        m_cgroup_page_lruvec+0x54/0x80)
[    7.708255] [<c00bd36c>] (mem_cgroup_page_lruvec+0x54/0x80) from [<c0092844>]                                                                                         (release_pages+0xe8/0x1e0)
[    7.717693] [<c0092844>] (release_pages+0xe8/0x1e0) from [<c00b2bb8>] (free_p                                                                                        ages_and_swap_cache+0x8c/0x9c)
[    7.727425] [<c00b2bb8>] (free_pages_and_swap_cache+0x8c/0x9c) from [<c00a948                                                                                        0>] (exit_mmap+0x124/0x1e0)
[    7.736899] [<c00a9480>] (exit_mmap+0x124/0x1e0) from [<c001e93c>] (mmput+0x3                                                                                        c/0xdc)
[    7.744603] [<c001e93c>] (mmput+0x3c/0xdc) from [<c0023070>] (do_exit+0x380/0                                                                                        x8a0)
[    7.752142] [<c0023070>] (do_exit+0x380/0x8a0) from [<c0023644>] (do_group_ex                                                                                        it+0x88/0xb4)
[    7.760400] [<c0023644>] (do_group_exit+0x88/0xb4) from [<c002e034>] (get_sig                                                                                        nal_to_deliver+0x4ac/0x4f0)
[    7.769874] [<c002e034>] (get_signal_to_deliver+0x4ac/0x4f0) from [<c0010140>                                                                                        ] (do_signal+0xa8/0x3c4)
[    7.779053] [<c0010140>] (do_signal+0xa8/0x3c4) from [<c0010738>] (do_work_pe                                                                                        nding+0x40/0xa0)
[    7.787569] [<c0010738>] (do_work_pending+0x40/0xa0) from [<c000dba0>] (work_                                                                                        pending+0xc/0x20)
[    7.796158] Code: 03a00000 e12fff1e c067cfe8 e2811098 (e7903101)
[    7.802222] ---[ end trace bb3f73442d21f6a4 ]---
[    7.806830] Fixing recursive fault but reboot is needed!

 

0 Kudos
1 Reply
Highlighted
Adventurer
Adventurer
7,049 Views
Registered: ‎06-10-2014

Re: xillinux-1.3 not booting

Hello,

 

You mentioned that you re-generated boot.bin. That necessarily means that you created your own FSBL.

 

If you used the Vivado suite to get your own FSBL, please re-generate it with XPS. This is how the original FSBL was obtained. Unfortunately, the processor's configuration in Vivado's fileset is accurate enough for setting up the logic correctly, but the FSBL obtained from it is probably faulty.

 

So please download the ISE suite (Embedded Edition, Webpack is fine), run through Xillinux logic part setup on a fresh bundle. Make the changes to the target there (if any) and re-obtain the FSBL using XPS and the SDK that is opened from XPS.

 

You may continue using Vivado for all other purposes related to the project. It's just the FSBL that has to be generated on XPS, as some processor parameters were lost when the project was migrated from XPS to Vivado.

 

All said above holds if you were into Vivado in the first place, of course.

 

Regards,

   Eli

0 Kudos