AnsweredAssumed Answered

ZC702   FCOMMS5 2016_dec_22 - image boot issue

Question asked by rswami on Jan 6, 2017
Latest reply on Oct 4, 2017 by nipunamr

Hi While booting, the kernel panics with  bad  root boot device "mmcblk0p2"  . 

Panic Log below. 

Appreciate any help solving this. 

thanks 

...ravi

---------------------------------------------------------------------

U-Boot 2014.07-dirty (Nov 20 2014 - 17:07:55)

 

Board:  Xilinx Zynq

I2C:   ready

DRAM:  ECC disabled 1 GiB

MMC:   zynq_sdhci: 0

SF: Detected N25Q128A with page size 256 Bytes, erase size 64 KiB, total 16 MiB

In:    serial

Out:   serial

Err:   serial

Net:   Gem.e000b000

Hit any key to stop autoboot:  0

 

zynq-uboot> mmc info

Device: zynq_sdhci

Manufacturer ID: 27

OEM: 5048

Name: SD16G

Tran Speed: 50000000

Rd Block Len: 512

SD version 3.0

High Capacity: Yes

Capacity: 14.5 GiB

Bus Width: 4-bit

zynq-uboot> mmc part

 

Partition Map for MMC device 0  --   Partition Type: DOS

 

Part    Start Sector    Num Sectors     UUID            Type

  1     8192            1048576         00096174-01     0c

  2     1056768         13441024        00096174-02     83

  3     4096            2048            00096174-03     a2

zynq-uboot> mmc list

zynq_sdhci: 0

zynq-uboot> bootargs

Unknown command 'bootargs' - try 'help'

zynq-uboot> help bootargs

Unknown command 'bootargs' - try 'help' without arguments for list of all known commands

 

zynq-uboot> boot

Device: zynq_sdhci

Manufacturer ID: 27

OEM: 5048

Name: SD16G

Tran Speed: 50000000

Rd Block Len: 512

SD version 3.0

High Capacity: Yes

Capacity: 14.5 GiB

Bus Width: 4-bit

reading uEnv.txt

380 bytes read in 9 ms (41 KiB/s)

Loaded environment from uEnv.txt

Importing environment from SD ...

Running uenvcmd ...

Copying Linux from SD to RAM...

reading uImage

3586384 bytes read in 323 ms (10.6 MiB/s)

reading devicetree.dtb

21561 bytes read in 37 ms (568.4 KiB/s)

reading uramdisk.image.gz

** Unable to read file uramdisk.image.gz **

## Booting kernel from Legacy Image at 03000000 ...

   Image Name:   Linux-4.6.0-gca4cf2a

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3586320 Bytes = 3.4 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 1fff7000, end 1ffff438 ... OK

 

Starting kernel ...

 

Uncompressing Linux... done, booting the kernel.

Booting Linux on physical CPU 0x0

Linux version 4.6.0-gca4cf2a (jenkins@romlx1) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #21 SMP PREEMPT Mon Nov 21 14:17:49 GMT 2016

CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d

CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine model: Xilinx Zynq ZC702

bootconsole [earlycon0] enabled

cma: Reserved 128 MiB at 0x38000000

Memory policy: Data cache writealloc

percpu: Embedded 12 pages/cpu @ef7cc000 s19456 r8192 d21504 u49152

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608

Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait

PID hash table entries: 4096 (order: 2, 16384 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Memory: 900892K/1048576K available (4800K kernel code, 244K rwdata, 1940K rodata, 248K init, 136K bss, 16612K reserved, 131072K cma-reserved, 131072K highmem)

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)

    vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)

    lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)

    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)

    modules : 0xbf000000 - 0xbfe00000   (  14 MB)

      .text : 0xc0008000 - 0xc069d3e8   (6741 kB)

      .init : 0xc069e000 - 0xc06dc000   ( 248 kB)

      .data : 0xc06dc000 - 0xc07192a0   ( 245 kB)

       .bss : 0xc07192a0 - 0xc073b4b0   ( 137 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

slcr mapped to f0802000

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 f0802100

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 f080a000, 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: 2048 (order: 1, 8192 bytes)

Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)

CPU: Testing write buffer coherency: ok

CPU0: thread -1, cpu 0, socket 0, mpidr 80000000

Setting up static identity map for 0x82c0 - 0x8318

CPU1: thread -1, cpu 1, socket 0, mpidr 80000001

Brought up 2 CPUs

SMP: Total of 2 processors activated (1333.33 BogoMIPS).

CPU: All CPU(s) started in SVC mode.

devtmpfs: initialized

VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4

clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns

pinctrl core: initialized pinctrl subsystem

NET: Registered protocol family 16

DMA: preallocated 256 KiB pool for atomic coherent allocations

cpuidle: using governor ladder

hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.

hw-breakpoint: maximum watchpoint size is 4 bytes.

zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000

zynq-pinctrl 700.pinctrl: zynq pinctrl initialized

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

media: Linux media interface: v0.10

Linux video capture interface: v2.00

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: 8192 (order: 3, 32768 bytes)

TCP bind hash table entries: 8192 (order: 4, 65536 bytes)

TCP: Hash tables configured (established 8192 bind 8192)

UDP hash table entries: 512 (order: 2, 16384 bytes)

UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

NET: Registered protocol family 1

hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available

futex hash table entries: 512 (order: 3, 32768 bytes)

workingset: timestamp_bits=28 max_order=18 bucket_order=0

bounce: pool size: 64 pages

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

Error: Driver 'mwipcore' is already registered, aborting...

dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330

dma-pl330 f8003000.dmac:        DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16

xilinx-vdma 43000000.axivdma: missing xlnx,flush-fsync property

xilinx-vdma 43000000.axivdma: missing xlnx,addrwidth property

xilinx-vdma 43000000.axivdma: Xilinx AXI VDMA Engine Driver Probed!!

e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 143, base_baud = 3125000) is a xuartps

àconsole [ttyPS0] enabled

console [ttyPS0] enabled

bootconsole [earlycon0] disabled

bootconsole [earlycon0] disabled

xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f0872000

[drm] Initialized drm 1.1.0 20060810

brd: module loaded

loop: module loaded

spi_master spi32765: /amba/spi@e000d000/ps7-qspi@0 has no valid 'spi-max-frequency' property (-22)

spi_master spi32765: Failed to create SPI device for /amba/spi@e000d000/ps7-qspi@0

libphy: XEMACPS mii bus: probed

xemacps e000b000.eth: pdev->id -1, baseaddr 0xe000b000, irq 164

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

usbcore: registered new interface driver usb-storage

usbcore: registered new interface driver usbserial

usbcore: registered new interface driver usbserial_generic

usbserial: USB Serial support registered for generic

usbcore: registered new interface driver ftdi_sio

usbserial: USB Serial support registered for FTDI USB Serial Device

e0002000.usb supply vbus not found, using dummy regulator

ULPI transceiver vendor/product ID 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

i2c i2c-0: Added multiplexed i2c bus 1

i2c i2c-0: Added multiplexed i2c bus 2

i2c i2c-0: Added multiplexed i2c bus 3

i2c i2c-0: Added multiplexed i2c bus 4

rtc-pcf8563 5-0051: chip found, driver version 0.4.4

rtc-pcf8563 5-0051: low voltage detected, date/time is not reliable.

rtc-pcf8563 5-0051: rtc core: registered rtc-pcf8563 as rtc0

i2c i2c-0: Added multiplexed i2c bus 5

at24 6-0050: 256 byte 24c02 EEPROM, writable, 1 bytes/write

i2c i2c-0: Added multiplexed i2c bus 6

i2c i2c-0: Added multiplexed i2c bus 7

i2c i2c-0: Added multiplexed i2c bus 8

pca954x 0-0074: registered 8 multiplexed busses for I2C switch pca9548

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 ADMA

ledtrig-cpu: registered to indicate activity on CPUs

hidraw: raw HID events driver (C) Jiri Kosina

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

ad9361 spi32766.0: ad9361_probe : enter

mmc0: new high speed SDHC card at address 0007

mmcblk0: mmc0:0007 SD16G 14.5 GiB (ro)

mmcblk0: p1 p2 p3

usb 1-1: new high-speed USB device number 2 using ci_hdrc

hub 1-1:1.0: USB hub found

hub 1-1:1.0: 4 ports detected

ad9361 spi32766.0: ad9361_probe : AD936x Rev 2 successfully initialized

ad9361 spi32766.1: ad9361_probe : enter

usb 1-1.1: new high-speed USB device number 3 using ci_hdrc

ad9361 spi32766.1: ad9361_probe : AD936x Rev 2 successfully initialized

cf_axi_dds 79024000.cf-ad9361-dds-core-lpc: Analog Devices CF_AXI_DDS_DDS MASTER (8.00.b) at 0x79024000 mapped to 0xf097e000, probed DDS AD9361

cf_axi_dds 79044000.cf-ad9361-dds-core-B: Analog Devices CF_AXI_DDS_DDS SLAVE (8.00.b) at 0x79044000 mapped to 0xf099c000, probed DDS AD9361

