Bug#543443: installation-reports: eventual success on QNAP TS-219

View: New views
5 Messages — Rating Filter:   Alert me  

Bug#543443: installation-reports: eventual success on QNAP TS-219

by Simon McVittie-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Package: installation-reports
Severity: normal

-- Package-specific info:

Boot method: network
Image version: 20090819 daily, http://people.debian.org/~joeyh/d-i/armel/images/20090819-23:51/kirkwood/network-console/qnap/ts-219/
Date: 2009-08-20

Machine: QNAP TS-219
Partitions:

Disks are partitioned as 1GB + the rest:

testament:~# fdisk -l /dev/sda

Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6e29c273

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         122      979933+  82  Linux swap / Solaris
/dev/sda2             123      182401  1464156067+  fd  Linux raid autodetect

sdb has an identical layout.

sdb1 is swap, sda1 is currently unused.

sd?2 are combined into md0 with software RAID1:

testament:~# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda2[2] sdb2[0]
      1464155968 blocks [2/1] [U_]
      [=====>...............]  recovery = 26.6% (390349632/1464155968) finish=216.6min speed=82586K/sec

md0 is the only physical volume in a LVM volume group:

testament:~# lvdisplay
  --- Logical volume ---
  LV Name                /dev/testament/root
  ...
  LV Size                46.56 GB
  ...
  --- Logical volume ---
  LV Name                /dev/testament/srv
  ...
  LV Size                1.32 TB



Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:           [E]
Detect network card:    [O]
Configure network:      [O]
Detect CD:              [O]
Load installer modules: [O]
Detect hard drives:     [E]
Partition hard drives:  [O]
Install base system:    [O]
Clock/timezone setup:   [O]
User/password setup:    [O]
Install tasks:          [O]
Install boot loader:    [O]
Overall install:        [O]

Comments/Problems:

I constructed a serial console cable according to tbm's documentation and
used it with a USB <-> 3.3V serial adaptor, which was useful to get the
thing booted, but may have caused some of the problems it helped me to solve -
the 3.3V power from my laptop's USB was apparently enough to keep the board
running even with the AC adaptor unplugged!

I flashed the daily build kernel/ramdisk by booting into the QNAP firmware
(only the minimal version in flash - I never installed anything from the
supplied CDs to the disks) and using the flash-debian script; however,
I ended up loading them over tftp instead.

Booting with the serial console appeared to stop at the stage of starting
init; I never got a shell on the serial port, and d-i never got as far as
doing DHCP, for some reason (the server's logs indicate that it never received
a request). In the absence of a shell, I couldn't debug this.

I eventually booted from tftp with:

setenv serverip 10.13.0.1
setenv ipaddr 10.13.0.35
setenv bootargs console=ttyS0,115200n8 root=/dev/ram rw initrd=0xa00000,0x900000 BOOT_DEBUG=9
tftpboot 0xa00000 ts219-initrd.gz
tftpboot 0x800000 ts219-kernel
bootm 0x800000

(Changes compared with tbm's instructions: he used the wrong size for the
initrd, causing truncation and boot failure; also, I added BOOT_DEBUG to be
able to get an early shell.)

To work around the failure to run things from init, I exited from the first
shell offered, then ran dhclient, debian-installer-startup and debian-installer
(in that order) in the second (run just before init), and never actually
allowed init to start. With hindsight, running dhclient was probably
unnecessary.

d-i on the serial console eventually told me it was starting the SSH server,
and I switched to SSH for the rest of the installation.

At the "partition disks" stage, no disks were found or offered for
partitioning; dmesg reported that both SATA links were down.

I tried forcing a scan (echo 1 > /sys/class/scsi_host/host2/scan
and the same for host3), which caused the Samsung disk in bay 2 (host3) to
wake up and be detected as sda; the Western Digital disk in bay 1 (host2) was
still not detected. I continued the install onto the Samsung disk only,
configuring it for a degraded 2-disk RAID1 array.

As a result of the strange hacks I'd done to start d-i, exiting from the
main menu with "finish installation" didn't work. I used the "magic sysrq
key" on the serial console (Break S Break U Break O) to shut down wthout
data loss. I now realise that the detailed installation logs were probably lost
during this process; sorry about that.

