cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
4,866 Views
Registered: ‎02-17-2017

Kernel hangs at Uncompressing linux kernel on Zynq Platform in Linux version 4.6.0-xilinx-22286-g2152fc6-dirty and U-Boot 2013.04-00028-gf445610

Dear Xilinx Community,

 

Am using the xilinx BSPs for my development activities ie., with linux kernel version of Xilinx ie., 4.6.0-xilinx-22286-g2152fc6-dirty and Uboot version 2013.04-00028-gf445610 , the kernel hangs saying that Uncompressing Linux... done, booting the kernel. I have even enabled the low level debugging for UART1 for Zynq in linux kernel. but still there was no clues why the kernel was hanging

 

Could you please help me in resolving this issue

 

Logs:

====

 

U-Boot 2013.04-00028-gf445610 (Mar 20 2017 - 17:45:46)

I2C:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL512S_256K with page size 64 KiB, total 64 MiB
In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0
zx3-pm3>
zx3-pm3>
zx3-pm3> setenv bootargs console=ttyPS0,115200n8 root=/dev/ram rw earlyprintk                 
zx3-pm3>
zx3-pm3>
zx3-pm3> fatload mmc 0 0x3000000 uImage;fatload mmc 0 0x2A00000 devicetree.dtb;fatload mmc 0 0x2000000 uramdisk.image.gz;bootm 0x3000000 0x2000000 0x2A00000
reading uImage
3535584 bytes read in 640 ms (5.3 MiB/s)
reading devicetree.dtb
10323 bytes read in 18 ms (559.6 KiB/s)
reading uramdisk.image.gz
8556246 bytes read in 1516 ms (5.4 MiB/s)
## Booting kernel from Legacy Image at 03000000 ...
   Image Name:   Linux-4.6.0-xilinx-22286-g2152fc
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3535520 Bytes = 3.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
   Image Name:   
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8556182 Bytes = 8.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02a00000
   Booting using the fdt blob at 0x02a00000
   Loading Kernel Image ... OK
OK
   Loading Ramdisk to 1f30d000, end 1fb35e96 ... OK
   Loading Device Tree to 1f307000, end 1f30c852 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

 

Kindly do the needful as early as possible

Awaiting for your replies

Many Thanks in advance

0 Kudos
Reply
22 Replies
Highlighted
Moderator
Moderator
4,861 Views
Registered: ‎11-09-2015

Hi @srinivasan,

 

How did you build the kernel? Which cross compile toolchain did you use?

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Explorer
Explorer
4,848 Views
Registered: ‎02-17-2017

make ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- menuconfig

make ARCH=arm UIMAGE_LOADADDR=0x8000 uImage CROSS_COMPILE=arm-xilinx-linux-gnueabi- -j9

0 Kudos
Reply
Highlighted
Moderator
Moderator
4,844 Views
Registered: ‎11-09-2015

Hi @srinivasan,

 

It looks fine. And did you load the default configuration for zynq?

 

make ARCH=arm xilinx_zynq_defconfig

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Explorer
Explorer
4,836 Views
Registered: ‎02-17-2017

I have attached my custom .config for your reference in the above post, please verify and let me know, If am I missing anything wrong?

0 Kudos
Reply
Highlighted
Moderator
Moderator
4,827 Views
Registered: ‎11-09-2015

HI @srinivasan,

 

I see this missing:

CONFIG_CPU_IDLE=y
CONFIG_ARM_ZYNQ_CPUIDLE=y

 

However to be honest I don't know if this is needed.

 

But starting with the default configuration for zynq is the best way to narrow down the issue. So could you try to use zynq default configuration?

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Explorer
Explorer
4,819 Views
Registered: ‎02-17-2017

Its stuck before itself ie., before uncompressing linux kernel with xilinx_zynq_defconfig


U-Boot 2013.04-00028-gf445610 (Mar 20 2017 - 17:45:46)

I2C: ready
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: 512 MiB
MMC: zynq_sdhci: 0
SF: Detected S25FL512S_256K with page size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: Gem.e000b000
Hit any key to stop autoboot: 0
Copying Linux from SD to RAM...
Device: zynq_sdhci
Manufacturer ID: 82
OEM: 4a54
Name: NCard
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 4-bit
reading uImage
3720496 bytes read in 720 ms (4.9 MiB/s)
reading devicetree.dtb
10758 bytes read in 16 ms (656.3 KiB/s)
reading uramdisk.image.gz
8552124 bytes read in 1621 ms (5 MiB/s)
## Booting kernel from Legacy Image at 03000000 ...
Image Name: Linux-4.6.0-xilinx-22286-g2152fc
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3720432 Bytes = 3.5 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
Image Name:
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 8552060 Bytes = 8.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02a00000
Booting using the fdt blob at 0x02a00000
Loading Kernel Image ... OK
OK
Loading Ramdisk to 1f30e000, end 1fb35e7c ... OK
Loading Device Tree to 1f308000, end 1f30da05 ... OK

Starting kernel ...
0 Kudos
Reply
Highlighted
Moderator
Moderator
4,805 Views
Registered: ‎11-09-2015

Hi @srinivasan,

 

You can try to run the u-boot command one by one (enter u-boot).

 

Start with "printenv bootcmd". It should run modeboot. So print the command modeboot: "printenv modeboot"

Then follow all the commands. The most interesting one will be the bootm. See where it hangs.

 

You could have an issue with the addresses. Be sure you are not overwritting data and that you have enough space for the kernel.

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Explorer
Explorer
4,801 Views
Registered: ‎02-17-2017

 

I have used my custom .config  in which I have enabled

 

CONFIG_CPU_IDLE=y
CONFIG_ARM_ZYNQ_CPUIDLE=y

 

I tried changing the RAM addresses as below, once in a while it booted and again then it hangs at same point, am using a RAM size of 512MB

 

Could you please suggest some other RAM addresses for DT, linux kernel and uramdisk??

 

TRY1

 

