On Sun, Oct 19, 2014 at 12:13:19PM +0100, Ian Campbell wrote:
> What device is your rootfs on?

/dev/sda1

> I'm booting with root on /dev/sdb (the external sd card) and that seems
> ok. My internal sdcard is knackered so I can't test but I think the
> controllers etc are the same. (not posting my dmesg because it is mostly
> sda failure spew).

> Some potentially interesting package versions from my system for
> comparison:
> ii  linux-image-3.16-2-kirkwood             3.16.3-2                 armel    
>                 Linux 3.16 for Marvell Kirkwood
> ii  linux-image-kirkwood                    3.16+61                  armel    
>                 Linux for Marvell Kirkwood (meta-package)
> ii  initramfs-tools                         0.116                    all      
>                 generic modular initramfs generator
> ii  flash-kernel                            3.25                     armel    
>                 utility to make certain embedded devices bootable

All same.

> I have MODULES=dep via /etc/initramfs-tools/conf.d/driver-policy (which
> overrides /etc/initramfs-tools/initramfs.conf). This is normal for an
> armel system.

Did not have this, uInitrd has now shrunk considerably.

> My command line is "console=ttyS0,115200n8 rootwait root=/dev/sdb2".
> Since /dev/sd[ab] are on a USB bus perhaps rootwait is what makes the
> difference?

I've had rootwait on for years.

Other observations:

If I boot the wheezy kernel with no initrd it hangs in rootwait
for /dev/sda1.

If I boot the wheezy kernel with initrd and no dtb it boots fine.

If I boot the wheezy kernel with initrd and either the 3.16-2-kirkwood
dtb (10037 octets) or the 3.2.0-4-kirkwood dtb (976 octets), it
panics due to lack of root device just like with the jessie kernel.

break=premount does not appear to do anything.


2102509 bytes read in 367 ms (5.5 MiB/s)
9907620 bytes read in 1111 ms (8.5 MiB/s)
10037 bytes read in 195 ms (49.8 KiB/s)
## Booting kernel from Legacy Image at 06400000 ...
   Image Name:   kernel 3.16-2-kirkwood
   Created:      2014-10-19  13:11:29 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2102445 Bytes = 2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 06800000 ...
   Image Name:   ramdisk 3.16-2-kirkwood
   Created:      2014-10-19  13:11:31 UTC
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    9907556 Bytes = 9.4 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 00c00000
   Booting using the fdt blob at 0xc00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 0f68d000, end 0ffffd64 ... OK
   Loading Device Tree to 0f687000, end 0f68c734 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16-2-kirkwood (debian-ker...@lists.debian.org) 