I suspected that the serial console providing partial power to the board might
be causing problems, so I disconnected it before the first boot of the
installed system. As I'd hoped, both disks were brought up correctly
in the installed system, so I duplicated the partition layout from the
installed Samsung (now sdb) onto the uninitialized Western Digital (now sda),
and added it to the RAID array.

--

Please make sure that the hardware-summary log file, and any other
installation logs that you think would be useful are attached to this
report. Please compress large files using gzip.

Once you have filled out this report, mail it to submit@....

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.30-1-kirkwood
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


report-hw.gz (2K) Download Attachment

Bug#543443: installation-reports: eventual success on QNAP TS-219

by Martin Michlmayr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Simon McVittie <smcv@...> [2009-08-25 01:50]:
> Booting with the serial console appeared to stop at the stage of starting
> init; I never got a shell on the serial port, and d-i never got as far as
> doing DHCP, for some reason (the server's logs indicate that it never received
> a request). In the absence of a shell, I couldn't debug this.

I cannot reproduce this.  I just took a daily image and it boots fine.
I first see the kernel messages, then "Starting system log daemon:
syslogd, klogd." and then a black screen with a green cursos and a
little bit later I get a window with DHCP.

Can you please boot the installer again and see what happens?

> At the "partition disks" stage, no disks were found or offered for
> partitioning; dmesg reported that both SATA links were down.
...
> I suspected that the serial console providing partial power to the board might
> be causing problems, so I disconnected it before the first boot of the
> installed system. As I'd hoped, both disks were brought up correctly
> in the installed system

So you're saying the disk didn't come up in d-i because of the serial
connector?  So can I ignore this issue?

The way I read your report, there are three issues:
 - d-i doesn't start properly: I cannot reproduce this.  I'd like to
   hear more info.
 - initrd size in my docs are wrong: fixed.
 - disk doesn't come up: caused by your serial connector.

Right?
--
Martin Michlmayr
http://www.cyrius.com/



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#543443: installation-reports: eventual success on QNAP TS-219

by Martin Michlmayr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

BTW, here's my boot log:

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: DB-88F6281A-BP LE

U-Boot 1.1.4 (Apr 23 2009 - 19:01:28) Marvell version: 3.4.4

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 00690DCC

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

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

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PCI 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  3  0
QNAP: Recovery Button pressed: 0
Marvell>>
Marvell>>
Marvell>> setenv bootargs console=ttyS0,115200n8 root=/dev/ram rw initrd=0xa00000,0x8fffff
Marvell>> setenv ipaddr 192.168.1.147
Marvell>> setenv serverip 192.168.1.70
Marvell>> tftpboot 0xa00000 ts-219/di/initrd.gz
Using egiga0 device
TFTP from server 192.168.1.70; our IP address is 192.168.1.147
Filename 'ts-219/di/initrd.gz'.
Load address: 0xa00000
Loading: *#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ########################
done
Bytes transferred = 9437184 (900000 hex)
Marvell>> tftpboot 0x800000 ts-219/di/kernel
Using egiga0 device
TFTP from server 192.168.1.70; our IP address is 192.168.1.147
Filename 'ts-219/di/kernel'.
Load address: 0x800000
Loading: *#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #############################
done
Bytes transferred = 1811460 (1ba404 hex)
Marvell>> bootm 0x800000
## Booting image at 00800000 ...
   Image Name:   Debian kernel
   Created:      2009-09-19  10:13:47 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1811396 Bytes =  1.7 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 2.6.30-1-kirkwood (Debian 2.6.30-6) (waldi@...) (gcc version 4.3.4 (Debian 4.3.4-1) ) #1 Mon Aug 17 14:01:54 UTC 2009
