Bug#877467: Odroid-XU4: success despite several challenges

2018-04-25 Thread Jochen Sprickerhof

Hi Vagrant,

* Vagrant Cascadian  [2018-04-11 19:52]:

Modules needed to detect the ethernet adapter were still not present in
the netboot image.


The modules are now in there (cf. #895976).


There was a confusing message about partitioning
location. The boot firmware was overwritten as part of the install, but
I suspect that is an old vendor conflict with dos partition tables that
should be fixed in more recent versions of the firmware.


Talking of the firmware, I opened an issue upstream about the license of 
it:


https://github.com/hardkernel/u-boot/issues/49

So maybe we can add it in non-free, or did you invest time in that 
direction already?


Cheers Jochen


signature.asc
Description: PGP signature


Bug#877467: Odroid-XU4: success despite several challenges

2018-04-11 Thread Vagrant Cascadian
Package: installation-reports
Followup-For: Bug #877467

Tested same model board with a newer debian-installer and buster, and
this install went a bit easier(mostly due to USB being fixed in the
current kernels), but still had many of the same problems.

Modules needed to detect the ethernet adapter were still not present in
the netboot image. There was a confusing message about partitioning
location. The boot firmware was overwritten as part of the install, but
I suspect that is an old vendor conflict with dos partition tables that
should be fixed in more recent versions of the firmware.


live well,
  vagrant

-- Package-specific info:

Boot method: network
Image version: 
https://d-i.debian.org/daily-images/armhf/20180411-00:11/netboot/netboot.tar.gz
Date: 2018-04-11

Machine: Odroid-XU4
Partitions:
Filesystem Type 1K-blocksUsed Available Use% Mounted on
udev   devtmpfs   1002724   0   1002724   0% /dev
tmpfs  tmpfs   2041045392198712   3% /run
/dev/sda3  ext4   4740148 1227768   3251880  28% /
tmpfs  tmpfs  1020508   0   1020508   0% /dev/shm
tmpfs  tmpfs 5120   0  5120   0% /run/lock
tmpfs  tmpfs  1020508   0   1020508   0% /sys/fs/cgroup
/dev/mmcblk1p3 ext4464790   50855385417  12% /boot
tmpfs  tmpfs   204100   0204100   0% /run/user/1000

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

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

Comments/Problems:

The modules included on the netboot initrd didn't include enough to
actually load the modules for the ethernet adapters. Appending all the
kernel modules for that kernel version to the initrd worked around the
problem, and ethernet detected fine.

Modules from non-working install:

Module  Size  Used by
dwc3_exynos16384  0
ohci_exynos16384  0
ohci_hcd   45056  1 ohci_exynos
ehci_exynos16384  0
ehci_hcd   77824  1 ehci_exynos
dw_mmc_exynos  16384  0
dw_mmc_pltfm   16384  1 dw_mmc_exynos
usbcore   204800  4
ehci_exynos,ehci_hcd,ohci_hcd,ohci_exynos
dw_mmc 36864  2 dw_mmc_pltfm,dw_mmc_exynos
phy_exynos_usb220480  2
usb_common 16384  1 usbcore
phy_exynos5_usbdrd 16384  0

Modules from working install:

Module  Size  Used by
sd_mod 45056  0
uas20480  0
usb_storage53248  1 uas
scsi_mod  196608  3 sd_mod,usb_storage,uas
cdc_ether  16384  0
usbnet 32768  1 cdc_ether
r8152  57344  0
mii16384  2 usbnet,r8152
snd_soc_hdmi_codec 16384  0
snd_soc_core  163840  1 snd_soc_hdmi_codec
xhci_plat_hcd  16384  0
snd_pcm_dmaengine  16384  1 snd_soc_core
snd_pcm90112  3 
snd_pcm_dmaengine,snd_soc_hdmi_codec,snd_soc_core
snd_timer  28672  1 snd_pcm
xhci_hcd  196608  1 xhci_plat_hcd
snd61440  4 
snd_soc_hdmi_codec,snd_timer,snd_soc_core,snd_pcm
soundcore  16384  1 snd
dwc3  102400  0
udc_core   36864  1 dwc3
phy_generic16384  0
clk_s2mps1116384  0
s2mps1157344  17
dwc3_exynos16384  0
phy_exynos_mipi_video16384  0
phy_exynos_dp_video16384  0
ohci_exynos16384  0
ohci_hcd   45056  1 ohci_exynos
ehci_exynos16384  0
ehci_hcd   77824  1 ehci_exynos
exynosdrm  90112  0
analogix_dp36864  1 exynosdrm
drm_kms_helper135168  2 exynosdrm,analogix_dp
drm   335872  4 exynosdrm,analogix_dp,drm_kms_helper
pwm_samsung16384  2
exynos_adc 24576  0
i2c_exynos516384  0
industrialio   57344  1 exynos_adc
dw_mmc_exynos  16384  0
dw_mmc_pltfm   16384  1 dw_mmc_exynos
usbcore   204800  11
ehci_exynos,usbnet,usb_storage,ehci_hcd,cdc_ether,xhci_plat_hcd,uas,ohci_hcd,ohci_exynos,r8152,xhci_hcd
usb_common 16384  3 udc_core,usbcore,dwc3
dw_mmc 36864  2 dw_mmc_pltfm,dw_mmc_exynos
phy_exynos_usb220480  2
phy_exynos5_usbdrd 16384  4
s3c2410_wdt16384  0
evdev  24576  0
leds_pwm   16384  0
pwm_fan16384  0
cpufreq_dt 16384  0


After finalizing partitioning, there was a confusing prompt about the
start location of the partition, but the instructions to fix it didn't
make much 

Bug#877467: Odroid-XU4: success despite several challenges

2017-10-01 Thread Vagrant Cascadian
Package: installation-reports
Severity: normal

Thanks for maintaining debian-installer!

This install was a bit rough, requring two workarounds to get USB
working (a custom device-tree, and appending a cpio archive with all
kernel modules to the initrd.gz), as well as some troublesome issues
with LVM due to existing LVM partitions on an inaccessible/broken
SSD. Fixing up LVM required manually removing all the logical volumes,
groups and physical volumes, and even then had to reboot for partman
to recognize it. The serial console wasn't set at first boot either.

Despite all that, did eventually manage to install... more detail
below.


live well,
  vagrant


-- Package-specific info:

Boot method: network
Image version: debian-installer-netboot-9-armhf 20170615+deb9u1
Date: 2017-10-01

Machine: Odroid-XU4
Partitions: 
$ df -Tl
Filesystem  Type 1K-blocksUsed Available Use% Mounted on
udevdevtmpfs990636   0990636   0% /dev
tmpfs   tmpfs   2016845384196300   3% /run
/dev/mapper/odxu4a-root ext4   5699700 1137916   4252536  22% /
tmpfs   tmpfs  1008416   0   1008416   0% /dev/shm
tmpfs   tmpfs 5120   0  5120   0% /run/lock
tmpfs   tmpfs  1008416   0   1008416   0% /sys/fs/cgroup
/dev/mmcblk0p4  ext4464790   26412409860   7% /boot
/dev/mapper/odxu4a-srv  ext4  62215940   53272  58972500   1% /srv
tmpfs   tmpfs   201680   0201680   0% /run/user/1000

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

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

Comments/Problems:

The ethernet interface on this board is implemented using USB3... and
the rootfs and other major filesystems are on a USB-SATA adapter.

Initial boot required working around an upstream bug in linux that
breaks USB 3 (workaround requires building a custom .dtb):

  https://bugs.debian.org/843448

Hope to get this fixed in a point release, the fix is moving upstream.


Unfortunately, USB 3.0 still didn't work even with the modified .dtb,
even though the same devicetree and kernel works fine on an installed
system.

I appended all the modules for the kernel to the initrd, and it worked
fine! So linux 4.9.x must have some modules missing from the various
.udebs that are otherwise present in the kernel package.


lsmod from within debian-installer (when it didn't work):

# lsmod
Module  Size  Used by
dwc3_exynos 3827  0
ohci_exynos 4178  0
dw_mmc_exynos   5942  0
ohci_hcd   37898  1 ohci_exynos
ehci_exynos 4269  0
dw_mmc_pltfm2485  1 dw_mmc_exynos
ehci_hcd   64996  1 ehci_exynos
dw_mmc 25740  2 dw_mmc_pltfm,dw_mmc_exynos
usbcore   196310  4
ehci_exynos,ehci_hcd,ohci_hcd,ohci_exynos
phy_exynos_usb2 9238  2
phy_exynos5_usbdrd  7053  0
usb_common  3659  1 usbcore

The running/working system:

$ lsmod
Module  Size  Used by
cpufreq_conservative 3851  0
cpufreq_userspace   3034  0
cpufreq_ondemand6534  2
cpufreq_powersave   1198  0
cdc_ether   7020  0
usbnet 24858  1 cdc_ether
r8152  39630  0
mii 4166  2 usbnet,r8152
sg 22323  0
exynosdrm  81403  0
analogix_dp25251  1 exynosdrm
drm_kms_helper117554  2 exynosdrm,analogix_dp
drm   275008  4 exynosdrm,analogix_dp,drm_kms_helper
pwm_samsung 6722  2
s3c2410_wdt 7161  1
pwm_fan 4806  0
cpufreq_dt  4136  0
leds_pwm3220  0
nf_conntrack_ipv6   9612  5
nf_defrag_ipv6 16209  1 nf_conntrack_ipv6
ip6table_filter 1634  1
ip6_tables 12298  1 ip6table_filter
xt_tcpudp   2973  6
nf_conntrack_ipv4   9225  5
nf_defrag_ipv4  1364  1 nf_conntrack_ipv4
xt_conntrack3039  10
nf_conntrack   85449  3 nf_conntrack_ipv6,nf_conntrack_ipv4,xt_conntrack
iptable_filter  1673  1
ip_tables  12041  1 iptable_filter
x_tables   14762  6 
ip_tables,iptable_filter,xt_tcpudp,ip6table_filter,xt_conntrack,ip6_tables
autofs432600  2
ext4  550734  3
crc16   1274  1 ext4
jbd2   94046  1 ext4
crc32c_generic  1862  6
fscrypto   15434  1 ext4
ecb 2191  0
mbcache 5508  4 ext4