Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

QNAP 219 P II, Luks, Debian

141 views
Skip to first unread message

peng

unread,
Aug 9, 2014, 2:50:02 PM8/9/14
to
Hi All,
I followed http://www.cyrius.com/debian/kirkwood/qnap/ts-219/ and
converted my NAS to Debian. I tried the following,

1. raid0 (1G) as swap(encrypted as well with random key) and raid1 (rest
of 2x1T); luks on raid1; lvm on luks; /root and /home on lvm
2. raid0 (1G) and raid1 (rest of 2x1T); lvm on luks; /root and /home on
lvm.

Seceraio 2 works. sceraio 1 doesn't. Even I was able to put in
passphrase during initial boot via console, it's landing in initram sys
mode.

My intention is to have a fully encrypted NAS. I thought that
kernel/initramdisk on the internal Flash of NAS (which was instralled by
installer script) would good enough to serve as function of a seperate
/boot (which would host kernel/initramdisk image). It seems not so.

My question is , do we still have to rely on /boot on disk (be it on
Harddisk or a seperate usb), even we have kernel/initramd on the flash,
to make this full encryption working?

many thanks
Peng



--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/75a5756e1ecab2e6...@f2f10.com

Björn Wetterbom

unread,
Aug 11, 2014, 7:00:02 AM8/11/14
to
On Sat, Aug 9, 2014 at 8:17 PM, peng <li...@f2f10.com> wrote:
Hi All,
I followed http://www.cyrius.com/debian/kirkwood/qnap/ts-219/ and converted my NAS to Debian. I tried the following,

1. raid0 (1G) as swap(encrypted as well with random key) and raid1 (rest of 2x1T); luks on raid1; lvm on luks; /root and /home on lvm
2. raid0 (1G) and raid1 (rest of 2x1T); lvm on luks; /root and /home on lvm. 

Seceraio  2 works. sceraio 1 doesn't. Even I was able to put in passphrase during initial boot via console, it's landing in initram sys mode.

I don't understand the difference between the two scenarios, your description is not very clear.

My intention is to have a fully encrypted NAS. I thought that kernel/initramdisk on the internal Flash of NAS (which was instralled by installer script) would good enough to serve as function of a seperate /boot (which would host kernel/initramdisk image). It seems not so.

My question is , do we still have to rely on /boot on disk (be it on Harddisk or a seperate usb), even we have kernel/initramd on the flash, to make this full encryption working?

I would assume yes. If you encrypt /boot, flash-kernel will write an encrypted kernel to flash, and it will not be able to decrypt itself. 

many thanks
Peng



--
To UNSUBSCRIBE, email to debian-arm-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

peng

unread,
Aug 13, 2014, 6:30:03 PM8/13/14
to
On 2014-08-09 14:17, peng wrote:
> Hi All,
> I followed http://www.cyrius.com/debian/kirkwood/qnap/ts-219/ and
> converted my NAS to Debian. I tried the following,
>
> 1. raid0 (1G) as swap(encrypted as well with random key) and raid1
> (rest of 2x1T); luks on raid1; lvm on luks; /root and /home on lvm
> 2. raid0 (1G) and raid1 (rest of 2x1T); lvm on luks; /root and /home on
> lvm.
>
> Seceraio 2 works. sceraio 1 doesn't. Even I was able to put in
> passphrase during initial boot via console, it's landing in initram
> sys mode.
>
> My intention is to have a fully encrypted NAS. I thought that
> kernel/initramdisk on the internal Flash of NAS (which was instralled
> by installer script) would good enough to serve as function of a
> seperate /boot (which would host kernel/initramdisk image). It seems
> not so.
>
> My question is , do we still have to rely on /boot on disk (be it on
> Harddisk or a seperate usb), even we have kernel/initramd on the
> flash, to make this full encryption working?
>
> many thanks
> Peng

So, here's my test.

1. Sole relying U-boot/kernel/initramd, with /root on hard disk, I can
enter passphrase for luks (for /root), but will land in shell and
complain lacking of /dev/ram.
2. Creating a seperate /boot either on harddisk or separate usb disk,
with /boot on luks on harddisk, I can enter passphrase for luks , but
will land in shell and it complains lacking of /dev/ram.
3. without luks, it works.

So, What seems to have caused this problem of not making luks work?

The other question is, whether the following are correct boot sequence?
U-boot----> Kernel on flash-->initramd on flash--> /boot/kernel on hard
disk and /boot/initramd on harddisk ---> /root.

or
U-boot----> Kernel on flash-->initramd on flash--> ---> /root.

On a typical linux system, it would be , Grub--->/boot/kernel+initramd
on hardisk---->/root.

Please help to clarrify.

thakns
peng


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/0ed514927fab186c...@f2f10.com

Björn Wetterbom

unread,
Aug 14, 2014, 3:20:01 AM8/14/14
to
On Thu, Aug 14, 2014 at 12:09 AM, peng <li...@f2f10.com> wrote:
So, here's my test.

1. Sole relying U-boot/kernel/initramd, with /root on hard disk, I can enter passphrase for luks (for /root), but will land in shell and complain lacking of /dev/ram.
2. Creating a seperate /boot either on harddisk or separate usb disk, with /boot on luks on harddisk, I can enter passphrase for luks , but will land in shell and it complains lacking of /dev/ram.
3. without luks, it works.

So, What seems to have caused this problem of not making luks work?

Put /boot on a separate, unencrypted, partition formatted with ext2 and it should work. I have had that running myself on Qnap TS-419. AFAICT you haven't tried that. Why you are able to enter a passphrase, I don't know.
 
The other question is, whether the following are correct boot sequence?
U-boot----> Kernel on flash-->initramd on flash--> /boot/kernel on hard disk and /boot/initramd on harddisk ---> /root.

or
U-boot----> Kernel on flash-->initramd on flash--> ---> /root.

This is the correct sequence. /boot is only used when flash-kernel writes the kernel and ramdisk to flash.
 
On a typical linux system, it would be , Grub--->/boot/kernel+initramd on hardisk---->/root.

Please help to clarrify.

thakns

peng


--
To UNSUBSCRIBE, email to debian-arm-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

peng

unread,
Aug 16, 2014, 7:20:01 AM8/16/14
to
To: "debia...@lists.debian.org" <debia...@lists.debian.org>
Subject: Re: QNAP 219 P II, Luks, Debian
From: Björn Wetterbom <bj...@wetterbom.se>
Date: Thu, 14 Aug 2014 09:12:50 +0200
Message-id:
<CAJbCiayp8iZmLo_gemsUqLSX...@mail.gmail.com>
In-reply-to: <0ed514927fab186c...@f2f10.com>
References: <75a5756e1ecab2e6...@f2f10.com>
<0ed514927fab186c...@f2f10.com>

On Thu, Aug 14, 2014 at 12:09 AM, peng <li...@f2f10.com> wrote:

So, here's my test.

1. Sole relying U-boot/kernel/initramd, with /root on hard disk, I
can enter passphrase for luks (for /root), but will land in shell and
complain lacking of /dev/ram.
2. Creating a seperate /boot either on harddisk or separate usb
disk, with /boot on luks on harddisk, I can enter passphrase for luks ,
but will land in shell and it complains lacking of /dev/ram.
3. without luks, it works.

So, What seems to have caused this problem of not making luks work?

Put /boot on a separate, unencrypted, partition formatted with ext2 and
it should work. I have had that running myself on Qnap TS-419. AFAICT
you haven't tried that. Why you are able to enter a passphrase, I don't
know.
----> actually, I have a /boot on a USB in this test. It allowed me to
enter passphrase, then, it lands in shell, then it reloads itself later.

U-boot----> Kernel on flash-->initramd on flash--> ---> /root.

This is the correct sequence. /boot is only used when flash-kernel
writes the kernel and ramdisk to flash.

--> so, /boot is not used during boot ? It only replys on
kernel/initramd on Flash? This seems conforming to the senario that I
encrypt /root without seperate /boot. In both scenarios, I got entering
passphrase, then shell.


here's detailed boot log. Please help to have a loogk and let me know
what could be done to have this work.

Thanks in advance.
Peng




__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__| ** LOADER **
** MARVELL BOARD: DB-88F6282A-BP LE TS-219P2+ ,PHY=1.8v

U-Boot 1.1.4 (Jan 3 2012 - 14:49:37) Marvell version: 3.5.3

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CD5C0

Soc: MV88F6282 Rev 1CPU running @ 2000Mhz L2 running @ 500Mhz
SysClock = 500Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000 size 256MB
DRAM CS[1] base 0x10000000 size 256MB
DRAM Total size 512MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
[16384kB@f8000000] Flash: 16 MB

CPU : Marvell Feroceon (Rev 1)
USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
PEX 1: PCI Express Root Complex Interface
PEX interface detected Link X1

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 1 0]: Enable DMA mode (5)
Device 1 @ 0 1:
Model: ST1000DM003-9YN162 Firm: HP13 Ser#:
S1D1NX7L
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)

Net: egiga0 [PRIME]
Hit any key to stop autoboot: 1 0
Send Cmd : 0x68 to UART1
## Booting image at 00800000 ...
Image Name: kernel 3.2.0-4-kirkwood
Created: 2014-08-10 0:02:47 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1612040 Bytes = 1.5 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-4-kirkwood
(debian...@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) )
#1 Debian 3.2.60-1+deb7u3
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE),
cr=00053977
[ 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: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 130048
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/ram
initrd=0xa00000,0x900000 ramdisk=34816
[ 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: 512MB = 512MB total
[ 0.000000] Memory: 505756k/505756k available, 18532k reserved, 0K
highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xfe800000 ( 480 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc03e85dc (3970 kB)
[ 0.000000] .init : 0xc03e9000 - 0xc040d000 ( 144 kB)
[ 0.000000] .data : 0xc040e000 - 0xc0448900 ( 235 kB)
[ 0.000000] .bss : 0xc0448924 - 0xc04abfb8 ( 398 kB)
[ 0.000000] NR_IRQS:114
[ 0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps
every 21474ms
[ 0.000000] Console: colour dummy device 80x30
[ 7.611753] Calibrating delay loop... 1980.82 BogoMIPS (lpj=9904128)
[ 7.671651] pid_max: default: 32768 minimum: 301
[ 7.671739] Security Framework initialized
[ 7.671790] Mount-cache hash table entries: 512
[ 7.672052] Initializing cgroup subsys cpuacct
[ 7.672069] Initializing cgroup subsys memory
[ 7.672087] Initializing cgroup subsys devices
[ 7.672094] Initializing cgroup subsys freezer
[ 7.672100] Initializing cgroup subsys net_cls
[ 7.672106] Initializing cgroup subsys blkio
[ 7.672121] Initializing cgroup subsys perf_event
[ 7.672185] CPU: Testing write buffer coherency: ok
[ 7.673164] devtmpfs: initialized
[ 7.674471] print_constraints: dummy:
[ 7.674655] NET: Registered protocol family 16
[ 7.675234] Kirkwood: MV88F6282-Rev-A1, TCLK=200000000.
[ 7.675244] Feroceon L2: Enabling L2
[ 7.675270] Feroceon L2: Cache support initialised.
[ 7.676145] Kirkwood PCIe port 0:
[ 7.676150] link up
[ 7.676153] Kirkwood PCIe port 1:
[ 7.676156] link up
[ 7.676160] PCI: bus0 uses PCIe port 0
[ 7.676659] PCI: bus0: Fast back to back transfers disabled
[ 7.676872] PCI: bus1 uses PCIe port 1
[ 7.677205] PCI: bus1: Fast back to back transfers disabled
[ 7.677374] pci 0000:01:01.0: BAR 0: assigned [mem
0xe8000000-0xe8007fff 64bit]
[ 7.677394] pci 0000:00:01.0: BAR 6: assigned [mem
0xe0000000-0xe000ffff pref]
[ 7.677403] pci 0000:00:01.0: BAR 5: assigned [mem
0xe0010000-0xe0011fff]
[ 7.677413] pci 0000:00:01.1: BAR 4: assigned [io 0x1000-0x100f]
[ 7.677422] pci 0000:00:01.1: BAR 0: assigned [io 0x1010-0x1017]
[ 7.677431] pci 0000:00:01.1: BAR 2: assigned [io 0x1018-0x101f]
[ 7.677441] pci 0000:00:01.1: BAR 1: assigned [io 0x1020-0x1023]
[ 7.677450] pci 0000:00:01.1: BAR 3: assigned [io 0x1024-0x1027]
[ 7.678604] bio: create slab <bio-0> at 0
[ 7.678889] vgaarb: loaded
[ 7.679269] Switching to clocksource orion_clocksource
[ 7.689306] NET: Registered protocol family 2
[ 7.689439] IP route cache hash table entries: 4096 (order: 2, 16384
bytes)
[ 7.689843] TCP established hash table entries: 16384 (order: 5,
131072 bytes)
[ 7.690224] TCP bind hash table entries: 16384 (order: 4, 65536
bytes)
[ 7.690415] TCP: Hash tables configured (established 16384 bind
16384)
[ 7.690421] TCP reno registered
[ 7.690427] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 7.690445] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 7.690593] NET: Registered protocol family 1
[ 7.690790] Unpacking initramfs...
[ 7.971440] Freeing initrd memory: 9216K
[ 7.971453] NetWinder Floating Point Emulator V0.97 (double
precision)
[ 7.971874] audit: initializing netlink socket (disabled)
[ 7.971907] type=2000 audit(0.350:1): initialized
[ 7.972763] VFS: Disk quotas dquot_6.5.2
[ 7.972821] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 7.972897] JFFS2 version 2.2. (NAND) (SUMMARY) \A9 2001-2006 Red
Hat, Inc.
[ 7.973116] msgmni has been set to 1005
[ 7.974199] alg: No test for stdrng (krng)
[ 7.974280] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 253)
[ 7.974290] io scheduler noop registered
[ 7.974294] io scheduler deadline registered
[ 7.974328] io scheduler cfq registered (default)
[ 7.974406] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[ 7.974428] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[ 8.009312] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 8.049309] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 8.089309] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[ 8.129309] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[ 8.129556] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 8.149877] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a
16550A
[ 8.659035] console [ttyS0] enabled
[ 8.682675] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a
16550A
[ 8.690569] m25p80 spi0.0: m25p128 (16384 Kbytes)
[ 8.695296] Creating 6 MTD partitions on "spi_flash":
[ 8.700394] 0x000000000000-0x000000080000 : "U-Boot"
[ 8.705948] 0x000000200000-0x000000400000 : "Kernel"
[ 8.711508] 0x000000400000-0x000000d00000 : "RootFS1"
[ 8.717130] 0x000000d00000-0x000001000000 : "RootFS2"
[ 8.722794] 0x000000080000-0x0000000c0000 : "U-Boot Config"
[ 8.728949] 0x0000000c0000-0x000000200000 : "NAS Config"
[ 8.735034] mousedev: PS/2 mouse device common for all mice
[ 9.749306] rtc-mv rtc-mv: internal RTC not ticking
[ 9.754272] i2c /dev entries driver
[ 9.761239] rtc-s35390a 0-0030: rtc core: registered rtc-s35390a as
rtc0
[ 9.768030] cpuidle: using governor ladder
[ 9.772202] cpuidle: using governor menu
[ 9.776610] TCP cubic registered
[ 9.779866] NET: Registered protocol family 17
[ 9.784333] Registering the dns_resolver key type
[ 9.789391] registered taskstats version 1
[ 9.794449] rtc-s35390a 0-0030: setting system clock to 2014-08-16
10:52:59 UTC (1408186379)
[ 9.802965] Initializing network drop monitor service
[ 9.808645] Freeing init memory: 144K
Loading, please wait...
[ 9.859710] udevd[51]: starting version 175
[ 10.044384] SCSI subsystem initialized
[ 10.115067] sata_mv sata_mv.0: slots 32 ports 2
[ 10.123808] scsi0 : sata_mv
[ 10.127105] scsi1 : sata_mv
[ 10.130325] ata1: SATA max UDMA/133 irq 21
[ 10.134433] ata2: SATA max UDMA/133 irq 21
[ 10.639308] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 10.659380] ata1.00: ATA-8: ST1000DM003-9YN162, HP13, max UDMA/100
[ 10.665586] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth
31/32)
[ 10.709371] ata1.00: configured for UDMA/100
[ 10.713906] scsi 0:0:0:0: Direct-Access ATA ST1000DM003-9YN1
HP13 PQ: 0 ANSI: 5
[ 11.229309] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 11.249378] ata2.00: ATA-8: ST1000DM003-9YN162, HP13, max UDMA/100
[ 11.255581] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth
31/32)
[ 11.299372] ata2.00: configured for UDMA/100
[ 11.303874] scsi 1:0:0:0: Direct-Access ATA ST1000DM003-9YN1
HP13 PQ: 0 ANSI: 5
[ 11.334026] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks:
(1.00 TB/931 GiB)
[ 11.341742] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 11.347321] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks:
(1.00 TB/931 GiB)
[ 11.355021] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[ 11.366922] sd 0:0:0:0: [sda] Write Protect is off
[ 11.371834] sd 1:0:0:0: [sdb] Write Protect is off
[ 11.376734] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 11.385867] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 11.416403] sda: sda1 sda2
[ 11.421725] sd 0:0:0:0: [sda] Attached SCSI disk
[ 11.437258] sdb: sdb1 sdb2
[ 11.441317] sd 1:0:0:0: [sdb] Attached SCSI disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top
... Begin: Assembling all MD arrays ... [ 11.704106] md: md0 stopped.
[ 11.713906] md: bind<sdb1>
[ 11.723053] md: bind<sda1>
[ 11.737425] md: raid0 personality registered for level 0
[ 11.743316] bio: create slab <bio-1> at 1
[ 11.747360] md/raid0:md0: md_size is 1992704 sectors.
[ 11.752449] md: RAID0 configuration for md0 - 1 zone
[ 11.757432] md: zone0=[sda1/sdb1]
[ 11.760791] zone-offset= 0KB, device-offset=
0KB, size= 996352KB
[ 11.768995]
[ 11.770519] md0: detected capacity change from 0 to 1020264448
mdadm: /dev/md/0 has been started with 2 drives.[ 11.780591] md0:
unknown partition table

