[U-Boot] Linux fails to boot since commit c2e7e72

Masahiro Yamada yamada.masahiro at socionext.com
Mon Jan 23 09:08:13 CET 2017


Hi.

Today, I noticed Linux fails to mount initramdisk
on my boards.

I found I could solve the issue by reverting the following commit:

commit c2e7e72bb9f0cb47d024997b381cb64786eb5402
Author: Rick Altherr <raltherr at google.com>
Date:   Wed Jan 18 17:12:24 2017 -0800

    bootm: relocate ramdisk if CONFIG_SYS_BOOT_RAMDISK_HIGH set



I have not figured out the detail yet.

The boot log is like this:


## Loading init Ramdisk from Legacy Image at 84a00000 ...
   Image Name:
   Created:      2017-01-23   7:35:51 UTC
   Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
   Data Size:    5081407 Bytes = 4.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 84100000
   Booting using the fdt blob at 0x84100000
   reserving fdt memory region: addr=80000000 size=80000
   Loading Device Tree to 000000009fffa000, end 000000009ffff982 ... OK
   Reserved memory region for DRAM PHY training: addr=bfffffc0 size=40
   Reserved memory region for DRAM PHY training: addr=ffffffc0 size=40
   Reserved memory region for DRAM PHY training: addr=13fffffc0 size=40

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.0-rc5-00088-ge917eee (masahiro at pug)
(gcc version 6.1.1 20160711 (Linaro GCC 6.1-2016.08) ) #5 SMP PREEMPT
Mon Jan 23 16:22:34 JST 2017
[    0.000000] Boot CPU: AArch64 Processor [410fd082]
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 16 MiB at 0x00000000fec00000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] percpu: Embedded 21 pages/cpu @ffff8000bff8d000 s48024
r8192 d29800 u86016
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 774144
[    0.000000] Kernel command line:
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 524288 (order: 10,
4194304 bytes)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] software IO TLB [mem 0xfac00000-0xfec00000] (64MB)
mapped at [ffff80007ac00000-ffff80007ebfffff]
[    0.000000] Memory: 2992016K/3145728K available (8700K kernel code,
950K rwdata, 3896K rodata, 1024K init, 392K bss, 137328K reserved,
16384K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffff000000000000 - 0xffff000008000000
(   128 MB)
[    0.000000]     vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000
(129022 GB)
[    0.000000]       .text : 0xffff000008080000 - 0xffff000008900000
(  8704 KB)
[    0.000000]     .rodata : 0xffff000008900000 - 0xffff000008ce0000
(  3968 KB)
[    0.000000]       .init : 0xffff000008ce0000 - 0xffff000008de0000
(  1024 KB)
[    0.000000]       .data : 0xffff000008de0000 - 0xffff000008ecda00
(   951 KB)
[    0.000000]        .bss : 0xffff000008ecda00 - 0xffff000008f2fa4c
(   393 KB)
[    0.000000]     fixed   : 0xffff7dfffe7fd000 - 0xffff7dfffec00000
(  4108 KB)
[    0.000000]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000
(    16 MB)
[    0.000000]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000
(  2048 GB maximum)
[    0.000000]               0xffff7e0000000000 - 0xffff7e0003000000
(    48 MB actual)
[    0.000000]     memory  : 0xffff800000000000 - 0xffff8000c0000000
(  3072 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=4
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000005fe80000
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at
50.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff
max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns
[    0.000002] sched_clock: 56 bits at 50MHz, resolution 20ns, wraps
every 4398046511100ns
[    0.000129] Console: colour dummy device 80x25
[    0.000515] console [tty0] enabled
[    0.000536] Calibrating delay loop (skipped), value calculated
using timer frequency.. 100.00 BogoMIPS (lpj=200000)
[    0.000557] pid_max: default: 32768 minimum: 301
[    0.000602] Security Framework initialized
[    0.000634] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.000647] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.012001] ASID allocator initialised with 65536 entries
[    0.032264] EFI services will not be available.
[    0.048037] smp: Bringing up secondary CPUs ...
[    0.080180] Detected PIPT I-cache on CPU1
[    0.080206] GICv3: CPU1: found redistributor 1 region 0:0x000000005fea0000
[    0.080221] CPU1: Booted secondary processor [410fd082]
[    0.112182] CPU features: enabling workaround for ARM erratum 845719
[    0.112191] Detected VIPT I-cache on CPU2
[    0.112212] GICv3: CPU2: found redistributor 100 region 0:0x000000005fec0000
[    0.112232] CPU2: Booted secondary processor [410fd034]
[    0.144216] Detected VIPT I-cache on CPU3
[    0.144231] GICv3: CPU3: found redistributor 101 region 0:0x000000005fee0000
[    0.144244] CPU3: Booted secondary processor [410fd034]
[    0.144314] smp: Brought up 1 node, 4 CPUs
[    0.144411] SMP: Total of 4 processors activated.
[    0.144423] CPU features: detected feature: GIC system register CPU interface
[    0.144437] CPU features: detected feature: 32-bit EL0 Support
[    0.144489] CPU: All CPU(s) started at EL1
[    0.144515] alternatives: patching kernel code
[    0.145367] devtmpfs: initialized
[    0.146916] DMI not present or invalid.
[    0.147051] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.147358] pinctrl core: initialized pinctrl subsystem
[    0.148097] NET: Registered protocol family 16
[    0.160207] cpuidle: using governor menu
[    0.160334] vdso: 2 pages (1 code @ ffff000008907000, 1 data @
ffff000008de5000)
[    0.160361] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.160984] DMA: preallocated 256 KiB pool for atomic allocations
[    0.161165] Serial: AMBA PL011 UART driver
[    0.185442] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.186105] ACPI: Interpreter disabled.
[    0.186545] vgaarb: loaded
[    0.186725] SCSI subsystem initialized
[    0.187029] usbcore: registered new interface driver usbfs
[    0.187069] usbcore: registered new interface driver hub
[    0.187108] usbcore: registered new device driver usb
[    0.187323] pps_core: LinuxPPS API ver. 1 registered
[    0.187335] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
Rodolfo Giometti <giometti at linux.it>
[    0.187362] PTP clock support registered
[    0.187451] dmi: Firmware registration failed.
[    0.187555] Advanced Linux Sound Architecture Driver Initialized.
[    0.188072] clocksource: Switched to clocksource arch_sys_counter
[    0.188222] VFS: Disk quotas dquot_6.6.0
[    0.188277] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.188546] pnp: PnP ACPI: disabled
[    0.194220] NET: Registered protocol family 2
[    0.194632] TCP established hash table entries: 32768 (order: 6,
262144 bytes)
[    0.194780] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[    0.195202] TCP: Hash tables configured (established 32768 bind 32768)
[    0.195314] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[    0.195349] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[    0.195470] NET: Registered protocol family 1
[    0.195709] RPC: Registered named UNIX socket transport module.
[    0.195725] RPC: Registered udp transport module.
[    0.195735] RPC: Registered tcp transport module.
[    0.195745] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.196202] kvm [1]: HYP mode not available
[    0.197160] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.197241] audit: initializing netlink subsys (disabled)
[    0.197321] audit: type=2000 audit(0.192:1): initialized
[    0.197624] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.204954] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.205532] NFS: Registering the id_resolver key type
[    0.205554] Key type id_resolver registered
[    0.205564] Key type id_legacy registered
[    0.205579] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.205718] 9p: Installing v9fs 9p2000 file system support
[    0.207288] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 247)
[    0.207311] io scheduler noop registered
[    0.207467] io scheduler cfq registered (default)
[    0.207781] uniphier-system-bus 58c00000.system-bus: could not find
pctldev for node /soc/soc-glue at 5f800000/pinctrl/system_bus_grp,
deferring probe
[    0.213730] xenfs: not registering filesystem on non-xen platform
[    0.217146] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.218519] 54006800.serial: ttyS0 at MMIO 0x54006800 (irq = 6,
base_baud = 3676470) is a 16550A
[    0.952684] console [ttyS0] enabled
[    0.956611] SuperH (H)SCI(F) driver initialized
[    0.961385] msm_serial: driver initialized
[    0.965844] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.975504] loop: module loaded
[    0.979378] hisi_sas: driver version v1.6
[    0.985241] libphy: Fixed MDIO Bus: probed
[    0.989862] tun: Universal TUN/TAP device driver, 1.6
[    0.994931] tun: (C) 1999-2004 Max Krasnyansky <maxk at qualcomm.com>
[    1.001841] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    1.007692] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.013686] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    1.020668] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.026304] igbvf: Intel(R) Gigabit Virtual Function Network Driver
- version 2.4.0-k
[    1.034165] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.040152] sky2: driver version 1.30
[    1.044204] VFIO - User Level meta-driver version: 0.3
[    1.050402] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.056960] ehci-pci: EHCI PCI platform driver
[    1.061464] ehci-platform: EHCI generic platform driver
[    1.066771] ehci-exynos: EHCI EXYNOS driver
[    1.071029] ehci-msm: Qualcomm On-Chip EHCI Host Controller
[    1.076678] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.082881] ohci-pci: OHCI PCI platform driver
[    1.087390] ohci-platform: OHCI generic platform driver
[    1.092693] ohci-exynos: OHCI EXYNOS driver
[    1.097194] usbcore: registered new interface driver usb-storage
[    1.103922] mousedev: PS/2 mouse device common for all mice
[    1.110350] i2c /dev entries driver
[    1.117644] sdhci: Secure Digital Host Controller Interface driver
[    1.123868] sdhci: Copyright(c) Pierre Ossman
[    1.128434] Synopsys Designware Multimedia Card Interface Driver
[    1.134874] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.184080] mmc0: SDHCI controller on 5a000000.sdhc [5a000000.sdhc]
using ADMA 64-bit
[    1.192444] ledtrig-cpu: registered to indicate activity on CPUs
[    1.199357] usbcore: registered new interface driver usbhid
[    1.204962] usbhid: USB HID core driver
[    1.209886] NET: Registered protocol family 17
[    1.214415] 9pnet: Installing 9P2000 support
[    1.218771] Key type dns_resolver registered
[    1.223349] registered taskstats version 1
[    1.229380] 43f00000.ethernet supply vdd33a not found, using dummy regulator
[    1.236500] 43f00000.ethernet supply vddvario not found, using
dummy regulator
[    1.257111] mmc0: new HS200 MMC card at address 0001
[    1.262464] mmcblk0: mmc0:0001 004G60 3.69 GiB
[    1.264403] libphy: smsc911x-mdio: probed
[    1.264713] smsc911x 43f00000.ethernet eth0: MAC Address: 36:4c:f1:fe:9e:96
[    1.264966] hctosys: unable to open rtc device (rtc0)
[    1.265073] ALSA device list:
[    1.265074]   No soundcards found.
[    1.289656] mmcblk0boot0: mmc0:0001 004G60 partition 1 2.00 MiB
[    1.295715] mmcblk0boot1: mmc0:0001 004G60 partition 2 2.00 MiB
[    1.301761] mmcblk0rpmb: mmc0:0001 004G60 partition 3 512 KiB
[    1.309224] VFS: Cannot open root device "(null)" or
unknown-block(0,0): error -6
[    1.316748] Please append a correct "root=" boot option; here are
the available partitions:
[    1.325138] b300         3866624 mmcblk0
[    1.325141]  driver: mmcblk
[    1.331960] b360             512 mmcblk0rpmb
[    1.331962]  (driver?)
[    1.338696] b340            2048 mmcblk0boot1
[    1.338698]  (driver?)
[    1.345525] b320            2048 mmcblk0boot0
[    1.345526]  (driver?)
[    1.352348] Kernel panic - not syncing: VFS: Unable to mount root
fs on unknown-block(0,0)
[    1.360638] CPU: 1 PID: 1 Comm: swapper/0 Not tainted
4.10.0-rc5-00088-ge917eee #5
[    1.368224] Hardware name: UniPhier LD20 Reference Board (DT)
[    1.373982] Call trace:
[    1.376440] [<ffff000008088570>] dump_backtrace+0x0/0x238
[    1.381852] [<ffff0000080887bc>] show_stack+0x14/0x20
[    1.386919] [<ffff00000838325c>] dump_stack+0x9c/0xc0
[    1.391985] [<ffff00000816fd04>] panic+0x118/0x280
[    1.396790] [<ffff000008ce1130>] mount_block_root+0x184/0x25c
[    1.402549] [<ffff000008ce1324>] mount_root+0x11c/0x134
[    1.407779] [<ffff000008ce1478>] prepare_namespace+0x13c/0x184
[    1.413621] [<ffff000008ce0d70>] kernel_init_freeable+0x214/0x238
[    1.419732] [<ffff0000088e0700>] kernel_init+0x10/0x100
[    1.424971] [<ffff000008082ec0>] ret_from_fork+0x10/0x50
[    1.430298] SMP: stopping secondary CPUs
[    1.434235] Kernel Offset: disabled
[    1.437728] Memory Limit: none
[    1.440786] ---[ end Kernel panic - not syncing: VFS: Unable to
mount root fs on unknown-block(0,0)

-- 
Best Regards
Masahiro Yamada


More information about the U-Boot mailing list