[    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,115200n8 root=/dev/ram rw initrd=0xa00000,0x8fffff
[    0.000000] NR_IRQS:114
[    0.000000] PID hash table entries: 2048 (order: 11, 8192 bytes)
[    0.000000] Console: colour dummy device 80x30
[    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.010000] Memory: 256MB 256MB = 512MB total
[    0.010000] Memory: 506368KB available (3228K code, 547K data, 120K init, 0K highmem)
[    0.010000] Calibrating delay loop... 1199.30 BogoMIPS (lpj=5996544)
[    0.240000] Security Framework initialized
[    0.240000] SELinux:  Disabled at boot.
[    0.240000] Mount-cache hash table entries: 512
[    0.240000] Initializing cgroup subsys ns
[    0.240000] Initializing cgroup subsys cpuacct
[    0.240000] Initializing cgroup subsys devices
[    0.240000] Initializing cgroup subsys freezer
[    0.240000] Initializing cgroup subsys net_cls
[    0.240000] CPU: Testing write buffer coherency: ok
[    0.240000] net_namespace: 1076 bytes
[    0.240000] regulator: core version 0.5
[    0.240000] NET: Registered protocol family 16
[    0.240000] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    0.240000] Feroceon L2: Enabling L2
[    0.240000] Feroceon L2: Cache support initialised.
[    0.250000] bio: create slab <bio-0> at 0
[    0.250000] NET: Registered protocol family 2
[    0.250000] IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.250000] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
[    0.250000] TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
[    0.250000] TCP: Hash tables configured (established 65536 bind 65536)
[    0.250000] TCP reno registered
[    0.250000] NET: Registered protocol family 1
[    0.250000] Trying to unpack rootfs image as initramfs...
[    0.660000] Freeing initrd memory: 9212K
[    0.660000] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.660000] audit: initializing netlink socket (disabled)
[    0.660000] type=2000 audit(0.660:1): initialized
[    0.660000] VFS: Disk quotas dquot_6.5.2
[    0.660000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.660000] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.660000] msgmni has been set to 1007
[    0.660000] alg: No test for stdrng (krng)
[    0.660000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.660000] io scheduler noop registered
[    0.660000] io scheduler anticipatory registered
[    0.660000] io scheduler deadline registered
[    0.660000] io scheduler cfq registered (default)
[    0.670000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.670000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    0.670000] console [ttyS0] enabled
[    0.990000] serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
[    1.000000] brd: module loaded
[    1.000000] m25p80 spi0.0: m25p128 (16384 Kbytes)
[    1.010000] Creating 6 MTD partitions on "spi_flash":
[    1.010000] 0x000000000000-0x000000080000 : "U-Boot"
[    1.020000] ftl_cs: FTL header not found.
[    1.020000] 0x000000200000-0x000000400000 : "Kernel"
[    1.030000] ftl_cs: FTL header not found.
[    1.030000] 0x000000400000-0x000000d00000 : "RootFS1"
[    1.040000] ftl_cs: FTL header not found.
[    1.040000] 0x000000d00000-0x000001000000 : "RootFS2"
[    1.050000] ftl_cs: FTL header not found.
[    1.060000] 0x000000080000-0x0000000c0000 : "U-Boot Config"
[    1.060000] ftl_cs: FTL header not found.
[    1.070000] 0x0000000c0000-0x000000200000 : "NAS Config"
[    1.070000] ftl_cs: FTL header not found.
[    1.080000] mice: PS/2 mouse device common for all mice
[    2.090000] rtc-mv rtc-mv: internal RTC not ticking
[    2.090000] i2c /dev entries driver
[    2.100000] rtc-s35390a 0-0030: rtc core: registered rtc-s35390a as rtc0
[    2.100000] cpuidle: using governor ladder
[    2.110000] cpuidle: using governor menu
[    2.110000] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[    2.120000] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[    2.170000] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    2.210000] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    2.250000] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[    2.290000] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[    2.290000] TCP cubic registered
[    2.300000] NET: Registered protocol family 17
[    2.300000] registered taskstats version 1
[    2.310000] rtc-s35390a 0-0030: setting system clock to 2009-09-19 16:42:57 UTC (1253378577)
[    2.310000] Freeing init memory: 120K
[    2.410000] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.500000] MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.510000] mv643xx_eth smi: probed
[    2.590000] usbcore: registered new interface driver usbfs
[    2.600000] usbcore: registered new interface driver hub
[    2.600000] net eth0: port 0 with MAC address 00:50:43:3c:3b:5d
[    2.720000] SCSI subsystem initialized
[    3.220000] usbcore: registered new device driver usb
[    3.230000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.240000] orion-ehci orion-ehci.0: Marvell Orion EHCI
[    3.240000] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    3.400000] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    3.430000] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    3.430000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.440000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.450000] usb usb1: Product: Marvell Orion EHCI
[    3.450000] usb usb1: Manufacturer: Linux 2.6.30-1-kirkwood ehci_hcd
[    3.460000] usb usb1: SerialNumber: orion-ehci.0
[    3.460000] usb usb1: configuration #1 chosen from 1 choice
[    3.470000] hub 1-0:1.0: USB hub found
[    3.470000] hub 1-0:1.0: 1 port detected
[    3.630000] sata_mv sata_mv.0: version 1.28
[    3.640000] sata_mv sata_mv.0: slots 32 ports 2
[    3.650000] scsi0 : sata_mv
[    3.650000] scsi1 : sata_mv
[    3.660000] ata1: SATA max UDMA/133 irq 21
[    3.660000] ata2: SATA max UDMA/133 irq 21
[    3.790000] usb 1-1: new high speed USB device using orion-ehci and address 2
[    3.940000] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    3.940000] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.950000] usb 1-1: Product: USB2.0 Hub
[    3.950000] usb 1-1: configuration #1 chosen from 1 choice
[    3.960000] hub 1-1:1.0: USB hub found
[    3.960000] hub 1-1:1.0: 4 ports detected
[    4.180000] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    4.240000] ata1.00: ATA-7: ST3320620AS, 3.AAK, max UDMA/133
[    4.240000] ata1.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    4.330000] ata1.00: configured for UDMA/133
[    4.330000] scsi 0:0:0:0: Direct-Access     ATA      ST3320620AS      3.AA PQ: 0 ANSI: 5
[    4.690000] ata2: SATA link down (SStatus 0 SControl F300)
[    4.720000] Driver 'sd' needs updating - please use bus_type methods
[    4.730000] sd 0:0:0:0: [sda] 625142448 512-byte hardware sectors: (320 GB/298 GiB)
[    4.740000] sd 0:0:0:0: [sda] Write Protect is off
[    4.740000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.750000]  sda:
[    4.770000] sd 0:0:0:0: [sda] Attached SCSI disk
Starting system log daemon: syslogd, klogd.
mount: mounting /dev/sda1 on /tmp/oldsys-preseed/sda1 failed: No such file or directory
umount: can't umount /tmp/oldsys-preseed/sda1: Invalid argument
