[ 12.031836] md: md1 stopped.
[ 12.045496] md: bind<sdb2>
[ 12.060689] md: bind<sda2>
[ 12.068577] md: raid1 personality registered for level 1
[ 12.074581] md/raid1:md1: not clean -- starting background
reconstruction
[ 12.081419] md/raid1:md1: active with 2 out of 2 mirrors
[ 12.086836] md1: detected capacity change from 0 to 999558021120
mdadm: /dev/md/1 has been started with 2 drives.
[ 12.099344] md1: unknown partition table
Success: assembled all arrays.
done.
[ 12.306497] device-mapper: uevent: version 1.0.3
[ 12.312393] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19)
initialised: dm-d...@redhat.com
Volume group "VG01" not found
Skipping volume group VG01
Unable to find LVM volume VG01/LVG01
Unlocking the disk
/dev/disk/by-uuid/73ce4519-cbbb-4cd0-b78d-1e5185afc1da (md1_crypt)
Enter passphrase:
[ 22.601090] alg: No test for xts(serpent) (xts(serpent-generic))
Reading all physical volumes. This may take a while...
Found volume group "VG01" using metadata type lvm2
2 logical volume(s) in volume group "VG01" now active
/scripts/local-top/cryptroot: line 1: can't open /dev/ram: no such file
cryptsetup: md1_crypt set up successfully
done.
Begin: Waiting for root file system ... done.
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/ram does not exist. Dropping to a shell!
modprobe: module i8042 not found in modules.dep
modprobe: module ehci-hcd not found in modules.dep
modprobe: module uhci-hcd not found in modules.dep
modprobe: module ohci-hcd not found in modules.dep
modprobe: module usbhid not found in modules.dep


BusyBox v1.20.2 (Debian 1:1.20.0-7) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)
(initramfs)
(initramfs) ***it will reboot itself soon000--neoote by Peng***
init: must be run as PID 1
(initramfs)
__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__| ** LOADER **
** MARVELL BOARD: DB-88F6282A-BP LE TS-219P2+ ,PHY=1.8v

U-Boot 1.1.4 (Jan 3 2012 - 14:49:37) Marvell version: 3.5.3


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/c2bcd8630e30de62...@f2f10.com

Tim Fletcher

