AnsweredAssumed Answered

boot from MicroSD Card failed due to file system problem

Question asked by fivepanda on Mar 2, 2016
Latest reply on Mar 3, 2016 by fivepanda

Hi,

I have a custom designed zynq7000 board at my hand, with almost all schematic copied from ZC706 board, but with a Sandisk 8GB MicroSD card to replace SD card.

Now I can get boot information through a UART connector, and it seems like the uboot flow is correct, but it failed when mounting file system. I tried put the ZC706 correct Image into the MicroSD card and boot it on ZC706 board, also failed at mounting step!

The boot information is as follows:

 

U-Boot 2015.01 (Jun 05 2015 - 15:02:17)

 

 

Board:  Xilinx Zynq

I2C:   ready

DRAM:  ECC disabled 1 GiB

MMC:   zynq_sdhci: 0

SF: Detected S25FL128S_64K with page size 512 Bytes, erase size 128 KiB, total 32 MiB

*** Warning - bad CRC, using default environment

 

 

In:    serial

Out:   serial

Err:   serial

Board:  Xilinx Zynq

Net:   Gem.e000b000

Hit any key to stop autoboot:  0

Device: zynq_sdhci

Manufacturer ID: 27

OEM: 5048

Name: SD08G

Tran Speed: 50000000

Rd Block Len: 512

SD version 3.0

High Capacity: Yes

Capacity: 7.4 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

3490784 bytes read in 315 ms (10.6 MiB/s)

reading devicetree.dtb

13046 bytes read in 21 ms (606.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.0.0

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3490720 Bytes = 3.3 MiB

   Load Address: 00008000

   Entry Point:  00008000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 02a00000

   Booting using the fdt blob at 0x2a00000

   Loading Kernel Image ... OK

   Loading Device Tree to 1fff9000, end 1ffff2f5 ... OK

 

 

Starting kernel ...

 

 

Uncompressing Linux... done, booting the kernel.

Booting Linux on physical CPU 0x0

Linux version 4.0.0 (root@ubuntu) (gcc version 4.6.3 (Sourcery CodeBench Lite 2012.03-79) ) #0 SMP PREEMPT Wed Jan 13 08:22:17 CST 2016

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

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

Machine model: Xilinx Zynq ZC706

bootconsole [earlycon0] enabled

cma: Reserved 128 MiB at 0x38000000

Memory policy: Data cache writealloc

PERCPU: Embedded 10 pages/cpu @eefd3000 s12096 r8192 d20672 u40960

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

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: 901468K/1048576K available (4460K kernel code, 224K rwdata, 1804K rodata, 212K init, 132K bss, 16036K reserved, 131072K cma-reserved, 139264K highmem)

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)

    vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)

    lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)

    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)

    modules : 0xbf000000 - 0xbfe00000   (  14 MB)

      .text : 0xc0008000 - 0xc0626420   (6266 kB)

      .init : 0xc0627000 - 0xc065c000   ( 212 kB)

      .data : 0xc065c000 - 0xc0694280   ( 225 kB)

       .bss : 0xc0694280 - 0xc06b5568   ( 133 kB)

Preemptible hierarchical RCU implementation.

        Additional per-CPU info printed with stalls.

        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 f0006000

zynq_clock_init: clkc starts at f0006100

Zynq clock init

sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 1207951633ns

timer #0 at f000a000, irq=16

Console: colour dummy device 80x30

Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)

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 0x434ff0 - 0x435048

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

pinctrl core: initialized pinctrl subsystem

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.ps7-ocm: ZYNQ OCM pool: 256 KiB @ 0xf0080000

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.

Switched to clocksource ttc_clocksource

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)

TCP: reno registered

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)

bounce: pool size: 64 pages

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

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

郼onsole [ttyPS0] enabled

console [ttyPS0] enabled

bootconsole [earlycon0] disabled

bootconsole [earlycon0] disabled

xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f0072000

[drm] Initialized drm 1.1.0 20060810

platform 70e00000.axi_hdmi: Driver axi-hdmi requests probe deferral

brd: module loaded

loop: module loaded

m25p80 spi32765.0: found s25fl128s, expected n25q128a11

m25p80 spi32765.0: s25fl128s (32768 Kbytes)

5 ofpart partitions found on MTD device spi32765.0

Creating 5 MTD partitions on "spi32765.0":

0x000000000000-0x000000500000 : "boot"

0x000000500000-0x000000520000 : "bootenv"

0x000000520000-0x000000540000 : "config"

0x000000540000-0x000000fc0000 : "image"

0x000000fc0000-0x000002000000 : "spare"

libphy: XEMACPS mii bus: probed

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

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

at24 3-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write

i2c i2c-0: Added multiplexed i2c bus 3

pca953x 4-0021: interrupt support not compiled in

i2c i2c-0: Added multiplexed i2c bus 4

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

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

rtc-pcf8563 5-0051: retrieved date/time is not valid.

rtc (null): read_time: rtc_time isn't valid

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

i2c i2c-0: Added multiplexed i2c bus 5

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

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

hidraw: raw HID events driver (C) Jiri Kosina

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

si570 1-005d: registered, current frequency 156250000 Hz

platform 44a00000.axi-ad9265-core-lpc: Driver cf_axi_adc requests probe deferral

spi spi32766.0: Driver ad9467 requests probe deferral

mmc0: new high speed SDHC card at address 0007

mmcblk0: mmc0:0007 SD08G 7.42 GiB

mmcblk0: p1 p2

ad9517 spi32766.1: Unrecognized CHIP_ID 0xFF

adv7511-hdmi-snd fpga-axi@0:adv7511_hdmi_snd: adv7511 <-> 75c00000.axi-spdif-tx mapping ok

TCP: cubic registered

NET: Registered protocol family 17

Registering SWP/SWPB emulation handler

axi-hdmi 70e00000.axi_hdmi: No connectors reported connected with modes

[drm] Cannot find any crtc or sizes - going 1024x768

Console: switching to colour frame buffer device 128x48

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

axi-hdmi 70e00000.axi_hdmi: registered panic notifier

[drm] Initialized axi_hdmi_drm 1.0.0 20120930 on minor 0

platform 44a00000.axi-ad9265-core-lpc: Driver cf_axi_adc requests probe deferral

spi spi32766.0: Driver ad9467 requests probe deferral

input: gpio_keys as /devices/soc0/gpio_keys/input/input0

platform 44a00000.axi-ad9265-core-lpc: Driver cf_axi_adc requests probe deferral

spi spi32766.0: Driver ad9467 requests probe deferral

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

rtc-pcf8563 5-0051: retrieved date/time is not valid.

rtc rtc0: read_time: rtc_time isn't valid

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

ALSA device list:

  #0: HDMI monitor

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: 212K (c0627000 - c065c000)

Mount failed for selinuxfs on /sys/fs/selinux:  No such file or directory

INFO: task jbd2/mmcblk0p2-:780 blocked for more than 20 seconds..0/modules.dep.bin'

      Not tainted 4.0.0 #0

"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

INFO: task rs:main Q:Reg:1232 blocked for more than 20 seconds.

      Not tainted 4.0.0 #0

"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

INFO: task tput:1468 blocked for more than 20 seconds.

      Not tainted 4.0.0 #0

"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

 

 

May someone have a look at above information and give me some advices?

Outcomes