Bug#690744: Problem is present in jessie after upgrade from wheezy

Adam Ward caysho at internode.on.net
Sun Jun 21 06:59:53 UTC 2015


Hi,
It was working on wheezy.
I have had to add an entry into /etc/rc.local to have it sleep for 10 
seconds before doing a service restart.
Without the sleep the network is still not ready in time.

dmesg shows:

[    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.0-4-kirkwood 
(debian-kernel at lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) 
#1 Debian 3.16.7-ckt11-1 (2015-05-24)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), 
cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: QNAP TS-119/TS-219
[    0.000000] Ignoring unrecognised tag 0x41000403
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 262144
[    0.000000] free_area_init_node: node 0, pgdat c05d2ca4, node_mem_map 
eeff9000
[    0.000000]   DMA zone: 1520 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 194560 pages, LIFO batch:31
[    0.000000]   HighMem zone: 528 pages used for memmap
[    0.000000]   HighMem zone: 67584 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  
Total pages: 260624
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/ram 
initrd=0xa00000,0x900000 ramdisk=34816
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 
bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 
bytes)
[    0.000000] Memory: 1024016K/1048576K available (3899K kernel code, 
360K rwdata, 1440K rodata, 277K init, 289K bss, 24560K reserved, 270336K 
highmem)
[    0.000000] Virtual kernel memory layout:
     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
       .text : 0xc0008000 - 0xc053ee3c   (5340 kB)
       .init : 0xc053f000 - 0xc058472c   ( 278 kB)
       .data : 0xc0586000 - 0xc05e0068   ( 361 kB)
        .bss : 0xc05e0068 - 0xc062846c   ( 290 kB)