(B)0                                                                              























(B)0                                                                               (B)0lqqqqqqqqqqqqqqqqqqqqqu Detecting network hardware tqqqqqqqqqqqqqqqqqqqqqqkxxx                                    0%                                   xxxxxxxmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjDetecting hardware, please wait... 2 4                                94%                             6  100                                                                                   (B)0lqqqqqqqqqqqqqqqqqqu Configuring the network with DHCP tqqqqqqqqqqqqqqqqqqkxxx                                    0%                                   xxxxxxxx<Cancel>xxxmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjThis may take some time.<Cancel>    6     13     20    6     33     40      46lqqqqqqqqqqqqqqqqqqu Configuring the network with DHCP tqqqqqqqqqqqqqqqqqqkxxx                                  100%                                   xxxx This may take some time.xxxmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjNetwork autoconfiguration has succeeded                                                                               (B)0lqqqqqqqqqqqqqqqqqqqqqqqu Generating SSH host key tqqqqqqqqqqqqqqqqqqqqqqqkxxx                                    0%                                   xxxxxxxmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj                                                                               (B)0lqqqqqqqqqqqu [!!] Continue installation remotely using SSH tqqqqqqqqqqqkxStart SSHxx To continue the installation, please use an SSH client to connect to  xx the IP address 192.168.1.67 and log in as the "installer" user. For   xx example:xxxx    ssh installer@...xxxx The fingerprint of this SSH server's host key is:xx ce:2f:1e:6a:99:99:61:15:e1:24:51:79:de:b6:3f:f3xxxx Please check this carefully against the fingerprint reported by your  xx SSH client.xxxx<Continue>xxxmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj



<Tab> moves; <Space> selects; <Enter> activates buttons

--
Martin Michlmayr
http://www.cyrius.com/



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#543443: installation-reports: eventual success on QNAP TS-219

by Martin Michlmayr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Simon, can you please respond to my email below.  IMHO your
installation report can be closed because there's no bug in the
installer but I'd like to get a confirmation from you.  Thanks.

* Martin Michlmayr <tbm@...> [2009-09-19 17:49]:

> * Simon McVittie <smcv@...> [2009-08-25 01:50]:
> > Booting with the serial console appeared to stop at the stage of starting
> > init; I never got a shell on the serial port, and d-i never got as far as
> > doing DHCP, for some reason (the server's logs indicate that it never received
> > a request). In the absence of a shell, I couldn't debug this.
>
> I cannot reproduce this.  I just took a daily image and it boots fine.
> I first see the kernel messages, then "Starting system log daemon:
> syslogd, klogd." and then a black screen with a green cursos and a
> little bit later I get a window with DHCP.
>
> Can you please boot the installer again and see what happens?
>
> > At the "partition disks" stage, no disks were found or offered for
> > partitioning; dmesg reported that both SATA links were down.
> ...
> > I suspected that the serial console providing partial power to the board might
> > be causing problems, so I disconnected it before the first boot of the
> > installed system. As I'd hoped, both disks were brought up correctly
> > in the installed system
>
> So you're saying the disk didn't come up in d-i because of the serial
> connector?  So can I ignore this issue?
>
> The way I read your report, there are three issues:
>  - d-i doesn't start properly: I cannot reproduce this.  I'd like to
>    hear more info.
>  - initrd size in my docs are wrong: fixed.
>  - disk doesn't come up: caused by your serial connector.
>
> Right?
> --
> Martin Michlmayr
> http://www.cyrius.com/

--
Martin Michlmayr
http://www.cyrius.com/



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#543443: marked as done (installation-reports: eventual success on QNAP TS-219)

by Debian Bug Tracking System :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Your message dated Mon, 9 Nov 2009 21:59:50 +0000
with message-id <20091109215950.GA16259@...>
and subject line Re: Bug#543443: installation-reports: eventual success on QNAP TS-219
has caused the Debian Bug report #543443,
regarding installation-reports: eventual success on QNAP TS-219
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@...
immediately.)


--
543443: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543443
Debian Bug Tracking System
Contact owner@... with problems

Package: installation-reports
Severity: normal

-- Package-specific info:

Boot method: network
Image version: 20090819 daily, http://people.debian.org/~joeyh/d-i/armel/images/20090819-23:51/kirkwood/network-console/qnap/ts-219/
Date: 2009-08-20

Machine: QNAP TS-219
Partitions:

Disks are partitioned as 1GB + the rest:

testament:~# fdisk -l /dev/sda

Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6e29c273

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         122      979933+  82  Linux swap / Solaris
/dev/sda2             123      182401  1464156067+  fd  Linux raid autodetect

sdb has an identical layout.

sdb1 is swap, sda1 is currently unused.

sd?2 are combined into md0 with software RAID1:

testament:~# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda2[2] sdb2[0]
      1464155968 blocks [2/1] [U_]
      [=====>...............]  recovery = 26.6% (390349632/1464155968) finish=216.6min speed=82586K/sec

md0 is the only physical volume in a LVM volume group:

testament:~# lvdisplay
  --- Logical volume ---
  LV Name                /dev/testament/root
  ...
  LV Size                46.56 GB
  ...
  --- Logical volume ---
  LV Name                /dev/testament/srv
  ...
  LV Size                1.32 TB



Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:           [E]
Detect network card:    [O]
Configure network:      [O]
Detect CD:              [O]
Load installer modules: [O]
Detect hard drives:     [E]
Partition hard drives:  [O]
Install base system:    [O]
Clock/timezone setup:   [O]
User/password setup:    [O]
Install tasks:          [O]
Install boot loader:    [O]
Overall install:        [O]

Comments/Problems:

I constructed a serial console cable according to tbm's documentation and
used it with a USB <-> 3.3V serial adaptor, which was useful to get the
thing booted, but may have caused some of the problems it helped me to solve -
the 3.3V power from my laptop's USB was apparently enough to keep the board
running even with the AC adaptor unplugged!