unread,
Aug 30, 2014, 5:00:02 AM8/30/14
to
On 16/08/14 12:00, peng wrote:
> [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/ram
> initrd=0xa00000,0x900000 ramdisk=34816

I think that is your problem, change this to be the root partition
inside LVM

--
Tim Fletcher <t...@night-shade.org.uk>


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/54018FF4...@night-shade.org.uk

Li, Peng

unread,
Aug 30, 2014, 10:10:01 AM8/30/14
to
HI Tim,

Can you elaborate a bit? After installion, I didn't put these in myself.
How do it do it?

Was it supposed to be done by installer correctlying point correct root
device?

thanks
peng
Archive: https://lists.debian.org/c05c67ad4a30bc21...@f2f10.com

Tim Fletcher

unread,
Aug 30, 2014, 10:10:01 AM8/30/14
to
On 30/08/14 14:38, Li, Peng wrote:
> HI Tim,
>
> Can you elaborate a bit? After installion, I didn't put these in myself.
> How do it do it?

If you can get a console on the device then hand boot it with the
correct root= setting, let the system boot and then run:

update-initramfs -k all -u

And then repeat the install process for the kernel and initramfs to the
internal flash. Sorry I don't know the exact details for the flashkernel
tool.

> Was it supposed to be done by installer correctlying point correct root
> device?

Either the installer or update-initramfs will look at the current system
setup and then build a suitable ramdisk.

--
Tim Fletcher <t...@night-shade.org.uk>


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5401D8CB...@night-shade.org.uk

Ian Campbell

unread,
Aug 30, 2014, 1:30:02 PM8/30/14
to
On Sat, 2014-08-30 at 14:59 +0100, Tim Fletcher wrote:
> On 30/08/14 14:38, Li, Peng wrote:
> > HI Tim,
> >
> > Can you elaborate a bit? After installion, I didn't put these in myself.
> > How do it do it?
>
> If you can get a console on the device then hand boot it with the
> correct root= setting, let the system boot and then run:
>
> update-initramfs -k all -u
>
> And then repeat the install process for the kernel and initramfs to the
> internal flash. Sorry I don't know the exact details for the flashkernel
> tool.

I can't remember if running update-initramfs also reruns flash-kernel,
so it's probably safest to by hand which just involves running
"flash-kernel".

> > Was it supposed to be done by installer correctlying point correct root
> > device?
>
> Either the installer or update-initramfs will look at the current system
> setup and then build a suitable ramdisk.

I've not looked at the whole thread but I think the functionality you
are referring too comes from flash-kernels' initramfs hook in
/usr/share/initramfs-tools/hooks/flash_kernel_set_root

Ian.


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1409419351.2...@hellion.org.uk

Li, Peng

unread,
Aug 31, 2014, 4:00:01 PM8/31/14
to
Hi Ian/Tim,

Trying to make sure I understand a correct steps. I'd like to re-install
the whole system again. I do have a serial console connection.

My plan is to have a /boot on a USB disk, with a 512bits data as
passphrase from usb key. whole two disk SDA/SDB will be RAID1 with LUKS
on top. Then LVM inside luks. Then, /root and /home.

I understand that I have to manage to change /dev/ram to /dev/??? (root
in lvm?? on top of Luks).

After following
http://www.cyrius.com/debian/kirkwood/qnap/ts-219/install/ , before I go
with reboot, what specific steps should I do exactly?

Your kind explanation is highly appreciated!
thanks
peng
Archive: https://lists.debian.org/10e95094ede8577c...@f2f10.com

Tim Fletcher

unread,
Aug 31, 2014, 4:10:02 PM8/31/14
to
On 31/08/14 20:40, Li, Peng wrote:
> Hi Ian/Tim,
>
> Trying to make sure I understand a correct steps. I'd like to re-install
> the whole system again. I do have a serial console connection.
>
> My plan is to have a /boot on a USB disk, with a 512bits data as
> passphrase from usb key. whole two disk SDA/SDB will be RAID1 with LUKS
> on top. Then LVM inside luks. Then, /root and /home.

From the boot log you shared I'm almost certain the /boot on usb is not
needed for this to work, all you need to do to fix you current install
is to change the single setting in flash to make init look in the
correct place for the root disk.

The complex steps, ie finding and assembling the RAID, decrypting the
drive and finding the VG inside have all worked you have a single
problem left to solve which is the kernel commandline string.

Try on your serial console setting the following:

setenv bootargs console=ttyS0,115200 root=/dev/VG01/root
initrd=0xa00000,0x900000 ramdisk=34816

Then type boot

Note the setenv line is one line, and I've assumed the LV for your root
volume is called root.

> I understand that I have to manage to change /dev/ram to /dev/??? (root
> in lvm?? on top of Luks).

This is a setting that is stored in the flash along with the kernel and
initrd.

--
Tim Fletcher <t...@night-shade.org.uk>


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5403805F...@night-shade.org.uk

Tim Fletcher

unread,
Aug 31, 2014, 4:20:01 PM8/31/14
to
On 31/08/14 21:16, Li, Peng wrote:
> HI Tim,
>
> thanks for a quick reply. Just want to clarify one more thing. Do I do
> that "setenv...." by interrupting U-Boot and do it?

This one, the setenv command only changes the setting in memory, if this
works then you will need to save it to flash afterwards but lets see if
it boots first.

--
Tim Fletcher <t...@night-shade.org.uk>


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/54038347...@night-shade.org.uk

Li, Peng

unread,
Aug 31, 2014, 4:40:02 PM8/31/14
to
HI Tim,

thanks for a quick reply. Just want to clarify one more thing. Do I do
that "setenv...." by interrupting U-Boot and do it?

Or, Do I wait for encryption prompt and do it after it land on "initrd"
mode after failing to locate /dev/ram.? At this moment, in a brief time,
the system will reboot it self.

Much appreciated.!
peng
Archive: https://lists.debian.org/d7b887df51f81774...@f2f10.com

Tim Fletcher

unread,
Aug 31, 2014, 5:20:02 PM8/31/14
to
On 31/08/14 22:11, Ian Campbell wrote:
> On Sun, 2014-08-31 at 21:06 +0100, Tim Fletcher wrote:
>> On 31/08/14 20:40, Li, Peng wrote:
>>> Hi Ian/Tim,
>>>
>>> Trying to make sure I understand a correct steps. I'd like to re-install
>>> the whole system again. I do have a serial console connection.
>>>
>>> My plan is to have a /boot on a USB disk, with a 512bits data as
>>> passphrase from usb key. whole two disk SDA/SDB will be RAID1 with LUKS
>>> on top. Then LVM inside luks. Then, /root and /home.
>>
>> From the boot log you shared I'm almost certain the /boot on usb is not
>> needed for this to work, all you need to do to fix you current install
>> is to change the single setting in flash to make init look in the
>> correct place for the root disk.
>>
>> The complex steps, ie finding and assembling the RAID, decrypting the
>> drive and finding the VG inside have all worked you have a single
>> problem left to solve which is the kernel commandline string.
>>
>> Try on your serial console setting the following:
>>
>> setenv bootargs console=ttyS0,115200 root=/dev/VG01/root
>> initrd=0xa00000,0x900000 ramdisk=34816
>
> I think the root= here will be overridden by the flash-kernel hook in
> the initrd (the script I pointed to earlier). A better bet might be to
> hack that to override the root to /dev/VG01/root or to fiddle the
> flash-kernel option which makes it do that
> (Bootloader-sets-Incorrect-Root on Jessie, something else on Wheezy
> which I can't remember)

Possibly, my thinking was that it wasn't been over written hence the
boot failure. I'm pretty sure that even without the added complication
of LUKS / RAID / LVM a normal debian install would fail with root=/dev/ram

--
Tim Fletcher <t...@night-shade.org.uk>


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/540390C8...@night-shade.org.uk

Ian Campbell

unread,
Aug 31, 2014, 5:20:03 PM8/31/14
to
On Sun, 2014-08-31 at 21:06 +0100, Tim Fletcher wrote:
> On 31/08/14 20:40, Li, Peng wrote:
> > Hi Ian/Tim,
> >
> > Trying to make sure I understand a correct steps. I'd like to re-install
> > the whole system again. I do have a serial console connection.
> >
> > My plan is to have a /boot on a USB disk, with a 512bits data as
> > passphrase from usb key. whole two disk SDA/SDB will be RAID1 with LUKS
> > on top. Then LVM inside luks. Then, /root and /home.
>
> From the boot log you shared I'm almost certain the /boot on usb is not
> needed for this to work, all you need to do to fix you current install
> is to change the single setting in flash to make init look in the
> correct place for the root disk.
>
> The complex steps, ie finding and assembling the RAID, decrypting the
> drive and finding the VG inside have all worked you have a single
> problem left to solve which is the kernel commandline string.
>
> Try on your serial console setting the following:
>
> setenv bootargs console=ttyS0,115200 root=/dev/VG01/root
> initrd=0xa00000,0x900000 ramdisk=34816

I think the root= here will be overridden by the flash-kernel hook in
the initrd (the script I pointed to earlier). A better bet might be to
hack that to override the root to /dev/VG01/root or to fiddle the
flash-kernel option which makes it do that
(Bootloader-sets-Incorrect-Root on Jessie, something else on Wheezy
which I can't remember)

Ian.


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1409519483....@hellion.org.uk

Ian Campbell

unread,
Aug 31, 2014, 5:30:02 PM8/31/14
to
On Sun, 2014-08-31 at 22:16 +0100, Tim Fletcher wrote:
>
> >
> > I think the root= here will be overridden by the flash-kernel hook
> in
> > the initrd (the script I pointed to earlier). A better bet might be
> to
> > hack that to override the root to /dev/VG01/root or to fiddle the
> > flash-kernel option which makes it do that
> > (Bootloader-sets-Incorrect-Root on Jessie, something else on Wheezy
> > which I can't remember)
>
> Possibly, my thinking was that it wasn't been over written hence the
> boot failure.

That's possible. I think it is more likely that the hook script isn't
able to figure out what to override it with for this case and so does
nothing. Similar to #5910156.

> I'm pretty sure that even without the added complication
> of LUKS / RAID / LVM a normal debian install would fail with
> root=/dev/ram

It should work due to the initrd override, that override exists exactly
because root=/dev/ram is the default on qnap (and other) devices, and
most people don't have a console cable to mess with it.

Ian.


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1409520108.7...@hellion.org.uk

Tim Fletcher

unread,
Aug 31, 2014, 5:30:02 PM8/31/14
to
On 31/08/14 22:21, Ian Campbell wrote:
> On Sun, 2014-08-31 at 22:16 +0100, Tim Fletcher wrote:

>> I'm pretty sure that even without the added complication
>> of LUKS / RAID / LVM a normal debian install would fail with
>> root=/dev/ram
>
> It should work due to the initrd override, that override exists exactly
> because root=/dev/ram is the default on qnap (and other) devices, and
> most people don't have a console cable to mess with it.

Ah right, I'm out of touch with what flash-kernel / initrd does, I'm
comfortable just hacking u-boot via serial and or fw_setenv

Fixing up flash-kernel to work with my iconnect is on my todo list but
it's a long way down....

--
Tim Fletcher <t...@night-shade.org.uk>


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5403936...@night-shade.org.uk

Li, Peng

unread,
Sep 1, 2014, 11:10:02 AM9/1/14
to
HI Tim/Ian,

I interrupted the boot process and enterred U-boot console by pressing
"enter" during boot.

I put the suggested one-line, which I modified to my setting.

"setenv bootargs console=ttyS0,115200 root=/dev/mapper/VG01-LVG01
initrd=0xa00000,0x900000 ramdisk=34816"

now I issued "boot".

It comes back asking Luks passphrase and it got into a correct system
after that.

Once I reboot it again, it goes to problem of looking for /dev/ram
again.

So, can you help let me know How do I do it again, to put it a
permanent? Will this survive for future kernel upgrade?

Thanks a lot.
Peng
Archive: https://lists.debian.org/80aa9face86ddf63...@f2f10.com

Tim Fletcher

unread,
Sep 1, 2014, 11:10:03 AM9/1/14
to
On 01/09/14 15:44, Li, Peng wrote:
> HI Tim/Ian,
>
> I interrupted the boot process and enterred U-boot console by pressing
> "enter" during boot.
>
> I put the suggested one-line, which I modified to my setting.
>
> "setenv bootargs console=ttyS0,115200 root=/dev/mapper/VG01-LVG01
> initrd=0xa00000,0x900000 ramdisk=34816"
>
> now I issued "boot".
>
> It comes back asking Luks passphrase and it got into a correct system
> after that.

That's good news, at least we have found the problem

> Once I reboot it again, it goes to problem of looking for /dev/ram again.
>
> So, can you help let me know How do I do it again, to put it a
> permanent? Will this survive for future kernel upgrade?

The first thing to try is to hand boot the system again and then run:

update-initramfs -k all -u

once this has finished run:

flash-kernel

and reboot again, if this works this is a permanent fix.

If the boot doesn't work again then you will need to change a setting in
u-boot but lets see if debian tools fix the problem first

--
Tim Fletcher <t...@night-shade.org.uk>


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/54048AB9...@night-shade.org.uk

Li, Peng

unread,
Sep 1, 2014, 11:10:03 AM9/1/14
to
On 2014-08-31 17:21, Ian Campbell wrote:
> On Sun, 2014-08-31 at 22:16 +0100, Tim Fletcher wrote:
>>
>> >
>> > I think the root= here will be overridden by the flash-kernel hook
>> in
>> > the initrd (the script I pointed to earlier). A better bet might be
>> to
>> > hack that to override the root to /dev/VG01/root or to fiddle the
>> > flash-kernel option which makes it do that
>> > (Bootloader-sets-Incorrect-Root on Jessie, something else on Wheezy
>> > which I can't remember)
>>
>> Possibly, my thinking was that it wasn't been over written hence the
>> boot failure.
>
> That's possible. I think it is more likely that the hook script isn't
> able to figure out what to override it with for this case and so does
> nothing. Similar to #5910156.
>
>> I'm pretty sure that even without the added complication
>> of LUKS / RAID / LVM a normal debian install would fail with
>> root=/dev/ram
>
> It should work due to the initrd override, that override exists exactly
> because root=/dev/ram is the default on qnap (and other) devices, and
> most people don't have a console cable to mess with it.
>
> Ian.

Just a FYI, a normal LUKS without RAID/LVM fails with same problem.


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/48e0af2e3832dd15...@f2f10.com

Tim Fletcher

unread,
Sep 1, 2014, 11:40:02 AM9/1/14
to
On 01/09/14 16:27, Li, Peng wrote:
> On 2014-09-01 11:03, Tim Fletcher wrote:
>> On 01/09/14 15:44, Li, Peng wrote:
>>> HI Tim/Ian,
>>>
>>> I interrupted the boot process and enterred U-boot console by pressing
>>> "enter" during boot.
>>>
>>> I put the suggested one-line, which I modified to my setting.
>>>
>>> "setenv bootargs console=ttyS0,115200 root=/dev/mapper/VG01-LVG01
>>> initrd=0xa00000,0x900000 ramdisk=34816"
>>>
>>> now I issued "boot".
>>>
>>> It comes back asking Luks passphrase and it got into a correct system
>>> after that.
>>
>> That's good news, at least we have found the problem
>>
>>> Once I reboot it again, it goes to problem of looking for /dev/ram
>>> again.
>>>
>>> So, can you help let me know How do I do it again, to put it a
>>> permanent? Will this survive for future kernel upgrade?
>>
>> The first thing to try is to hand boot the system again and then run:
>>
>> update-initramfs -k all -u
>>
>> once this has finished run:
>>
>> flash-kernel
>>
>> and reboot again, if this works this is a permanent fix.
>>
>> If the boot doesn't work again then you will need to change a setting
>> in u-boot but lets see if debian tools fix the problem first
>
> 1. It seems "update-initramfs -k all -u" will trigger "flash-kernel"
> automatically. I did "flash-kernel" anyway. It may not be necessary or
> may cause problem?

That's fine I was just covering all the options

> 2. The setting was not stayed and we ended up on /dev/ram situation again.

To make the change in u-boot stay before you type boot, type saveenv

That will save your changes to u-boot's flash storage

> Volume group "VG01" not found
> Skipping volume group VG01
> Unable to find LVM volume VG01/LVG01

Error about not finding the root LV, possibly from the initramfs hook
Ian highlighted?

> Unlocking the disk
> /dev/disk/by-uuid/bd88fd91-a823-4657-945c-cfec66b95a74 (md1_crypt)
> Enter passphrase:
> Reading all physical volumes. This may take a while...
> Found volume group "VG01" using metadata type lvm2
> 2 logical volume(s) in volume group "VG01" now active
> /scripts/local-top/cryptroot: line 1: can't open /dev/ram: no such file

cryptroot is trying to use /dev/ram

> cryptsetup: md1_crypt set up successfully
> done.
> Begin: Waiting for root file system ... done.
> Gave up waiting for root device. Common problems:
> - Boot args (cat /proc/cmdline)
> - Check rootdelay= (did the system wait long enough?)
> - Check root= (did the system wait for the right device?)
> - Missing modules (cat /proc/modules; ls /dev)
> ALERT! /dev/ram does not exist. Dropping to a shell!

For others looking at this, note the ordering of the errors does
cryptroot need to be taught about the changing of root= from the
initramfs hook?

--
Tim Fletcher <t...@night-shade.org.uk>


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/540491FA...@night-shade.org.uk

Li, Peng

unread,
Sep 1, 2014, 11:50:03 AM9/1/14
to
On 2014-09-01 11:03, Tim Fletcher wrote:
> On 01/09/14 15:44, Li, Peng wrote:
>> HI Tim/Ian,
>>
>> I interrupted the boot process and enterred U-boot console by pressing
>> "enter" during boot.
>>
>> I put the suggested one-line, which I modified to my setting.
>>
>> "setenv bootargs console=ttyS0,115200 root=/dev/mapper/VG01-LVG01
>> initrd=0xa00000,0x900000 ramdisk=34816"
>>
>> now I issued "boot".
>>
>> It comes back asking Luks passphrase and it got into a correct system
>> after that.
>
> That's good news, at least we have found the problem
>
>> Once I reboot it again, it goes to problem of looking for /dev/ram
>> again.
>>
>> So, can you help let me know How do I do it again, to put it a
>> permanent? Will this survive for future kernel upgrade?
>
> The first thing to try is to hand boot the system again and then run:
>
> update-initramfs -k all -u
>
> once this has finished run:
>
> flash-kernel
>
> and reboot again, if this works this is a permanent fix.
>
> If the boot doesn't work again then you will need to change a setting
> in u-boot but lets see if debian tools fix the problem first

HI Tim,

1. It seems "update-initramfs -k all -u" will trigger "flash-kernel"
automatically. I did "flash-kernel" anyway. It may not be necessary or
may cause problem?

2. The setting was not stayed and we ended up on /dev/ram situation
again.

I have attached the log for your reference.

Thanks
peng

****the followings are logs *************

Marvell>> setenv bootarg rgs console=ttyS0,115200
root=/dev/mapper/VG01-LVG01 initrd=0xa00000,0x900000 ramdisk=34816

Marvell>> boot

Send Cmd : 0x68 to UART1
## Booting image at 00800000 ...
Image Name: kernel 3.2.0-4-kirkwood
Created: 2014-09-01 12:14:14 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1612040 Bytes = 1.5 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-4-kirkwood
(debian...@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) )
#1 Debian 3.2.60-1+deb7u3
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE),
cr=00053977
[ 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: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 130048
[ 0.000000] Kernel command line: console=ttyS0,115200
root=/dev/mapper/VG01-LVG01 initrd=0xa00000,0x900000 ramdisk=34816
[ 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: 512MB = 512MB total
[ 0.000000] Memory: 505756k/505756k available, 18532k reserved, 0K
highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xfe800000 ( 480 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc03e85dc (3970 kB)
[ 0.000000] .init : 0xc03e9000 - 0xc040d000 ( 144 kB)
[ 0.000000] .data : 0xc040e000 - 0xc0448900 ( 235 kB)
[ 0.000000] .bss : 0xc0448924 - 0xc04abfb8 ( 398 kB)
[ 0.000000] NR_IRQS:114
[ 0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps
every 21474ms
[ 0.000000] Console: colour dummy device 80x30
[ 6.789341] Calibrating delay loop... 1980.82 BogoMIPS (lpj=9904128)
[ 6.849242] pid_max: default: 32768 minimum: 301
[ 6.849330] Security Framework initialized
[ 6.849381] Mount-cache hash table entries: 512
[ 6.849644] Initializing cgroup subsys cpuacct
[ 6.849661] Initializing cgroup subsys memory
[ 6.849678] Initializing cgroup subsys devices
[ 6.849685] Initializing cgroup subsys freezer
[ 6.849690] Initializing cgroup subsys net_cls
[ 6.849695] Initializing cgroup subsys blkio
[ 6.849711] Initializing cgroup subsys perf_event
[ 6.849774] CPU: Testing write buffer coherency: ok
[ 6.850746] devtmpfs: initialized
[ 6.852044] print_constraints: dummy:
[ 6.852228] NET: Registered protocol family 16
[ 6.852807] Kirkwood: MV88F6282-Rev-A1, TCLK=200000000.
[ 6.852817] Feroceon L2: Enabling L2
[ 6.852844] Feroceon L2: Cache support initialised.
[ 6.853718] Kirkwood PCIe port 0:
[ 6.853723] link up
[ 6.853726] Kirkwood PCIe port 1:
[ 6.853729] link up
[ 6.853733] PCI: bus0 uses PCIe port 0
[ 6.854230] PCI: bus0: Fast back to back transfers disabled
[ 6.854442] PCI: bus1 uses PCIe port 1
[ 6.854773] PCI: bus1: Fast back to back transfers disabled
[ 6.854942] pci 0000:01:01.0: BAR 0: assigned [mem
0xe8000000-0xe8007fff 64bit]
[ 6.854962] pci 0000:00:01.0: BAR 6: assigned [mem
0xe0000000-0xe000ffff pref]
[ 6.854970] pci 0000:00:01.0: BAR 5: assigned [mem
0xe0010000-0xe0011fff]
[ 6.854980] pci 0000:00:01.1: BAR 4: assigned [io 0x1000-0x100f]
[ 6.854990] pci 0000:00:01.1: BAR 0: assigned [io 0x1010-0x1017]
[ 6.854999] pci 0000:00:01.1: BAR 2: assigned [io 0x1018-0x101f]
[ 6.855008] pci 0000:00:01.1: BAR 1: assigned [io 0x1020-0x1023]
[ 6.855018] pci 0000:00:01.1: BAR 3: assigned [io 0x1024-0x1027]
[ 6.856172] bio: create slab <bio-0> at 0
[ 6.856457] vgaarb: loaded
[ 6.856837] Switching to clocksource orion_clocksource
[ 6.866845] NET: Registered protocol family 2
[ 6.867003] IP route cache hash table entries: 4096 (order: 2, 16384
bytes)
[ 6.867407] TCP established hash table entries: 16384 (order: 5,
131072 bytes)
[ 6.867787] TCP bind hash table entries: 16384 (order: 4, 65536
bytes)
[ 6.867979] TCP: Hash tables configured (established 16384 bind
16384)
[ 6.867985] TCP reno registered
[ 6.867991] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 6.868009] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 6.868158] NET: Registered protocol family 1
[ 6.868356] Unpacking initramfs...
[ 7.148809] Freeing initrd memory: 9216K
[ 7.148823] NetWinder Floating Point Emulator V0.97 (double
precision)
[ 7.149243] audit: initializing netlink socket (disabled)
[ 7.149276] type=2000 audit(0.350:1): initialized
[ 7.150137] VFS: Disk quotas dquot_6.5.2
[ 7.150195] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 7.150272] JFFS2 version 2.2. (NAND) (SUMMARY) \A9 2001-2006 Red
Hat, Inc.
[ 7.150491] msgmni has been set to 1005
[ 7.151564] alg: No test for stdrng (krng)
[ 7.151646] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 253)
[ 7.151655] io scheduler noop registered
[ 7.151659] io scheduler deadline registered
[ 7.151693] io scheduler cfq registered (default)
[ 7.151772] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[ 7.151793] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[ 7.186879] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 7.226877] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 7.266877] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[ 7.306877] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[ 7.307126] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 7.327450] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a
16550A
[ 7.837831] console [ttyS0] enabled
[ 7.861462] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a
16550A
[ 7.869354] m25p80 spi0.0: m25p128 (16384 Kbytes)
[ 7.874084] Creating 6 MTD partitions on "spi_flash":
[ 7.879184] 0x000000000000-0x000000080000 : "U-Boot"
[ 7.884746] 0x000000200000-0x000000400000 : "Kernel"
[ 7.890322] 0x000000400000-0x000000d00000 : "RootFS1"
[ 7.895939] 0x000000d00000-0x000001000000 : "RootFS2"
[ 7.901601] 0x000000080000-0x0000000c0000 : "U-Boot Config"
[ 7.907778] 0x0000000c0000-0x000000200000 : "NAS Config"
[ 7.913840] mousedev: PS/2 mouse device common for all mice
[ 8.926873] rtc-mv rtc-mv: internal RTC not ticking
[ 8.931842] i2c /dev entries driver
[ 8.938811] rtc-s35390a 0-0030: rtc core: registered rtc-s35390a as
rtc0
[ 8.945606] cpuidle: using governor ladder
[ 8.949778] cpuidle: using governor menu
[ 8.954185] TCP cubic registered
[ 8.957442] NET: Registered protocol family 17
[ 8.961909] Registering the dns_resolver key type
[ 8.966971] registered taskstats version 1
[ 8.972034] rtc-s35390a 0-0030: setting system clock to 2014-09-01
15:13:57 UTC (1409584437)
[ 8.980549] Initializing network drop monitor service
[ 8.986229] Freeing init memory: 144K
Loading, please wait...
[ 9.037297] udevd[51]: starting version 175
[ 9.213750] SCSI subsystem initialized
[ 9.287871] sata_mv sata_mv.0: slots 32 ports 2
[ 9.300695] scsi0 : sata_mv
[ 9.304036] scsi1 : sata_mv
[ 9.307265] ata1: SATA max UDMA/133 irq 21
[ 9.311372] ata2: SATA max UDMA/133 irq 21
[ 9.816876] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 9.836949] ata1.00: ATA-8: ST1000DM003-9YN162, HP13, max UDMA/100
[ 9.843154] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth
31/32)
[ 9.886938] ata1.00: configured for UDMA/100
[ 9.891479] scsi 0:0:0:0: Direct-Access ATA ST1000DM003-9YN1
HP13 PQ: 0 ANSI: 5
[ 10.406876] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 10.426945] ata2.00: ATA-8: ST1000DM003-9YN162, HP13, max UDMA/100
[ 10.433149] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth
31/32)
[ 10.476940] ata2.00: configured for UDMA/100
[ 10.481443] scsi 1:0:0:0: Direct-Access ATA ST1000DM003-9YN1
HP13 PQ: 0 ANSI: 5
[ 10.511737] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks:
(1.00 TB/931 GiB)
[ 10.519449] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 10.525032] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks:
(1.00 TB/931 GiB)
[ 10.532737] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[ 10.544603] sd 0:0:0:0: [sda] Write Protect is off
[ 10.549546] sd 1:0:0:0: [sdb] Write Protect is off
[ 10.554450] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 10.563580] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 10.809446] sdb: sdb1 sdb2
[ 10.812365] sda: sda1 sda2
[ 10.818784] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 10.823479] sd 0:0:0:0: [sda] Attached SCSI disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top
... Begin: Assembling all MD arrays ... [ 11.096545] md: md0 stopped.
[ 11.106293] md: bind<sdb1>
[ 11.115277] md: bind<sda1>
[ 11.129711] md: raid0 personality registered for level 0
[ 11.135588] bio: create slab <bio-1> at 1
[ 11.139665] md/raid0:md0: md_size is 1992704 sectors.
[ 11.144734] md: RAID0 configuration for md0 - 1 zone
[ 11.149722] md: zone0=[sda1/sdb1]
[ 11.153070] zone-offset= 0KB, device-offset=
0KB, size= 996352KB
[ 11.161281]
[ 11.162801] md0: detected capacity change from 0 to 1020264448
mdadm: /dev/md/0 has been started with 2 drives.[ 11.172820] md0:
unknown partition table