zx3-pm3>
zx3-pm3> printenv modeboot
modeboot=sdboot
zx3-pm3> printenv sdboot
sdboot=echo Copying Linux from SD to RAM...;mmcinfo;fatload mmc 0 0x3000000 ${kernel_image};fatload mmc 0 0x2A00000 ${devicetree_image};fatload mmc 0 0x2000000 ${ramdisk_image};bootm 0x3000000 0x2000000 0x
2A00000
zx3-pm3> boot
Copying Linux from SD to RAM...
Device: zynq_sdhci
Manufacturer ID: 82
OEM: 4a54
Name: NCard
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 4-bit
reading uImage
3534536 bytes read in 682 ms (4.9 MiB/s)
reading devicetree.dtb
10758 bytes read in 16 ms (656.3 KiB/s)
reading uramdisk.image.gz
8552124 bytes read in 1619 ms (5 MiB/s)
## Booting kernel from Legacy Image at 03000000 ...
   Image Name:   Linux-4.6.0-xilinx-22286-g2152fc
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3534472 Bytes = 3.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
   Image Name:   
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8552060 Bytes = 8.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02a00000
   Booting using the fdt blob at 0x02a00000
   Loading Kernel Image ... OK
OK
   Loading Ramdisk to 1f30e000, end 1fb35e7c ... OK
   Loading Device Tree to 1f308000, end 1f30da05 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

TRY2


U-Boot 2013.04-00028-gf445610 (Mar 20 2017 - 17:45:46)

