UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
1,163 Views
Registered: ‎06-19-2018

kernel panic when I boot my zynq board

Jump to solution

Hello everyone!

When I boot my board from sd card, kernel panic occurs.the detail log is below:

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

Xilinx First Stage Boot Loader
Release 2015.2 Oct 15 2018-10:52:30
Devcfg driver initialized
Silicon Version 3.1
Boot mode is SD
SD: rc= 0
SD Init Done
Flash Base Address: 0xE0100000
Reboot status register: 0x60600000
Multiboot Register: 0x0000C000
Image Start Address: 0x00000000
Partition Header Offset:0x00000C80
Partition Count: 3
Partition Number: 1
Header Dump
Image Word Len: 0x000F6EC0
Data Word Len: 0x000F6EC0
Partition Word Len:0x000F6EC0
Load Addr: 0x00000000
Exec Addr: 0x00000000
Partition Start: 0x000065D0
Partition Attr: 0x00000020
Partition Checksum Offset: 0x00000000
Section Count: 0x00000001
Checksum: 0xFFD14B7E
Bitstream
In FsblHookBeforeBitstreamDload function
PCAP:StatusReg = 0x40000A30
PCAP:device ready
PCAP:Clear done
Level Shifter Value = 0xA
Devcfg Status register = 0x40000A30
PCAP:Fabric is Initialized done
PCAP register dump:
PCAP CTRL 0xF8007000: 0x4C00E07F
PCAP LOCK 0xF8007004: 0x0000001A
PCAP CONFIG 0xF8007008: 0x00000508
PCAP ISR 0xF800700C: 0x0802000B
PCAP IMR 0xF8007010: 0xFFFFFFFF
PCAP STATUS 0xF8007014: 0x00002A30
PCAP DMA SRC ADDR 0xF8007018: 0x00100001
PCAP DMA DEST ADDR 0xF800701C: 0xFFFFFFFF
PCAP DMA SRC LEN 0xF8007020: 0x000F6EC0
PCAP DMA DEST LEN 0xF8007024: 0x000F6EC0
PCAP ROM SHADOW CTRL 0xF8007028: 0xFFFFFFFF
PCAP MBOOT 0xF800702C: 0x0000C000
PCAP SW ID 0xF8007030: 0x00000000
PCAP UNLOCK 0xF8007034: 0x757BDF0D
PCAP MCTRL 0xF8007080: 0x30800100

DMA Done !

FPGA Done !
In FsblHookAfterBitstreamDload function
Partition Number: 2
Header Dump
Image Word Len: 0x0001995A
Data Word Len: 0x0001995A
Partition Word Len:0x0001995A
Load Addr: 0x04000000
Exec Addr: 0x04000000
Partition Start: 0x000FD490
Partition Attr: 0x00000010
Partition Checksum Offset: 0x00000000
Section Count: 0x00000001
Checksum: 0xF7EB5CF0
Application
Handoff Address: 0x04000000
In FsblHookBeforeHandoff function
SUCCESSFUL_HANDOFF
?H?H????с2015.04 (Oct 13 2018 - 01:50:41)

