Bug#870869: Segfault during libc-l10n install on kirkwood (armel)

2017-08-17 Thread Martin Michlmayr
* Peter Mogensen  [2017-08-12 23:10]:
> Yes. I started a debian "reinstall" on a wheezy installation on the
> QNAP, by running the kirkwood-qnap to detect the kernel version.
> I don't recall getting an error, it just does:

Ok.  I don't think running the script on wheezy's kernel is
necessarily supposed to work, so that error can be disregarded.

Unfortunately, I've no idea regarding the segfault.

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



Bug#870869: Segfault during libc-l10n install on kirkwood (armel)

2017-08-12 Thread Peter Mogensen


On 2017-08-12 22:40, Martin Michlmayr wrote:
> Oh, sorry, I thought you were talking abou the flash-debian script
> (the script you run on the QNAP firmware to run the installer).  But
> you're talking about kirkwood-qnap, the script in flash-kernel.  What
> error did you get?  Which verison of Debian did you run it on?

Yes. I started a debian "reinstall" on a wheezy installation on the
QNAP, by running the kirkwood-qnap to detect the kernel version.
I don't recall getting an error, it just does:

echo "kirkwood-qnap: Unable to determine $machine variant " >&2
exit 1

So, I figured the model in cpuinfo (Feroceon 88FR131 rev 1 (v5l)) was
less important for the kernel version than
/sys/bus/soc/devices/soc0/soc_id and lscpi output and picked kernel-6282.

Then I flashed new kernel-6282 and initrd:
cat $kernel > /dev/mtdblock1
cat initrd > /dev/mtdblock2

I didn't change uboot.

Then I rebooted and got the stretch installer, and I tries install the
system at least 10 times trying to rule out that anything I did along
the way was a problem (like change DNS manually) ... but it kept
segfaulting at the same point consistenly.

I ran the tests on wheezy before flashing the installer for reinstall. I
could probably get back to the wheezy system (somehow, maybe using
TFTP). As of now I've left the system in this stretch-half-installed
state if there's need for debugging.

/Peter



Bug#870869: Segfault during libc-l10n install on kirkwood (armel)

2017-08-12 Thread Martin Michlmayr
* Peter Mogensen  [2017-08-12 08:42]:
> >> (even though the kirkwood-qnap script can't auto-detect the right
> >> kernel version on a 419PII)
> > 
> > Maybe the QNAP firmware has changed.  If you can easily go back to the
> > QNAP firmware, we can look into this issue.
> 
> I have the original firmware "somewhere", but the box has been running
> wheezy for 2 years and it hasn't had any upgrades from QNAP.

Oh, sorry, I thought you were talking abou the flash-debian script
(the script you run on the QNAP firmware to run the installer).  But
you're talking about kirkwood-qnap, the script in flash-kernel.  What
error did you get?  Which verison of Debian did you run it on?

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



Bug#870869: Segfault during libc-l10n install on kirkwood (armel)

2017-08-12 Thread Peter Mogensen


On 2017-08-11 21:46, Martin Michlmayr wrote:
>> Using the kernel-6282
> 
> Are you sure you're using the right kernel?