I2C:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL512S_256K with page size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0
zx3-pm3>
zx3-pm3>
zx3-pm3> setenv bootargs console=ttyPS0,115200n8 root=/dev/ram rw earlyprintk
zx3-pm3> fatload mmc 0 0x6000000 uImage;
reading uImage
3534536 bytes read in 683 ms (4.9 MiB/s)
zx3-pm3> fatload mmc 0 0x6600000 devicetree.dtb
reading devicetree.dtb
10758 bytes read in 16 ms (656.3 KiB/s)
zx3-pm3> bootm 0x6000000 - 0x6600000
## Booting kernel from Legacy Image at 06000000 ...
   Image Name:   Linux-4.6.0-xilinx-22286-g2152fc
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3534472 Bytes = 3.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 06600000
   Booting using the fdt blob at 0x06600000
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 1fb31000, end 1fb36a05 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
init/main.c:477 set_task_stack_end_magic(&init_task);
init/main.c:479 smp_setup_processor_id();
Booting Linux on physical CPU 0x0
init/main.c:481 debug_objects_early_init();
init/main.c:487 boot_init_stack_canary();
init/main.c:490 cgroup_init_early();
init/main.c:493 local_irq_disable();
init/main.c:495 early_boot_irqs_disabled = true;
init/main.c:504 boot_cpu_init();
init/main.c:506 page_address_init();
Linux version 4.6.0-xilinx-22286-g2152fc6-dirty (n008@n008-ThinkPad-L460) (gcc version 4.9.1 (Sourcery CodeBench Lite 2014.11-30) ) #0 SMP PREEMPT Tue Jul 18 16:32:01 CEST 2017
init/main.c:510 setup_arch(&command_line);
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: PTG Mars ZX3
bootconsole [earlycon0] enabled
Memory policy: Data cache writealloc
init/main.c:512 mm_init_owner(&init_mm, &init_task);
init/main.c:516 setup_command_line(command_line);
init/main.c:518 setup_nr_cpu_ids();
init/main.c:520 setup_per_cpu_areas();
percpu: Embedded 12 pages/cpu @dfbd4000 s19584 r8192 d21376 u49152
init/main.c:522 smp_prepare_boot_cpu();
init/main.c:524 build_all_zonelists(NULL, NULL);
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
init/main.c:526 page_alloc_init();
Kernel command line: console=ttyPS0,115200n8 root=/dev/ram rw earlyprintk
init/main.c:541 setup_log_buf(0);
init/main.c:543 pidhash_init();
PID hash table entries: 2048 (order: 1, 8192 bytes)
init/main.c:545 vfs_caches_init_early();
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
init/main.c:547 sort_main_extable();
init/main.c:549 trap_init();
init/main.c:551 mm_init();
Memory: 510960K/524288K available (5282K kernel code, 234K rwdata, 1624K rodata, 1024K init, 189K bss, 13328K reserved, 0K 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 - 0xc07be8e4   (7899 kB)
      .init : 0xc0800000 - 0xc0900000   (1024 kB)
      .data : 0xc0900000 - 0xc093a838   ( 235 kB)
       .bss : 0xc093a838 - 0xc0969fa0   ( 190 kB)
init/main.c:570 idr_init_cache();
init/main.c:574 rcu_init();
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
init/main.c:576 radix_tree_init();
init/main.c:579 early_irq_init();
NR_IRQS:16 nr_irqs:16 16
init/main.c:581 init_IRQ();
ps7-slcr mapped to e0800000
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
init/main.c:583 init_timers();
init/main.c:585 hrtimers_init();
init/main.c:587 softirq_init();
init/main.c:589 timekeeping_init();
init/main.c:591 time_init();
zynq_clock_init: clkc starts at e0800100
Zynq clock init
arch/arm/mach-zynq/timer.c:301 clk_get_rate = 111111110
clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 603975816ns
ps7-ttc #0 at e0808000, irq=17
init/main.c:593 profile_init();
init/main.c:595 call_function_init();
init/main.c:601 local_irq_enable();
init/main.c:604 kmem_cache_init_late();
Console: colour dummy device 80x30
init/main.c:616 lockdep_info();
init/main.c:636 page_ext_init();
init/main.c:638 debug_objects_mem_init();
init/main.c:640 kmemleak_init();
init/main.c:642 setup_per_cpu_pageset();
init/main.c:644 numa_policy_init();
init/main.c:648 sched_clock_init();
init/main.c:650 calibrate_delay();
Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
init/main.c:652 pidmap_init();
pid_max: default: 32768 minimum: 301
init/main.c:654 anon_vma_init();
init/main.c:660 thread_info_cache_init();
init/main.c:662 cred_init();
init/main.c:664 fork_init();
init/main.c:666 proc_caches_init();
init/main.c:668 buffer_init();
init/main.c:670 key_init();
init/main.c:672 security_init();
init/main.c:674 dbg_late_init();
init/main.c:676 vfs_caches_init(totalram_pages);
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
init/main.c:678 signals_init();
init/main.c:685 cpuset_init();
init/main.c:687 cgroup_init();
init/main.c:689 taskstats_init_early();
init/main.c:691 delayacct_init();
init/main.c:694 check_bugs();
CPU: Testing write buffer coherency: ok
init/main.c:698 sfi_init_late();
init/main.c:706 ftrace_init();
init/main.c:710 rest_init();
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x100000 - 0x100034
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (2664.03 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 menu
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
GPIO IRQ not connected
XGpio: /amba@0/gpio@41200000: registered, base is 898
GPIO IRQ not connected
XGpio: /amba@0/gpio@41240000: registered, base is 890
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 <giometti@linux.it>
PTP clock support registered
FPGA manager framework
clocksource: Switched to clocksource ttc_clocksource
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
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.
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
futex hash table entries: 512 (order: 3, 32768 bytes)
workingset: timestamp_bits=28 max_order=17 bucket_order=0
fuse init (API version 7.24)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
dma-pl330 f8003000.ps7-dma: Loaded driver for PL330 DMAC-241330
dma-pl330 f8003000.ps7-dma:     DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 161, base_baud = 6249999) is a xuartps
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 162, base_baud = 6249999) is a xuartps
�console [ttyPS0] enabled
console [ttyPS0] enabled
bootconsole [earlycon0] disabled
bootconsole [earlycon0] disabled
xdevcfg f8007000.ps7-dev-cfg: ioremap 0xf8007000 to e085e000
brd: module loaded
loop: module loaded
spidev spi0.0: buggy DT: spidev listed directly in DT
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at drivers/spi/spidev.c:719 spidev_probe+0x18c/0x1d0
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.6.0-xilinx-22286-g2152fc6-dirty #0
Hardware name: Xilinx Zynq Platform
[<c010ec68>] (unwind_backtrace) from [<c010af54>] (show_stack+0x10/0x14)
[<c010af54>] (show_stack) from [<c0302e08>] (dump_stack+0x80/0xa0)
[<c0302e08>] (dump_stack) from [<c011af78>] (__warn+0xcc/0xfc)
[<c011af78>] (__warn) from [<c011b04c>] (warn_slowpath_null+0x1c/0x24)
[<c011b04c>] (warn_slowpath_null) from [<c03d7494>] (spidev_probe+0x18c/0x1d0)
[<c03d7494>] (spidev_probe) from [<c03d4abc>] (spi_drv_probe+0x84/0xa0)
[<c03d4abc>] (spi_drv_probe) from [<c037e7a0>] (driver_probe_device+0x1cc/0x40c)
[<c037e7a0>] (driver_probe_device) from [<c037cbd0>] (bus_for_each_drv+0x84/0x94)
[<c037cbd0>] (bus_for_each_drv) from [<c037e4dc>] (__device_attach+0x88/0x128)
[<c037e4dc>] (__device_attach) from [<c037d9bc>] (bus_probe_device+0x28/0x80)
[<c037d9bc>] (bus_probe_device) from [<c037bec8>] (device_add+0x434/0x560)
[<c037bec8>] (device_add) from [<c03d6780>] (spi_add_device+0xd0/0x160)
[<c03d6780>] (spi_add_device) from [<c03d6f1c>] (spi_register_master+0x61c/0x73c)
[<c03d6f1c>] (spi_register_master) from [<c03d8d14>] (cdns_spi_probe+0x2a4/0x320)
[<c03d8d14>] (cdns_spi_probe) from [<c037ffec>] (platform_drv_probe+0x50/0xa0)
[<c037ffec>] (platform_drv_probe) from [<c037e7a0>] (driver_probe_device+0x1cc/0x40c)
[<c037e7a0>] (driver_probe_device) from [<c037eab0>] (__driver_attach+0xd0/0x104)
[<c037eab0>] (__driver_attach) from [<c037cb14>] (bus_for_each_dev+0x6c/0x90)
[<c037cb14>] (bus_for_each_dev) from [<c037dc48>] (bus_add_driver+0x110/0x23c)
[<c037dc48>] (bus_add_driver) from [<c037f11c>] (driver_register+0x9c/0xe0)
[<c037f11c>] (driver_register) from [<c01017b4>] (do_one_initcall+0x114/0x1cc)
[<c01017b4>] (do_one_initcall) from [<c080107c>] (kernel_init_freeable+0x120/0x1e8)
[<c080107c>] (kernel_init_freeable) from [<c0579cfc>] (kernel_init+0x8/0x110)
[<c0579cfc>] (kernel_init) from [<c0107838>] (ret_from_fork+0x14/0x3c)
---[ end trace c2502854266bac5b ]---
spidev spi1.0: buggy DT: spidev listed directly in DT
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at drivers/spi/spidev.c:719 spidev_probe+0x18c/0x1d0
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W       4.6.0-xilinx-22286-g2152fc6-dirty #0
Hardware name: Xilinx Zynq Platform
[<c010ec68>] (unwind_backtrace) from [<c010af54>] (show_stack+0x10/0x14)
[<c010af54>] (show_stack) from [<c0302e08>] (dump_stack+0x80/0xa0)
[<c0302e08>] (dump_stack) from [<c011af78>] (__warn+0xcc/0xfc)
[<c011af78>] (__warn) from [<c011b04c>] (warn_slowpath_null+0x1c/0x24)
[<c011b04c>] (warn_slowpath_null) from [<c03d7494>] (spidev_probe+0x18c/0x1d0)
[<c03d7494>] (spidev_probe) from [<c03d4abc>] (spi_drv_probe+0x84/0xa0)
[<c03d4abc>] (spi_drv_probe) from [<c037e7a0>] (driver_probe_device+0x1cc/0x40c)
[<c037e7a0>] (driver_probe_device) from [<c037cbd0>] (bus_for_each_drv+0x84/0x94)
[<c037cbd0>] (bus_for_each_drv) from [<c037e4dc>] (__device_attach+0x88/0x128)
[<c037e4dc>] (__device_attach) from [<c037d9bc>] (bus_probe_device+0x28/0x80)
[<c037d9bc>] (bus_probe_device) from [<c037bec8>] (device_add+0x434/0x560)
[<c037bec8>] (device_add) from [<c03d6780>] (spi_add_device+0xd0/0x160)
[<c03d6780>] (spi_add_device) from [<c03d6f1c>] (spi_register_master+0x61c/0x73c)
[<c03d6f1c>] (spi_register_master) from [<c03d8d14>] (cdns_spi_probe+0x2a4/0x320)
[<c03d8d14>] (cdns_spi_probe) from [<c037ffec>] (platform_drv_probe+0x50/0xa0)
[<c037ffec>] (platform_drv_probe) from [<c037e7a0>] (driver_probe_device+0x1cc/0x40c)
[<c037e7a0>] (driver_probe_device) from [<c037eab0>] (__driver_attach+0xd0/0x104)
[<c037eab0>] (__driver_attach) from [<c037cb14>] (bus_for_each_dev+0x6c/0x90)
[<c037cb14>] (bus_for_each_dev) from [<c037dc48>] (bus_add_driver+0x110/0x23c)
[<c037dc48>] (bus_add_driver) from [<c037f11c>] (driver_register+0x9c/0xe0)
[<c037f11c>] (driver_register) from [<c01017b4>] (do_one_initcall+0x114/0x1cc)
[<c01017b4>] (do_one_initcall) from [<c080107c>] (kernel_init_freeable+0x120/0x1e8)
[<c080107c>] (kernel_init_freeable) from [<c0579cfc>] (kernel_init+0x8/0x110)
[<c0579cfc>] (kernel_init) from [<c0107838>] (ret_from_fork+0x14/0x3c)
---[ end trace c2502854266bac5c ]---
spidev spi32766.0: buggy DT: spidev listed directly in DT
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at drivers/spi/spidev.c:719 spidev_probe+0x18c/0x1d0
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W       4.6.0-xilinx-22286-g2152fc6-dirty #0
Hardware name: Xilinx Zynq Platform
[<c010ec68>] (unwind_backtrace) from [<c010af54>] (show_stack+0x10/0x14)
[<c010af54>] (show_stack) from [<c0302e08>] (dump_stack+0x80/0xa0)
[<c0302e08>] (dump_stack) from [<c011af78>] (__warn+0xcc/0xfc)
[<c011af78>] (__warn) from [<c011b04c>] (warn_slowpath_null+0x1c/0x24)
[<c011b04c>] (warn_slowpath_null) from [<c03d7494>] (spidev_probe+0x18c/0x1d0)
[<c03d7494>] (spidev_probe) from [<c03d4abc>] (spi_drv_probe+0x84/0xa0)
[<c03d4abc>] (spi_drv_probe) from [<c037e7a0>] (driver_probe_device+0x1cc/0x40c)
[<c037e7a0>] (driver_probe_device) from [<c037cbd0>] (bus_for_each_drv+0x84/0x94)
[<c037cbd0>] (bus_for_each_drv) from [<c037e4dc>] (__device_attach+0x88/0x128)
[<c037e4dc>] (__device_attach) from [<c037d9bc>] (bus_probe_device+0x28/0x80)
[<c037d9bc>] (bus_probe_device) from [<c037bec8>] (device_add+0x434/0x560)
[<c037bec8>] (device_add) from [<c03d6780>] (spi_add_device+0xd0/0x160)
[<c03d6780>] (spi_add_device) from [<c03d6f1c>] (spi_register_master+0x61c/0x73c)
[<c03d6f1c>] (spi_register_master) from [<c03d8700>] (spi_bitbang_start+0xe0/0x120)
[<c03d8700>] (spi_bitbang_start) from [<c03d9988>] (spi_gpio_probe+0x3a8/0x464)
[<c03d9988>] (spi_gpio_probe) from [<c037ffec>] (platform_drv_probe+0x50/0xa0)
[<c037ffec>] (platform_drv_probe) from [<c037e7a0>] (driver_probe_device+0x1cc/0x40c)
[<c037e7a0>] (driver_probe_device) from [<c037eab0>] (__driver_attach+0xd0/0x104)
[<c037eab0>] (__driver_attach) from [<c037cb14>] (bus_for_each_dev+0x6c/0x90)
[<c037cb14>] (bus_for_each_dev) from [<c037dc48>] (bus_add_driver+0x110/0x23c)
[<c037dc48>] (bus_add_driver) from [<c037f11c>] (driver_register+0x9c/0xe0)
[<c037f11c>] (driver_register) from [<c01017b4>] (do_one_initcall+0x114/0x1cc)
[<c01017b4>] (do_one_initcall) from [<c080107c>] (kernel_init_freeable+0x120/0x1e8)
[<c080107c>] (kernel_init_freeable) from [<c0579cfc>] (kernel_init+0x8/0x110)
[<c0579cfc>] (kernel_init) from [<c0107838>] (ret_from_fork+0x14/0x3c)
---[ end trace c2502854266bac5d ]---
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
libphy: XEMACPS mii bus: probed
[Firmware Warn]: /amba@0/ps7-ethernet@e000b000/mdio/phy@3: Whitelisted compatible string. Please remove
xemacps e000b000.ps7-ethernet: pdev->id -1, baseaddr 0xe000b000, irq 30
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
cdns-i2c e0004000.ps7-i2c: 100 kHz mmio e0004000 irq 150
cdns-i2c e0005000.i2c: 100 kHz mmio e0005000 irq 151
softdog: Software Watchdog Timer: 0.08 initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
usbcore: registered new interface driver ushc
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on e0100000.ps7-sdio [e0100000.ps7-sdio] using DMA
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 17
Registering SWP/SWPB emulation handler
hctosys: unable to open rtc device (rtc0)
List of all partitions:
0100           32768 ram0  (driver?)
0101           32768 ram1  (driver?)
0102           32768 ram2  (driver?)
0103           32768 ram3  (driver?)
No filesystem could mount root, tried:  ext3 ext4 ext2 vfat msdos fuseblk
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W       4.6.0-xilinx-22286-g2152fc6-dirty #0
Hardware name: Xilinx Zynq Platform
[<c010ec68>] (unwind_backtrace) from [<c010af54>] (show_stack+0x10/0x14)
[<c010af54>] (show_stack) from [<c0302e08>] (dump_stack+0x80/0xa0)
[<c0302e08>] (dump_stack) from [<c010d180>] (ipi_cpu_stop+0x3c/0x70)
[<c010d180>] (ipi_cpu_stop) from [<c010da1c>] (handle_IPI+0x64/0xac)
[<c010da1c>] (handle_IPI) from [<c01013e4>] (gic_handle_irq+0x74/0x90)
[<c01013e4>] (gic_handle_irq) from [<c010b994>] (__irq_svc+0x54/0x90)
Exception stack(0xc0901f40 to 0xc0901f88)
1f40: 00000000 00000000 c083c140 dfbd8140 00000000 dfbd7540 5dde48fb 00000000
1f60: 5d9648d2 00000000 00000000 00000000 0000000f c0901f90 c0485b84 c0485bcc
1f80: 600f0013 ffffffff
[<c010b994>] (__irq_svc) from [<c0485bcc>] (cpuidle_enter_state+0x170/0x254)
[<c0485bcc>] (cpuidle_enter_state) from [<c014bd58>] (cpu_startup_entry+0x15c/0x1d4)
[<c014bd58>] (cpu_startup_entry) from [<c0800dec>] (start_kernel+0x518/0x688)
[<c0800dec>] (start_kernel) from [<0000807c>] (0x807c)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)

 