[ 11.419633] md: md1 stopped.
[ 11.429387] md: bind<sdb2>
[ 11.437259] md: bind<sda2>
[ 11.453154] md: raid1 personality registered for level 1
[ 11.459178] md/raid1:md1: active with 2 out of 2 mirrors
[ 11.464580] md1: detected capacity change from 0 to 999558021120
mdadm: /dev/md/1 has been started with 2 drives.
[ 11.478314] md1: unknown partition table
Success: assembled all arrays.
done.
[ 11.684246] device-mapper: uevent: version 1.0.3
[ 11.690135] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19)
initialised: dm-d...@redhat.com
Volume group "VG01" not found
Skipping volume group VG01
Unable to find LVM volume VG01/LVG01
Unlocking the disk
/dev/disk/by-uuid/bd88fd91-a823-4657-945c-cfec66b95a74 (md1_crypt)
Enter passphrase:
Reading all physical volumes. This may take a while...
Found volume group "VG01" using metadata type lvm2
2 logical volume(s) in volume group "VG01" now active
cryptsetup: md1_crypt set up successfully
done.
Begin: Running /scripts/local-premount ... done.
[ 32.384433] EXT4-fs (dm-1): mounted filesystem with ordered data
mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... Error opening
/dev/input/by-path/platform-gpio-keys-event: No such file or directory
done.

INIT: version 2.88 booting