[    0.000000] NR_IRQS:114
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps 
every 21474836475ns
[    7.436581] Console: colour dummy device 80x30
[    7.436602] Calibrating delay loop... 1974.27 BogoMIPS (lpj=3948544)
[    7.452420] pid_max: default: 32768 minimum: 301
[    7.452501] Security Framework initialized
[    7.452538] Yama: disabled by default; enable with sysctl kernel.yama.*
[    7.452597] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    7.452611] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 
bytes)
[    7.453193] Initializing cgroup subsys memory
[    7.453223] Initializing cgroup subsys devices
[    7.453261] Initializing cgroup subsys freezer
[    7.453280] Initializing cgroup subsys net_cls
[    7.453314] Initializing cgroup subsys blkio
[    7.453339] Initializing cgroup subsys perf_event
[    7.453366] Initializing cgroup subsys net_prio
[    7.453439] CPU: Testing write buffer coherency: ok
[    7.453508] ftrace: allocating 16319 entries in 32 pages
[    7.468454] Setting up static identity map for 0x3b04b0 - 0x3b0508
[    7.470826] devtmpfs: initialized
[    7.472930] pinctrl core: initialized pinctrl subsystem
[    7.473274] regulator-dummy: no parameters
[    7.473597] NET: Registered protocol family 16
[    7.473871] DMA: preallocated 256 KiB pool for atomic coherent 
allocations
[    7.474711] cpuidle: using governor ladder
[    7.474731] cpuidle: using governor menu
[    7.474784] Kirkwood: MV88F6282-Rev-A1, TCLK=200000000.
[    7.474801] Feroceon L2: Enabling L2
[    7.474828] Feroceon L2: Cache support initialised.
[    7.475287] initial MPP regs: 01112222 43303311 55550000 00000000 
00000000 00000000 00000000
[    7.475302]   final MPP regs: 01552222 03303311 55550000 00000000 
00000000 00000000 00000000
[    7.476130] Kirkwood PCIe port 0: link up
[    7.476135] Kirkwood PCIe port 1: link up
[    7.476140] PCI: bus0 uses PCIe port 0
[    7.476289] PCI host bridge to bus 0000:00
[    7.476302] pci_bus 0000:00: root bus resource [mem 
0xe0000000-0xe7ffffff]
[    7.476309] pci_bus 0000:00: root bus resource [io 0x1000-0xffff]
[    7.476316] pci_bus 0000:00: No busn resource found for root bus, 
will use [bus 00-ff]
[    7.476337] pci 0000:00:00.0: [11ab:6282] type 00 class 0x058000
[    7.476354] pci 0000:00:00.0: reg 0x10: [mem 0xf1000000-0xf10fffff 
64bit pref]
[    7.476363] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x3fffffff]
[    7.476396] pci 0000:00:00.0: supports D1 D2
[    7.476590] pci 0000:00:01.0: [197b:2363] type 00 class 0x010601
[    7.476667] pci 0000:00:01.0: reg 0x24: [mem 0x90000000-0x90001fff]
[    7.476683] pci 0000:00:01.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    7.476739] pci 0000:00:01.0: PME# supported from D3hot
[    7.476918] pci 0000:00:01.1: [197b:2363] type 00 class 0x010185
[    7.476943] pci 0000:00:01.1: reg 0x10: [io  0x0000-0x0007]
[    7.476956] pci 0000:00:01.1: reg 0x14: [io  0x0000-0x0003]
[    7.476969] pci 0000:00:01.1: reg 0x18: [io  0x0000-0x0007]
[    7.476981] pci 0000:00:01.1: reg 0x1c: [io  0x0000-0x0003]
[    7.476994] pci 0000:00:01.1: reg 0x20: [io  0x0000-0x000f]
[    7.477202] PCI: bus0: Fast back to back transfers disabled
[    7.477213] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    7.477222] PCI: bus1 uses PCIe port 1
[    7.477361] PCI host bridge to bus 0000:01
[    7.477371] pci_bus 0000:01: root bus resource [mem 
0xe8000000-0xefffffff]
[    7.477379] pci_bus 0000:01: root bus resource [io 0x10000-0x1ffff]
[    7.477385] pci_bus 0000:01: No busn resource found for root bus, 
will use [bus 01-ff]
[    7.477403] pci 0000:01:00.0: [11ab:6282] type 00 class 0x058000
[    7.477417] pci 0000:01:00.0: reg 0x10: [mem 0xf1000000-0xf10fffff 
64bit pref]
[    7.477427] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x3fffffff]
[    7.477456] pci 0000:01:00.0: supports D1 D2
[    7.477612] pci 0000:01:01.0: [1b6f:7023] type 00 class 0x0c0330
[    7.477644] pci 0000:01:01.0: reg 0x10: [mem 0x98000000-0x98007fff 64bit]
[    7.477767] pci 0000:01:01.0: supports D1 D2
[    7.477774] pci 0000:01:01.0: PME# supported from D0 D1 D2 D3hot
[    7.477955] PCI: bus1: Fast back to back transfers disabled
[    7.477965] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    7.477994] pci 0000:01:01.0: BAR 0: assigned [mem 
0xe8000000-0xe8007fff 64bit]
[    7.478019] pci 0000:00:01.0: BAR 6: assigned [mem 
0xe0000000-0xe000ffff pref]
[    7.478028] pci 0000:00:01.0: BAR 5: assigned [mem 0xe0010000-0xe0011fff]
[    7.478040] pci 0000:00:01.1: BAR 4: assigned [io  0x1000-0x100f]
[    7.478050] pci 0000:00:01.1: BAR 0: assigned [io  0x1010-0x1017]
[    7.478061] pci 0000:00:01.1: BAR 2: assigned [io  0x1018-0x101f]
[    7.478072] pci 0000:00:01.1: BAR 1: assigned [io  0x1020-0x1023]
[    7.478083] pci 0000:00:01.1: BAR 3: assigned [io  0x1024-0x1027]
[    7.481101] Switched to clocksource orion_clocksource
[    7.496576] NET: Registered protocol family 2
[    7.497249] TCP established hash table entries: 8192 (order: 3, 32768 
bytes)
[    7.497352] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    7.497451] TCP: Hash tables configured (established 8192 bind 8192)
[    7.497509] TCP: reno registered
[    7.497517] UDP hash table entries: 512 (order: 1, 8192 bytes)
[    7.497548] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
[    7.497696] NET: Registered protocol family 1
[    7.497805] PCI: CLS 32 bytes, default 32
[    7.497964] Unpacking initramfs...
[    7.793805] Freeing initrd memory: 9216K (c0a00000 - c1300000)
[    7.794732] futex hash table entries: 256 (order: -1, 3072 bytes)
[    7.794783] audit: initializing netlink subsys (disabled)
[    7.794834] audit: type=2000 audit(0.356:1): initialized
[    7.795487] zbud: loaded
[    7.795666] VFS: Disk quotas dquot_6.5.2
[    7.795704] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    7.795775] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red 
Hat, Inc.
[    7.795928] msgmni has been set to 1490
[    7.797356] alg: No test for stdrng (krng)
[    7.797428] bounce: pool size: 64 pages
[    7.797477] Block layer SCSI generic (bsg) driver version 0.4 loaded 
(major 252)
[    7.797611] io scheduler noop registered
[    7.797711] io scheduler cfq registered (default)
[    7.798106] mv_xor mv_xor.0: Marvell shared XOR driver
[    7.817172] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    7.837168] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    7.837290] mv_xor mv_xor.1: Marvell shared XOR driver
[    7.857168] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[    7.877167] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[    7.877462] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.878131] console [ttyS0] disabled
[    7.898049] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, 
base_baud = 12500000) is a 16550A
[    8.513402] console [ttyS0] enabled
[    8.537170] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34, 
base_baud = 12500000) is a 16550A
[    8.547168] m25p80 spi0.0: found n25q128a13, expected m25p128
[    8.552958] m25p80 spi0.0: n25q128a13 (16384 Kbytes)
[    8.557959] Creating 6 MTD partitions on "spi_flash":
[    8.563037] 0x000000000000-0x000000080000 : "U-Boot"
[    8.568843] 0x000000200000-0x000000400000 : "Kernel"
[    8.574607] 0x000000400000-0x000000d00000 : "RootFS1"
[    8.580395] 0x000000d00000-0x000001000000 : "RootFS2"
[    8.586195] 0x000000080000-0x0000000c0000 : "U-Boot Config"
[    8.592516] 0x0000000c0000-0x000000200000 : "NAS Config"
[    8.598942] mousedev: PS/2 mouse device common for all mice
[    9.605183] rtc-mv rtc-mv: internal RTC not ticking
[    9.610177] i2c /dev entries driver
[    9.617429] rtc (null): invalid alarm value: 1900-1-21 11:48:0
[    9.623466] rtc-s35390a 0-0030: rtc core: registered rtc-s35390a as rtc0
[    9.630450] ledtrig-cpu: registered to indicate activity on CPUs
[    9.636672] TCP: cubic registered
[    9.640016] NET: Registered protocol family 17
[    9.644963] registered taskstats version 1
[    9.650565] rtc-s35390a 0-0030: setting system clock to 2015-06-21 
06:48:26 UTC (1434869306)
[    9.659506] PM: Hibernation image not present or could not be loaded.
[    9.660517] Freeing unused kernel memory: 276K (c053f000 - c0584000)
[    9.717619] systemd-udevd[48]: starting version 215
[    9.730490] random: systemd-udevd urandom read with 2 bits of entropy 
available
[    9.824020] SCSI subsystem initialized
[    9.870830] libata version 3.00 loaded.
[    9.872236] sata_mv sata_mv.0: version 1.28
[    9.872287] sata_mv sata_mv.0: cannot get optional clkdev
[    9.897746] sata_mv sata_mv.0: slots 32 ports 2
[    9.933266] scsi0 : sata_mv
[    9.939882] scsi1 : sata_mv
[    9.943196] ata1: SATA max UDMA/133 irq 21
[    9.947323] ata2: SATA max UDMA/133 irq 21
[   15.185131] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   15.213323] ata1.00: ATA-7: SAMSUNG HD103UJ, 1AA01118, max UDMA7
[   15.219363] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   15.233305] ata1.00: configured for UDMA/133
[   15.237876] scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG HD103UJ  
1118 PQ: 0 ANSI: 5
[   15.721128] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   15.741153] ata2.00: ATA-8: HGST HDS724040ALE640, MJAOA580, max UDMA/133
[   15.747888] ata2.00: 7814037168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   15.777153] ata2.00: configured for UDMA/133
[   15.781695] scsi 1:0:0:0: Direct-Access     ATA      HGST HDS724040AL 
A580 PQ: 0 ANSI: 5
[   15.805913] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: 
(1.00 TB/931 GiB)
[   15.814053] sd 1:0:0:0: [sdb] 7814037168 512-byte logical blocks: 
(4.00 TB/3.63 TiB)
[   15.821851] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[   15.827890] sd 0:0:0:0: [sda] Write Protect is off
[   15.832717] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   15.832891] sd 1:0:0:0: [sdb] Write Protect is off
[   15.837717] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[   15.837796] sd 0:0:0:0: [sda] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[   15.846961] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
[   15.886631]  sdb: sdb1 sdb2 sdb3
[   15.891695] sd 1:0:0:0: [sdb] Attached SCSI disk
[   15.929636]  sda: sda1
[   15.933129] sd 0:0:0:0: [sda] Attached SCSI disk
[   17.302815] PM: Starting manual resume from disk
[   17.307794] PM: Hibernation image partition 8:19 present
[   17.307799] PM: Looking for hibernation image.
[   17.308096] PM: Image not found (code -22)
[   17.308104] PM: Hibernation image not present or could not be loaded.
[   18.296177] EXT4-fs (sdb2): mounted filesystem with ordered data 
mode. Opts: (null)
[   18.358127] random: nonblocking pool is initialized
[   18.769233] systemd[1]: systemd 215 running in system mode. (+PAM 
+AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP 
-APPARMOR)
[   18.782816] systemd[1]: Detected architecture 'arm'.
[   18.960305] systemd[1]: Inserted module 'autofs4'
[   19.006785] NET: Registered protocol family 10
[   19.011920] systemd[1]: Inserted module 'ipv6'
[   19.022501] systemd[1]: Set hostname to <homeserver>.
[   19.724254] systemd[1]: Cannot add dependency job for unit 
display-manager.service, ignoring: Unit display-manager.service failed 
to load: No such file or directory.
[   19.741601] systemd[1]: Starting Forward Password Requests to Wall 
Directory Watch.
[   19.749606] systemd[1]: Started Forward Password Requests to Wall 
Directory Watch.
[   19.757307] systemd[1]: Expecting device dev-ttyS0.device...
[   19.773242] systemd[1]: Starting Remote File Systems (Pre).
[   19.789199] systemd[1]: Reached target Remote File Systems (Pre).
[   19.795466] systemd[1]: Starting Arbitrary Executable File Formats 
File System Automount Point.
[   19.817209] systemd[1]: Set up automount Arbitrary Executable File 
Formats File System Automount Point.
[   19.826763] systemd[1]: Starting Dispatch Password Requests to 
Console Directory Watch.
[   19.834977] systemd[1]: Started Dispatch Password Requests to Console 
Directory Watch.
[   19.842997] systemd[1]: Starting Paths.
[   19.857197] systemd[1]: Reached target Paths.
[   19.861659] systemd[1]: Starting Encrypted Volumes.
[   19.877192] systemd[1]: Reached target Encrypted Volumes.
[   19.882681] systemd[1]: Expecting device dev-sdb3.device...
[   19.897204] systemd[1]: Expecting device 
dev-disk-by\x2duuid-b16601aa\x2d4ea5\x2d4c29\x2da908\x2d20df75e438ca.device...
[   19.921208] systemd[1]: Expecting device 
dev-disk-by\x2duuid-92de026c\x2d0ac9\x2d4cc8\x2d9ffb\x2d501016eb9688.device...
[   19.945203] systemd[1]: Expecting device 
dev-disk-by\x2duuid-62027a50\x2db1ce\x2d4ba3\x2d9bbf\x2d95c98fb7afff.device...
[   19.969200] systemd[1]: Starting Root Slice.
[   19.981193] systemd[1]: Created slice Root Slice.
[   19.985993] systemd[1]: Starting Delayed Shutdown Socket.
[   20.001199] systemd[1]: Listening on Delayed Shutdown Socket.
[   20.007045] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[   20.025196] systemd[1]: Listening on /dev/initctl Compatibility Named 
Pipe.
[   20.032263] systemd[1]: Starting Journal Socket (/dev/log).
[   20.049196] systemd[1]: Listening on Journal Socket (/dev/log).
[   20.055249] systemd[1]: Starting udev Control Socket.
[   20.069197] systemd[1]: Listening on udev Control Socket.
[   20.074715] systemd[1]: Starting udev Kernel Socket.
[   20.089196] systemd[1]: Listening on udev Kernel Socket.
[   20.094614] systemd[1]: Starting User and Session Slice.
[   20.109200] systemd[1]: Created slice User and Session Slice.
[   20.115071] systemd[1]: Starting Journal Socket.
[   20.129200] systemd[1]: Listening on Journal Socket.
[   20.134332] systemd[1]: Starting System Slice.
[   20.149199] systemd[1]: Created slice System Slice.
[   20.154221] systemd[1]: Started File System Check on Root Device.
[   20.160401] systemd[1]: Starting system-systemd\x2dfsck.slice.
[   20.177200] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[   20.183626] systemd[1]: Starting Increase datagram queue length...
[   20.222937] systemd[1]: Starting Load Kernel Modules...
[   20.239525] systemd[1]: Starting Create list of required static 
device nodes for the current kernel...
[   20.271555] systemd[1]: Mounting POSIX Message Queue File System...
[   20.299037] systemd[1]: Started Set Up Additional Binary Formats.
[   20.309209] systemd[1]: Mounted Huge Pages File System.
[   20.315389] systemd[1]: Starting udev Coldplug all Devices...
[   20.331950] systemd[1]: Mounting Debug File System...
[   20.355281] systemd[1]: Starting system-getty.slice.
[   20.373246] systemd[1]: Created slice system-getty.slice.
[   20.379128] systemd[1]: Starting system-serial\x2dgetty.slice.
[   20.397244] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   20.403703] systemd[1]: Starting Slices.
[   20.417203] systemd[1]: Reached target Slices.
[   20.423843] systemd[1]: Starting Remount Root and Kernel File Systems...
[   20.439936] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   20.461248] systemd[1]: Started Increase datagram queue length.
[   20.481242] systemd[1]: Started Create list of required static device 
nodes for the current kernel.
[   20.494583] systemd[1]: Starting Create Static Device Nodes in /dev...
[   20.503601] loop: module loaded
[   20.519261] systemd[1]: Starting Syslog Socket.
[   20.537256] systemd[1]: Listening on Syslog Socket.
[   20.542412] systemd[1]: Starting Journal Service...
[   20.569283] systemd[1]: Started Journal Service.
[   20.681309] EXT4-fs (sdb2): re-mounted. Opts: errors=remount-ro
[   21.015180] systemd-udevd[156]: starting version 215
[   21.582253] usbcore: registered new interface driver usbfs
[   21.596420] usbcore: registered new interface driver hub
[   21.615220] usbcore: registered new device driver usb
[   21.633763] ahci 0000:00:01.0: version 3.0
[   21.649171] ahci 0000:00:01.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps 
0x3 impl SATA mode
[   21.657743] ahci 0000:00:01.0: flags: 64bit ncq pm led clo pmp pio 
slum part
[   21.670779] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   21.680377] xhci_hcd 0000:01:01.0: xHCI Host Controller
[   21.713170] xhci_hcd 0000:01:01.0: new USB bus registered, assigned 
bus number 1
[   21.726073] ehci-orion: EHCI orion driver
[   21.741165] scsi2 : ahci
[   21.759391] alg: hash: Test 3 failed for mv-sha1
[   21.764060] 00000000: 10 bf d7 00 71 0b bb 83 3a 26 d0 97 13 05 99 f5
[   21.770532] 00000010: 3a 92 53 3c
[   21.777155] scsi3 : ahci
[   21.780005] ata3: SATA max UDMA/133 abar m8192 at 0xe0010000 port 
0xe0010100 irq 9
[   21.787368] ata4: SATA max UDMA/133 abar m8192 at 0xe0010000 port 
0xe0010180 irq 9
[   21.801809] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   21.808652] usb usb1: New USB device strings: Mfr=3, Product=2, 
SerialNumber=1
[   21.815913] usb usb1: Product: xHCI Host Controller
[   21.820821] usb usb1: Manufacturer: Linux 3.16.0-4-kirkwood xhci_hcd
[   21.827212] usb usb1: SerialNumber: 0000:01:01.0
[   21.872470] alg: hash: Test 1 failed for mv-hmac-sha1
[   21.877570] 00000000: 0c aa 9f d5 37 c3 79 3a 91 d9 21 5f 42 2b 2c 24
[   21.884047] 00000010: b7 c3 16 0c
[   21.928807] libphy: orion_mdio_bus: probed
[   21.936336] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   21.948792] hub 1-0:1.0: USB hub found
[   21.954484] orion-ehci orion-ehci.0: EHCI Host Controller
[   21.967561] hub 1-0:1.0: 2 ports detected
[   21.977316] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   21.990681] orion-ehci orion-ehci.0: new USB bus registered, assigned 
bus number 2
[   22.001134] xhci_hcd 0000:01:01.0: xHCI Host Controller
[   22.016576] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   22.031636] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   22.038162] xhci_hcd 0000:01:01.0: new USB bus registered, assigned 
bus number 3
[   22.071195] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[   22.078051] usb usb3: New USB device strings: Mfr=3, Product=2, 
SerialNumber=1
[   22.085380] usb usb3: Product: xHCI Host Controller
[   22.090293] usb usb3: Manufacturer: Linux 3.16.0-4-kirkwood xhci_hcd
[   22.096685] usb usb3: SerialNumber: 0000:01:01.0
[   22.105172] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   22.113220] ata4: SATA link down (SStatus 0 SControl 300)
[   22.118721] ata3: SATA link down (SStatus 0 SControl 300)
[   22.149305] hub 3-0:1.0: USB hub found
[   22.173188] hub 3-0:1.0: 2 ports detected
[   22.209758] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[   22.216600] usb usb2: New USB device strings: Mfr=3, Product=2, 
SerialNumber=1
[   22.223860] usb usb2: Product: EHCI Host Controller
[   22.228769] usb usb2: Manufacturer: Linux 3.16.0-4-kirkwood ehci_hcd
[   22.235159] usb usb2: SerialNumber: orion-ehci.0
[   22.399861] hub 2-0:1.0: USB hub found
[   22.431929] hub 2-0:1.0: 1 port detected
[   22.465386] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC 
address 00:50:43:00:02:02
[   23.245634] EXT4-fs (sda1): mounted filesystem with ordered data 
mode. Opts: errors=remount-ro
[   23.289391] Adding 2578428k swap on /dev/sdb3.  Priority:-1 extents:1 
across:2578428k FS
[   24.981555] EXT4-fs (sdb1): mounting ext2 file system using the ext4 
subsystem
[   25.007460] EXT4-fs (sdb1): mounted filesystem without journal. Opts: 
(null)
[   25.129588] systemd-journald[143]: Received request to flush runtime 
journal from PID 1
[   25.572508] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[   25.579244] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   29.254812] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 
Mb/s, full duplex, flow control disabled
[   29.264711] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   34.113893] RPC: Registered named UNIX socket transport module.
[   34.119871] RPC: Registered udp transport module.
[   34.124602] RPC: Registered tcp transport module.
[   34.129328] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   34.180604] FS-Cache: Loaded
[   34.219862] FS-Cache: Netfs 'nfs' registered for caching
[   34.293519] Installing knfsd (copyright (C) 1996 okir at monad.swb.de).