TRY3

U-Boot 2013.04-00028-gf445610 (Mar 20 2017 - 17:45:46)

I2C:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL512S_256K with page size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0
zx3-pm3>
zx3-pm3>
zx3-pm3> setenv bootargs console=ttyPS0,115200n8 root=/dev/ram rw earlyprintk
zx3-pm3> fatload mmc 0 0x6000000 uImage;
reading uImage
3534536 bytes read in 681 ms (4.9 MiB/s)
zx3-pm3> fatload mmc 0 0x6600000 devicetree.dtb
reading devicetree.dtb
10758 bytes read in 16 ms (656.3 KiB/s)
zx3-pm3> bootm 0x6000000 - 0x6600000
## Booting kernel from Legacy Image at 06000000 ...
   Image Name:   Linux-4.6.0-xilinx-22286-g2152fc
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3534472 Bytes = 3.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 06600000
   Booting using the fdt blob at 0x06600000
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 1fb31000, end 1fb36a05 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

0 Kudos
Reply
Highlighted
Moderator
Moderator
4,786 Views
Registered: ‎11-09-2015

Hi @srinivasan,

 

On the TRY2 you were able to boot the Linux. You can use these addresses.

In this try you have again an issue with the FileSystem.

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Explorer
Explorer
4,779 Views
Registered: ‎02-17-2017