[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[ 33.953864]
udevd[356]: starting version 175
[ ok .
[....] Synthesizing the initial hotplug events...[ ok done.
[ 34.500975] input: gpio-keys as
/devices/platform/gpio-keys/input/input0
[....] Waiting for /dev to be fully populated...[ 34.637821] usbcore:
registered new interface driver usbfs
[ 34.647598] usbcore: registered new interface driver hub
[ 34.660455] usbcore: registered new device driver usb
[ 34.678108] ahci 0000:00:01.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps
0x3 impl SATA mode
[ 34.686236] ahci 0000:00:01.0: flags: 64bit ncq pm led clo pmp pio
slum part
[ 34.711259] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 34.727164] xhci_hcd 0000:01:01.0: xHCI Host Controller
[ 34.732457] xhci_hcd 0000:01:01.0: new USB bus registered, assigned
bus number 1
[ 34.742028] scsi2 : ahci
[ 34.745095] scsi3 : ahci
[ 34.758279] ata3: SATA max UDMA/133 abar m8192@0xe0010000 port
0xe0010100 irq 9
[ 34.765622] ata4: SATA max UDMA/133 abar m8192@0xe0010000 port
0xe0010180 irq 9
[ 34.783891] usb usb1: New USB device found, idVendor=1d6b,
idProduct=0002
[ 34.790841] usb usb1: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 34.798112] usb usb1: Product: xHCI Host Controller
[ 34.803002] usb usb1: Manufacturer: Linux 3.2.0-4-kirkwood xhci_hcd
[ 34.809298] usb usb1: SerialNumber: 0000:01:01.0
[ 34.814700] hub 1-0:1.0: USB hub found
[ 34.819204] hub 1-0:1.0: 2 ports detected
[ 34.823381] xhci_hcd 0000:01:01.0: xHCI Host Controller
[ 34.828662] xhci_hcd 0000:01:01.0: new USB bus registered, assigned
bus number 2
[ 34.836130] usb usb2: New USB device found, idVendor=1d6b,
idProduct=0003
[ 34.842953] usb usb2: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 34.850213] usb usb2: Product: xHCI Host Controller
[ 34.855104] usb usb2: Manufacturer: Linux 3.2.0-4-kirkwood xhci_hcd
[ 34.861404] usb usb2: SerialNumber: 0000:01:01.0
[ 34.901928] hub 2-0:1.0: USB hub found
[ 34.905873] hub 2-0:1.0: 2 ports detected
[ 35.136891] ata3: SATA link down (SStatus 0 SControl 300)
[ 35.142424] ata4: SATA link down (SStatus 0 SControl 300)
[ 35.192233] orion-ehci orion-ehci.0: Marvell Orion EHCI
[ 35.198522] orion-ehci orion-ehci.0: new USB bus registered, assigned
bus number 3
[ 35.226890] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 35.246866] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 35.252850] usb usb3: New USB device found, idVendor=1d6b,
idProduct=0002
[ 35.259674] usb usb3: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 35.266931] usb usb3: Product: Marvell Orion EHCI
[ 35.271650] usb usb3: Manufacturer: Linux 3.2.0-4-kirkwood ehci_hcd
[ 35.277947] usb usb3: SerialNumber: orion-ehci.0
[ 35.283218] hub 3-0:1.0: USB hub found
[ 35.287008] hub 3-0:1.0: 1 port detected
[ 35.291116] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version
1.4
[ 35.307403] mv643xx_eth smi: probed
[ 35.317480] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with
MAC address 00:08:9b:cd:08:be
[ ok done.
[....] Generating udev events for MD arrays...[ ok done.
[ 36.119612] EXT4-fs (dm-1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.20.1
/dev/mapper/VG01-LVG01: clean, 26262/3662848 files, 403207/14648320
blocks
[ ok done.
[ 36.528537] EXT4-fs (dm-1): re-mounted. Opts: errors=remount-ro
[....] Cleaning up temporary files... /tmp[ ok .
[....] Starting early crypto disks...[info] md0_crypt (starting)...
md0_crypt (started)...md1_crypt (running)...[ ok done.
[ 37.798081] loop: module loaded
[info] Loading kernel module gpio_keys.
[info] Loading kernel module loop.
[....] Setting up LVM Volume Groups...[ ok done.
[....] Starting remaining crypto disks...md0_crypt (running)...md1_crypt
(running)...[ ok done.
[....] Activating lvm and md swap...[ 39.669229] Adding 996348k swap
on /dev/mapper/md0_crypt. Priority:-1 extents:1 across:996348k
[ ok done.
[....] Checking file systems...fsck from util-linux 2.20.1
/dev/mapper/VG01-LVG02: clean, 15/48832512 files, 3115182/195312640
blocks
[ ok done.
[....] Mounting local filesystems...[ 40.683264] EXT4-fs (dm-2):
mounted filesystem with ordered data mode. Opts: (null)
[ ok done.
[....] Activating swapfile swap...[ ok done.
[....] Cleaning up temporary files...[ ok .
[....] Setting kernel variables ...[ ok done.
[....] Configuring network interfaces...[ ok done.
[....] Starting rpcbind daemon...[ 42.210038] NET: Registered protocol
family 10
[ ok .
[....] Starting NFS common utilities: statd[ 43.124206] RPC:
Registered named UNIX socket transport module.
[ 43.130179] RPC: Registered udp transport module.
[ 43.134900] RPC: Registered tcp transport module.
[ 43.139628] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 43.207186] FS-Cache: Loaded
[ 43.251605] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 43.326174] FS-Cache: Netfs 'nfs' registered for caching
[ 43.374281] Installing knfsd (copyright (C) 1996 ok...@monad.swb.de).
idmapd[ ok .
[....] Cleaning up temporary files...[ ok .

INIT: Entering runlevel: 2

[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting rpcbind daemon...[....] Already running.[ ok .
[....] Starting NFS common utilities: statd idmapd[ ok .
[....] Starting enhanced syslogd: rsyslogd[ ok .
[....] Starting deferred execution scheduler: atd[ ok .
[....] Starting periodic command scheduler: cron[ ok .
[....] Starting MD monitoring service: mdadm --monitor[ ok .
[....] Starting MTA: exim4[ ok .
[....] Starting OpenBSD Secure Shell server: sshd[ ok .
[ 46.423409] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 1000
Mb/s, full duplex, flow control disabled
[ 46.433503] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[info] System boot completed.

Debian GNU/Linux 7 NAS ttyS0

NAS login: root

Password:
Last login: Mon Sep 1 10:35:42 EDT 2014 on ttyS0
Linux NAS 3.2.0-4-kirkwood #1 Debian 3.2.60-1+deb7u3 armv5tel

The programs included with the Debian GNU/Linux system are free
software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@NAS:~# pwd
/root
root@NAS:~# cd /
root@NAS:/# ls
bin dev home lost+found mnt procrun selinux sys usr
boot etc lib media opt rootsbin srv tmp var
root@NAS:/# update-in
update-info-dir update-initramfs
root@NAS:/# update-inicat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name
devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/VG01-LVG01 / ext4 errors=remount-ro 0
1
/dev/mapper/VG01-LVG02 /home ext4 defaults 0 2
/dev/mapper/md0_crypt none swap sw 0 0
root@NAS:/#

root@NAS:/# update-initramfs -k all -u
update-initramfs: Generating /boot/initrd.img-3.2.0-4-kirkwood
cryptsetup: WARNING: target md0_crypt has a random key, skipped
loadkeys is missing. Please install the 'kbd' package.
flash-kernel: installing version 3.2.0-4-kirkwood
Generating kernel u-boot image... done.
Flashing kernel... done.
Flashing initramfs... done.
root@NAS:/# flash-kernel cat flaflash-kernel
flash-kernel: installing version 3.2.0-4-kirkwood
Generating kernel u-boot image... done.
Flashing kernel... done.
Flashing initramfs... done.
root@NAS:/#
root@NAS:/#
root@NAS:/# reboot

root@NAS:/#
INIT: Sending p[info] Using makefile-style concurrent boot in runlevel
6.
[....] Stopping MD monitoring service: mdadm --monitor[ ok .
[....] Stopping deferred execution scheduler: atd[ ok .
[....] Stopping MTA: exim4_listener[ ok .
[info] Preparing for shutdown.
[....] Asking all remaining processes to terminate...[ ok done.
[....] All processes ended within 1 seconds...[ ok done.
[....] Stopping enhanced syslogd: rsyslogd[ ok .
[....] Stopping NFS common utilities: idmapd statd[ ok .
[info] Saving the system clock.
rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"

[....] Stopping rpcbind daemon...[ ok .
[....] Deconfiguring network interfaces...Internet Systems Consortium
DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:08:9b:cd:08:be
Sending on LPF/eth0/00:08:9b:cd:08:be
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.100.1 port 67
[ ok done.
hwclock: select() to /dev/rtc0 to wait for clock tick timed out: Success
[info] Hardware Clock updated to Mon Sep 1 11:21:06 EDT 2014.
[....] Deactivating swap...[ ok done.
[....] Unmounting local filesystems...[ ok done.
[....] Stopping remaining crypto disks...md0_crypt
(stopping)...md1_crypt (busy)...[ ok done.
[....] Stopping early crypto disks...md0_crypt (stopped)...md1_crypt
(busy)...[FAILfailed.
[ ok done.
[ 438.572887] md0: detected capacity change from 1020264448 to 0
[ 438.578774] md: md0 stopped.
[ 438.581670] md: unbind<sda1>
[ 438.584567] md: export_rdev(sda1)
[ 438.587941] md: unbind<sdb1>
[ 438.590841] md: export_rdev(sdb1)
[....] Stopping MD array md0...[ ok done (stopped).
[ 438.772098] EXT4-fs (dm-1): re-mounted. Opts: (null)
[....] Waiting for MD arrays to become idle...[ ok done.
[info] Will now restart.
[ 441.946653] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
[ 441.966922] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 441.987026] Restarting system.
Created: 2014-09-01 15:18:18 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1612040 Bytes = 1.5 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-4-kirkwood
(debian...@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) )
#1 Debian 3.2.60-1+deb7u3
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE),
cr=00053977
[ 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: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 130048
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/ram
initrd=0xa00000,0x900000 ramdisk=34816
[ 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: 512MB = 512MB total
[ 0.000000] Memory: 505756k/505756k available, 18532k reserved, 0K
highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xfe800000 ( 480 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc03e85dc (3970 kB)
[ 0.000000] .init : 0xc03e9000 - 0xc040d000 ( 144 kB)
[ 0.000000] .data : 0xc040e000 - 0xc0448900 ( 235 kB)
[ 0.000000] .bss : 0xc0448924 - 0xc04abfb8 ( 398 kB)
[ 0.000000] NR_IRQS:114
[ 0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps
every 21474ms
[ 0.000000] Console: colour dummy device 80x30
[ 7.647790] Calibrating delay loop... 1980.82 BogoMIPS (lpj=9904128)
[ 7.707689] pid_max: default: 32768 minimum: 301
[ 7.707777] Security Framework initialized
[ 7.707828] Mount-cache hash table entries: 512
[ 7.708089] Initializing cgroup subsys cpuacct
[ 7.708106] Initializing cgroup subsys memory
[ 7.708125] Initializing cgroup subsys devices
[ 7.708132] Initializing cgroup subsys freezer
[ 7.708138] Initializing cgroup subsys net_cls
[ 7.708143] Initializing cgroup subsys blkio
[ 7.708158] Initializing cgroup subsys perf_event
[ 7.708223] CPU: Testing write buffer coherency: ok
[ 7.709201] devtmpfs: initialized
[ 7.710508] print_constraints: dummy:
[ 7.710692] NET: Registered protocol family 16
[ 7.711273] Kirkwood: MV88F6282-Rev-A1, TCLK=200000000.
[ 7.711282] Feroceon L2: Enabling L2
[ 7.711309] Feroceon L2: Cache support initialised.
[ 7.712184] Kirkwood PCIe port 0:
[ 7.712189] link up
[ 7.712192] Kirkwood PCIe port 1:
[ 7.712195] link up
[ 7.712199] PCI: bus0 uses PCIe port 0
[ 7.712698] PCI: bus0: Fast back to back transfers disabled
[ 7.712911] PCI: bus1 uses PCIe port 1
[ 7.713245] PCI: bus1: Fast back to back transfers disabled
[ 7.713414] pci 0000:01:01.0: BAR 0: assigned [mem
0xe8000000-0xe8007fff 64bit]
[ 7.713434] pci 0000:00:01.0: BAR 6: assigned [mem
0xe0000000-0xe000ffff pref]
[ 7.713442] pci 0000:00:01.0: BAR 5: assigned [mem
0xe0010000-0xe0011fff]
[ 7.713452] pci 0000:00:01.1: BAR 4: assigned [io 0x1000-0x100f]
[ 7.713461] pci 0000:00:01.1: BAR 0: assigned [io 0x1010-0x1017]
[ 7.713471] pci 0000:00:01.1: BAR 2: assigned [io 0x1018-0x101f]
[ 7.713480] pci 0000:00:01.1: BAR 1: assigned [io 0x1020-0x1023]
[ 7.713489] pci 0000:00:01.1: BAR 3: assigned [io 0x1024-0x1027]
[ 7.714641] bio: create slab <bio-0> at 0
[ 7.714926] vgaarb: loaded
[ 7.715307] Switching to clocksource orion_clocksource
[ 7.725349] NET: Registered protocol family 2
[ 7.725484] IP route cache hash table entries: 4096 (order: 2, 16384
bytes)
[ 7.725886] TCP established hash table entries: 16384 (order: 5,
131072 bytes)
[ 7.726267] TCP bind hash table entries: 16384 (order: 4, 65536
bytes)
[ 7.726459] TCP: Hash tables configured (established 16384 bind
16384)
[ 7.726465] TCP reno registered
[ 7.726471] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 7.726489] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 7.726639] NET: Registered protocol family 1
[ 7.726835] Unpacking initramfs...
[ 8.007266] Freeing initrd memory: 9216K
[ 8.007278] NetWinder Floating Point Emulator V0.97 (double
precision)
[ 8.007697] audit: initializing netlink socket (disabled)
[ 8.007730] type=2000 audit(0.350:1): initialized
[ 8.008595] VFS: Disk quotas dquot_6.5.2
[ 8.008653] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 8.008727] JFFS2 version 2.2. (NAND) (SUMMARY) \A9 2001-2006 Red
Hat, Inc.
[ 8.008948] msgmni has been set to 1005
[ 8.010026] alg: No test for stdrng (krng)
[ 8.010106] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 253)
[ 8.010114] io scheduler noop registered
[ 8.010119] io scheduler deadline registered
[ 8.010153] io scheduler cfq registered (default)
[ 8.010232] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[ 8.010253] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[ 8.045350] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 8.085346] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 8.125346] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[ 8.165347] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[ 8.165598] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 8.185925] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a
16550A
[ 8.695083] console [ttyS0] enabled
[ 8.718720] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a
16550A
[ 8.726604] m25p80 spi0.0: m25p128 (16384 Kbytes)
[ 8.731326] Creating 6 MTD partitions on "spi_flash":
[ 8.736425] 0x000000000000-0x000000080000 : "U-Boot"
[ 8.741983] 0x000000200000-0x000000400000 : "Kernel"
[ 8.747548] 0x000000400000-0x000000d00000 : "RootFS1"
[ 8.753168] 0x000000d00000-0x000001000000 : "RootFS2"
[ 8.758831] 0x000000080000-0x0000000c0000 : "U-Boot Config"
[ 8.764981] 0x0000000c0000-0x000000200000 : "NAS Config"
[ 8.771060] mousedev: PS/2 mouse device common for all mice
[ 9.785344] rtc-mv rtc-mv: internal RTC not ticking
[ 9.790303] i2c /dev entries driver
[ 9.797273] rtc-s35390a 0-0030: rtc core: registered rtc-s35390a as
rtc0
[ 9.804070] cpuidle: using governor ladder
[ 9.808239] cpuidle: using governor menu
[ 9.812653] TCP cubic registered
[ 9.815906] NET: Registered protocol family 17
[ 9.820373] Registering the dns_resolver key type
[ 9.825436] registered taskstats version 1
[ 9.830498] rtc-s35390a 0-0030: setting system clock to 2014-09-01
15:21:26 UTC (1409584886)
[ 9.839014] Initializing network drop monitor service
[ 9.844691] Freeing init memory: 144K
Loading, please wait...
[ 9.895761] udevd[51]: starting version 175
[ 10.091756] SCSI subsystem initialized
[ 10.149380] sata_mv sata_mv.0: slots 32 ports 2
[ 10.158794] scsi0 : sata_mv
[ 10.162121] scsi1 : sata_mv
[ 10.165341] ata1: SATA max UDMA/133 irq 21
[ 10.169452] ata2: SATA max UDMA/133 irq 21
[ 10.675346] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 10.695419] ata1.00: ATA-8: ST1000DM003-9YN162, HP13, max UDMA/100
[ 10.701626] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth
31/32)
[ 10.745409] ata1.00: configured for UDMA/100
[ 10.749933] scsi 0:0:0:0: Direct-Access ATA ST1000DM003-9YN1
HP13 PQ: 0 ANSI: 5
[ 11.265346] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 11.285415] ata2.00: ATA-8: ST1000DM003-9YN162, HP13, max UDMA/100
[ 11.291621] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth
31/32)
[ 11.335409] ata2.00: configured for UDMA/100
[ 11.339907] scsi 1:0:0:0: Direct-Access ATA ST1000DM003-9YN1
HP13 PQ: 0 ANSI: 5
[ 11.369992] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks:
(1.00 TB/931 GiB)
[ 11.377703] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 11.383279] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks:
(1.00 TB/931 GiB)
[ 11.390984] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[ 11.402887] sd 0:0:0:0: [sda] Write Protect is off
[ 11.407833] sd 1:0:0:0: [sdb] Write Protect is off
[ 11.412739] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 11.421869] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 11.449204] sdb: sdb1 sdb2
[ 11.453172] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 11.457937] sda: sda1 sda2
[ 11.463256] sd 0:0:0:0: [sda] Attached SCSI disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top
... Begin: Assembling all MD arrays ... [ 11.718497] md: md0 stopped.
[ 11.728712] md: bind<sdb1>
[ 11.735671] md: bind<sda1>
[ 11.743930] md: raid0 personality registered for level 0
[ 11.750089] bio: create slab <bio-1> at 1
[ 11.754135] md/raid0:md0: md_size is 1992704 sectors.
[ 11.759228] md: RAID0 configuration for md0 - 1 zone
[ 11.764239] md: zone0=[sda1/sdb1]
[ 11.767600] zone-offset= 0KB, device-offset=
0KB, size= 996352KB
[ 11.775811]
[ 11.777495] md0: detected capacity change from 0 to 1020264448
mdadm: /dev/md/0 has been started with 2 drives.
[ 11.798268] md0: unknown partition table
[ 12.041073] md: md1 stopped.
[ 12.050757] md: bind<sdb2>
[ 12.066647] md: bind<sda2>
[ 12.074578] md: raid1 personality registered for level 1
[ 12.080608] md/raid1:md1: active with 2 out of 2 mirrors
[ 12.086042] md1: detected capacity change from 0 to 999558021120
mdadm: /dev/md/1 has been started with 2 drives.
[ 12.103060] md1: unknown partition table
Success: assembled all arrays.
done.
[ 12.305659] device-mapper: uevent: version 1.0.3
[ 12.311516] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19)
initialised: dm-d...@redhat.com
Volume group "VG01" not found
Skipping volume group VG01
Unable to find LVM volume VG01/LVG01
Unlocking the disk
/dev/disk/by-uuid/bd88fd91-a823-4657-945c-cfec66b95a74 (md1_crypt)
Enter passphrase:
Reading all physical volumes. This may take a while...
Found volume group "VG01" using metadata type lvm2
2 logical volume(s) in volume group "VG01" now active
/scripts/local-top/cryptroot: line 1: can't open /dev/ram: no such file
cryptsetup: md1_crypt set up successfully
done.
Begin: Waiting for root file system ... done.
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/ram does not exist. Dropping to a shell!



--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/179844f95f3e063f...@f2f10.com

Li, Peng

unread,
Sep 1, 2014, 12:10:03 PM9/1/14
to

HI Tim,
I am glad to report that, it's now working.....!!!! Many thanks to Tim
and Ian as well.Peng

>> 2. The setting was not stayed and we ended up on /dev/ram situation
>> again.
>
> To make the change in u-boot stay before you type boot, type saveenv
>
> That will save your changes to u-boot's flash storage

This indeed worked!

Question though.
1. Will future kernel update affect this?
2. Will future flash-kernel script have a line that will look-into
/etc/fstab's /root dev info and use it to generate a "boot argus....."
and save it on U-boot env automatically?

>
>> Volume group "VG01" not found
>> Skipping volume group VG01
>> Unable to find LVM volume VG01/LVG01
>
> Error about not finding the root LV, possibly from the initramfs hook
> Ian highlighted?
>

This similiar message seems showing up on my normal PC debian server
with Luks/lvm as well. However, it seems that , once Luks is decrypted,
/root will be correctly located with /dev/mapper/VG01-LVG01.



--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/132bd529f970c2f0...@f2f10.com

Ian Campbell

unread,
Sep 4, 2014, 4:40:01 AM9/4/14
to
On Mon, 2014-09-01 at 11:46 -0400, Li, Peng wrote:
> HI Tim,
> I am glad to report that, it's now working.....!!!! Many thanks to Tim
> and Ian as well.Peng
>
> >> 2. The setting was not stayed and we ended up on /dev/ram situation
> >> again.
> >
> > To make the change in u-boot stay before you type boot, type saveenv
> >
> > That will save your changes to u-boot's flash storage
>
> This indeed worked!
>
> Question though.
> 1. Will future kernel update affect this?

Since you have saved the env I don't think so.

> 2. Will future flash-kernel script have a line that will look-into
> /etc/fstab's /root dev info and use it to generate a "boot argus....."
> and save it on U-boot env automatically?

If someone will provide a patch against
flash-kernel.git:initramfs-tools/hooks/flash_kernel_set_root to
automatically detect this situation and do the right thing then
flash-kernel then this won't be necessary in the future.

This hook runs at initrd generation time and writes a /conf/param.conf
into the initrd containing a root= override, this means that with this
solution the default uboot env can be used.

That said looking at the script it's not clear why it isn't already
working for your root on /dev/mapper/LG01-LVG01 setup.

I take it that running update-initramfs completes without any error
message, or you would have mentioned it. Could I ask you to unpack your
initrd and extract conf/param.conf e.g.:
zcat /boot/initrd.img | cpio -id conf/param.conf
cat conf/param.conf

Also what does this output for you:
egrep '^[^# ]+[ ]+/[ ]' /etc/fstab | awk '{print $1}'

Ian.



--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1409819535.1...@kazak.uk.xensource.com

Li, Peng

unread,
Sep 4, 2014, 7:30:02 AM9/4/14
to
HI Ian,

Thanks for looking into this. Here's output.

root@NAS:/tmp# ls
root@NAS:/tmp# zcat /boot/initrd.img | cpio -id conf/param.conf
18373 blocks
root@NAS:/tmp# ls
conf
root@NAS:/tmp# cat conf/param.conf
ROOT="/dev/mapper/VG01-LVG01"

root@NAS:~# egrep '^[^# ]+[ ]+/[ ]' /etc/fstab | awk '{print
$1}'
/dev/mapper/VG01-LVG01

thanks
Peng


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/82f5740ddae3e4ad...@f2f10.com

Ian Campbell

unread,
Sep 5, 2014, 6:40:02 AM9/5/14
to
On Thu, 2014-09-04 at 07:02 -0400, Li, Peng wrote:
> Thanks for looking into this. Here's output.

Strange, that all looks like I would expect so I'm not sure why it isn't
working.

I've got a dmesg for the non-working case in the thread but could you
post one for the working case so I can compare please.

Thanks,
Ian.

> root@NAS:/tmp# ls
> root@NAS:/tmp# zcat /boot/initrd.img | cpio -id conf/param.conf
> 18373 blocks
> root@NAS:/tmp# ls
> conf
> root@NAS:/tmp# cat conf/param.conf
> ROOT="/dev/mapper/VG01-LVG01"
>
> root@NAS:~# egrep '^[^# ]+[ ]+/[ ]' /etc/fstab | awk '{print
> $1}'
> /dev/mapper/VG01-LVG01
>
> thanks
> Peng
>
>



--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1409913537.1...@kazak.uk.xensource.com

Li, Peng

unread,
Sep 5, 2014, 11:10:01 AM9/5/14
to
On 2014-09-05 06:38, Ian Campbell wrote:
> On Thu, 2014-09-04 at 07:02 -0400, Li, Peng wrote:
>> Thanks for looking into this. Here's output.
>
> Strange, that all looks like I would expect so I'm not sure why it
> isn't
> working.
>
> I've got a dmesg for the non-working case in the thread but could you
> post one for the working case so I can compare please.
>
> Thanks,
> Ian.
>
>> root@NAS:/tmp# ls
>> root@NAS:/tmp# zcat /boot/initrd.img | cpio -id conf/param.conf
>> 18373 blocks
>> root@NAS:/tmp# ls
>> conf
>> root@NAS:/tmp# cat conf/param.conf
>> ROOT="/dev/mapper/VG01-LVG01"
>>
>> root@NAS:~# egrep '^[^# ]+[ ]+/[ ]' /etc/fstab | awk '{print
>> $1}'
>> /dev/mapper/VG01-LVG01
>>
>> thanks
>> Peng
>>
>>

HI Ian,

Here's dmesg out put. Let me know whether there's info you are looking
for.

thanks
Peng

root@NAS:~# dmesg
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-4-kirkwood
(debian...@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) )
#1 Debian 3.2.60-1+deb7u3
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE),
cr=00053977
[ 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: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat c0445b9c, node_mem_map
c04ac000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 130048 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 3.390634] Calibrating delay loop... 1980.82 BogoMIPS (lpj=9904128)
[ 3.450535] pid_max: default: 32768 minimum: 301
[ 3.450622] Security Framework initialized
[ 3.450675] Mount-cache hash table entries: 512
[ 3.450935] Initializing cgroup subsys cpuacct
[ 3.450953] Initializing cgroup subsys memory
[ 3.450971] Initializing cgroup subsys devices
[ 3.450977] Initializing cgroup subsys freezer
[ 3.450982] Initializing cgroup subsys net_cls
[ 3.450987] Initializing cgroup subsys blkio
[ 3.451002] Initializing cgroup subsys perf_event
[ 3.451068] CPU: Testing write buffer coherency: ok
[ 3.452046] devtmpfs: initialized
[ 3.453350] print_constraints: dummy:
[ 3.453536] NET: Registered protocol family 16
[ 3.454117] Kirkwood: MV88F6282-Rev-A1, TCLK=200000000.
[ 3.454127] Feroceon L2: Enabling L2
[ 3.454153] Feroceon L2: Cache support initialised.
[ 3.454543] initial MPP regs: 01112222 43303311 55550000 00000000
00000000 00000000 00000000
[ 3.454558] final MPP regs: 01552222 03303311 55550000 00000000
00000000 00000000 00000000
[ 3.455027] Kirkwood PCIe port 0:
[ 3.455032] link up
[ 3.455035] Kirkwood PCIe port 1:
[ 3.455038] link up
[ 3.455042] PCI: bus0 uses PCIe port 0
[ 3.455150] pci 0000:00:00.0: [11ab:6282] type 0 class 0x000580
[ 3.455165] pci 0000:00:00.0: reg 10: [mem 0xf1000000-0xf10fffff
64bit pref]
[ 3.455174] pci 0000:00:00.0: reg 18: [mem 0x00000000-0x1fffffff]
[ 3.455197] pci 0000:00:00.0: supports D1 D2
[ 3.455229] pci 0000:00:01.0: [197b:2363] type 0 class 0x000106
[ 3.455300] pci 0000:00:01.0: reg 24: [mem 0x90000000-0x90001fff]
[ 3.455314] pci 0000:00:01.0: reg 30: [mem 0x00000000-0x0000ffff
pref]
[ 3.455347] pci 0000:00:01.0: PME# supported from D3hot
[ 3.455381] pci 0000:00:01.1: [197b:2363] type 0 class 0x000101
[ 3.455404] pci 0000:00:01.1: reg 10: [io 0xfff8-0xffff]
[ 3.455418] pci 0000:00:01.1: reg 14: [io 0xfffc-0xffff]
[ 3.455432] pci 0000:00:01.1: reg 18: [io 0xfff8-0xffff]
[ 3.455446] pci 0000:00:01.1: reg 1c: [io 0xfffc-0xffff]
[ 3.455459] pci 0000:00:01.1: reg 20: [io 0xfff0-0xffff]
[ 3.455541] PCI: bus0: Fast back to back transfers disabled
[ 3.455753] PCI: bus1 uses PCIe port 1
[ 3.455850] pci 0000:01:00.0: [11ab:6282] type 0 class 0x000580
[ 3.455863] pci 0000:01:00.0: reg 10: [mem 0xf1000000-0xf10fffff
64bit pref]
[ 3.455872] pci 0000:01:00.0: reg 18: [mem 0x00000000-0x1fffffff]
[ 3.455893] pci 0000:01:00.0: supports D1 D2
[ 3.455924] pci 0000:01:01.0: [1b6f:7023] type 0 class 0x000c03
[ 3.455951] pci 0000:01:01.0: reg 10: [mem 0x98000000-0x98007fff
64bit]
[ 3.456040] pci 0000:01:01.0: supports D1 D2
[ 3.456046] pci 0000:01:01.0: PME# supported from D0 D1 D2 D3hot
[ 3.456085] PCI: bus1: Fast back to back transfers disabled
[ 3.456254] pci 0000:01:01.0: BAR 0: assigned [mem
0xe8000000-0xe8007fff 64bit]
[ 3.456275] pci 0000:00:01.0: BAR 6: assigned [mem
0xe0000000-0xe000ffff pref]
[ 3.456283] pci 0000:00:01.0: BAR 5: assigned [mem
0xe0010000-0xe0011fff]
[ 3.456293] pci 0000:00:01.1: BAR 4: assigned [io 0x1000-0x100f]
[ 3.456302] pci 0000:00:01.1: BAR 0: assigned [io 0x1010-0x1017]
[ 3.456312] pci 0000:00:01.1: BAR 2: assigned [io 0x1018-0x101f]
[ 3.456322] pci 0000:00:01.1: BAR 1: assigned [io 0x1020-0x1023]
[ 3.456331] pci 0000:00:01.1: BAR 3: assigned [io 0x1024-0x1027]
[ 3.457490] bio: create slab <bio-0> at 0
[ 3.457775] vgaarb: loaded
[ 3.458155] Switching to clocksource orion_clocksource
[ 3.468188] NET: Registered protocol family 2
[ 3.468322] IP route cache hash table entries: 4096 (order: 2, 16384
bytes)
[ 3.468726] TCP established hash table entries: 16384 (order: 5,
131072 bytes)
[ 3.469106] TCP bind hash table entries: 16384 (order: 4, 65536
bytes)
[ 3.469298] TCP: Hash tables configured (established 16384 bind
16384)
[ 3.469304] TCP reno registered
[ 3.469310] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 3.469328] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 3.469476] NET: Registered protocol family 1
[ 3.469567] PCI: CLS 32 bytes, default 32
[ 3.469673] Unpacking initramfs...
[ 3.750350] Freeing initrd memory: 9216K
[ 3.750364] NetWinder Floating Point Emulator V0.97 (double
precision)
[ 3.750785] audit: initializing netlink socket (disabled)
[ 3.750818] type=2000 audit(0.350:1): initialized
[ 3.751685] VFS: Disk quotas dquot_6.5.2
[ 3.751743] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 3.751818] JFFS2 version 2.2. (NAND) (SUMMARY)
\xffffffc2\xffffffa9\xffffffa9 2001-2006 Red Hat, Inc.
[ 3.752039] msgmni has been set to 1005
[ 3.753118] alg: No test for stdrng (krng)
[ 3.753202] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 253)
[ 3.753211] io scheduler noop registered
[ 3.753215] io scheduler deadline registered
[ 3.753250] io scheduler cfq registered (default)
[ 3.753330] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[ 3.753352] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[ 3.788197] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 3.828194] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 3.868195] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[ 3.908195] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[ 3.908446] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 3.928768] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a
16550A
[ 4.439149] console [ttyS0] enabled
[ 4.462779] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a
16550A
[ 4.470667] m25p80 spi0.0: m25p128 (16384 Kbytes)
[ 4.475391] Creating 6 MTD partitions on "spi_flash":
[ 4.480491] 0x000000000000-0x000000080000 : "U-Boot"
[ 4.486056] 0x000000200000-0x000000400000 : "Kernel"
[ 4.491618] 0x000000400000-0x000000d00000 : "RootFS1"
[ 4.497240] 0x000000d00000-0x000001000000 : "RootFS2"
[ 4.502905] 0x000000080000-0x0000000c0000 : "U-Boot Config"
[ 4.509087] 0x0000000c0000-0x000000200000 : "NAS Config"
[ 4.515146] mousedev: PS/2 mouse device common for all mice
[ 5.528191] rtc-mv rtc-mv: internal RTC not ticking
[ 5.533157] i2c /dev entries driver
[ 5.540127] rtc-s35390a 0-0030: rtc core: registered rtc-s35390a as
rtc0
[ 5.546922] cpuidle: using governor ladder
[ 5.551094] cpuidle: using governor menu
[ 5.555501] TCP cubic registered
[ 5.558758] NET: Registered protocol family 17
[ 5.563226] Registering the dns_resolver key type
[ 5.567964] Gating clock of unused units
[ 5.567969] before: 0x00c7c1dd
[ 5.567973] after: 0x00c7c1cd
[ 5.568281] registered taskstats version 1
[ 5.573342] rtc-s35390a 0-0030: setting system clock to 2014-09-05
14:43:07 UTC (1409928187)
[ 5.581857] Initializing network drop monitor service
[ 5.587535] Freeing init memory: 144K
[ 5.638616] udevd[51]: starting version 175
[ 5.831663] SCSI subsystem initialized
[ 5.890325] libata version 3.00 loaded.
[ 5.891560] sata_mv sata_mv.0: version 1.28
[ 5.891672] sata_mv sata_mv.0: slots 32 ports 2
[ 5.901455] scsi0 : sata_mv
[ 5.904780] scsi1 : sata_mv
[ 5.907975] ata1: SATA max UDMA/133 irq 21
[ 5.912109] ata2: SATA max UDMA/133 irq 21
[ 6.418195] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 6.438268] ata1.00: ATA-8: ST1000DM003-9YN162, HP13, max UDMA/100
[ 6.444470] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth
31/32)
[ 6.488258] ata1.00: configured for UDMA/100
[ 6.492793] scsi 0:0:0:0: Direct-Access ATA ST1000DM003-9YN1
HP13 PQ: 0 ANSI: 5
[ 7.008195] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 7.028262] ata2.00: ATA-8: ST1000DM003-9YN162, HP13, max UDMA/100
[ 7.034465] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth
31/32)
[ 7.078258] ata2.00: configured for UDMA/100
[ 7.082759] scsi 1:0:0:0: Direct-Access ATA ST1000DM003-9YN1
HP13 PQ: 0 ANSI: 5
[ 7.112863] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks:
(1.00 TB/931 GiB)
[ 7.120573] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 7.126153] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks:
(1.00 TB/931 GiB)
[ 7.133854] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[ 7.145714] sd 0:0:0:0: [sda] Write Protect is off
[ 7.150555] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 7.150631] sd 1:0:0:0: [sdb] Write Protect is off
[ 7.155438] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 7.155559] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 7.164664] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 7.188615] sda: sda1 sda2
[ 7.193899] sd 0:0:0:0: [sda] Attached SCSI disk
[ 7.216831] sdb: sdb1 sdb2
[ 7.222222] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 7.483321] md: md0 stopped.
[ 7.493020] md: bind<sdb1>
[ 7.501848] md: bind<sda1>
[ 7.512515] md: raid0 personality registered for level 0
[ 7.518417] bio: create slab <bio-1> at 1
[ 7.522640] md/raid0:md0: md_size is 1992704 sectors.
[ 7.527748] md: RAID0 configuration for md0 - 1 zone
[ 7.532753] md: zone0=[sda1/sdb1]
[ 7.536107] zone-offset= 0KB, device-offset=
0KB, size= 996352KB
[ 7.544319]
[ 7.546582] md0: detected capacity change from 0 to 1020264448
[ 7.556704] md0: unknown partition table
[ 7.804080] md: md1 stopped.
[ 7.813741] md: bind<sdb2>
[ 7.829527] md: bind<sda2>
[ 7.837360] md: raid1 personality registered for level 1
[ 7.843374] md/raid1:md1: active with 2 out of 2 mirrors
[ 7.848810] md1: detected capacity change from 0 to 999558021120
[ 7.863215] md1: unknown partition table
[ 8.068445] device-mapper: uevent: version 1.0.3
[ 8.074292] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19)
initialised: dm-d...@redhat.com
[ 246.417076] EXT4-fs (dm-1): INFO: recovery required on readonly
filesystem
[ 246.424004] EXT4-fs (dm-1): write access will be enabled during
recovery
[ 246.786951] EXT4-fs (dm-1): recovery complete
[ 246.792575] EXT4-fs (dm-1): mounted filesystem with ordered data
mode. Opts: (null)
[ 248.678650] udevd[360]: starting version 175
[ 249.261868] input: gpio-keys as
/devices/platform/gpio-keys/input/input0
[ 249.361050] ahci 0000:00:01.0: version 3.0
[ 249.381580] ahci 0000:00:01.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps
0x3 impl SATA mode
[ 249.389733] ahci 0000:00:01.0: flags: 64bit ncq pm led clo pmp pio
slum part
[ 249.405764] usbcore: registered new interface driver usbfs
[ 249.424395] usbcore: registered new interface driver hub
[ 249.442337] usbcore: registered new device driver usb
[ 249.457870] scsi2 : ahci
[ 249.471034] scsi3 : ahci
[ 249.478524] ata3: SATA max UDMA/133 abar m8192@0xe0010000 port
0xe0010100 irq 9
[ 249.485946] ata4: SATA max UDMA/133 abar m8192@0xe0010000 port
0xe0010180 irq 9
[ 249.498562] xhci_hcd 0000:01:01.0: xHCI Host Controller
[ 249.509143] xhci_hcd 0000:01:01.0: new USB bus registered, assigned
bus number 1
[ 249.516838] usb usb1: New USB device found, idVendor=1d6b,
idProduct=0002
[ 249.523736] usb usb1: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 249.531029] usb usb1: Product: xHCI Host Controller
[ 249.535922] usb usb1: Manufacturer: Linux 3.2.0-4-kirkwood xhci_hcd
[ 249.542220] usb usb1: SerialNumber: 0000:01:01.0
[ 249.549585] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 249.556845] xHCI xhci_add_endpoint called for root hub
[ 249.556853] xHCI xhci_check_bandwidth called for root hub
[ 249.557092] hub 1-0:1.0: USB hub found
[ 249.560898] hub 1-0:1.0: 2 ports detected
[ 249.565076] xhci_hcd 0000:01:01.0: xHCI Host Controller
[ 249.594587] xhci_hcd 0000:01:01.0: new USB bus registered, assigned
bus number 2
[ 249.602461] usb usb2: New USB device found, idVendor=1d6b,
idProduct=0003
[ 249.609296] usb usb2: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 249.616586] usb usb2: Product: xHCI Host Controller
[ 249.621520] usb usb2: Manufacturer: Linux 3.2.0-4-kirkwood xhci_hcd
[ 249.627813] usb usb2: SerialNumber: 0000:01:01.0
[ 249.639963] xHCI xhci_add_endpoint called for root hub
[ 249.639972] xHCI xhci_check_bandwidth called for root hub
[ 249.640222] hub 2-0:1.0: USB hub found
[ 249.645694] hub 2-0:1.0: 2 ports detected
[ 249.838227] ata3: SATA link down (SStatus 0 SControl 300)
[ 249.843748] ata4: SATA link down (SStatus 0 SControl 300)
[ 249.871248] orion-ehci orion-ehci.0: Marvell Orion EHCI
[ 249.876525] orion-ehci orion-ehci.0: new USB bus registered, assigned
bus number 3
[ 249.908210] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 249.928183] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 249.934168] usb usb3: New USB device found, idVendor=1d6b,
idProduct=0002
[ 249.940997] usb usb3: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 249.948256] usb usb3: Product: Marvell Orion EHCI
[ 249.952974] usb usb3: Manufacturer: Linux 3.2.0-4-kirkwood ehci_hcd
[ 249.959267] usb usb3: SerialNumber: orion-ehci.0
[ 249.964536] hub 3-0:1.0: USB hub found
[ 249.968331] hub 3-0:1.0: 1 port detected
[ 249.972430] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version
1.4
[ 249.988003] mv643xx_eth smi: probed
[ 249.997456] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with
MAC address 00:08:9b:cd:08:be
[ 250.768161] EXT4-fs (dm-1): re-mounted. Opts: (null)
[ 251.301666] EXT4-fs (dm-1): re-mounted. Opts: errors=remount-ro
[ 252.651151] loop: module loaded
[ 254.841448] Adding 996348k swap on /dev/mapper/md0_crypt.
Priority:-1 extents:1 across:996348k
[ 256.616862] EXT4-fs (dm-2): mounted filesystem with ordered data
mode. Opts: (null)
[ 258.078982] NET: Registered protocol family 10
[ 258.531081] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 258.861686] RPC: Registered named UNIX socket transport module.
[ 258.867630] RPC: Registered udp transport module.
[ 258.872372] RPC: Registered tcp transport module.
[ 258.877096] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 258.939656] FS-Cache: Loaded
[ 259.027577] FS-Cache: Netfs 'nfs' registered for caching
[ 259.076173] Installing knfsd (copyright (C) 1996 ok...@monad.swb.de).
[ 261.625498] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 1000
Mb/s, full duplex, flow control disabled
[ 261.635688] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 272.078265] eth0: no IPv6 routers present


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/8fafa48b854f81ef...@f2f10.com