I flashed the daily build kernel/ramdisk by booting into the QNAP firmware
(only the minimal version in flash - I never installed anything from the
supplied CDs to the disks) and using the flash-debian script; however,
I ended up loading them over tftp instead.

Booting with the serial console appeared to stop at the stage of starting
init; I never got a shell on the serial port, and d-i never got as far as
doing DHCP, for some reason (the server's logs indicate that it never received
a request). In the absence of a shell, I couldn't debug this.

I eventually booted from tftp with:

setenv serverip 10.13.0.1
setenv ipaddr 10.13.0.35
setenv bootargs console=ttyS0,115200n8 root=/dev/ram rw initrd=0xa00000,0x900000 BOOT_DEBUG=9
tftpboot 0xa00000 ts219-initrd.gz
tftpboot 0x800000 ts219-kernel
bootm 0x800000

(Changes compared with tbm's instructions: he used the wrong size for the
initrd, causing truncation and boot failure; also, I added BOOT_DEBUG to be
able to get an early shell.)

To work around the failure to run things from init, I exited from the first
shell offered, then ran dhclient, debian-installer-startup and debian-installer
(in that order) in the second (run just before init), and never actually
allowed init to start. With hindsight, running dhclient was probably
unnecessary.

d-i on the serial console eventually told me it was starting the SSH server,
and I switched to SSH for the rest of the installation.

At the "partition disks" stage, no disks were found or offered for
partitioning; dmesg reported that both SATA links were down.

I tried forcing a scan (echo 1 > /sys/class/scsi_host/host2/scan
and the same for host3), which caused the Samsung disk in bay 2 (host3) to
wake up and be detected as sda; the Western Digital disk in bay 1 (host2) was
still not detected. I continued the install onto the Samsung disk only,
configuring it for a degraded 2-disk RAID1 array.

As a result of the strange hacks I'd done to start d-i, exiting from the
main menu with "finish installation" didn't work. I used the "magic sysrq
key" on the serial console (Break S Break U Break O) to shut down wthout
data loss. I now realise that the detailed installation logs were probably lost
during this process; sorry about that.

I suspected that the serial console providing partial power to the board might
be causing problems, so I disconnected it before the first boot of the
installed system. As I'd hoped, both disks were brought up correctly
in the installed system, so I duplicated the partition layout from the
installed Samsung (now sdb) onto the uninitialized Western Digital (now sda),
and added it to the RAID array.

--

Please make sure that the hardware-summary log file, and any other
installation logs that you think would be useful are attached to this
report. Please compress large files using gzip.

Once you have filled out this report, mail it to submit@....

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.30-1-kirkwood
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


On Sat, 19 Sep 2009 at 17:49:19 +0100, Martin Michlmayr wrote:

> * Simon McVittie <smcv@...> [2009-08-25 01:50]:
> > Booting with the serial console appeared to stop at the stage of starting
> > init; I never got a shell on the serial port, and d-i never got as far as
> > doing DHCP, for some reason (the server's logs indicate that it never received
> > a request). In the absence of a shell, I couldn't debug this.
>
> I cannot reproduce this.  I just took a daily image and it boots fine.
> I first see the kernel messages, then "Starting system log daemon:
> syslogd, klogd." and then a black screen with a green cursos and a
> little bit later I get a window with DHCP.
>
> Can you please boot the installer again and see what happens?
I tried this with the 2009-11-09 daily image and it seems fine.

> > I suspected that the serial console providing partial power to the board might
> > be causing problems, so I disconnected it before the first boot of the
> > installed system. As I'd hoped, both disks were brought up correctly
> > in the installed system
>
> So you're saying the disk didn't come up in d-i because of the serial
> connector?  So can I ignore this issue?

I think so. In later experiments my homemade serial connector seemed to work
better with the 3.3V line omitted entirely... it might be worth noting in
documentation that the serial console is not only unnecessary (due to the
recovery mode), but possibly harmful!

in any case, I think this bug can be closed, and am doing so now.

Thanks,
    Simon


report-hw.gz (2K) Download Attachment