On 29/9/2013 10:33 PM, Michael Biebl wrote:
Am 29.09.2013 14:27, schrieb Michael Biebl:
Where exactly does the "boot hang". Is it in the initramfs?
What are the last messages you see on the screen (screenshot is fine).
Do you get a rescue shell after waiting for some time?
Could you check if you have the correctly named symlinks in
/dev/disk/by-label and /dev/disk/by-uuid?
Yes. See below.


Fwiw, what is  CuBox Linux 3.11.0? Is that a Debian derivative?

Hardware: ARM Dove. Marvell Armada 510 SoC.
Kernel: 3.11.0 with a small patch to the device tree.


Could you also attach the /etc/fstab with causes the boot failure.
See below.

Thank you I have isolated the issue with LABEL and UUID. It is specific to root entries in fstab.

the following works:

LABEL=cubox-rootfs / ext4 rw,noatime,nodiratime,errors=continue,commit=15,data
=writeback,user_xattr 0 1

the following fails:

LABEL="cubox-rootfs" / ext4 rw,noatime,nodiratime,errors=continue,commit=15,data
=writeback,user_xattr 0 1


The same occurs with UUID, if it is quoted it fails.
However, using the same drive as a non root entry a quoted named works. e.g.

LABEL="cubox-rootfs" /mnt/mmc2 ext4 rw,noatime,nodiratime,errors=continue,commit=15,data
=writeback,user_xattr 0 2


Repeating, when I quote a root device LABEL or UUID it fails, when it is unquoted it works. Non-root devices work in either case.

I generated as much logging as I know how. On failure the boot console shows what is in the attachment.

I tried this again with an earlier version of jessie and (udev 175) and it has the same quote problem, but what is at /run/rootdev seems to work for the rootfs fallback.

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.11.0 (root@cubox) (gcc version 4.8.1 (Debian 4.8.1-2) ) #7 
PREEMPT Wed Sep 11 13:02:56 EST 2013
CPU: ARMv7 Processor [560f5815] revision 5 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Machine: Marvell Dove (Flattened Device Tree), model: SolidRun CuBox
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 262144
free_area_init_node: node 0, pgdat 805e1344, node_mem_map 80801000
  Normal zone: 2048 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 262144 pages, LIFO batch:31