Tim Fletcher

unread,
Sep 7, 2014, 11:00:02 AM9/7/14
to
On 05/09/14 11:38, Ian Campbell wrote:
> On Thu, 2014-09-04 at 07:02 -0400, Li, Peng wrote:
>> Thanks for looking into this. Here's output.
>
> Strange, that all looks like I would expect so I'm not sure why it isn't
> working.
>
> I've got a dmesg for the non-working case in the thread but could you
> post one for the working case so I can compare please.

It feels to me like either an ordering question (ie tries to mount root
before luks has run) or that the cryptsetup script isn't making use of
the param.conf settings correctly.

--
Tim Fletcher <t...@night-shade.org.uk>


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/540C7232...@night-shade.org.uk

Ian Campbell

unread,
Sep 7, 2014, 11:40:03 AM9/7/14
to
On Fri, 2014-09-05 at 10:49 -0400, Li, Peng wrote:
> Here's dmesg out put. Let me know whether there's info you are looking
> for.

It's what I asked for but not actually what I wanted, sorry.

What meant to ask for was the serial console log, i.e. with all the
output from the userspace tools running from the initramfs.

The dmesg only includes the kernel messages and I'm reasonably sure it's
not a kernel level issue.

Sorry again.

Ian.


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1410104130.1...@dagon.hellion.org.uk