Board: Xilinx Zynq
I2C: ready
DRAM: ECC disabled 512 MiB
MMC: zynq_sdhci: 0
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Board: Xilinx Zynq
Net: Gem.e000b000
reading uEnv.txt
346 bytes read in 9 ms (37.1 KiB/s)
Importing environment from SD ...
Hit any key to stop autoboot: 0
Device: zynq_sdhci
Manufacturer ID: 41
OEM: 3432
Name: SD16G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.5 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
UENV Copying Linux from SD to RAM...
reading uImage
3649056 bytes read in 323 ms (10.8 MiB/s)
reading devicetree.dtb
9207 bytes read in 17 ms (528.3 KiB/s)
## Booting kernel from Legacy Image at 03000000 ...
Image Name: Linux-3.19.0-xilinx
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3648992 Bytes = 3.5 MiB
Load Address: 02080000
Entry Point: 02080000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02a00000
Booting using the fdt blob at 0x2a00000
Loading Kernel Image ... OK
Loading Device Tree to 1f317000, end 1f31c3f6 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.19.0-xilinx (yaoxing@ubuntu) (gcc version 4.6.1 (Sourcery CodeBe nch Lite 2011.09-50) ) #1 SMP PREEMPT Thu Oct 11 18:36:46 PDT 2018
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Zynq Zed Development Board
cma: Reserved 16 MiB at 0x1e000000
Memory policy: Data cache writealloc
PERCPU: Embedded 9 pages/cpu @5fbd3000 s8128 r8192 d20544 u36864
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk ro otfstype=ext4 rootwait devtmpfs.mount=0
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: 496132K/524288K available (4736K kernel code, 250K rwdata, 1652K rodata, 216K init, 207K bss, 11772K reserved, 16384K cma-reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0x60800000 - 0xff000000 (2536 MB)
lowmem : 0x40000000 - 0x60000000 ( 512 MB)
pkmap : 0x3fe00000 - 0x40000000 ( 2 MB)
modules : 0x3f000000 - 0x3fe00000 ( 14 MB)
.text : 0x40008000 - 0x406453a0 (6389 kB)
.init : 0x40646000 - 0x4067c000 ( 216 kB)
.data : 0x4067c000 - 0x406baba0 ( 251 kB)
.bss : 0x406baba0 - 0x406eeaf8 ( 208 kB)
Preemptible hierarchical RCU implementation.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
L2C: platform modifies aux control register: 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
slcr mapped to 60804000
zynq_clock_init: clkc starts at 60804100
Zynq clock init
sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 3298534883328ns
timer #0 at 60806000, irq=17
Console: colour dummy device 80x30
Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
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 0x476e48 - 0x476ea0
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
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
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 @ 0x60880000
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
phy0 supply vcc not found, using dummy regulator
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@l inux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
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)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
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)
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_Even ts-16
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 142, base_baud = 3125000) is a xuartps
console [ttyPS0] enabled
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to 6086a000
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
m25p80 spi0.0: found s25fl256s1, expected n25q128a11
m25p80 spi0.0: s25fl256s1 (32768 Kbytes)
5 ofpart partitions found on MTD device spi0.0
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000100000 : "qspi-fsbl-uboot"
0x000000100000-0x000000600000 : "qspi-linux"
0x000000600000-0x000000620000 : "qspi-device-tree"
0x000000620000-0x000000c00000 : "qspi-rootfs"
0x000000c00000-0x000001000000 : "qspi-bitstream"
CAN device driver interface
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 144 (0 0:0a:35:00:01:22)
macb e000b000.ethernet eth0: attached PHY driver [Marvell 88E1510] (mii_bus:phy_ addr=e000b000.etherne:00, irq=-1)
e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
e1000e: Copyright(c) 1999 - 2014 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
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
zynq-edac f8006000.memory-controller: ecc not enabled
Xilinx Zynq CpuIdle Driver started
Driver 'mmcblk' needs updating - please use bus_type methods
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-arasan e0100000.sdhci: No vmmc regulator found
sdhci-arasan e0100000.sdhci: No vqmmc regulator found
mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
Registering SWP/SWPB emulation handler
mmc0: new high speed SDHC card at address 0007
mmcblk0: mmc0:0007 SD16G 14.4 GiB (ro)
mmcblk0: p1 p2
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
ALSA device list:
No soundcards found.
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:
1f00 1024 mtdblock0 (driver?)
1f01 5120 mtdblock1 (driver?)
1f02 128 mtdblock2 (driver?)
1f03 6016 mtdblock3 (driver?)
1f04 4096 mtdblock4 (driver?)
b300 15159296 mmcblk0 driver: mmcblk
b301 102400 mmcblk0p1 f3b2f994-01
b302 4729060 mmcblk0p2 f3b2f994-02
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 3.19.0-xilinx #1
Hardware name: Xilinx Zynq Platform
[<400142c4>] (unwind_backtrace) from [<400107d8>] (show_stack+0x10/0x14)
[<400107d8>] (show_stack) from [<40472730>] (dump_stack+0x88/0xd8)
[<40472730>] (dump_stack) from [<40012c5c>] (ipi_cpu_stop+0x3c/0x6c)
[<40012c5c>] (ipi_cpu_stop) from [<40013290>] (handle_IPI+0x60/0x80)
[<40013290>] (handle_IPI) from [<40008610>] (gic_handle_irq+0x58/0x60)
[<40008610>] (gic_handle_irq) from [<40011180>] (__irq_svc+0x40/0x74)
Exception stack(0x5f469f70 to 0x5f469fb8)
9f60: 44b13b62 00000000 44b13b62 00000000
9f80: 448c3d8e 00000000 5fbdccc8 00000000 406b3294 413fc090 406b3294 00000000
9fa0: 00000008 5f469fb8 4005f254 4036a668 00000113 ffffffff
[<40011180>] (__irq_svc) from [<4036a668>] (cpuidle_enter_state+0x4c/0xd0)
[<4036a668>] (cpuidle_enter_state) from [<40048654>] (cpu_startup_entry+0x18c/0x 214)
[<40048654>] (cpu_startup_entry) from [<000086a4>] (0x86a4)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-blo ck(179,2)

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