NET: Registered protocol family 17

Registering SWP/SWPB emulation handler

Console: switching to colour frame buffer device 240x67

usb-storage 1-1.1:1.0: USB Mass Storage device detected

scsi host0: usb-storage 1-1.1:1.0

axi-hdmi 70e00000.axi_hdmi: fb0:  frame buffer device

[drm] Initialized axi_hdmi_drm 1.0.0 20120930 on minor 0

usb 1-1.3: new low-speed USB device number 4 using ci_hdrc

input: HID 046a:0011 as /devices/soc0/amba/e0002000.usb/ci_hdrc.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:046A:0011.0001/input/input0

hid-generic 0003:046A:0011.0001: input,hidraw0: USB HID v1.11 Keyboard [HID 046a:0011] on usb-ci_hdrc.0-1.3/input0

usb 1-1.4: new low-speed USB device number 5 using ci_hdrc

input: PixArt HP USB Optical Mouse as /devices/soc0/amba/e0002000.usb/ci_hdrc.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:03F0:134A.0002/input/input1

hid-generic 0003:03F0:134A.0002: input,hidraw1: USB HID v1.11 Mouse [PixArt HP USB Optical Mouse] on usb-ci_hdrc.0-1.4/input0

cf_axi_adc 79020000.cf-ad9361-A: ADI AIM (9.00.b) at 0x79020000 mapped to 0xf11c0000, probed ADC AD9361-2 as MASTER

cf_axi_adc 79040000.cf-ad9361-B: ADI AIM (9.00.b) at 0x79040000 mapped to 0xf1238000, probed ADC AD9361 as SLAVE

asoc-simple-card fpga-axi@0:adv7511_hdmi_snd: adv7511 <-> 75c00000.axi-spdif-tx mapping ok

input: gpio_keys as /devices/soc0/gpio_keys/input/input2

random: nonblocking pool is initialized

rtc-pcf8563 5-0051: low voltage detected, date/time is not reliable.

rtc-pcf8563 5-0051: hctosys: unable to read the hardware clock

ALSA device list:

  #0: HDMI monitor

VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -30

Please append a correct "root=" boot option; here are the available partitions:

0100           16384 ram0  (driver?)

0101           16384 ram1  (driver?)

0102           16384 ram2  (driver?)

0103           16384 ram3  (driver?)

0104           16384 ram4  (driver?)

0105           16384 ram5  (driver?)

0106           16384 ram6  (driver?)

0107           16384 ram7  (driver?)

0108           16384 ram8  (driver?)

0109           16384 ram9  (driver?)

010a           16384 ram10  (driver?)

010b           16384 ram11  (driver?)

010c           16384 ram12  (driver?)

010d           16384 ram13  (driver?)

010e           16384 ram14  (driver?)

010f           16384 ram15  (driver?)

b300        15159296 mmcblk0  driver: mmcblk

  b301          524288 mmcblk0p1 00096174-01

  b302         6720512 mmcblk0p2 00096174-02

  b303            1024 mmcblk0p3 00096174-03

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.6.0-gca4cf2a #21

Hardware name: Xilinx Zynq Platform

[<c0015d08>] (unwind_backtrace) from [<c00129d0>] (show_stack+0x10/0x14)

[<c00129d0>] (show_stack) from [<c01b0af8>] (dump_stack+0x84/0xa4)

[<c01b0af8>] (dump_stack) from [<c0094500>] (panic+0xbc/0x220)

[<c0094500>] (panic) from [<c069f170>] (mount_block_root+0x23c/0x2b4)

scsi 0:0:0:0: Direct-Access     PNY      USB 2.0 FD       PMAP PQ: 0 ANSI: 6

sd 0:0:0:0: Attached scsi generic sg0 type 0