Ian Campbell

unread,
Sep 7, 2014, 11:50:02 AM9/7/14
to
On Sun, 2014-09-07 at 15:56 +0100, Tim Fletcher wrote:
> On 05/09/14 11:38, Ian Campbell wrote:
> > On Thu, 2014-09-04 at 07:02 -0400, Li, Peng wrote:
> >> Thanks for looking into this. Here's output.
> >
> > Strange, that all looks like I would expect so I'm not sure why it isn't
> > working.
> >
> > I've got a dmesg for the non-working case in the thread but could you
> > post one for the working case so I can compare please.
>
> It feels to me like either an ordering question (ie tries to mount root
> before luks has run) or that the cryptsetup script isn't making use of
> the param.conf settings correctly.

I agree.

It occurs to me only now to look and bugs.debian.org and:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707641

Looking at the initramfs scripts provided by cryptsetup I'm not seeing
any param.conf handing, but I am seeing some /proc/cmdline scrobbling. I
wonder if the bug is not using the $ROOT provided by the initramfs core
and instead poking into /proc/cmdline?

Ian.


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1410104517.1...@dagon.hellion.org.uk

Li, Peng

unread,
Sep 7, 2014, 7:00:02 PM9/7/14
to
On 2014-09-07 11:35, Ian Campbell wrote:
> On Fri, 2014-09-05 at 10:49 -0400, Li, Peng wrote:
>> Here's dmesg out put. Let me know whether there's info you are looking
>> for.
>
> It's what I asked for but not actually what I wanted, sorry.
>
> What meant to ask for was the serial console log, i.e. with all the
> output from the userspace tools running from the initramfs.
>
> The dmesg only includes the kernel messages and I'm reasonably sure
> it's
> not a kernel level issue.
>
> Sorry again.
>
> Ian.
Hi Ian,

Thanks for looking into this. Here's a console log captured by putty.