mediatomb initscript is as follows:

#! /bin/sh
#
# MediaTomb initscript
#
# Original Author: Tor Krill <tor at excito.com>.
# Modified by:     Leonhard Wimmer <leo at mediatomb.cc>
# Modified again by Andres Mejia <mcitadel at gmail.com> to
# base it off of /etc/init.d/skeleton
#
#

### BEGIN INIT INFO
# Provides:          mediatomb
# Required-Start:    $local_fs $network $remote_fs
# Required-Stop:     $local_fs $network $remote_fs
# Should-Start:      $all
# Should-Stop:       $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: upnp media server
# Description:       Debian init script for the upnp media server
### END INIT INFO

# Do NOT "set -e"

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/usr/sbin:/usr/bin:/sbin:/bin
DESC="upnp media server"
NAME=mediatomb
DAEMON=/usr/bin/$NAME
PIDFILE=/var/run/$NAME.pid
LOGFILE=/var/log/$NAME.log
SCRIPTNAME=/etc/init.d/$NAME
DEFAULT=/etc/default/$NAME

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

# Read configuration variable file if it is present
[ -r $DEFAULT ] && . $DEFAULT

# Load the VERBOSE setting and other rcS variables
[ -f /etc/default/rcS ] && . /etc/default/rcS

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions

# Start the daemon if NO_START is disabled in DEFAULT
if [ "$NO_START" = "yes" ] && [ "$1" != "stop" ]; then
     log_warning_msg "$NAME: Not starting $DESC."
     log_warning_msg "$NAME: Disabled in $DEFAULT."
     exit 0
fi

# Run as root if USER not specified
if [ ! $USER ]; then
     USER=root
fi

# Check for an invalid user or one without a home directory
eval USERHOME=~$USER
if [ "${USERHOME#/}" = "${USERHOME}" ]; then
     log_failure_msg "$NAME: The user '$USER' specified in $DEFAULT is 
invalid."
     exit 1
fi

# Check if group is not specified and assign a proper group
if [ -z $GROUP ]; then
     GROUP="$USER"
fi

if [ "$INTERFACE" != "" ] ; then
     INTERFACE_ARG="-e $INTERFACE"
else
     INTERFACE_ARG=""
fi

DAEMON_ARGS="-c /etc/mediatomb/config.xml -d -u $USER -g $GROUP -P 
$PIDFILE -l $LOGFILE $INTERFACE_ARG $OPTIONS"

#
#       Function that starts the daemon/service.
#
do_start() {
     # Return
     #   0 if daemon has been started
     #   1 if daemon was already running
     #   2 if daemon could not be started
     touch $PIDFILE
     chown $USER:$GROUP $PIDFILE
     touch $LOGFILE
     chown $USER:$GROUP $LOGFILE
     start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \
         --test > /dev/null \
         || return 1
     start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON 
-- \
         $DAEMON_ARGS \
         || return 2
}

