To: "debian-arm@lists.debian.org" <debian-arm@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_gemsuqlsxlpkrs0fwlq8mbaws+ri2f0h...@mail.gmail.com>
In-reply-to: <0ed514927fab186ca35c1e80eb3eb...@f2f10.com>
References: <75a5756e1ecab2e6bffce1d2c8f95...@f2f10.com>
<0ed514927fab186ca35c1e80eb3eb...@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-ker...@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-de...@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-arm-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/c2bcd8630e30de6280ce3b0b28078...@f2f10.com