I think the error rise up from the line "mmcblk0: mmc0:0007 SD16G 14.4 GiB (ro)", but why my mmcblock0 is read only? I have not locked my device.so cannot open root device "mmcblk0p2" or unknown-block(179,2): error -30.But how can I do to solve the device read only? because the boot stop here and I can't input any command to modify.

Thanks for reply.

0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
1,090 Views
Registered: ‎06-03-2015

Re: “mmcblk0: mmc0:0007 SD16G 14.4 GiB (ro)“ causing that cannot open root device "mmcblk0p2" or unknown-block(179,2)

Jump to solution

Hi

 

This issue is basically because of Invalid Boot arguments, form your log it is clear that Kernel could not uderstand either root partition, or root arguments , path provided and it is nothing with Kernel code or with Vivado Design Suite.

 

Please double chjeck the SD/MMC Card  partitions , Its type (Ext3/Ext4) 

FInal option: do fdisk  and create partitions and create Ext3 or Ext4 file system properly, it will work

 

Thanks & Regards

Satish G

   

G Satish Kumar
0 Kudos
4 Replies
Moderator
Moderator
1,143 Views
Registered: ‎06-27-2017

Re: “mmcblk0: mmc0:0007 SD16G 14.4 GiB (ro)“ causing that cannot open root device "mmcblk0p2" or unknown-block(179,2)

Jump to solution

Hi 1028271706@qq.com

 

From the Kernel command line arguments,

Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk ro otfstype=ext4 rootwait devtmpfs.mount=0

 

Can you please correct it and make it rootfstype. 

Also make sure that you have valid root filesystem in mmcblk0p2

 

Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos
Adventurer
Adventurer
1,124 Views
Registered: ‎06-19-2018

Re: “mmcblk0: mmc0:0007 SD16G 14.4 GiB (ro)“ causing that cannot open root device "mmcblk0p2" or unknown-block(179,2)

Jump to solution
I modified the default kernel command string in menuconfig, but it doesn't work, and it still like previous output.
0 Kudos
Observer gerardmssm
Observer
1,110 Views
Registered: ‎12-15-2017

Re: “mmcblk0: mmc0:0007 SD16G 14.4 GiB (ro)“ causing that cannot open root device "mmcblk0p2" or unknown-block(179,2)

Jump to solution

Is write protection enable in your vivado project ?

0 Kudos
Explorer
Explorer
1,091 Views
Registered: ‎06-03-2015

Re: “mmcblk0: mmc0:0007 SD16G 14.4 GiB (ro)“ causing that cannot open root device "mmcblk0p2" or unknown-block(179,2)

Jump to solution

Hi

 

This issue is basically because of Invalid Boot arguments, form your log it is clear that Kernel could not uderstand either root partition, or root arguments , path provided and it is nothing with Kernel code or with Vivado Design Suite.

 

Please double chjeck the SD/MMC Card  partitions , Its type (Ext3/Ext4) 

FInal option: do fdisk  and create partitions and create Ext3 or Ext4 file system properly, it will work

 

Thanks & Regards

Satish G

   

G Satish Kumar
0 Kudos