I tried to use the same addresses as TRY2 for TRY3 as well, once kernel came up and after it got stuck at the same point, am worried more bout the kernel not coming up.

 

If once if kernel comesup fine, then we can look into filesystem issues

 

Could you please let me know why the kernel is failing to come up, even after changing the addresses as TRY2??

0 Kudos
Reply
Highlighted
Moderator
Moderator
4,775 Views
Registered: ‎11-09-2015

Hi @srinivasan,

 

You have exactly the same steps between TRY2 and TRY3? Did you change anything?

 

Could you also try to do the steps for bootm one by one:

bootm start ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address}

bootm loados

bootm prep

bootm go

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Explorer
Explorer
4,748 Views
Registered: ‎02-17-2017

Dear florent,

 

 

 

Sorry I was in vacation so could not reply to you..

 

Thanks a lot for your quick responses

 

a. I haven't changed anything from TRY2 to TRY3

 

b. It is throwing the below errors for the first command of bootm as you stated ie., when I run bootm start ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address}

 

 

1. BOOT1 : Same as TRY2

U-Boot 2013.04-00028-gf445610 (Mar 20 2017 - 17:45:46)

I2C:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL512S_256K with page size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0
zx3-pm3>
zx3-pm3>
zx3-pm3> setenv bootargs console=ttyPS0,115200n8 root=/dev/ram rw earlyprintk
zx3-pm3> fatload mmc 0 0x6000000 uImage;
reading uImage
3534536 bytes read in 682 ms (4.9 MiB/s)
zx3-pm3> fatload mmc 0 0x6600000 devicetree.dtb
reading devicetree.dtb
10758 bytes read in 17 ms (617.2 KiB/s)
zx3-pm3> bootm 0x6000000 - 0x6600000
## Booting kernel from Legacy Image at 06000000 ...
   Image Name:   Linux-4.6.0-xilinx-22286-g2152fc
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3534472 Bytes = 3.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 06600000
   Booting using the fdt blob at 0x06600000
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 1fb31000, end 1fb36a05 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

 


2. BOOT2
U-Boot 2013.04-00028-gf445610 (Mar 20 2017 - 17:45:46)

I2C:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL512S_256K with page size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0
zx3-pm3>
zx3-pm3>
zx3-pm3> bootm start ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address}
Wrong Image Format for bootm command
ERROR: can't get kernel image!
zx3-pm3> setenv bootargs console=ttyPS0,115200n8 root=/dev/ram rw earlyprintk
zx3-pm3> fatload mmc 0 0x6000000 uImage;fatload mmc 0 0x6600000 devicetree.dtb;fatload mmc 0 0x2000000 uramdisk.image.gz;bootm 0x6000000 0x2000000 0x6600000
reading uImage
3534536 bytes read in 684 ms (4.9 MiB/s)
reading devicetree.dtb
10758 bytes read in 16 ms (656.3 KiB/s)
reading uramdisk.image.gz
8552124 bytes read in 1621 ms (5 MiB/s)
## Booting kernel from Legacy Image at 06000000 ...
   Image Name:   Linux-4.6.0-xilinx-22286-g2152fc
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3534472 Bytes = 3.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
   Image Name:   
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8552060 Bytes = 8.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 06600000
   Booting using the fdt blob at 0x06600000
   Loading Kernel Image ... OK
OK
   Loading Ramdisk to 1f30e000, end 1fb35e7c ... OK
   Loading Device Tree to 1f308000, end 1f30da05 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

3. BOOT3
U-Boot 2013.04-00028-gf445610 (Mar 20 2017 - 17:45:46)

I2C:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL512S_256K with page size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0
zx3-pm3>
zx3-pm3>
zx3-pm3> setenv bootargs console=ttyPS0,115200n8 root=/dev/ram rw earlyprintk
zx3-pm3> printenv
baudrate=115200
bootargs=console=ttyPS0,115200n8 root=/dev/ram rw earlyprintk
bootcmd=run $modeboot
bootdelay=3
built_by=aste
devicetree_image=devicetree.dtb
devicetree_size=0x10000
ethact=Gem.e000b000
ethaddr=20:b0:f7:03:8c:5a
fdt_high=0x20000000
initrd_high=0x20000000
jtagboot=echo Booting on TFTP...;tftp 0x3000000 ${kernel_image};tftp 0x2A00000 ${devicetree_image};tftp 0x2000000 ${ramdisk_image};nand device 0;run ramargs;bootm 0x3000000 0x2000000 0x2A00000
kernel_image=uImage
kernel_size=0x2E0000
modeboot=sdboot
mtdids=nand0=nand
mtdparts=mtdparts=nand:5m(nand-linux),1m(nand-device-tree),-(nand-rootfs)
nand_devicetree_size=0x10000
nand_kernel_size=0x500000
nandargs=setenv bootargs console=ttyPS0,115200 root=ubi0:ubi-rootfs rw rootfstype=ubifs ubi.mtd=nand-rootfs ip=:::::eth0:off $othbootargs earlyprintk
prodboot=echo Booting on NAND...;nand device 0;ubi part nand-linux;ubi read 0x3000000 kernel ${nand_kernel_size};ubi part nand-device-tree;ubi read 0x2A00000 dtb ${nand_devicetree_size};run nandargs;bootm0
ramargs=setenv bootargs console=ttyPS0,115200 root=/dev/ram rw ip=:::::eth0:off $othbootargs earlyprintk
ramdisk_image=uramdisk.image.gz
ramdisk_size=0x600000
rescboot=echo Booting on QSPI Flash...;sf probe;sf read 0x3000000 0x00600000 ${kernel_size};sf read 0x2A00000 0x00900000 ${devicetree_size};sf read 0x2000000 0x00A00000 ${ramdisk_size};nand device 0;run r;
sdboot=echo Copying Linux from SD to RAM...;mmcinfo;fatload mmc 0 0x3000000 ${kernel_image};fatload mmc 0 0x2A00000 ${devicetree_image};fatload mmc 0 0x2000000 ${ramdisk_image};bootm 0x3000000 0x2000000 00
stderr=serial
stdin=serial
stdout=serial

