[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: QNAP 219 P II, Luks, Debian



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-kernel@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-devel@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 okir@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.

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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-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-kernel@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-devel@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!



Reply to: