ひでみのアイデア帳

くだらないことなんだけど、忘れないために・・・

kernel 3.10

kernel 3.8では正常に動作しているのが確認できた。

そしたら、kernel 3.10用のパッチを見つけた。

パッチ適用とDTSを修正してttc_timer_initのpanicは回避できた。

そしたら、次にroot_fsが無いだって(^-^;

ここに残念なログを貼り付けよう。

でも、いい線でしょ。

ーーーーここから残念なログーーーー

zynq-uboot> boot

Device: zynq_sdhci

Manufacturer ID: 27

OEM: 5048

Name: SD04G

Tran Speed: 50000000

Rd Block Len: 512

SD version 2.0

High Capacity: Yes

Capacity: 3.7 GiB

Bus Width: 4-bit

reading autorun.scr

Unable to read file autorun.scr

Copying Linux from SD to RAM...

Device: zynq_sdhci

Manufacturer ID: 27

OEM: 5048

Name: SD04G

Tran Speed: 50000000

Rd Block Len: 512

SD version 2.0

High Capacity: Yes

Capacity: 3.7 GiB

Bus Width: 4-bit

reading uImage

3213736 bytes read in 438 ms (7 MiB/s)

reading devicetree.dtb

10158 bytes read in 18 ms (550.8 KiB/s)

Booting kernel from Legacy Image at 000079c0 ...

   Image Name:   Linux-3.10.0-xilinx

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3213672 Bytes = 3.1 MiB

   Load Address: 00008000

   Entry Point:  00008000

   Verifying Checksum ... OK

Flattened Device Tree blob at 02a00000

   Booting using the fdt blob at 0x02a00000

   Loading Kernel Image ... OK

OK

   Loading Device Tree to 1fb61000, end 1fb667ad ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Booting Linux on physical CPU 0x0

Linux version 3.10.0-xilinx (hidemi@saturn) (gcc version 4.8.1 (GCC) ) #1 SMP PREEMPT Wed Oct 9 22:42:37 JST 2013

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

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

Machine: Xilinx Zynq Platform, model: Xilinx Zynq

bootconsole [earlycon0] enabled

cma: CMA: reserved 16 MiB at 1e800000

Memory policy: ECC disabled, Data cache writealloc

PERCPU: Embedded 8 pages/cpu @c0a63000 s8256 r8192 d16320 u32768

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

Kernel command line: console=ttyPS0,115200 root=/dev/ram rw 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: 512MB = 512MB total

Memory: 496724k/496724k available, 27564k reserved, 0K highmem

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)

    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)

    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)

    modules : 0xbf000000 - 0xbfe00000   (  14 MB)

      .text : 0xc0008000 - 0xc05bf53c   (5854 kB)

      .init : 0xc05c0000 - 0xc05ec040   ( 177 kB)

      .data : 0xc05ee000 - 0xc062d7e0   ( 254 kB)

       .bss : 0xc062d7e0 - 0xc065adb4   ( 182 kB)

Preemptible hierarchical RCU implementation.

    Dump stacks of tasks blocking RCU-preempt GP.

    RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.

NR_IRQS:16 nr_irqs:16 16

ps7-slcr mapped to e0802000

Zynq clock init

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

ps7-ttc #0 at e0804000, irq=42

Console: colour dummy device 80x30

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

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

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

Setting up static identity map for 0xc041fa88 - 0xc041fae0

L310 cache controller enabled

l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x72060000, Cache size: 524288 B

CPU1: Booted secondary processor

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

NET: Registered protocol family 16

DMA: preallocated 256 KiB pool for atomic coherent allocations

xgpiops e000a000.ps7-gpio: gpio at 0xe000a000 mapped to 0xe080c000

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

WARNING: at fs/sysfs/dir.c:530 sysfs_add_one+0x78/0x98()

sysfs: cannot create duplicate filename ''/devices/fpga-axi.1/41600000.i2c''

Modules linked in:

CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.0-xilinx #1

[<c0014200>] (unwind_backtrace+0x0/0x11c) from [<c0011358>] (show_stack+0x10/0x14)

[<c0011358>] (show_stack+0x10/0x14) from [<c0020090>] (warn_slowpath_common+0x4c/0x6c)

[<c0020090>] (warn_slowpath_common+0x4c/0x6c) from [<c00200dc>] (warn_slowpath_fmt+0x2c/0x3c)

[<c00200dc>] (warn_slowpath_fmt+0x2c/0x3c) from [<c00f3234>] (sysfs_add_one+0x78/0x98)

[<c00f3234>] (sysfs_add_one+0x78/0x98) from [<c00f33ec>] (create_dir+0x58/0xb8)

[<c00f33ec>] (create_dir+0x58/0xb8) from [<c00f3754>] (sysfs_create_dir+0xb0/0xd0)

[<c00f3754>] (sysfs_create_dir+0xb0/0xd0) from [<c01b1788>] (kobject_add_internal+0x108/0x214)

[<c01b1788>] (kobject_add_internal+0x108/0x214) from [<c01b1ae4>] (kobject_add+0x6c/0x8c)