Not 100%. (Since I couldn't find documentation about the difference),
But I read the detection script and noticed that it got the "6282" name
frem lspci, and that my box had :6282 in the device-id.

>> (even though the kirkwood-qnap script can't auto-detect the right
>> kernel version on a 419PII)
> 
> Maybe the QNAP firmware has changed.  If you can easily go back to the
> QNAP firmware, we can look into this issue.

I have the original firmware "somewhere", but the box has been running
wheezy for 2 years and it hasn't had any upgrades from QNAP.

/Peter



Bug#870869: Segfault during libc-l10n install on kirkwood (armel)

2017-08-11 Thread Martin Michlmayr
* Peter Mogensen  [2017-08-05 22:23]:
> While trying to install stretch on a QNAP 419PII, the installation
> consistently fails with a segfault in dpkg when it tries to install
> locales and libc-l10n.

I received one other report about a segfault on QNAP (when running
anna) a few months ago.  (This was in private mail and wasn't reported
to debian-boot even though I recommened it.)

Unfortunately, I don't really know what's going on.

> Using the kernel-6282

Are you sure you're using the right kernel?

> (even though the kirkwood-qnap script can't auto-detect the right
> kernel version on a 419PII)

Maybe the QNAP firmware has changed.  If you can easily go back to the
QNAP firmware, we can look into this issue.

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



Bug#870869: Segfault during libc-l10n install on kirkwood (armel)

2017-08-05 Thread Peter Mogensen

Package: base-installer
Version: 1.169

While trying to install stretch on a QNAP 419PII, the installation 
consistently fails with a segfault in dpkg when it tries to install 
locales and libc-l10n.


I install using the method described here:
http://www.cyrius.com/debian/kirkwood/qnap/ts-41x/install/

Using the kernel-6282, (even though the kirkwood-qnap script can't 
auto-detect the right kernel version on a 419PII)


kernel/initrd md5sum:
e923a276eb14e6c5b58c283b30ea5d95  flash-debian
3bf2ade97a4ca7f853ff20a058313b17  initrd
286116d8b838ab5abfb069bc79f7cf09  kernel-6281
436b54c0d0299833c3ed58444c158fae  kernel-6282
6fb0e16e925c9412dc7f165477790304  model

I'm installating the root file system to an external USB3 disk using
manual install (to preserve my RAID system on the main disks)

System information:
===
# cat /proc/cpuinfo
processor   : 0
model name  : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS: 1974.27
Features: swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part: 0x131
CPU revision: 1

Hardware: Marvell Kirkwood (Flattened Device Tree)
Revision: 
Serial  : 
=
# lspci -knn
00:01.0 PCI bridge [0604]: Marvell Technology Group Ltd. Device 
[11ab:6282] (rev 01)
00:02.0 PCI bridge [0604]: Marvell Technology Group Ltd. Device 
[11ab:6282] (rev 01)
01:00.0 SCSI storage controller [0100]: Marvell Technology Group Ltd. 
88SX7042 PCI-e 4-port SATA-II [11ab:7042] (rev 02)

Subsystem: Marvell Technology Group Ltd. Device [11ab:11ab]
Kernel driver in use: sata_mv
Kernel modules: sata_mv
02:00.0 USB controller [0c03]: Etron Technology, Inc. EJ168 USB 3.0 Host 
Controller [1b6f:7023] (rev 01)
Subsystem: Etron Technology, Inc. EJ168 USB 3.0 Host Controller 
[1b6f:7023]

Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
=
# cat /sys/bus/soc/devices/soc0/family
Marvell
# cat /sys/bus/soc/devices/soc0/soc_id
6282
# cat /sys/bus/soc/devices/soc0/revision
1
=
/var/log/syslog of the install:
Aug  5 15:18:21 debootstrap: Creating /etc/network/interfaces.
Aug  5 15:18:22 debootstrap: Created symlink 
/etc/systemd/system/multi-user.target.wants/networking.service -> 
/lib/systemd/system/networking.service.
Aug  5 15:18:22 debootstrap: Created symlink 
/etc/systemd/system/network-online.target.wants/networking.service -> 
/lib/systemd/system/networking.service.

Aug  5 15:18:22 debootstrap: Setting up apt-utils (1.4.7) ...
Aug  5 15:18:22 debootstrap: Setting up debconf-i18n (1.5.61) ...
Aug  5 15:18:22 debootstrap: Setting up whiptail (0.52.19-1+b1) ...
Aug  5 15:18:22 debootstrap: Setting up gnupg (2.1.18-6) ...
Aug  5 15:18:22 debootstrap: Setting up libgnutls30:armel 
(3.5.8-5+deb9u2) ...

Aug  5 15:18:22 debootstrap: Setting up wget (1.18-5) ...
Aug  5 15:18:22 debootstrap: Setting up tasksel (3.39) ...
Aug  5 15:18:24 debootstrap: Setting up tasksel-data (3.39) ...
Aug  5 15:18:24 debootstrap: Processing triggers for libc-bin 
(2.24-11+deb9u1) ...
Aug  5 15:18:24 debootstrap: Processing triggers for systemd 
(232-25+deb9u1) ...
Aug  5 15:18:24 apt-install: Queueing package qcontrol for later 
installation
Aug  5 15:18:25 base-installer: Ign:1 http://ftp.dk.debian.org/debian 
stretch InRelease
Aug  5 15:18:25 base-installer: Hit:2 http://ftp.dk.debian.org/debian 
stretch Release
Aug  5 15:18:25 base-installer: Get:4 http://ftp.dk.debian.org/debian 
stretch/main Translation-en [5393 kB]

Aug  5 15:18:36 base-installer: Fetched 5393 kB in 11s (481 kB/s)
Aug  5 15:18:36 base-installer: Reading package lists...
Aug  5 15:18:45 base-installer:
Aug  5 15:18:48 in-target: Reading package lists...
Aug  5 15:18:48 in-target:
Aug  5 15:18:48 in-target: Building dependency tree...
Aug  5 15:18:49 in-target:
Aug  5 15:18:50 in-target: The following additional packages will be 
installed:

Aug  5 15:18:50 in-target:   libc-l10n
Aug  5 15:18:50 in-target: The following NEW packages will be installed:
Aug  5 15:18:50 in-target:   libc-l10n locales
Aug  5 15:18:50 in-target: 0 upgraded, 2 newly installed, 0 to remove 
and 0 not upgraded.

Aug  5 15:18:50 in-target: Need to get 4109 kB of archives.
Aug  5 15:18:50 in-target: After this operation, 13.8 MB of additional 
disk space will be used.
Aug  5 15:18:50 in-target: Get:1 http://ftp.dk.debian.org/debian 
stretch/main armel libc-l10n all 2.24-11+deb9u1 [820 kB]
Aug  5 15:18:50 in-target: Get:2 http://ftp.dk.debian.org/debian 
stretch/main armel locales all 2.24-11+deb9u1 [3290 kB]

Aug  5 15:18:53 in-target: Preconfiguring packages ...
Aug  5 15:18:53 in-target: Fetched 4109 kB in 0s (4657 kB/s)
Aug  5 15:18:53 in-target: Selecting previously unselected