Environment size: 1765/131068 bytes
zx3-pm3> bootm start ${kernel_image} ${ramdisk_image} ${devicetree_image}                     
Wrong Image Format for bootm command
ERROR: can't get kernel image!
zx3-pm3>
zx3-pm3> setenv bootargs console=ttyPS0,115200n8 root=/dev/ram rw earlyprintk
zx3-pm3> fatload mmc 0 0x6000000 uImage;fatload mmc 0 0x6600000 devicetree.dtb;fatload mmc 0 0x2000000 uramdisk.image.gz;
reading uImage
3534536 bytes read in 682 ms (4.9 MiB/s)
reading devicetree.dtb
10758 bytes read in 17 ms (617.2 KiB/s)
reading uramdisk.image.gz
8552124 bytes read in 1617 ms (5 MiB/s)
zx3-pm3> bootm start ${kernel_image} ${ramdisk_image} ${devicetree_image}
Wrong Image Format for bootm command
ERROR: can't get kernel image!
zx3-pm3> <INTERRUPT>
zx3-pm3>

 

Could you please continue to support me for this issue in bringingup the linux kernel

Kindly do the needful as early as possible

Many Thanks in advance

 

 

0 Kudos
Reply
Highlighted
Explorer
Explorer
4,735 Views
Registered: ‎02-17-2017

 I tried with Linux version 4.9.0-xilinx-apf-g73402c0-dirty it comes up fine , as all my development activities are being done in Linux version 4.6.0-xilinx-22286-g2152fc6-dirty

 

So I need to bringup Linux version 4.6.0-xilinx-22286-g2152fc6-dirty, I have hereby attached the .config for linux kernel version 4.9.0

 

Could you please compare with the earlier attached .config of 4.6.0 and with the attached.config of 4.9.0 and please let me know what is missing in 4.6.0?

 

 

The below is the logs of 4.9.0, that ok for time being we can ignore rootfs issue in the below logs and could you please let me know what am I missing in the .config of 4.6.0 kernel?

 


U-Boot 2015.07-g38edef3 (May 30 2017 - 07:31:27 +0200)