[<c01b1ae4>] (kobject_add+0x6c/0x8c) from [<c0234810>] (device_add+0x108/0x5b8)

[<c0234810>] (device_add+0x108/0x5b8) from [<c034eef0>] (of_platform_device_create_pdata+0x58/0x78)

[<c034eef0>] (of_platform_device_create_pdata+0x58/0x78) from [<c034f158>] (of_platform_bus_create+0x23c/0x2fc)

[<c034f158>] (of_platform_bus_create+0x23c/0x2fc) from [<c034f1c4>] (of_platform_bus_create+0x2a8/0x2fc)

[<c034f1c4>] (of_platform_bus_create+0x2a8/0x2fc) from [<c034f380>] (of_platform_populate+0x60/0x8c)

[<c034f380>] (of_platform_populate+0x60/0x8c) from [<c05c3308>] (customize_machine+0x1c/0x40)

[<c05c3308>] (customize_machine+0x1c/0x40) from [<c0008648>] (do_one_initcall+0xb8/0x160)

[<c0008648>] (do_one_initcall+0xb8/0x160) from [<c05c0908>] (kernel_init_freeable+0x108/0x1c8)

[<c05c0908>] (kernel_init_freeable+0x108/0x1c8) from [<c0414780>] (kernel_init+0x8/0xe4)

[<c0414780>] (kernel_init+0x8/0xe4) from [<c000e3d8>] (ret_from_fork+0x14/0x3c)

---[ end trace f296f9def4a1b038 ]---

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

WARNING: at lib/kobject.c:196 kobject_add_internal+0x1a0/0x214()

kobject_add_internal failed for 41600000.i2c with -EEXIST, don''t try to register things with the same name in the same directory.

Modules linked in:

CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W    3.10.0-xilinx #1

[<c0014200>] (unwind_backtrace+0x0/0x11c) from [<c0011358>] (show_stack+0x10/0x14)

[<c0011358>] (show_stack+0x10/0x14) from [<c0020090>] (warn_slowpath_common+0x4c/0x6c)

[<c0020090>] (warn_slowpath_common+0x4c/0x6c) from [<c00200dc>] (warn_slowpath_fmt+0x2c/0x3c)

[<c00200dc>] (warn_slowpath_fmt+0x2c/0x3c) from [<c01b1820>] (kobject_add_internal+0x1a0/0x214)

[<c01b1820>] (kobject_add_internal+0x1a0/0x214) from [<c01b1ae4>] (kobject_add+0x6c/0x8c)

[<c01b1ae4>] (kobject_add+0x6c/0x8c) from [<c0234810>] (device_add+0x108/0x5b8)

[<c0234810>] (device_add+0x108/0x5b8) from [<c034eef0>] (of_platform_device_create_pdata+0x58/0x78)

[<c034eef0>] (of_platform_device_create_pdata+0x58/0x78) from [<c034f158>] (of_platform_bus_create+0x23c/0x2fc)

[<c034f158>] (of_platform_bus_create+0x23c/0x2fc) from [<c034f1c4>] (of_platform_bus_create+0x2a8/0x2fc)

[<c034f1c4>] (of_platform_bus_create+0x2a8/0x2fc) from [<c034f380>] (of_platform_populate+0x60/0x8c)

[<c034f380>] (of_platform_populate+0x60/0x8c) from [<c05c3308>] (customize_machine+0x1c/0x40)

[<c05c3308>] (customize_machine+0x1c/0x40) from [<c0008648>] (do_one_initcall+0xb8/0x160)

[<c0008648>] (do_one_initcall+0xb8/0x160) from [<c05c0908>] (kernel_init_freeable+0x108/0x1c8)

[<c05c0908>] (kernel_init_freeable+0x108/0x1c8) from [<c0414780>] (kernel_init+0x8/0xe4)

[<c0414780>] (kernel_init+0x8/0xe4) from [<c000e3d8>] (ret_from_fork+0x14/0x3c)

---[ end trace f296f9def4a1b039 ]---

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

hw-breakpoint: maximum watchpoint size is 4 bytes.

bio: create slab <bio-0> at 0

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

EDAC MC: Ver: 3.0.0

Advanced Linux Sound Architecture Driver Initialized.

Switching to clocksource ttc_clocksource

NET: Registered protocol family 2

TCP established hash table entries: 4096 (order: 3, 32768 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

jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.

msgmni has been set to 1002

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

dma-pl330: probe of f8003000.ps7-dma failed with error -2

xilinx-dma 40400000.axidma: Probing xilinx axi dma engine

xilinx-dma 40400000.axidma: unable to request IRQ

xilinx-vdma 43000000.axivdma: Probing xilinx axi vdma engine

xilinx-vdma 43000000.axivdma: unable to request IRQ

e0001�˽��[ttyPS0] enabled, bootconsole disabled

console [ttyPS0] enabled, bootconsole disabled

xdevcfg f8007000.ps7-dev-cfg: ioremap f8007000 to e0874000 with size 100

[drm] Initialized drm 1.1.0 20060810

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

brd: module loaded

loop: module loaded

xqspips e000d000.ps7-qspi: master is unqueued, this is deprecated

m25p80 spi0.0: found s25fl256s1, expected n25q128

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"

xqspips e000d000.ps7-qspi: at 0xE000D000 mapped to 0xE0876000, irq=51

e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k

e1000e: Copyright(c) 1999 - 2013 Intel Corporation.

libphy: XEMACPS mii bus: probed

mdio_bus e000b000: cannot get PHY at address 7

xemacps e000b000.ps7-ethernet: pdev->id -1, baseaddr 0xe000b000, irq 54

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

ehci-pci: EHCI PCI platform driver

ULPI transceiver vendor/product ID 0x0451/0x1507

Found TI TUSB1210 ULPI transceiver.

ULPI integrity check: passed.

xusbps-ehci xusbps-ehci.0: Xilinx PS USB EHCI Host Controller

xusbps-ehci xusbps-ehci.0: new USB bus registered, assigned bus number 1

xusbps-ehci xusbps-ehci.0: irq 53, io mem 0x00000000

xusbps-ehci xusbps-ehci.0: USB 2.0 started, EHCI 1.00

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

usbcore: registered new interface driver usb-storage

mousedev: PS/2 mouse device common for all mice

i2c /dev entries driver

xadcps f8007100.ps7-xadc: enabled:    yes    reference:    external

zynq-edac f8006000.ps7-ddrc: ecc not enabled

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

sdhci-pltfm: SDHCI platform and OF driver helper

mmc0: Invalid maximum block size, assuming 512 bytes

mmc0: SDHCI controller on e0100000.ps7-sdio [e0100000.ps7-sdio] using ADMA

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

ERROR: could not get clock /fpga-axi@0/axi-spdif-tx@0x75c00000:axi(0)

axi-spdif: probe of 75c00000.axi-spdif-tx failed with error -2

ERROR: could not get clock /fpga-axi@0/axi-i2s@0x77600000:axi(0)

axi-i2s: probe of 77600000.axi-i2s failed with error -2

adv7511-hdmi-snd adv7511_hdmi_snd.3: ASoC: CPU DAI (null) not registered

platform adv7511_hdmi_snd.3: Driver adv7511-hdmi-snd requests probe deferral

zed-adau1761-snd zed_sound.4: ASoC: CPU DAI (null) not registered

platform zed_sound.4: Driver zed-adau1761-snd requests probe deferral

TCP: cubic registered

NET: Registered protocol family 17

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

Registering SWP/SWPB emulation handler

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

adv7511-hdmi-snd adv7511_hdmi_snd.3: ASoC: CPU DAI (null) not registered

platform adv7511_hdmi_snd.3: Driver adv7511-hdmi-snd requests probe deferral

mmc0: new high speed SDHC card at address 0007

mmcblk0: mmc0:0007 SD04G 3.70 GiB

 mmcblk0: p1 p2

zed-adau1761-snd zed_sound.4: ASoC: CPU DAI (null) not registered

platform zed_sound.4: Driver zed-adau1761-snd requests probe deferral

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

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

ALSA device list:

  No soundcards found.

List of all partitions:

1f00            1024 mtdblock0  (driver?)

1f01            5120 mtdblock1  (driver?)

1f02             128 mtdblock2  (driver?)

1f03            6016 mtdblock3  (driver?)

1f04            4096 mtdblock4  (driver?)

b300         3887104 mmcblk0  driver: mmcblk

  b301         1048576 mmcblk0p1 00000000-01

  b302         2837504 mmcblk0p2 00000000-02

No filesystem could mount root, tried:  ext3 ext2 ext4 vfat msdos

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

CPU1: stopping

CPU: 1 PID: 0 Comm: swapper/1 Tainted: G        W    3.10.0-xilinx #1

[<c0014200>] (unwind_backtrace+0x0/0x11c) from [<c0011358>] (show_stack+0x10/0x14)

[<c0011358>] (show_stack+0x10/0x14) from [<c0013078>] (ipi_cpu_stop+0x3c/0x6c)

[<c0013078>] (ipi_cpu_stop+0x3c/0x6c) from [<c0013318>] (handle_IPI+0x68/0xac)

[<c0013318>] (handle_IPI+0x68/0xac) from [<c00084fc>] (gic_handle_irq+0x58/0x60)

[<c00084fc>] (gic_handle_irq+0x58/0x60) from [<c000df40>] (__irq_svc+0x40/0x70)

Exception stack(0xde485fa0 to 0xde485fe8)

5fa0: c0a6b968 00000000 00001500 00000000 de484000 de484030 10c0387d c062db58

5fc0: 0000406a 413fc090 00000000 00000000 00000000 de485fe8 c000ef28 c000ef2c

5fe0: 60000113 ffffffff

[<c000df40>] (__irq_svc+0x40/0x70) from [<c000ef2c>] (arch_cpu_idle+0x24/0x2c)

[<c000ef2c>] (arch_cpu_idle+0x24/0x2c) from [<c004efa8>] (cpu_startup_entry+0xbc/0x120)

[<c004efa8>] (cpu_startup_entry+0xbc/0x120) from [<00416844>] (0x416844)