CPU: All CPU(s) started in SVC mode.
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
Kernel command line: console=ttyS0,115200n8 earlyprintk 
video=HDMI-A-1:1920x1080-32@60 
mtdparts=spi0.0:512k(u-boot),64k(uboot_env),-(kernel) root=/dev/mmcblk0p2 
rootwait rootfstype=ext4 disable_ipv6=1 ipv6.disable=1 debug
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: 1033400K/1048576K available (4400K kernel code, 206K rwdata, 1228K 
rodata, 146K init, 95K bss, 15176K reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x80587420   (5630 kB)
      .init : 0x80588000 - 0x805ac8a0   ( 147 kB)
      .data : 0x805ae000 - 0x805e1b60   ( 207 kB)
       .bss : 0x805e1b60 - 0x805f9898   (  96 kB)
Preemptible hierarchical RCU implementation.
NR_IRQS:135
sched_clock: 32 bits at 166MHz, resolution 5ns, wraps every 25769ms
Console: colour dummy device 80x30
Calibrating delay loop... 789.70 BogoMIPS (lpj=3948544)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys blkio
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x8042f650 - 0x8042f6a8
devtmpfs: initialized
pinctrl core: initialized pinctrl subsystem
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Dove 88AP510 SoC
Tauros2: Disabling L2 prefetch.
Tauros2: Disabling line fill burt8.
Tauros2: Enabling L2 cache.
Tauros2: L2 cache support initialised in ARMv7 mode.
hw-breakpoint: debug architecture 0x4 unsupported.
bio: create slab <bio-0> at 0
USB Power: Failed to request enable GPIO1: -517
reg-fixed-voltage 1.regulator: Failed to register regulator: -517
platform 1.regulator: Driver reg-fixed-voltage requests probe deferral
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource orion_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 512 (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.
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
fuse init (API version 7.22)
msgmni has been set to 2018
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
dove-pinctrl f10d0200.pinctrl: registered pinctrl driver
mv_xor f1060800.dma-engine: Marvell shared XOR driver
mv_xor f1060800.dma-engine: Marvell XOR: ( xor cpy )
mv_xor f1060800.dma-engine: Marvell XOR: ( xor cpy )
mv_xor f1060900.dma-engine: Marvell shared XOR driver
mv_xor f1060900.dma-engine: Marvell XOR: ( xor cpy )
mv_xor f1060900.dma-engine: Marvell XOR: ( xor cpy )
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 7) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
sata_mv f10a0000.sata: version 1.28
sata_mv f10a0000.sata: slots 32 ports 1
scsi0 : sata_mv
ata1: SATA max UDMA/133 irq 62
m25p80 spi0.0: n25q032 (4096 Kbytes)
3 cmdlinepart partitions found on MTD device spi0.0
Creating 3 MTD partitions on "spi0.0":
0x000000000000-0x000000080000 : "u-boot"
0x000000080000-0x000000090000 : "uboot_env"
0x000000090000-0x000000400000 : "kernel"
libphy: orion_mdio_bus: probed
mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 
d0:63:b4:00:00:41
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-orion: EHCI orion driver
orion-ehci f1050000.usb-host: EHCI Host Controller
orion-ehci f1050000.usb-host: new USB bus registered, assigned bus number 1
orion-ehci f1050000.usb-host: irq 24, io mem 0xf1050000
orion-ehci f1050000.usb-host: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
orion-ehci f1051000.usb-host: EHCI Host Controller
orion-ehci f1051000.usb-host: new USB bus registered, assigned bus number 2
orion-ehci f1051000.usb-host: irq 25, io mem 0xf1051000
orion-ehci f1051000.usb-host: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
rtc-mv f10d8500.rtc: rtc core: registered f10d8500.rtc as rtc0
i2c /dev entries driver
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: no vqmmc regulator found
mmc0: no vmmc regulator found
mmc0: new high speed SDHC card at address b368
mmcblk0: mmc0:b368       14.9 GiB
 mmcblk0: p1 p2
mmc0: SDHCI controller on f1092000.sdio [f1092000.sdio] using DMA
hidraw: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 17
Key type dns_resolver registered
VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 5
ThumbEE CPU extension supported.
PJ4 iWMMXt coprocessor enabled.
registered taskstats version 1
USB Power: 5000 mV
rtc-mv f10d8500.rtc: setting system clock to 2013-09-29 14:14:46 UTC 
(1380464086)
ALSA device list:
  No soundcards found.
ata1: SATA link down (SStatus 0 SControl F300)
EXT4-fs (mmcblk0p2): mounted filesystem with writeback data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 144K (80588000 - 805ac000)
usb 1-1: new high-speed USB device number 2 using orion-ehci
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
Mount failed for selinuxfs on /sys/fs/selinux:  No such file or directory
INIT: version 2.88 booting
usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[info] Using makefile-style concurrent boot in runlevel S.
findfs: unable to resolve 'LABEL="cubox-rootfs"'
[warn] Files under mount point '/run' will be hidden. ... (warning).
usb-storage 1-1.1:1.0: USB Mass Storage device detected
scsi1 : usb-storage 1-1.1:1.0
[....] Starting the hotplug events dispatcher: udevdsystemd-udevd[658]: 
starting version 204
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...orion_wdt: Initial timeout 25 
sec
done.
[ ok ] Setting hostname to 'cubox'...done.
[ ok ] Setting preliminary keymap...done.
[ ok ] Setting parameters of disc: (none).
findfs: unable to resolve 'LABEL="cubox-rootfs"'
[ ok ] Activating swap:.
Usage: mountpoint [-q] [-d] [-x] path
EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.20.1
[/sbin/fsck.ext4 (1) -- /run/rootdev] fsck.ext4 -a -C0 /run/rootdev
fsck.ext4: Permission denied while trying to open /run/rootdev
You must have r/w access to the filesystem or be root
fsck died with exit status 8
 failed!
[....] An automatic file system check (fsck) of the root filesystem failed. A 
manual fsck must be performed, then the system restarted. The fsck should be 
perfo[FAILin maintenance mode with the root filesystem mounted in read-only 
mode. ... failed!
[....] The root filesystem is currently mounted in read-only mode. A 
maintenance shell will now be started. After performing system maintenance, 
press CONTROL-D[warnerminate the maintenance shell and restart the system. ... 
(warning).
Give root password for maintenance
(or type Control-D to continue): scsi 1:0:0:0: Direct-Access     Imation  M100 
USB 3       0.00 PQ: 0 ANSI: 6
sd 1:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 00 00 00 00
sd 1:0:0:0: [sda] Asking for cache data failed
sd 1:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Asking for cache data failed
sd 1:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 sda2 sda3
sd 1:0:0:0: [sda] Asking for cache data failed
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI disk

Reply via email to