Model: Enclustra Mars ZX3 SOM
I2C:   ready
DRAM:  ECC disabled 512 MiB
NAND:  512 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL512S_256K with page size 512 Bytes, erase size 256 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Enclustra Mars ZX3 SOM
SF: Detected S25FL512S_256K with page size 512 Bytes, erase size 256 KiB, total 64 MiB
Net:   Gem.e000b000
Hit any key to stop autoboot:  0
Booting on SD Card ...
reading uboot.scr
258 bytes read in 9 ms (27.3 KiB/s)
## Executing script at 01000000
reading uImage
3911720 bytes read in 341 ms (10.9 MiB/s)
reading devicetree.dtb
10074 bytes read in 16 ms (614.3 KiB/s)
## Booting kernel from Legacy Image at 06000000 ...
   Image Name:   Linux-4.9.0-xilinx-apf-gc415243
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3911656 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 06600000
   Booting using the fdt blob at 0x6600000
   Loading Kernel Image ... OK
   Loading Device Tree to 1f2a6000, end 1f2ab759 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.9.0-xilinx-apf-gc415243 (n008@n008-ThinkPad-L460) (gcc version 4.9.2 (GCC) ) #0 SMP PREEMPT Fri May 26 13:11:28 CEST 2017
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Enclustra Mars ZX3 SOM
cma: Reserved 256 MiB at 0x0f000000
Memory policy: Data cache writealloc
percpu: Embedded 14 pages/cpu @dfb53000 s25984 r8192 d23168 u57344
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyPS0,115200 rw earlyprintk rootwait root=/dev/mmcblk0p2
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: 247164K/524288K available (6144K kernel code, 204K rwdata, 1496K rodata, 1024K init, 343K bss, 14980K reserved, 262144K 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 - 0xc0700000   (7136 kB)
      .init : 0xc0900000 - 0xc0a00000   (1024 kB)
      .data : 0xc0a00000 - 0xc0a33100   ( 205 kB)
       .bss : 0xc0a33100 - 0xc0a88f1c   ( 344 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
ps_clk frequency not specified, using 33 MHz.
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 0x100000 - 0x100058
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 menu
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
vgaarb: loaded
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
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.
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
jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
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
e0000000.serial: ttyPS0 at MMIO 0xe0000000 (irq = 144, base_baud = 6249999) is a xuartps
console [ttyPS0] enabled
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to e082a000
[drm] Initialized
brd: module loaded
loop: module loaded
m25p80 spi0.0: found s25fl512s, expected n25q128a11
m25p80 spi0.0: s25fl512s (65536 Kbytes)
6 ofpart partitions found on MTD device spi0.0
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000600000 : "qspi-bootimage"
0x000000600000-0x000000b00000 : "qspi-kernel"
0x000000b00000-0x000000b80000 : "qspi-device-tree"
0x000000b80000-0x000000c00000 : "qspi-bootargs"
0x000000c00000-0x000000c40000 : "qspi-bootscript"
0x000000c40000-0x000001000000 : "qspi-rootfs"
libphy: Fixed MDIO Bus: probed
CAN device driver interface
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 146 (20:b0:f7:03:a5:f6)
libphy: macb_mii_bus: probed
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
usbcore: registered new interface driver usb-storage
e0002000.usb supply vbus not found, using dummy regulator
ULPI transceiver vendor/product ID 0x0424/0x0007
Found SMSC USB3320 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
cdns-i2c e0004000.i2c: 100 kHz mmio e0004000 irq 141
rtc-isl12022 0-006f: rtc core: registered rtc-isl12022 as rtc0
EDAC MC: ECC not enabled
cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 666666 KHz
cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 666667 KHz
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
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 10
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20161123 t)
can: netlink gateway (rev 20130117) max_hops=1
Registering SWP/SWPB emulation handler
rtc-isl12022 0-006f: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
ALSA device list:
  No soundcards found.
Waiting for root device /dev/mmcblk0p2...
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SU08G 7.40 GiB
 mmcblk0: p1 p2
EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
random: fast init done
EXT4-fs (mmcblk0p2): recovery complete
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: 1024K (c0900000 - c0a00000)
Starting init: /sbin/init exists but couldn't execute it (error -5)
Starting init: /bin/sh exists but couldn't execute it (error -5)
Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.0-xilinx-apf-gc415243 #0
Hardware name: Xilinx Zynq Platform
[<c010e440>] (unwind_backtrace) from [<c010a644>] (show_stack+0x10/0x14)
[<c010a644>] (show_stack) from [<c030632c>] (dump_stack+0x80/0xa0)
[<c030632c>] (dump_stack) from [<c010cbcc>] (ipi_cpu_stop+0x3c/0x70)
[<c010cbcc>] (ipi_cpu_stop) from [<c010d3d4>] (handle_IPI+0x64/0x84)
[<c010d3d4>] (handle_IPI) from [<c01013f8>] (gic_handle_irq+0x78/0x94)
[<c01013f8>] (gic_handle_irq) from [<c010b04c>] (__irq_svc+0x6c/0xa8)
Exception stack(0xc0a01f40 to 0xc0a01f88)
1f40: 00000000 00000001 c09469c0 dfb589c0 00000000 dfb57e40 3dbd93ac 00000001
1f60: 3d577630 00000001 00000000 00000000 0000000b c0a01f90 c04ee55c c04ee580
1f80: 60000013 ffffffff
[<c010b04c>] (__irq_svc) from [<c04ee580>] (cpuidle_enter_state+0xe4/0x1b8)
[<c04ee580>] (cpuidle_enter_state) from [<c014cf6c>] (cpu_startup_entry+0x158/0x1a4)
[<c014cf6c>] (cpu_startup_entry) from [<c0900bb4>] (start_kernel+0x2f4/0x354)
---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
 

 

0 Kudos
Reply
Highlighted
Moderator
Moderator
4,694 Views
Registered: ‎11-09-2015

Hi @srinivasan,

 

What if you try with the same kernel but a different version of u-boot?

 

Regards,

 

Florent


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Explorer
Explorer
4,688 Views
Registered: ‎02-17-2017

 

 

I tried 4.6.0 with U-Boot 2015.07-g38edef3 (May 30 2017 - 07:31:27 +0200)

 

it gets stuck in "Starting kernel ..."

 

Could you please let me know anything that I am missing in 4.6.0 .config by comparing

0 Kudos
Reply
Highlighted
Explorer
Explorer
4,680 Views
Registered: ‎02-17-2017

Dear Florent,

Any inputs on the above issue?

Thanks in advance
0 Kudos
Reply
Highlighted
Explorer
Explorer
4,670 Views
Registered: ‎02-17-2017

Dear Florent,

If you could please support me on this thread also is fine for me anyways linux kernel 4.9.0 is up and running, only spi interface is creating lot of nuisance from past 5 days

https://forums.xilinx.com/t5/Embedded-Linux/spidev-spi0-0-SPI-transfer-timed-out-in-spi-cadence-c-and-spi-c/td-p/781234


Kindly help me
0 Kudos
Reply
Highlighted
Explorer
Explorer
4,661 Views
Registered: ‎02-17-2017

Dear Florent,

 

As you suggested to try with the following commands, please find the logs as below, please let me know if there is anything to be done for bring 4.6.0 kernel up and running

 

U-Boot 2013.04-00028-gf445610 (Mar 20 2017 - 17:45:46)

I2C:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL512S_256K with page size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0
zx3-pm3>
zx3-pm3>
zx3-pm3> bootm start 0x6000000 0x2000000 0x6600000
Wrong Image Format for bootm command
ERROR: can't get kernel image!
zx3-pm3> fatload mmc 0 0x6000000 uImage
reading uImage
2856968 bytes read in 559 ms (4.9 MiB/s)
zx3-pm3> fatload mmc 0 0x6600000 devicetree.dtb
reading devicetree.dtb
9340 bytes read in 16 ms (569.3 KiB/s)
zx3-pm3> fatload mmc 0 0x2000000 uramdisk.image.gz
reading uramdisk.image.gz
8552124 bytes read in 1618 ms (5 MiB/s)
zx3-pm3> bootm start 0x6000000 0x2000000 0x6600000
## Booting kernel from Legacy Image at 06000000 ...
   Image Name:   Linux-4.6.0-xilinx-22286-g2152fc
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2856904 Bytes = 2.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
   Image Name:   
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8552060 Bytes = 8.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 06600000
   Booting using the fdt blob at 0x06600000
zx3-pm3> bootm loados
   Loading Kernel Image ... OK
OK
zx3-pm3> bootm prep
   Loading Ramdisk to 1f30e000, end 1fb35e7c ... OK
   Loading Device Tree to 1f308000, end 1f30d47b ... OK
zx3-pm3> bootm go

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

 

Kindly do the needful

Eagerly awaiting for your replies

Thanks in adavnce,

 

0 Kudos
Reply
Highlighted
Moderator
Moderator
4,649 Views
Registered: ‎11-09-2015

Hi @srinivasan,

 

Honestly I don't see what could be the issue and I don't really have more to help you in this case...


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
Highlighted
Explorer
Explorer
3,615 Views
Registered: ‎12-02-2014

In the case where it dies at "starting kernel", do you have the following bootargs set?

 

debug

earlyprintk

earlycon

 

If not, please add them to your bootargs and try to see if you get any additional output.

 

If you get no additional output, it is possible to look at the kernel log buffer directly from uboot by soft resetting after the hang, and running uboot's "md" command immediately before any attempt to load the kernel again.  You can get the address of the buffer (__log_buf) from System.map in the kernel source/build folder.  You probably need to use the lowest 6 nibbles of the address.  For example, on my zynqmp (64-bit) __log buff is ffffff8008d6d168.  The command for me in uboot to look at the memory is "md d6d168"

 

Justin D.

Highlighted
Explorer
Explorer
3,544 Views
Registered: ‎02-17-2017

Now 4.6.0 kernel is coming up but unable to get the shell prompt, could you please let me know what could be the issue it is hanging at "rtc-isl12022 0-006f: setting system clock to 2000-01-01 00:00:00 UTC (946684800)"??

 

U-Boot 2013.04-00028-gf445610 (Mar 20 2017 - 17:45:46)

I2C:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL512S_256K with page size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0
Copying Linux from SD to RAM...
Device: zynq_sdhci
Manufacturer ID: 82
OEM: 4a54
Name: NCard
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 4-bit
reading uImage
3521552 bytes read in 677 ms (5 MiB/s)
reading devicetree.dtb
9782 bytes read in 17 ms (561.5 KiB/s)
reading uramdisk.image.gz
8552124 bytes read in 1614 ms (5.1 MiB/s)
## Booting kernel from Legacy Image at 03000000 ...
   Image Name:   Linux-4.6.0-xilinx
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3521488 Bytes = 3.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
   Image Name:   
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8552060 Bytes = 8.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02a00000
   Booting using the fdt blob at 0x02a00000
   Loading Kernel Image ... OK
OK
   Loading Ramdisk to 1f30e000, end 1fb35e7c ... OK
   Loading Device Tree to 1f308000, end 1f30d635 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 4.6.0-xilinx (n008@n008-ThinkPad-L460) (gcc version 4.9.1 (Sourcery CodeBench Lite 2014.11-30) ) #0 SMP PREEMPT Wed Aug 2 12:07:46 CEST 2017
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Enclustra Mars ZX3 SOM
bootconsole [earlycon0] enabled
Memory policy: Data cache writealloc
percpu: Embedded 12 pages/cpu @dfbd4000 s19136 r8192 d21824 u49152
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyPS0,115200n8 root=/dev/ram rw ip=:::::eth0:off earlyprintk
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: 502608K/524288K available (5281K kernel code, 231K rwdata, 1620K rodata, 1024K init, 189K bss, 21680K reserved, 0K 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 - 0xc07bd5b4   (7894 kB)
      .init : 0xc0800000 - 0xc0900000   (1024 kB)
      .data : 0xc0900000 - 0xc0939c58   ( 232 kB)
       .bss : 0xc0939c58 - 0xc0969360   ( 190 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
ps_clk frequency not specified, using 33 MHz.
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 0x100000 - 0x100034
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
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 @ 0xe0880000
zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
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 <giometti@linux.it>
PTP clock support registered
FPGA manager framework
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
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.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 8352K (df30e000 - dfb36000)
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
futex hash table entries: 512 (order: 3, 32768 bytes)
workingset: timestamp_bits=28 max_order=17 bucket_order=0
fuse init (API version 7.24)
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
e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 26, base_baud = 6249999) is a xuartps
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to e0860000
brd: module loaded
loop: module loaded
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
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
rtc-isl12022 0-006f: rtc core: registered rtc-isl12022 as rtc0
cdns-i2c e0004000.i2c: 100 kHz mmio e0004000 irq 23
softdog: Software Watchdog Timer: 0.08 initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
usbcore: registered new interface driver ushc
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using DMA
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 17
Registering SWP/SWPB emulation handler
rtc-isl12022 0-006f: setting system clock to 2000-01-01 00:00:00 UTC (946684800)

0 Kudos
Reply
Highlighted
Explorer
Explorer
3,529 Views
Registered: ‎02-17-2017

After with some more customization , its getting stuck in "Registering SWP/SWPB emulation handler" and moreover I feel that ramdisk is not getting mounted as which is expected to be the next print, when compared to the earlier logs

 

Could you please let me know what could be really causing this issue failing for the ramdisk to get mounted, i have hereby attached dts and .config for your reference, please if you require any other details from my side??

 

 

 

U-Boot 2013.04-00028-gf445610 (Mar 20 2017 - 17:45:46)

I2C:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL512S_256K with page size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0
Copying Linux from SD to RAM...
Device: zynq_sdhci
Manufacturer ID: 82
OEM: 4a54
Name: NCard
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 4-bit
reading uImage
2204872 bytes read in 429 ms (4.9 MiB/s)
reading devicetree.dtb
9819 bytes read in 20 ms (478.5 KiB/s)
reading uramdisk.image.gz
8552124 bytes read in 1616 ms (5 MiB/s)
## Booting kernel from Legacy Image at 03000000 ...
   Image Name:   Linux-4.6.0-xilinx
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2204808 Bytes = 2.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
   Image Name:   
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8552060 Bytes = 8.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02a00000
   Booting using the fdt blob at 0x02a00000
   Loading Kernel Image ... OK
OK
   Loading Ramdisk to 1f30e000, end 1fb35e7c ... OK
   Loading Device Tree to 1f308000, end 1f30d65a ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 4.6.0-xilinx (n008@n008-ThinkPad-L460) (gcc version 4.9.1 (Sourcery CodeBench Lite 2014.11-30) ) #0 SMP PREEMPT Wed Aug 2 12:54:37 CEST 2017
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Enclustra Mars ZX3 SOM
bootconsole [earlycon0] enabled
Memory policy: Data cache writealloc
percpu: Embedded 12 pages/cpu @dfbd4000 s18112 r8192 d22848 u49152
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyPS0,115200n8 root=/dev/ram rw ip=:::::eth0:off earlyprintk
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: 504804K/524288K available (3182K kernel code, 116K rwdata, 1064K rodata, 1024K init, 157K bss, 19484K reserved, 0K 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 - 0xc05259b0   (5239 kB)
      .init : 0xc0600000 - 0xc0700000   (1024 kB)
      .data : 0xc0700000 - 0xc071d280   ( 117 kB)
       .bss : 0xc071d280 - 0xc074482c   ( 158 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
ps_clk frequency not specified, using 33 MHz.
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 0x100000 - 0x100034
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
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor menu
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 @ 0xe0880000
zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
vgaarb: loaded
SCSI subsystem initialized
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
FPGA manager framework
clocksource: Switched to clocksource arm_global_timer
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 8352K (df30e000 - dfb36000)
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
futex hash table entries: 512 (order: 3, 32768 bytes)
workingset: timestamp_bits=28 max_order=17 bucket_order=0
fuse init (API version 7.24)
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
e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 26, base_baud = 6249999) is a xuartps
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to e085e000
brd: module loaded
loop: module loaded
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
cdns-i2c e0004000.i2c: 100 kHz mmio e0004000 irq 23
softdog: Software Watchdog Timer: 0.08 initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
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
Registering SWP/SWPB emulation handler

 

Eagerly awaiting for your replies

0 Kudos
Reply