Let me know if this helps.
thanks
peng
Created: 2014-09-01 15:51:28 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1612040 Bytes = 1.5 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-4-kirkwood
(debian...@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) )
#1 Debian 3.2.60-1+deb7u3
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE),
cr=00053977
[ 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: ECC disabled, Data cache writeback
[ 7.637384] Calibrating delay loop... 1980.82 BogoMIPS (lpj=9904128)
[ 7.697285] pid_max: default: 32768 minimum: 301
[ 7.697372] Security Framework initialized
[ 7.697425] Mount-cache hash table entries: 512
[ 7.697685] Initializing cgroup subsys cpuacct
[ 7.697703] Initializing cgroup subsys memory
[ 7.697721] Initializing cgroup subsys devices
[ 7.697728] Initializing cgroup subsys freezer
[ 7.697733] Initializing cgroup subsys net_cls
[ 7.697737] Initializing cgroup subsys blkio
[ 7.697752] Initializing cgroup subsys perf_event
[ 7.697818] CPU: Testing write buffer coherency: ok
[ 7.698793] devtmpfs: initialized
[ 7.700095] print_constraints: dummy:
[ 7.700282] NET: Registered protocol family 16
[ 7.700867] Kirkwood: MV88F6282-Rev-A1, TCLK=200000000.
[ 7.700877] Feroceon L2: Enabling L2
[ 7.700903] Feroceon L2: Cache support initialised.
[ 7.701777] Kirkwood PCIe port 0:
[ 7.701781] link up
[ 7.701785] Kirkwood PCIe port 1:
[ 7.701788] link up
[ 7.701792] PCI: bus0 uses PCIe port 0
[ 7.702290] PCI: bus0: Fast back to back transfers disabled
[ 7.702503] PCI: bus1 uses PCIe port 1
[ 7.702835] PCI: bus1: Fast back to back transfers disabled
[ 7.703004] pci 0000:01:01.0: BAR 0: assigned [mem
0xe8000000-0xe8007fff 64bit]
[ 7.703024] pci 0000:00:01.0: BAR 6: assigned [mem
0xe0000000-0xe000ffff pref]
[ 7.703033] pci 0000:00:01.0: BAR 5: assigned [mem
0xe0010000-0xe0011fff]
[ 7.703042] pci 0000:00:01.1: BAR 4: assigned [io 0x1000-0x100f]
[ 7.703052] pci 0000:00:01.1: BAR 0: assigned [io 0x1010-0x1017]
[ 7.703062] pci 0000:00:01.1: BAR 2: assigned [io 0x1018-0x101f]
[ 7.703071] pci 0000:00:01.1: BAR 1: assigned [io 0x1020-0x1023]
[ 7.703081] pci 0000:00:01.1: BAR 3: assigned [io 0x1024-0x1027]
[ 7.704240] bio: create slab <bio-0> at 0
[ 7.704525] vgaarb: loaded
[ 7.704905] Switching to clocksource orion_clocksource
[ 7.714938] NET: Registered protocol family 2
[ 7.715072] IP route cache hash table entries: 4096 (order: 2, 16384
bytes)
[ 7.715476] TCP established hash table entries: 16384 (order: 5,
131072 bytes)
[ 7.715856] TCP bind hash table entries: 16384 (order: 4, 65536
bytes)
[ 7.716048] TCP: Hash tables configured (established 16384 bind
16384)
[ 7.716053] TCP reno registered
[ 7.716060] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 7.716078] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 7.716226] NET: Registered protocol family 1
[ 7.716423] Unpacking initramfs...
[ 7.997059] Freeing initrd memory: 9216K
[ 7.997072] NetWinder Floating Point Emulator V0.97 (double
precision)
[ 7.997488] audit: initializing netlink socket (disabled)
[ 7.997521] type=2000 audit(0.350:1): initialized
[ 7.998379] VFS: Disk quotas dquot_6.5.2
[ 7.998438] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
[ 7.998511] JFFS2 version 2.2. (NAND) (SUMMARY) \A9 2001-2006 Red
Hat, Inc.
[ 7.998734] msgmni has been set to 1005
[ 7.999810] alg: No test for stdrng (krng)
[ 7.999891] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 253)
[ 7.999900] io scheduler noop registered
[ 7.999905] io scheduler deadline registered
[ 7.999939] io scheduler cfq registered (default)
[ 8.000018] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[ 8.000039] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[ 8.034947] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 8.074945] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 8.114945] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[ 8.154944] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[ 8.155191] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 8.175513] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a
16550A
[ 8.685899] console [ttyS0] enabled
[ 8.709531] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a
16550A
[ 8.717424] m25p80 spi0.0: m25p128 (16384 Kbytes)
[ 8.722152] Creating 6 MTD partitions on "spi_flash":
[ 8.727249] 0x000000000000-0x000000080000 : "U-Boot"
[ 8.732807] 0x000000200000-0x000000400000 : "Kernel"
[ 8.738374] 0x000000400000-0x000000d00000 : "RootFS1"
[ 8.743991] 0x000000d00000-0x000001000000 : "RootFS2"
[ 8.749644] 0x000000080000-0x0000000c0000 : "U-Boot Config"
[ 8.755827] 0x0000000c0000-0x000000200000 : "NAS Config"
[ 8.761885] mousedev: PS/2 mouse device common for all mice
[ 9.774940] rtc-mv rtc-mv: internal RTC not ticking
[ 9.779908] i2c /dev entries driver
[ 9.786878] rtc-s35390a 0-0030: rtc core: registered rtc-s35390a as
rtc0
[ 9.793675] cpuidle: using governor ladder
[ 9.797846] cpuidle: using governor menu
[ 9.802253] TCP cubic registered
[ 9.805510] NET: Registered protocol family 17
[ 9.809976] Registering the dns_resolver key type
[ 9.815033] registered taskstats version 1
[ 9.820093] rtc-s35390a 0-0030: setting system clock to 2014-09-07
22:33:10 UTC (1410129190)
[ 9.828610] Initializing network drop monitor service
[ 9.834288] Freeing init memory: 144K
Loading, please wait...
[ 9.885362] udevd[51]: starting version 175
[ 10.062521] SCSI subsystem initialized
[ 10.140601] sata_mv sata_mv.0: slots 32 ports 2
[ 10.149365] scsi0 : sata_mv
[ 10.152668] scsi1 : sata_mv
[ 10.155891] ata1: SATA max UDMA/133 irq 21
[ 10.160006] ata2: SATA max UDMA/133 irq 21
[ 10.664944] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 10.685017] ata1.00: ATA-8: ST1000DM003-9YN162, HP13, max UDMA/100
[ 10.691221] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth
31/32)
[ 10.735008] ata1.00: configured for UDMA/100
[ 10.739541] scsi 0:0:0:0: Direct-Access ATA ST1000DM003-9YN1
HP13 PQ: 0 ANSI: 5
[ 11.254943] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 11.275014] ata2.00: ATA-8: ST1000DM003-9YN162, HP13, max UDMA/100
[ 11.281215] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth
31/32)
[ 11.325008] ata2.00: configured for UDMA/100
[ 11.329512] scsi 1:0:0:0: Direct-Access ATA ST1000DM003-9YN1
HP13 PQ: 0 ANSI: 5
[ 11.359621] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks:
(1.00 TB/931 GiB)
[ 11.367334] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 11.372913] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks:
(1.00 TB/931 GiB)
[ 11.380613] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[ 11.392519] sd 0:0:0:0: [sda] Write Protect is off
[ 11.397463] sd 1:0:0:0: [sdb] Write Protect is off
[ 11.402369] sd 0:0:0:0: [sda] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 11.411500] sd 1:0:0:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 11.436363] sda: sda1 sda2
[ 11.441669] sd 0:0:0:0: [sda] Attached SCSI disk
[ 11.462918] sdb: sdb1 sdb2
[ 11.468303] sd 1:0:0:0: [sdb] Attached SCSI disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top
... Begin: Assembling all MD arrays ... [ 11.751288] md: md0 stopped.
[ 11.761494] md: bind<sdb1>
[ 11.770159] md: bind<sda1>
[ 11.784403] md: raid0 personality registered for level 0
[ 11.790303] bio: create slab <bio-1> at 1
[ 11.794349] md/raid0:md0: md_size is 1992704 sectors.
[ 11.799437] md: RAID0 configuration for md0 - 1 zone
[ 11.804413] md: zone0=[sda1/sdb1]
[ 11.807772] zone-offset= 0KB, device-offset=
0KB, size= 996352KB
[ 11.815982]
[ 11.817501] md0: detected capacity change from 0 to 1020264448
mdadm: /dev/md/0 has been started with 2 drives.[ 11.827592] md0:
unknown partition table

[ 12.076837] md: md1 stopped.
[ 12.086500] md: bind<sdb2>
[ 12.102464] md: bind<sda2>
[ 12.110375] md: raid1 personality registered for level 1
[ 12.116386] md/raid1:md1: active with 2 out of 2 mirrors
[ 12.121783] md1: detected capacity change from 0 to 999558021120
mdadm: /dev/md/1 has been started with 2 drives.
[ 12.135973] md1: unknown partition table
Success: assembled all arrays.
done.
[ 12.341372] device-mapper: uevent: version 1.0.3
[ 12.347248] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19)
initialised: dm-d...@redhat.com
Volume group "VG01" not found
Skipping volume group VG01
Unable to find LVM volume VG01/LVG01
Unlocking the disk
/dev/disk/by-uuid/bd88fd91-a823-4657-945c-cfec66b95a74 (md1_crypt)
Enter passphrase:
Reading all physical volumes. This may take a while...
Found volume group "VG01" using metadata type lvm2
2 logical volume(s) in volume group "VG01" now active
cryptsetup: md1_crypt set up successfully
done.
Begin: Running /scripts/local-premount ... done.
[ 18.721597] EXT4-fs (dm-1): mounted filesystem with ordered data
mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... evdev: Error opening
/dev/input/by-path/platform-gpio-keys-event: No such file or directory
register() - Error loading module
done.

INIT: version 2.88 booting

[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[ 20.318076]
udevd[356]: starting version 175
[ ok .
[....] Synthesizing the initial hotplug events...[ ok done.
[ 20.871973] input: gpio-keys as
/devices/platform/gpio-keys/input/input0
[....] Waiting for /dev to be fully populated...[ 21.015831] usbcore:
registered new interface driver usbfs
[ 21.025017] ahci 0000:00:01.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps
0x3 impl SATA mode
[ 21.033145] ahci 0000:00:01.0: flags: 64bit ncq pm led clo pmp pio
slum part
[ 21.044993] usbcore: registered new interface driver hub
[ 21.053767] usbcore: registered new device driver usb
[ 21.084546] scsi2 : ahci
[ 21.094051] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 21.100670] scsi3 : ahci
[ 21.103657] ata3: SATA max UDMA/133 abar m8192@0xe0010000 port
0xe0010100 irq 9
[ 21.111015] ata4: SATA max UDMA/133 abar m8192@0xe0010000 port
0xe0010180 irq 9
[ 21.130133] xhci_hcd 0000:01:01.0: xHCI Host Controller
[ 21.144819] xhci_hcd 0000:01:01.0: new USB bus registered, assigned
bus number 1
[ 21.165097] usb usb1: New USB device found, idVendor=1d6b,
idProduct=0002
[ 21.171971] usb usb1: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 21.179235] usb usb1: Product: xHCI Host Controller
[ 21.184129] usb usb1: Manufacturer: Linux 3.2.0-4-kirkwood xhci_hcd
[ 21.190451] usb usb1: SerialNumber: 0000:01:01.0
[ 21.196188] hub 1-0:1.0: USB hub found
[ 21.199960] hub 1-0:1.0: 2 ports detected
[ 21.204134] xhci_hcd 0000:01:01.0: xHCI Host Controller
[ 21.217310] xhci_hcd 0000:01:01.0: new USB bus registered, assigned
bus number 2
[ 21.243550] usb usb2: New USB device found, idVendor=1d6b,
idProduct=0003
[ 21.250440] usb usb2: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 21.257726] usb usb2: Product: xHCI Host Controller
[ 21.262618] usb usb2: Manufacturer: Linux 3.2.0-4-kirkwood xhci_hcd
[ 21.268913] usb usb2: SerialNumber: 0000:01:01.0
[ 21.275468] hub 2-0:1.0: USB hub found
[ 21.279427] hub 2-0:1.0: 2 ports detected
[ 21.464955] ata4: SATA link down (SStatus 0 SControl 300)
[ 21.470435] ata3: SATA link down (SStatus 0 SControl 300)
[ 21.521235] orion-ehci orion-ehci.0: Marvell Orion EHCI
[ 21.527525] orion-ehci orion-ehci.0: new USB bus registered, assigned
bus number 3
[ 21.564951] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 21.584933] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 21.590919] usb usb3: New USB device found, idVendor=1d6b,
idProduct=0002
[ 21.597749] usb usb3: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 21.605008] usb usb3: Product: Marvell Orion EHCI
[ 21.609726] usb usb3: Manufacturer: Linux 3.2.0-4-kirkwood ehci_hcd
[ 21.616019] usb usb3: SerialNumber: orion-ehci.0
[ 21.621297] hub 3-0:1.0: USB hub found
[ 21.625091] hub 3-0:1.0: 1 port detected
[ 21.629191] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version
1.4
[ 21.645458] mv643xx_eth smi: probed
[ 21.655550] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with
MAC address 00:08:9b:cd:08:be
[ ok done.
[....] Generating udev events for MD arrays...[ ok done.
[ 22.408039] EXT4-fs (dm-1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.20.1
/dev/mapper/VG01-LVG01: clean, 26279/3662848 files, 414837/14648320
blocks
[ ok done.
[ 22.826543] EXT4-fs (dm-1): re-mounted. Opts: errors=remount-ro
[....] Cleaning up temporary files... /tmp[ ok .
[....] Starting early crypto disks...[info] md0_crypt (starting)...
md0_crypt (started)...md1_crypt (running)...[ ok done.
[ 24.068475] loop: module loaded
[info] Loading kernel module gpio_keys.
[info] Loading kernel module loop.
[....] Setting up LVM Volume Groups...[ ok done.
[....] Starting remaining crypto disks...md0_crypt (running)...md1_crypt
(running)...[ ok done.
[....] Activating lvm and md swap...[ 25.836712] Adding 996348k swap
on /dev/mapper/md0_crypt. Priority:-1 extents:1 across:996348k
[ ok done.
[....] Checking file systems...fsck from util-linux 2.20.1
/dev/mapper/VG01-LVG02: clean, 22/48832512 files, 3115544/195312640
blocks
[ ok done.
[....] Mounting local filesystems...[ 26.815291] EXT4-fs (dm-2):
mounted filesystem with ordered data mode. Opts: (null)
[ ok done.
[....] Activating swapfile swap...[ ok done.
[....] Cleaning up temporary files...[ ok .
[....] Setting kernel variables ...[ ok done.
[....] Configuring network interfaces...[ ok done.
[ 28.156761] NET: Registered protocol family 10
[....] Starting rpcbind daemon...[ 28.585602] ADDRCONF(NETDEV_UP):
eth0: link is not ready
[ ok .
[....] Starting NFS common utilities: statd[ 28.845299] RPC:
Registered named UNIX socket transport module.
[ 28.851249] RPC: Registered udp transport module.
[ 28.855984] RPC: Registered tcp transport module.
[ 28.860701] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 28.909240] FS-Cache: Loaded
[ 29.013219] FS-Cache: Netfs 'nfs' registered for caching
[ 29.060307] Installing knfsd (copyright (C) 1996 ok...@monad.swb.de).
idmapd[ ok .
[....] Cleaning up temporary files...[ ok .
[....] Starting qcontrol daemon: qcontrol[ ok .

INIT: Entering runlevel: 2

[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting rpcbind daemon...[....] Already running.[ ok .
[....] Starting NFS common utilities: statd idmapd[ ok .
[....] Starting enhanced syslogd: rsyslogd[ ok .
[....] Starting deferred execution scheduler: atd[ ok .
[....] Starting periodic command scheduler: cron[ ok .
[....] Starting MTA: exim4[ ok .
[....] Starting MD monitoring service: mdadm --monitor[ 31.704903]
mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 1000 Mb/s, full
duplex, flow control disabled
[ 31.715112] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ ok .
[....] Starting OpenBSD Secure Shell server: sshd[ ok .
[info] System boot completed.

Debian GNU/Linux 7 NAS ttyS0

NAS login: root

Password:
Last login: Sun Sep 7 18:32:31 EDT 2014 on ttyS0
Linux NAS 3.2.0-4-kirkwood #1 Debian 3.2.60-1+deb7u3 armv5tel

The programs included with the Debian GNU/Linux system are free
software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@NAS:~#


--
To UNSUBSCRIBE, email to debian-ar...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/2b894e302edf1a6b...@f2f10.com
0 new messages