sd 0:0:0:0: [sda] 121012224 512-byte logical blocks: (62.0 GB/57.7 GiB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00

sd 0:0:0:0: [sda] No Caching mode page found

sd 0:0:0:0: [sda] Assuming drive cache: write through

sda: sda1

sd 0:0:0:0: [sda] Attached SCSI removable disk

[<c069f170>] (mount_block_root) from [<c069f49c>] (prepare_namespace+0x158/0x1b8)

[<c069f49c>] (prepare_namespace) from [<c069ede0>] (kernel_init_freeable+0x1a0/0x1ec)

[<c069ede0>] (kernel_init_freeable) from [<c04856a4>] (kernel_init+0x8/0xf4)

[<c04856a4>] (kernel_init) from [<c000f0b8>] (ret_from_fork+0x14/0x3c)

CPU0: stopping

CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.6.0-gca4cf2a #21

Hardware name: Xilinx Zynq Platform

[<c0015d08>] (unwind_backtrace) from [<c00129d0>] (show_stack+0x10/0x14)

[<c00129d0>] (show_stack) from [<c01b0af8>] (dump_stack+0x84/0xa4)

[<c01b0af8>] (dump_stack) from [<c0014540>] (ipi_cpu_stop+0x3c/0x70)

[<c0014540>] (ipi_cpu_stop) from [<c0014c84>] (handle_IPI+0x64/0x84)

[<c0014c84>] (handle_IPI) from [<c00093ec>] (gic_handle_irq+0x78/0x94)

[<c00093ec>] (gic_handle_irq) from [<c0013414>] (__irq_svc+0x54/0x90)

Exception stack(0xc06ddf38 to 0xc06ddf80)

df20:                                                       00000000 00000000

df40: 2f0f6000 ef7d0100 ced4a508 00000000 cf0c535b 00000000 ef7cf490 00000001

df60: 00000000 00000000 00000008 c06ddf88 c032eb68 c032ebb0 60000013 ffffffff

[<c0013414>] (__irq_svc) from [<c032ebb0>] (cpuidle_enter_state+0xfc/0x1e0)

[<c032ebb0>] (cpuidle_enter_state) from [<c005215c>] (cpu_startup_entry+0x180/0x1f8)

[<c005215c>] (cpu_startup_entry) from [<c069ebd4>] (start_kernel+0x330/0x39c)

[<c069ebd4>] (start_kernel) from [<0000807c>] (0x807c)

---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

------------[ cut here ]------------

WARNING: CPU: 1 PID: 1 at kernel/workqueue.c:881 wq_worker_waking_up+0x50/0x7c

Modules linked in:

CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.6.0-gca4cf2a #21

Hardware name: Xilinx Zynq Platform

[<c0015d08>] (unwind_backtrace) from [<c00129d0>] (show_stack+0x10/0x14)

[<c00129d0>] (show_stack) from [<c01b0af8>] (dump_stack+0x84/0xa4)

[<c01b0af8>] (dump_stack) from [<c0021f68>] (__warn+0xcc/0xfc)

[<c0021f68>] (__warn) from [<c002203c>] (warn_slowpath_null+0x1c/0x24)

[<c002203c>] (warn_slowpath_null) from [<c0037020>] (wq_worker_waking_up+0x50/0x7c)

[<c0037020>] (wq_worker_waking_up) from [<c003fa58>] (ttwu_do_activate.constprop.17+0x4c/0x64)

[<c003fa58>] (ttwu_do_activate.constprop.17) from [<c0040cdc>] (try_to_wake_up+0x274/0x2a4)

[<c0040cdc>] (try_to_wake_up) from [<c0051b54>] (swake_up_locked+0x20/0x38)

[<c0051b54>] (swake_up_locked) from [<c0051b94>] (swake_up+0x28/0x38)

[<c0051b94>] (swake_up) from [<c007905c>] (flush_smp_call_function_queue+0x110/0x188)

[<c007905c>] (flush_smp_call_function_queue) from [<c0014c84>] (handle_IPI+0x64/0x84)

[<c0014c84>] (handle_IPI) from [<c00093ec>] (gic_handle_irq+0x78/0x94)

[<c00093ec>] (gic_handle_irq) from [<c0013414>] (__irq_svc+0x54/0x90)

Exception stack(0xef04fe80 to 0xef04fec8)

fe80: 00000059 60000093 ef04fe48 60000093 00000000 ee9bd000 00000000 c07197e8

fea0: 00008000 c05d563b c06c985c efffc184 00000001 ef04fed0 c00945e4 c00945e8

fec0: 20000013 ffffffff

[<c0013414>] (__irq_svc) from [<c00945e8>] (panic+0x1a4/0x220)

[<c00945e8>] (panic) from [<c069f170>] (mount_block_root+0x23c/0x2b4)

[<c069f170>] (mount_block_root) from [<c069f49c>] (prepare_namespace+0x158/0x1b8)

[<c069f49c>] (prepare_namespace) from [<c069ede0>] (kernel_init_freeable+0x1a0/0x1ec)

[<c069ede0>] (kernel_init_freeable) from [<c04856a4>] (kernel_init+0x8/0xf4)

[<c04856a4>] (kernel_init) from [<c000f0b8>] (ret_from_fork+0x14/0x3c)

---[ end trace f8b876eabc4627eb ]---

Outcomes