(gcc version 4.8.3 (Debian 4.8.3-11) ) #1 Debian 3.16.3-2 (2014-09-20)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), 
cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Globalscale Technologies Dreamplug
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 513332K/524288K available (3948K kernel code, 360K 
rwdata, 1444K rodata, 282K init, 293K bss, 10956K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc054c43c   (5394 kB)
[    0.000000]       .init : 0xc054d000 - 0xc0593844   ( 283 kB)
[    0.000000]       .data : 0xc0594000 - 0xc05ee3e8   ( 361 kB)
[    0.000000]        .bss : 0xc05ee3e8 - 0xc06379c0   ( 294 kB)
[    0.000000] NR_IRQS:114
[    0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 
21474836475ns
[    0.008230] Console: colour dummy device 80x30
[    0.012823] Calibrating delay loop... 1185.79 BogoMIPS (lpj=2371584)
[    0.042872] pid_max: default: 32768 minimum: 301
[    0.047697] Security Framework initialized
[    0.051952] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.058765] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.065526] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.073411] Initializing cgroup subsys memory
[    0.077930] Initializing cgroup subsys devices
[    0.082548] Initializing cgroup subsys freezer
[    0.087132] Initializing cgroup subsys net_cls
[    0.091737] Initializing cgroup subsys blkio
[    0.096159] Initializing cgroup subsys perf_event
[    0.101000] Initializing cgroup subsys net_prio
[    0.105734] CPU: Testing write buffer coherency: ok
[    0.110827] ftrace: allocating 16494 entries in 33 pages
[    0.140048] Setting up static identity map for 0x3bbee0 - 0x3bbf38
[    0.149482] devtmpfs: initialized
[    0.154558] pinctrl core: initialized pinctrl subsystem
[    0.160413] regulator-dummy: no parameters
[    0.167525] NET: Registered protocol family 16
[    0.172433] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.180314] cpuidle: using governor ladder
[    0.184556] cpuidle: using governor menu
[    0.188790] Feroceon L2: Enabling L2
[    0.192518] Feroceon L2: Cache support initialised.
[    0.197836] [Firmware Info]: 
/ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is 
not set
[    0.223180] No ATAGs?
[    0.230344] Switched to clocksource orion_clocksource
[    0.256964] NET: Registered protocol family 2
[    0.262340] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.269586] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.276193] TCP: Hash tables configured (established 4096 bind 4096)
[    0.282762] TCP: reno registered
[    0.286089] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.292064] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.298635] NET: Registered protocol family 1
[    0.304727] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.311036] audit: initializing netlink subsys (disabled)
[    0.316604] audit: type=2000 audit(0.264:1): initialized
[    0.322874] zbud: loaded
[    0.325752] VFS: Disk quotas dquot_6.5.2
[    0.329856] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.336607] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.343996] msgmni has been set to 1002
[    0.349712] alg: No test for stdrng (krng)
[    0.354024] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 
252)
[    0.361746] io scheduler noop registered
[    0.365932] io scheduler cfq registered (default)
[    0.371899] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl 
driver
[    0.380657] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.406457] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.430451] mv_xor f1060800.xor: Marvell XOR: ( xor cpy )
[    0.436132] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.458454] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.482453] mv_xor f1060900.xor: Marvell XOR: ( xor cpy )
[    0.488373] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.496051] console [ttyS0] disabled
[    0.499787] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 
12500000) is a 16550A
[    0.508909] console [ttyS0] enabled
[    0.508909] console [ttyS0] enabled
[    0.516012] bootconsole [earlycon0] disabled
[    0.516012] bootconsole [earlycon0] disabled
[    0.526870] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    0.531812] 3 ofpart partitions found on MTD device spi0.0
[    0.537333] Creating 3 MTD partitions on "spi0.0":
[    0.542171] 0x000000000000-0x000000080000 : "u-boot"
[    0.548278] 0x000000100000-0x000000110000 : "u-boot env"
[    0.554718] 0x000000180000-0x000000190000 : "dtb"
[    0.561008] mousedev: PS/2 mouse device common for all mice
[    0.567173] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    0.574207] i2c /dev entries driver
[    0.579064] ledtrig-cpu: registered to indicate activity on CPUs
[    0.585330] TCP: cubic registered
[    0.588690] NET: Registered protocol family 17
[    0.593195] mpls_gso: MPLS GSO support
[    0.597665] registered taskstats version 1
[    0.602778] rtc-mv f1010300.rtc: setting system clock to 2014-10-19 13:13:53 
UTC (1413724433)
[    0.612428] List of all partitions:
[    0.615961] 1f00             512 mtdblock0  (driver?)
[    0.621053] 1f01              64 mtdblock1  (driver?)
[    0.626145] 1f02              64 mtdblock2  (driver?)
[    0.631242] No filesystem could mount root, tried:
[    0.636156] Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(0,0)
[    0.644456] CPU: 0 PID: 1 Comm: swapper Not tainted 3.16-2-kirkwood #1 
Debian 3.16.3-2
[    0.652430] [<c000f7f0>] (unwind_backtrace) from [<c000c4a0>] 
(show_stack+0x18/0x1c)
[    0.660209] [<c000c4a0>] (show_stack) from [<c03b42a8>] (panic+0x80/0x1f8)
[    0.667118] [<c03b42a8>] (panic) from [<c054e15c>] 
(mount_block_root+0x264/0x2ac)
[    0.674640] [<c054e15c>] (mount_block_root) from [<c054e330>] 
(prepare_namespace+0x124/0x184)
[    0.683202] [<c054e330>] (prepare_namespace) from [<c054dda8>] 
(kernel_init_freeable+0x1c0/0x208)
[    0.692113] [<c054dda8>] (kernel_init_freeable) from [<c03b380c>] 
(kernel_init+0x10/0xec)
[    0.700326] [<c03b380c>] (kernel_init) from [<c0009490>] 
(ret_from_fork+0x14/0x20)
[    0.707930] ---[ end Kernel panic - not syncing: VFS: Unable to mount root 
fs on unknown-block(0,0)



-- 
To UNSUBSCRIBE, email to debian-arm-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141019133134.ga10...@scru.org

Reply via email to