#
#       Function that stops the daemon/service.
#
do_stop() {
     # Return
     #   0 if daemon has been stopped
     #   1 if daemon was already stopped
     #   2 if daemon could not be stopped
     #   other if a failure occurred
     start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile 
$PIDFILE --name $NAME
     RETVAL="$?"
     [ "$RETVAL" = 2 ] && return 2
     rm -f $PIDFILE
     return "$RETVAL"
}

#
#       Function that sends a SIGHUP to the daemon/service.
#
do_reload() {
     start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE 
--name $NAME
     return 0
}

case "$1" in
   start)
     if [ -n "$INTERFACE" ]; then
         # try to add the multicast route
         if [ "$VERBOSE" != no ]; then
             {
                 log_action_begin_msg \
                 "$NAME: Trying to add the multicast route"
                 $ROUTE_ADD $INTERFACE \
                 && log_action_end_msg 0
             } || {
                 true && \
                 log_warning_msg "Failed to add multicast route. skipping."
             }
         else
             $ROUTE_ADD $INTERFACE >/dev/null 2>&1 || true
         fi
     fi
     log_daemon_msg "Starting $DESC" "$NAME"
     do_start
     case "$?" in
         0) log_end_msg 0 ;;
         1) log_warning_msg "$DESC" "'$NAME'" "was already started" ;;
         2) log_end_msg 1 ;;
     esac
     ;;
   stop)
     log_daemon_msg "Stopping $DESC" "$NAME"
     do_stop
     case "$?" in
         0)
             log_end_msg 0
             if [ -n "$INTERFACE" ]; then
                 # try to add the multicast route
                 if [ "$VERBOSE" != no ]; then
                 {
                     log_action_begin_msg \
                     "$NAME: Trying to delete the multicast route"
                     $ROUTE_DEL $INTERFACE \
                     && log_action_end_msg 0
                 } || {
                     true && \
                     log_warning_msg \
                     "Failed to delete multicast route. skipping."
                 }
                 else
                     $ROUTE_DEL $INTERFACE >/dev/null 2>&1 || true
                 fi
             fi
             ;;
         1) log_warning_msg "$DESC" "'$NAME'" "was already stopped" ;;
         2) log_end_msg 1 ;;
     esac
     ;;
   status)
     status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
     ;;
   reload|force-reload)
     log_daemon_msg "Reloading $DESC" "$NAME"
     do_reload
     log_end_msg $?
       ;;
   restart)
         #
         #       If the "reload" option is implemented, move the 
"force-reload"
         #       option to the "reload" entry above. If not, 
"force-reload" is
         #       just the same as "restart".
         #
     log_daemon_msg "Restarting $DESC" "$NAME"
     do_stop
     case "$?" in
       0|1)
         sleep 1
         do_start
         case "$?" in
             0) log_end_msg 0 ;;
             1) log_end_msg 1 ;; # Old process is still running
             *) log_end_msg 1 ;; # Failed to start
         esac
         ;;
       *)
           # Failed to stop
         log_end_msg 1
         ;;
     esac
     ;;
   *)
     #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
     echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
     exit 3
     ;;
esac

:



More information about the pkg-multimedia-maintainers mailing list